From 9370587655dd003251190eb269fd6e2d5a5840b7 Mon Sep 17 00:00:00 2001 From: Ali Sharif Date: Wed, 18 Apr 2018 15:19:58 -0400 Subject: [PATCH 001/129] fix p2p tests --- .../aion/zero/impl/sync/msg/ResStatus.java | 2 ++ .../zero/impl/sync/BlockPropagationTest.java | 33 ++++--------------- 2 files changed, 8 insertions(+), 27 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java b/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java index 62e78c3359..deb2473f52 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java @@ -93,6 +93,8 @@ public byte[] getBestHash() { */ public byte[] getTotalDifficulty() { return this.totalDifficulty; } + public byte[] getGenesisHash() { return this.genesisHash; } + public static ResStatus decode(final byte[] _bytes) { if (_bytes == null || _bytes.length < minLen) return null; diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 1a00b9551a..ea5571f79b 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -100,19 +100,10 @@ public Map getActiveNodes() { } @Override - public INodeMgr getNodeMgr() { - return null; - } + public void shutdown() { } @Override - public void shutdown() { - - } - - @Override - public void run() { - - } + public void run() { } @Override public List versions() { @@ -125,14 +116,10 @@ public int chainId() { } @Override - public void errCheck(int nodeIdHashcode, String _displayId) { - - } + public void errCheck(int nodeIdHashcode, String _displayId) { } @Override - public void register(List _hs) { - - } + public void register(List _hs) { } @Override public INode getRandom() { @@ -140,13 +127,7 @@ public INode getRandom() { } @Override - public void send(int _id, Msg _msg) { - - } - - @Override - public void dropActive(Integer hash) { - } + public void send(int _id, Msg _msg) { } @Override public boolean isShowLog() { @@ -154,9 +135,7 @@ public boolean isShowLog() { } @Override - public void closeSocket(SocketChannel socket) { - // do nothing - } + public void closeSocket(final SocketChannel _sc, String _reason) { } } private static List generateDefaultAccounts() { From 024681af6ad128ccf41eb96ec789c5d576a19220 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 9 May 2018 16:03:45 -0400 Subject: [PATCH 002/129] cleaning up the data recovery unit tests --- .../zero/impl/BlockchainDataRecoveryTest.java | 60 ++++++++++--------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java b/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java index 993ba41f6a..2743ffa95f 100644 --- a/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java +++ b/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java @@ -98,11 +98,12 @@ public void testRecoverWorldStateWithPartialWorldState() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - chain.getRepository().flush(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); // delete some world state root entries from the database - TrieImpl trie = (TrieImpl) ((AionRepositoryImpl) chain.getRepository()).getWorldState(); - IByteArrayKeyValueDatabase database = (IByteArrayKeyValueDatabase) trie.getCache().getDb(); + TrieImpl trie = (TrieImpl) repo.getWorldState(); + IByteArrayKeyValueDatabase database = repo.getStateDatabase(); for (byte[] key : statesToDelete) { database.delete(key); @@ -113,7 +114,7 @@ public void testRecoverWorldStateWithPartialWorldState() { assertThat(trie.isValidRoot(chain.getBestBlock().getStateRoot())).isFalse(); // call the recovery functionality - boolean worked = chain.recoverWorldState(chain.getRepository(), bestBlock); + boolean worked = chain.recoverWorldState(repo, bestBlock); // ensure that the blockchain is ok assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); @@ -148,12 +149,13 @@ public void testRecoverWorldStateWithStartFromGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - chain.getRepository().flush(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); // System.out.println(Hex.toHexString(chain.getRepository().getRoot())); // delete some world state root entries from the database - TrieImpl trie = (TrieImpl) ((AionRepositoryImpl) chain.getRepository()).getWorldState(); - IByteArrayKeyValueDatabase database = (IByteArrayKeyValueDatabase) trie.getCache().getDb(); + TrieImpl trie = (TrieImpl) repo.getWorldState(); + IByteArrayKeyValueDatabase database = repo.getStateDatabase(); for (byte[] key : statesToDelete) { database.delete(key); @@ -165,7 +167,7 @@ public void testRecoverWorldStateWithStartFromGenesis() { assertThat(trie.isValidRoot(chain.getBestBlock().getStateRoot())).isFalse(); // call the recovery functionality - boolean worked = chain.recoverWorldState(chain.getRepository(), bestBlock); + boolean worked = chain.recoverWorldState(repo, bestBlock); // ensure that the blockchain is ok assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); @@ -200,11 +202,12 @@ public void testRecoverWorldStateWithoutGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - chain.getRepository().flush(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); // delete some world state root entries from the database - TrieImpl trie = (TrieImpl) ((AionRepositoryImpl) chain.getRepository()).getWorldState(); - IByteArrayKeyValueDatabase database = (IByteArrayKeyValueDatabase) trie.getCache().getDb(); + TrieImpl trie = (TrieImpl) repo.getWorldState(); + IByteArrayKeyValueDatabase database = repo.getStateDatabase(); List statesToDelete = new ArrayList<>(); statesToDelete.addAll(database.keys()); @@ -218,7 +221,7 @@ public void testRecoverWorldStateWithoutGenesis() { assertThat(trie.isValidRoot(chain.getBestBlock().getStateRoot())).isFalse(); // call the recovery functionality - boolean worked = chain.recoverWorldState(chain.getRepository(), bestBlock); + boolean worked = chain.recoverWorldState(repo, bestBlock); // ensure that the blockchain is ok assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); @@ -259,10 +262,10 @@ public void testRecoverIndexWithPartialIndex_MainChain() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - chain.getRepository().flush(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); // delete index entries from the database - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); IByteArrayKeyValueDatabase indexDatabase = repo.getIndexDatabase(); Map deletedInfo = new HashMap<>(); @@ -281,7 +284,7 @@ public void testRecoverIndexWithPartialIndex_MainChain() { assertThat(repo.isIndexed(bestBlock.getHash(), bestBlock.getNumber())).isFalse(); // call the recovery functionality - boolean worked = chain.recoverIndexEntry(chain.getRepository(), bestBlock); + boolean worked = chain.recoverIndexEntry(repo, bestBlock); // ensure that the blockchain is ok assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); @@ -369,10 +372,10 @@ public void testRecoverIndexWithPartialIndex_ShorterSideChain() { assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); assertThat(bestBlock.getHash()).isEqualTo(mainChainBlock.getHash()); - chain.getRepository().flush(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); // delete index entries from the database - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); IByteArrayKeyValueDatabase indexDatabase = repo.getIndexDatabase(); Map deletedInfo = new HashMap<>(); @@ -388,8 +391,7 @@ public void testRecoverIndexWithPartialIndex_ShorterSideChain() { } // call the recovery functionality for the main chain subsection - boolean worked = chain - .recoverIndexEntry(chain.getRepository(), chain.getBlockByHash(mainChainBlock.getParentHash())); + boolean worked = chain.recoverIndexEntry(repo, chain.getBlockByHash(mainChainBlock.getParentHash())); // ensure that the index was corrupted only for the side chain assertThat(repo.isIndexed(sideChainBlock.getHash(), sideChainBlock.getNumber())).isFalse(); @@ -397,7 +399,7 @@ public void testRecoverIndexWithPartialIndex_ShorterSideChain() { assertThat(worked).isTrue(); // call the recovery functionality - worked = chain.recoverIndexEntry(chain.getRepository(), sideChainBlock); + worked = chain.recoverIndexEntry(repo, sideChainBlock); // ensure that the blockchain is ok assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); @@ -448,10 +450,10 @@ public void testRecoverIndexWithStartFromGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - chain.getRepository().flush(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); // delete index entries from the database - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); IByteArrayKeyValueDatabase indexDatabase = repo.getIndexDatabase(); Map deletedInfo = new HashMap<>(); @@ -470,7 +472,7 @@ public void testRecoverIndexWithStartFromGenesis() { assertThat(repo.isIndexed(bestBlock.getHash(), bestBlock.getNumber())).isFalse(); // call the recovery functionality - boolean worked = chain.recoverIndexEntry(chain.getRepository(), bestBlock); + boolean worked = chain.recoverIndexEntry(repo, bestBlock); // ensure that the blockchain is ok assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); @@ -519,9 +521,9 @@ public void testRecoverIndexWithoutGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - chain.getRepository().flush(); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); + IByteArrayKeyValueDatabase indexDatabase = repo.getIndexDatabase(); // deleting the entire index database @@ -531,7 +533,7 @@ public void testRecoverIndexWithoutGenesis() { assertThat(repo.isIndexed(bestBlock.getHash(), bestBlock.getNumber())).isFalse(); // call the recovery functionality - boolean worked = chain.recoverIndexEntry(chain.getRepository(), bestBlock); + boolean worked = chain.recoverIndexEntry(repo, bestBlock); // ensure that the best block is unchanged assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); @@ -566,10 +568,10 @@ public void testRecoverIndexWithStartFromGenesisWithoutSize() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - chain.getRepository().flush(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + repo.flush(); // delete index entries from the database - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); IByteArrayKeyValueDatabase indexDatabase = repo.getIndexDatabase(); Map deletedInfo = new HashMap<>(); @@ -592,7 +594,7 @@ public void testRecoverIndexWithStartFromGenesisWithoutSize() { assertThat(repo.isIndexed(bestBlock.getHash(), bestBlock.getNumber())).isFalse(); // call the recovery functionality - boolean worked = chain.recoverIndexEntry(chain.getRepository(), bestBlock); + boolean worked = chain.recoverIndexEntry(repo, bestBlock); // ensure that the blockchain is ok assertThat(chain.getBestBlockHash()).isEqualTo(bestBlock.getHash()); From a19a60442bcd8cc7a28e96dcf82a42f3565375ba Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 9 May 2018 16:14:33 -0400 Subject: [PATCH 003/129] reenabling the journal prune DS #298 --- .../aion/zero/impl/db/AionRepositoryImpl.java | 29 +++++++++---------- .../org/aion/mcf/db/AbstractRepository.java | 8 ++--- .../src/org/aion/mcf/db/DetailsDataStore.java | 15 +++++----- modMcf/src/org/aion/mcf/trie/Cache.java | 4 +-- 4 files changed, 25 insertions(+), 31 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index 58824e11f2..72e55d1b0a 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -115,7 +115,7 @@ public TransactionStore getTransacti } private Trie createStateTrie() { - return new SecureTrie(stateDatabase).withPruningEnabled(pruneBlockCount >= 0); + return new SecureTrie(stateDSPrune).withPruningEnabled(pruneBlockCount >= 0); } @Override @@ -501,34 +501,31 @@ public void commitBlock(A0BlockHeader blockHeader) { worldState.sync(); detailsDS.syncLargeStorage(); - // temporarily removed since never used - /* if (pruneBlockCount >= 0) { - stateDSPrune.storeBlockChanges(blockHeader); - detailsDS.getStorageDSPrune().storeBlockChanges(blockHeader); - pruneBlocks(blockHeader); - } */ + if (pruneBlockCount >= 0) { + stateDSPrune.storeBlockChanges(blockHeader); + detailsDS.getStorageDSPrune().storeBlockChanges(blockHeader); + pruneBlocks(blockHeader); + } } finally { rwLock.writeLock().unlock(); } } - // TODO-AR: reenable state pruning - // temporarily removed since never used - /* private void pruneBlocks(A0BlockHeader curBlock) { - if (curBlock.getNumber() > bestBlockNumber) { // pruning only on - // increasing blocks + private void pruneBlocks(A0BlockHeader curBlock) { + if (curBlock.getNumber() > bestBlockNumber) { + // pruning only on increasing blocks long pruneBlockNumber = curBlock.getNumber() - pruneBlockCount; if (pruneBlockNumber >= 0) { byte[] pruneBlockHash = blockStore.getBlockHashByNumber(pruneBlockNumber); if (pruneBlockHash != null) { A0BlockHeader header = blockStore.getBlockByHash(pruneBlockHash).getHeader(); - // stateDSPrune.prune(header); - // detailsDS.getStorageDSPrune().prune(header); + stateDSPrune.prune(header); + detailsDS.getStorageDSPrune().prune(header); } } } bestBlockNumber = curBlock.getNumber(); - } */ + } public Trie getWorldState() { return worldState; @@ -543,7 +540,7 @@ public IRepository getSnapshotTo(byte[] root) { repo.blockStore = blockStore; repo.cfg = cfg; repo.stateDatabase = this.stateDatabase; - // repo.stateDSPrune = this.stateDSPrune; + repo.stateDSPrune = this.stateDSPrune; repo.pruneBlockCount = this.pruneBlockCount; repo.detailsDS = this.detailsDS; repo.isSnapshot = true; diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index 9125791d61..c6ae945010 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -48,7 +48,7 @@ import static org.aion.db.impl.DatabaseFactory.Props; //import org.aion.dbmgr.exception.DriverManagerNoSuitableDriverRegisteredException; -// import org.aion.mcf.trie.JournalPruneDataSource; +import org.aion.mcf.trie.JournalPruneDataSource; /** * Abstract Repository class. @@ -94,7 +94,7 @@ public abstract class AbstractRepository databaseGroup; - // protected JournalPruneDataSource stateDSPrune; + protected JournalPruneDataSource stateDSPrune; protected DetailsDataStore detailsDS; // Read Write Lock @@ -241,9 +241,7 @@ protected void initializeDatabasesAndCaches() throws Exception { // Setup the cache for transaction data source. this.detailsDS = new DetailsDataStore<>(detailsDatabase, storageDatabase, this.cfg); - // disabling use of JournalPruneDataSource until functionality properly tested - // TODO-AR: enable pruning with the JournalPruneDataSource - // stateDSPrune = new JournalPruneDataSource<>(stateDatabase); + stateDSPrune = new JournalPruneDataSource<>(stateDatabase); pruneBlockCount = pruneEnabled ? this.cfg.getPrune() : -1; } catch (Exception e) { // Setting up databases and caches went wrong. throw e; diff --git a/modMcf/src/org/aion/mcf/db/DetailsDataStore.java b/modMcf/src/org/aion/mcf/db/DetailsDataStore.java index dd01eee23c..c97997f95f 100644 --- a/modMcf/src/org/aion/mcf/db/DetailsDataStore.java +++ b/modMcf/src/org/aion/mcf/db/DetailsDataStore.java @@ -27,6 +27,7 @@ import org.aion.base.type.IBlockHeader; import org.aion.base.type.ITransaction; import org.aion.base.util.ByteArrayWrapper; +import org.aion.mcf.trie.JournalPruneDataSource; import org.aion.mcf.types.AbstractBlock; import org.aion.mcf.vm.types.DataWord; @@ -34,14 +35,12 @@ import static org.aion.base.util.ByteArrayWrapper.wrap; -// import org.aion.mcf.trie.JournalPruneDataSource; - /** * Detail data storage , */ public class DetailsDataStore, BH extends IBlockHeader> { - // private JournalPruneDataSource storageDSPrune; + private JournalPruneDataSource storageDSPrune; private IRepositoryConfig repoConfig; private IByteArrayKeyValueDatabase detailsSrc; @@ -62,7 +61,7 @@ public DetailsDataStore withDb(IByteArrayKeyValueDatabase detailsSrc, IByteArrayKeyValueDatabase storageSrc) { this.detailsSrc = detailsSrc; this.storageSrc = storageSrc; - // this.storageDSPrune = new JournalPruneDataSource<>(storageSrc); + this.storageDSPrune = new JournalPruneDataSource<>(storageSrc); return this; } @@ -91,7 +90,7 @@ public synchronized IContractDetails get(byte[] key) { // Found something from cache or database, return it by decoding it. IContractDetails detailsImpl = repoConfig.contractDetailsImpl(); - detailsImpl.setDataSource(storageSrc); + detailsImpl.setDataSource(storageDSPrune); detailsImpl.decode(rawDetails.get()); // We can safely get as we checked // if it is present. @@ -162,7 +161,7 @@ public void syncLargeStorage() { // Decode the details. IContractDetails detailsImpl = repoConfig.contractDetailsImpl(); - detailsImpl.setDataSource(storageSrc); + detailsImpl.setDataSource(storageDSPrune); detailsImpl.decode(rawDetails.get()); // We can safely get as we // checked if it is present. @@ -171,9 +170,9 @@ public void syncLargeStorage() { } } - /* public JournalPruneDataSource getStorageDSPrune() { + public JournalPruneDataSource getStorageDSPrune() { return storageDSPrune; - } */ + } public synchronized Set keys() { // TODO - @yao do we wanted a sorted set? diff --git a/modMcf/src/org/aion/mcf/trie/Cache.java b/modMcf/src/org/aion/mcf/trie/Cache.java index e0235d5df5..cc52f5f5fb 100644 --- a/modMcf/src/org/aion/mcf/trie/Cache.java +++ b/modMcf/src/org/aion/mcf/trie/Cache.java @@ -164,9 +164,9 @@ public synchronized void commit(boolean flushCache) { // batchMemorySize += length(key, value); } } - /* for (ByteArrayWrapper removedNode : removedNodes) { + for (ByteArrayWrapper removedNode : removedNodes) { batch.put(removedNode.getData(), null); - } */ + } this.dataSource.putBatch(batch); this.isDirty = false; From 349c9301f4dcebd1bfdc1ea80879e1249a128b61 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 9 May 2018 17:18:49 -0400 Subject: [PATCH 004/129] adding the pune block count to the configuration --- .../aion/zero/impl/db/AionRepositoryImpl.java | 2 +- modBoot/resource/config.xml | 2 ++ modMcf/src/org/aion/mcf/config/CfgDb.java | 16 ++++++++++++++++ .../src/org/aion/mcf/db/AbstractRepository.java | 3 +++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index 72e55d1b0a..4702246311 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -76,7 +76,7 @@ private static class AionRepositoryImplHolder { // repository singleton instance private final static AionRepositoryImpl inst = new AionRepositoryImpl( new RepositoryConfig(new File(config.getBasePath(), config.getDb().getPath()).getAbsolutePath(), - -1, + config.getDb().getPrune(), ContractDetailsAion.getInstance(), config.getDb())); } diff --git a/modBoot/resource/config.xml b/modBoot/resource/config.xml index 06a3f2de99..9b3a51e4e9 100644 --- a/modBoot/resource/config.xml +++ b/modBoot/resource/config.xml @@ -64,6 +64,8 @@ database true + + 1000 leveldb diff --git a/modMcf/src/org/aion/mcf/config/CfgDb.java b/modMcf/src/org/aion/mcf/config/CfgDb.java index 3917623956..9f39813acd 100644 --- a/modMcf/src/org/aion/mcf/config/CfgDb.java +++ b/modMcf/src/org/aion/mcf/config/CfgDb.java @@ -63,6 +63,7 @@ public static class Names { private String vendor; private boolean compression; private boolean check_integrity; + private int prune; /** * Enabling expert mode allows more detailed database configurations. @@ -79,6 +80,7 @@ public CfgDb() { this.vendor = DBVendor.LEVELDB.toValue(); this.compression = false; this.check_integrity = true; + this.prune = -1; if (expert) { this.specificConfig = new HashMap<>(); @@ -100,6 +102,9 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { case "check_integrity": this.check_integrity = Boolean.parseBoolean(Cfg.readValue(sr)); break; + case "prune": + this.prune = Integer.parseInt(Cfg.readValue(sr)); + break; // parameter considered only when expert==false case "vendor": this.vendor = Cfg.readValue(sr); @@ -206,6 +211,13 @@ public String toXML() { xmlWriter.writeCharacters(String.valueOf(this.check_integrity)); xmlWriter.writeEndElement(); + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeComment("Integer value. Number of blocks after which to prune. Pruning disabled when negative."); + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeStartElement("prune"); + xmlWriter.writeCharacters(String.valueOf(this.prune)); + xmlWriter.writeEndElement(); + if (!expert) { xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeComment( @@ -248,6 +260,10 @@ public String getPath() { return this.path; } + public int getPrune() { + return this.prune; + } + public Map asProperties() { Map propSet = new HashMap<>(); diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index c6ae945010..e84f09f485 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -243,6 +243,9 @@ protected void initializeDatabasesAndCaches() throws Exception { this.detailsDS = new DetailsDataStore<>(detailsDatabase, storageDatabase, this.cfg); stateDSPrune = new JournalPruneDataSource<>(stateDatabase); pruneBlockCount = pruneEnabled ? this.cfg.getPrune() : -1; + if (pruneEnabled) { + LOGGEN.info("Pruning block count set to {}.", pruneBlockCount); + } } catch (Exception e) { // Setting up databases and caches went wrong. throw e; } From 4041344fe6cf1b04f41847f3419e5742555469ac Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 10 May 2018 15:13:23 -0400 Subject: [PATCH 005/129] command line utils for exploring the state trie; corrections to the block printing utility --- .../src/org/aion/zero/impl/cli/Cli.java | 49 +++++++- .../org/aion/zero/impl/db/AionBlockStore.java | 6 +- .../org/aion/zero/impl/db/RecoveryUtils.java | 106 +++++++++++++++++- modMcf/src/org/aion/mcf/trie/Trie.java | 2 + modMcf/src/org/aion/mcf/trie/TrieImpl.java | 7 ++ 5 files changed, 163 insertions(+), 7 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/cli/Cli.java b/modAionImpl/src/org/aion/zero/impl/cli/Cli.java index b4e13b9617..685ecb84e1 100644 --- a/modAionImpl/src/org/aion/zero/impl/cli/Cli.java +++ b/modAionImpl/src/org/aion/zero/impl/cli/Cli.java @@ -129,11 +129,52 @@ public int call(final String[] args, final Cfg cfg) { } } break; + case "--dump-state-size": + long block_count = 2L; + + if (args.length < 2) { + System.out.println("Retrieving state size for top " + block_count + " blocks."); + RecoveryUtils.printStateTrieSize(block_count); + } else { + try { + block_count = Long.parseLong(args[1]); + } catch (NumberFormatException e) { + System.out.println("The given argument <" + args[1] + "> cannot be converted to a number."); + } + if (block_count < 1) { + System.out.println("The given argument <" + args[1] + "> is not valid."); + block_count = 2L; + } + + System.out.println("Retrieving state size for top " + block_count + " blocks."); + RecoveryUtils.printStateTrieSize(block_count); + } + break; + case "--dump-state": + long level = -1L; + + if (args.length < 2) { + System.out.println("Retrieving state for top main chain block..."); + RecoveryUtils.printStateTrieDump(level); + } else { + try { + level = Long.parseLong(args[1]); + } catch (NumberFormatException e) { + System.out.println("The given argument <" + args[1] + "> cannot be converted to a number."); + } + if (level == -1L) { + System.out.println("Retrieving state for top main chain block..."); + } else { + System.out.println("Retrieving state for main chain block at level " + level + "..."); + } + RecoveryUtils.printStateTrieDump(level); + } + break; case "--db-compact": RecoveryUtils.dbCompact(); break; case "--dump-blocks": - long count = 100L; + long count = 10L; if (args.length < 2) { System.out.println("Printing top " + count + " blocks from database."); @@ -144,10 +185,14 @@ public int call(final String[] args, final Cfg cfg) { } catch (NumberFormatException e) { System.out.println("The given argument <" + args[1] + "> cannot be converted to a number."); } + if (count < 1) { + System.out.println("The given argument <" + args[1] + "> is not valid."); + count = 10L; + } + System.out.println("Printing top " + count + " blocks from database."); RecoveryUtils.dumpBlocks(count); } - System.out.println("Finished printing blocks."); break; case "-v": System.out.println("\nVersion"); diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java b/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java index 73e4132a5c..7b6e7968a5 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java @@ -749,11 +749,14 @@ public BigInteger correctIndexEntry(AionBlock block, BigInteger parentTotalDiffi } } - public void dumpPastBlocks(long numberOfBlocks, String reportsFolder) throws IOException { + public String dumpPastBlocks(long numberOfBlocks, String reportsFolder) throws IOException { lock.readLock().lock(); try { long firstBlock = getMaxNumber(); + if (firstBlock < 0) { + return null; + } long lastBlock = firstBlock - numberOfBlocks; File file = new File(reportsFolder, System.currentTimeMillis() + "-blocks-report.out"); @@ -786,6 +789,7 @@ public void dumpPastBlocks(long numberOfBlocks, String reportsFolder) throws IOE } writer.close(); + return file.getName(); } finally { lock.readLock().unlock(); } diff --git a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java index f0f109a1f9..fa5590f630 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java +++ b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java @@ -28,8 +28,8 @@ import org.aion.zero.impl.AionBlockchainImpl; import org.aion.zero.impl.config.CfgAion; import org.aion.zero.impl.core.IAionBlockchain; +import org.aion.zero.impl.types.AionBlock; -import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; @@ -138,8 +138,8 @@ public static void dumpBlocks(long count) { cfg.getDb().setHeapCacheEnabled(false); Map cfgLog = new HashMap<>(); - cfgLog.put("DB", "INFO"); - cfgLog.put("GEN", "INFO"); + cfgLog.put("DB", "ERROR"); + cfgLog.put("GEN", "ERROR"); AionLoggerFactory.init(cfgLog); @@ -148,7 +148,12 @@ public static void dumpBlocks(long count) { AionBlockStore store = repository.getBlockStore(); try { - store.dumpPastBlocks(count, cfg.getBasePath()); + String file = store.dumpPastBlocks(count, cfg.getBasePath()); + if (file == null) { + System.out.println("The database is empty. Cannot print block information."); + } else { + System.out.println("Block information stored in " + file); + } } catch (IOException e) { e.printStackTrace(); } @@ -203,4 +208,97 @@ public static Status revertTo(IAionBlockchain blockchain, long nbBlock) { // ok if we managed to get down to the expected block return (nbBestBlock == nbBlock) ? Status.SUCCESS : Status.FAILURE; } + + public static void printStateTrieSize(long blockNumber) { + // ensure mining is disabled + CfgAion cfg = CfgAion.inst(); + cfg.dbFromXML(); + cfg.getConsensus().setMining(false); + + Map cfgLog = new HashMap<>(); + cfgLog.put("DB", "ERROR"); + + AionLoggerFactory.init(cfgLog); + + // get the current blockchain + AionRepositoryImpl repository = AionRepositoryImpl.inst(); + AionBlockStore store = repository.getBlockStore(); + + long topBlock = store.getMaxNumber(); + if (topBlock < 0) { + System.out.println("The database is empty. Cannot print block information."); + return; + } + + long targetBlock = topBlock - blockNumber + 1; + if (targetBlock < 0) { + targetBlock = 0; + } + + AionBlock block; + byte[] stateRoot; + + while (targetBlock <= topBlock) { + block = store.getChainBlockByNumber(targetBlock); + if (block != null) { + stateRoot = block.getStateRoot(); + try { + System.out.println( + "Block hash: " + block.getShortHash() + ", number: " + block.getNumber() + ", tx count: " + + block.getTransactionsList().size() + ", state trie kv count = " + repository + .getWorldState().getTrieSize(stateRoot)); + } catch (RuntimeException e) { + System.out.println( + "Block hash: " + block.getShortHash() + ", number: " + block.getNumber() + ", tx count: " + + block.getTransactionsList().size() + ", state trie kv count threw exception: " + e + .getMessage()); + } + } else { + System.out.println("Null block found at level " + targetBlock + "."); + } + targetBlock++; + } + + repository.close(); + } + + public static void printStateTrieDump(long blockNumber) { + // ensure mining is disabled + CfgAion cfg = CfgAion.inst(); + cfg.dbFromXML(); + cfg.getConsensus().setMining(false); + + Map cfgLog = new HashMap<>(); + cfgLog.put("DB", "ERROR"); + + AionLoggerFactory.init(cfgLog); + + // get the current blockchain + AionRepositoryImpl repository = AionRepositoryImpl.inst(); + + AionBlockStore store = repository.getBlockStore(); + + AionBlock block; + + if (blockNumber == -1L) { + block = store.getBestBlock(); + if (block == null) { + System.out.println("The requested block does not exist in the database."); + return; + } + blockNumber = block.getNumber(); + } else { + block = store.getChainBlockByNumber(blockNumber); + if (block == null) { + System.out.println("The requested block does not exist in the database."); + return; + } + } + + byte[] stateRoot = block.getStateRoot(); + System.out.println("\nBlock hash: " + block.getShortHash() + ", number: " + blockNumber + ", tx count: " + block + .getTransactionsList().size() + "\n\n" + repository.getWorldState().getTrieDump(stateRoot)); + + repository.close(); + } } diff --git a/modMcf/src/org/aion/mcf/trie/Trie.java b/modMcf/src/org/aion/mcf/trie/Trie.java index ca8a01742f..8a0f865c30 100644 --- a/modMcf/src/org/aion/mcf/trie/Trie.java +++ b/modMcf/src/org/aion/mcf/trie/Trie.java @@ -91,6 +91,8 @@ public interface Trie { void undo(); String getTrieDump(); + String getTrieDump(byte[] stateRoot); + int getTrieSize(byte[] stateRoot); boolean validate(); diff --git a/modMcf/src/org/aion/mcf/trie/TrieImpl.java b/modMcf/src/org/aion/mcf/trie/TrieImpl.java index 51c4c75577..7f459824f5 100644 --- a/modMcf/src/org/aion/mcf/trie/TrieImpl.java +++ b/modMcf/src/org/aion/mcf/trie/TrieImpl.java @@ -758,6 +758,13 @@ public String getTrieDump() { } } + @Override + public String getTrieDump(byte[] stateRoot) { + TraceAllNodes traceAction = new TraceAllNodes(); + traceTrie(stateRoot, traceAction); + return "root: " + Hex.toHexString(stateRoot) + "\n" + traceAction.getOutput(); + } + public Set getTrieKeys(byte[] stateRoot) { CollectFullSetOfNodes traceAction = new CollectFullSetOfNodes(); traceTrie(stateRoot, traceAction); From f8152dbbe3c225b14b6d3e54a35239579ef3cb7a Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 10 May 2018 16:38:50 -0400 Subject: [PATCH 006/129] rebuilding the genesis block if missing when attempting state recovery --- .../src/org/aion/zero/impl/AionHub.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 86c1530c06..704cd88f76 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -272,9 +272,39 @@ private void loadBlockchain() { bestBlock != null && // recover only for non-null blocks !this.repository.isValidRoot(bestBlock.getStateRoot())) { + LOG.info("Recovery initiated due to corrupt world state at block " + bestBlock.getNumber() + "."); + long bestBlockNumber = bestBlock.getNumber(); byte[] bestBlockRoot = bestBlock.getStateRoot(); + // ensure that the genesis state exists before attempting recovery + AionGenesis genesis = cfg.getGenesis(); + if (!this.repository.isValidRoot(genesis.getStateRoot())) { + LOG.info( + "Corrupt world state for genesis block hash: " + genesis.getShortHash() + ", number: " + genesis + .getNumber() + "."); + IRepositoryCache track = repository.startTracking(); + + Address networkBalanceAddress = PrecompiledContracts.totalCurrencyAddress; + track.createAccount(networkBalanceAddress); + + for (Map.Entry addr : genesis.getNetworkBalances().entrySet()) { + track.addStorageRow(networkBalanceAddress, + new DataWord(addr.getKey()), + new DataWord(addr.getValue())); + } + + for (Address addr : genesis.getPremine().keySet()) { + track.createAccount(addr); + track.addBalance(addr, genesis.getPremine().get(addr).getBalance()); + } + track.flush(); + + this.repository.commitBlock(genesis.getHeader()); + this.repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); + LOG.info("Rebuilding genesis block SUCCEEDED."); + } + recovered = this.blockchain.recoverWorldState(this.repository, bestBlock); if (!this.repository.isValidRoot(bestBlock.getStateRoot())) { From 93771380b659c3e54a41e05a6b1f423a8a95b55d Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 10 May 2018 18:05:27 -0400 Subject: [PATCH 007/129] disabled pruning when pruneBlockCount is negative; set a lower bound for the pruneBlockCount variable --- .../src/org/aion/zero/impl/db/AionRepositoryImpl.java | 11 ++++++++--- modMcf/src/org/aion/mcf/db/AbstractRepository.java | 6 ++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index 4702246311..057312da49 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -76,7 +76,12 @@ private static class AionRepositoryImplHolder { // repository singleton instance private final static AionRepositoryImpl inst = new AionRepositoryImpl( new RepositoryConfig(new File(config.getBasePath(), config.getDb().getPath()).getAbsolutePath(), - config.getDb().getPrune(), + config.getDb().getPrune() > 0 ? + // if the value is smaller than backward step + // there is the risk of importing state-less blocks after reboot + (128 > config.getDb().getPrune() ? 128 : config.getDb().getPrune()) : + // negative value => pruning disabled + config.getDb().getPrune(), ContractDetailsAion.getInstance(), config.getDb())); } @@ -115,7 +120,7 @@ public TransactionStore getTransacti } private Trie createStateTrie() { - return new SecureTrie(stateDSPrune).withPruningEnabled(pruneBlockCount >= 0); + return new SecureTrie(stateDSPrune).withPruningEnabled(pruneBlockCount > 0); } @Override @@ -501,7 +506,7 @@ public void commitBlock(A0BlockHeader blockHeader) { worldState.sync(); detailsDS.syncLargeStorage(); - if (pruneBlockCount >= 0) { + if (pruneBlockCount > 0) { stateDSPrune.storeBlockChanges(blockHeader); detailsDS.getStorageDSPrune().storeBlockChanges(blockHeader); pruneBlocks(blockHeader); diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index e84f09f485..f894acd753 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -32,6 +32,7 @@ import org.aion.mcf.config.CfgDb; import org.aion.mcf.core.AccountState; import org.aion.mcf.db.exception.InvalidFilePathException; +import org.aion.mcf.trie.JournalPruneDataSource; import org.aion.mcf.trie.Trie; import org.aion.mcf.types.AbstractBlock; import org.aion.mcf.vm.types.DataWord; @@ -48,7 +49,6 @@ import static org.aion.db.impl.DatabaseFactory.Props; //import org.aion.dbmgr.exception.DriverManagerNoSuitableDriverRegisteredException; -import org.aion.mcf.trie.JournalPruneDataSource; /** * Abstract Repository class. @@ -243,8 +243,10 @@ protected void initializeDatabasesAndCaches() throws Exception { this.detailsDS = new DetailsDataStore<>(detailsDatabase, storageDatabase, this.cfg); stateDSPrune = new JournalPruneDataSource<>(stateDatabase); pruneBlockCount = pruneEnabled ? this.cfg.getPrune() : -1; - if (pruneEnabled) { + if (pruneEnabled && pruneBlockCount > 0) { LOGGEN.info("Pruning block count set to {}.", pruneBlockCount); + } else { + stateDSPrune.setPruneEnabled(false); } } catch (Exception e) { // Setting up databases and caches went wrong. throw e; From 493f112df2ccd0e262de41705a0abce9b18acbcd Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 11 May 2018 15:02:48 -0400 Subject: [PATCH 008/129] unit tests for JournalPruneDataSource.java --- .../aion/mcf/trie/JournalPruneDataSource.java | 108 ++-- .../aion/trie/JournalPruneDataSourceTest.java | 553 ++++++++++++++++++ 2 files changed, 619 insertions(+), 42 deletions(-) create mode 100644 modMcf/test/org/aion/trie/JournalPruneDataSourceTest.java diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index 753ba7614f..f547901dfd 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -1,41 +1,52 @@ -/******************************************************************************* +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. * - * Copyright (c) 2017, 2018 Aion foundation. + * This file is part of the aion network project. * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see + * along with the aion network project source files. + * If not, see . * - * Contributors: + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: * Aion foundation. - *******************************************************************************/ + * team through the ethereumJ library. + * Ether.Camp Inc. (US) team through Ethereum Harmony. + * John Tromp through the Equihash solver. + * Samuel Neves through the BLAKE2 implementation. + * Zcash project team. + * Bitcoinj team. + ******************************************************************************/ package org.aion.mcf.trie; +import java.util.*; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IByteArrayKeyValueStore; import org.aion.base.type.IBlock; import org.aion.base.type.IBlockHeader; import org.aion.base.util.ByteArrayWrapper; -import java.util.*; - /** - * The DataSource which doesn't immediately forward delete updates (unlike - * inserts) but collects them tied to the block where these changes were made - * (the changes are mapped to a block upon [storeBlockChanges] call). When the - * [prune] is called for a block the deletes for this block are submitted to the - * underlying DataSource with respect to following inserts. E.g. if the key was - * deleted at block N and then inserted at block N + 10 this delete is not - * passed. + * The DataSource which doesn't immediately forward delete updates (unlike inserts) but collects + * them tied to the block where these changes were made (the changes are mapped to a block upon + * [storeBlockChanges] call). When the [prune] is called for a block the deletes for this block are + * submitted to the underlying DataSource with respect to following inserts. E.g. if the key was + * deleted at block N and then inserted at block N + 10 this delete is not passed. */ public class JournalPruneDataSource, BH extends IBlockHeader> implements IByteArrayKeyValueStore { @@ -77,9 +88,6 @@ public void setPruneEnabled(boolean e) { enabled = e; } - /** - * ***** updates ****** - */ public synchronized void put(byte[] key, byte[] value) { ByteArrayWrapper keyW = new ByteArrayWrapper(key); @@ -92,7 +100,7 @@ public synchronized void put(byte[] key, byte[] value) { incRef(keyW); } - // Insert into the database. + // put to source database. src.put(key, value); } else { @@ -100,12 +108,14 @@ public synchronized void put(byte[] key, byte[] value) { if (enabled) { currentUpdates.deletedKeys.add(keyW); } - // TODO: Do we delete the key? + // delete is not sent to source db } } public synchronized void delete(byte[] key) { - if (!enabled) { return; } + if (!enabled) { + return; + } currentUpdates.deletedKeys.add(new ByteArrayWrapper(key)); // delete is delayed } @@ -129,10 +139,6 @@ public synchronized void updateBatch(Map rows) { src.putBatch(insertsOnly); } - public synchronized void updateBatch(Map rows, boolean erasure) { - throw new UnsupportedOperationException(); - } - private void incRef(ByteArrayWrapper keyW) { Ref cnt = refCount.get(keyW); if (cnt == null) { @@ -152,14 +158,18 @@ private Ref decRef(ByteArrayWrapper keyW) { } public synchronized void storeBlockChanges(BH header) { - if (!enabled) { return; } + if (!enabled) { + return; + } currentUpdates.blockHeader = header; blockUpdates.put(new ByteArrayWrapper(header.getHash()), currentUpdates); currentUpdates = new Updates(); } public synchronized void prune(BH header) { - if (!enabled) { return; } + if (!enabled) { + return; + } ByteArrayWrapper blockHashW = new ByteArrayWrapper(header.getHash()); Updates updates = blockUpdates.remove(blockHashW); if (updates != null) { @@ -167,16 +177,16 @@ public synchronized void prune(BH header) { decRef(insertedKey).dbRef = true; } - Map batchRemove = new HashMap<>(); + List batchRemove = new ArrayList<>(); for (ByteArrayWrapper key : updates.deletedKeys) { Ref ref = refCount.get(key); if (ref == null || ref.journalRefs == 0) { - batchRemove.put(key.getData(), null); + batchRemove.add(key.getData()); } else if (ref != null) { ref.dbRef = false; } } - src.putBatch(batchRemove); + src.deleteBatch(batchRemove); rollbackForkBlocks(header.getNumber()); } @@ -211,9 +221,14 @@ public LinkedHashMap getBlockUpdates() { return blockUpdates; } - /** - * *** other **** - */ + public int getDeletedKeysCount() { + return currentUpdates.deletedKeys.size(); + } + + public int getInsertedKeysCount() { + return currentUpdates.insertedKeys.size(); + } + public Optional get(byte[] key) { return src.get(key); } @@ -244,12 +259,21 @@ public void commitBatch() { @Override public void deleteBatch(Collection keys) { - throw new UnsupportedOperationException(); + if (!enabled) { + return; + } + // deletes are delayed + keys.forEach(key -> currentUpdates.deletedKeys.add(new ByteArrayWrapper(key))); } @Override public boolean isEmpty() { - throw new UnsupportedOperationException(); + // the delayed deletes are not considered by this check until applied to the db + if (!currentUpdates.insertedKeys.isEmpty()) { + return false; + } else { + return src.isEmpty(); + } } public IByteArrayKeyValueDatabase getSrc() { diff --git a/modMcf/test/org/aion/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/trie/JournalPruneDataSourceTest.java new file mode 100644 index 0000000000..83106efb95 --- /dev/null +++ b/modMcf/test/org/aion/trie/JournalPruneDataSourceTest.java @@ -0,0 +1,553 @@ +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: + * Aion foundation. + ******************************************************************************/ +package org.aion.trie; + +import static com.google.common.truth.Truth.assertThat; + +import java.util.HashMap; +import java.util.Map; +import java.util.Set; +import org.aion.base.db.IByteArrayKeyValueDatabase; +import org.aion.db.impl.DatabaseFactory; +import org.aion.log.AionLoggerFactory; +import org.aion.mcf.trie.JournalPruneDataSource; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +/** @author Alexandra Roatis */ +public class JournalPruneDataSourceTest { + + private static final String dbName = "TestDB"; + private static IByteArrayKeyValueDatabase source_db = DatabaseFactory.connect(dbName); + private static JournalPruneDataSource db; + + private static final byte[] k1 = "key1".getBytes(); + private static final byte[] v1 = "value1".getBytes(); + + private static final byte[] k2 = "key2".getBytes(); + private static final byte[] v2 = "value2".getBytes(); + + private static final byte[] k3 = "key3".getBytes(); + private static final byte[] v3 = "value3".getBytes(); + + @BeforeClass + public static void setup() { + // logging to see errors + Map cfg = new HashMap<>(); + cfg.put("DB", "INFO"); + + AionLoggerFactory.init(cfg); + } + + @Before + public void open() { + assertThat(source_db.open()).isTrue(); + db = new JournalPruneDataSource(source_db); + } + + @After + public void close() { + source_db.close(); + assertThat(source_db.isClosed()).isTrue(); + } + + @Test + public void testPut_woPrune() { + db.setPruneEnabled(false); + + assertThat(db.get(k1).isPresent()).isFalse(); + db.put(k1, v1); + assertThat(db.get(k1).get()).isEqualTo(v1); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + + // ensure the insert was propagated + assertThat(source_db.get(k1).get()).isEqualTo(v1); + } + + @Test + public void testPutBatch_woPrune() { + db.setPruneEnabled(false); + + assertThat(db.get(k1).isPresent()).isFalse(); + assertThat(db.get(k2).isPresent()).isFalse(); + + Map map = new HashMap<>(); + map.put(k1, v1); + map.put(k2, v2); + db.putBatch(map); + + assertThat(v1).isEqualTo(db.get(k1).get()); + assertThat(v2).isEqualTo(db.get(k2).get()); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + + // ensure the inserts were propagated + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + } + + @Test + public void testUpdate_woPrune() { + db.setPruneEnabled(false); + + // insert + assertThat(db.get(k1).isPresent()).isFalse(); + db.put(k1, v1); + assertThat(db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k1).get()).isEqualTo(v1); + + // update + db.put(k1, v2); + assertThat(db.get(k1).get()).isEqualTo(v2); + assertThat(source_db.get(k1).get()).isEqualTo(v2); + + // indirect delete + db.put(k1, null); + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(source_db.get(k1).isPresent()).isTrue(); + + // direct delete + db.put(k2, v2); + assertThat(db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + db.delete(k2); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(source_db.get(k2).isPresent()).isTrue(); + + // ensure no cached values + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + } + + @Test + public void testUpdateBatch_woPrune() { + db.setPruneEnabled(false); + + // ensure existence + assertThat(db.get(k1).isPresent()).isFalse(); + assertThat(db.get(k2).isPresent()).isFalse(); + assertThat(db.get(k3).isPresent()).isFalse(); + db.put(k1, v1); + db.put(k2, v2); + + assertThat(v1).isEqualTo(db.get(k1).get()); + assertThat(v2).isEqualTo(db.get(k2).get()); + + // check after update + Map ops = new HashMap<>(); + ops.put(k1, null); + ops.put(k2, v1); + ops.put(k3, v3); + db.putBatch(ops); + + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(db.get(k2).get()).isEqualTo(v1); + assertThat(db.get(k3).get()).isEqualTo(v3); + + assertThat(source_db.get(k1).isPresent()).isTrue(); + assertThat(source_db.get(k2).get()).isEqualTo(v1); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // ensure no cached values + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + } + + @Test + public void testDelete_woPrune() { + db.setPruneEnabled(false); + + // ensure existence + db.put(k1, v1); + assertThat(db.get(k1).isPresent()).isTrue(); + + // delete not propagated + db.delete(k1); + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(source_db.get(k1).get()).isEqualTo(v1); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + } + + @Test + public void testDeleteBatch_woPrune() { + db.setPruneEnabled(false); + + // ensure existence + Map map = new HashMap<>(); + map.put(k1, v1); + map.put(k2, v2); + map.put(k3, null); + db.putBatch(map); + + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(db.get(k3).isPresent()).isFalse(); + + // deletes not propagated + db.deleteBatch(map.keySet()); + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(db.get(k3).isPresent()).isFalse(); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + } + + @Test + public void testKeys_woPrune() { + db.setPruneEnabled(false); + + // keys shouldn't be null even when empty + Set keys = db.keys(); + assertThat(db.isEmpty()).isTrue(); + assertThat(keys).isNotNull(); + assertThat(keys.size()).isEqualTo(0); + + // checking after put + db.put(k1, v1); + db.put(k2, v2); + assertThat(db.get(k1).get()).isEqualTo(v1); + assertThat(db.get(k2).get()).isEqualTo(v2); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(2); + + // checking after delete + db.delete(k2); + assertThat(db.get(k2).isPresent()).isTrue(); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(2); + + // checking after putBatch + Map ops = new HashMap<>(); + ops.put(k1, null); + ops.put(k2, v2); + ops.put(k3, v3); + db.putBatch(ops); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(3); + + // checking after deleteBatch + db.deleteBatch(ops.keySet()); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(3); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + } + + @Test + public void testIsEmpty_woPrune() { + db.setPruneEnabled(false); + + assertThat(db.isEmpty()).isTrue(); + + // checking after put + db.put(k1, v1); + db.put(k2, v2); + assertThat(db.get(k1).get()).isEqualTo(v1); + assertThat(db.get(k2).get()).isEqualTo(v2); + + assertThat(db.isEmpty()).isFalse(); + + // checking after delete + db.delete(k2); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(db.isEmpty()).isFalse(); + db.delete(k1); + assertThat(db.isEmpty()).isFalse(); + + // checking after putBatch + Map ops = new HashMap<>(); + ops.put(k1, null); + ops.put(k2, v2); + ops.put(k3, v3); + db.putBatch(ops); + assertThat(db.isEmpty()).isFalse(); + + // checking after deleteBatch + db.deleteBatch(ops.keySet()); + assertThat(db.isEmpty()).isFalse(); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + } + + @Test + public void testPut_wPrune() { + db.setPruneEnabled(true); + + assertThat(db.get(k1).isPresent()).isFalse(); + db.put(k1, v1); + assertThat(db.get(k1).get()).isEqualTo(v1); + + // ensure cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + + // ensure the insert was propagated + assertThat(source_db.get(k1).get()).isEqualTo(v1); + } + + @Test + public void testPutBatch_wPrune() { + db.setPruneEnabled(true); + + assertThat(db.get(k1).isPresent()).isFalse(); + assertThat(db.get(k2).isPresent()).isFalse(); + + Map map = new HashMap<>(); + map.put(k1, v1); + map.put(k2, v2); + db.putBatch(map); + + assertThat(v1).isEqualTo(db.get(k1).get()); + assertThat(v2).isEqualTo(db.get(k2).get()); + + // ensure cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(2); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + + // ensure the inserts were propagated + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + } + + @Test + public void testUpdate_wPrune() { + db.setPruneEnabled(true); + + // insert + assertThat(db.get(k1).isPresent()).isFalse(); + db.put(k1, v1); + assertThat(db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k1).get()).isEqualTo(v1); + + // update + db.put(k1, v2); + assertThat(db.get(k1).get()).isEqualTo(v2); + assertThat(source_db.get(k1).get()).isEqualTo(v2); + + // indirect delete + db.put(k1, null); + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(source_db.get(k1).isPresent()).isTrue(); + + // direct delete + db.put(k2, v2); + assertThat(db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + db.delete(k2); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(source_db.get(k2).isPresent()).isTrue(); + + // ensure cached values + assertThat(db.getDeletedKeysCount()).isEqualTo(2); + assertThat(db.getInsertedKeysCount()).isEqualTo(2); + } + + @Test + public void testUpdateBatch_wPrune() { + db.setPruneEnabled(true); + + // ensure existence + assertThat(db.get(k1).isPresent()).isFalse(); + assertThat(db.get(k2).isPresent()).isFalse(); + assertThat(db.get(k3).isPresent()).isFalse(); + db.put(k1, v1); + db.put(k2, v2); + + assertThat(v1).isEqualTo(db.get(k1).get()); + assertThat(v2).isEqualTo(db.get(k2).get()); + + // check after update + Map ops = new HashMap<>(); + ops.put(k1, null); + ops.put(k2, v1); + ops.put(k3, v3); + db.putBatch(ops); + + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(db.get(k2).get()).isEqualTo(v1); + assertThat(db.get(k3).get()).isEqualTo(v3); + + assertThat(source_db.get(k1).isPresent()).isTrue(); + assertThat(source_db.get(k2).get()).isEqualTo(v1); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // ensure cached values + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + assertThat(db.getInsertedKeysCount()).isEqualTo(3); + } + + @Test + public void testDelete_wPrune() { + db.setPruneEnabled(true); + + // ensure existence + db.put(k1, v1); + assertThat(db.get(k1).isPresent()).isTrue(); + + // delete not propagated + db.delete(k1); + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(source_db.get(k1).get()).isEqualTo(v1); + + // ensure cached values + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + } + + @Test + public void testDeleteBatchWithPrune() { + // ensure existence + Map map = new HashMap<>(); + map.put(k1, v1); + map.put(k2, v2); + map.put(k3, null); + db.putBatch(map); + + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(db.get(k3).isPresent()).isFalse(); + + // check presence after delete + db.deleteBatch(map.keySet()); + + // delete operations are delayed till pruning is called + assertThat(db.get(k1).isPresent()).isTrue(); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(db.get(k3).isPresent()).isFalse(); + + // ensure cached values + assertThat(db.getDeletedKeysCount()).isEqualTo(3); + assertThat(db.getInsertedKeysCount()).isEqualTo(2); + } + + @Test + public void testKeys() { + db.setPruneEnabled(true); + + // keys shouldn't be null even when empty + Set keys = db.keys(); + assertThat(db.isEmpty()).isTrue(); + assertThat(keys).isNotNull(); + assertThat(keys.size()).isEqualTo(0); + + // checking after put + db.put(k1, v1); + db.put(k2, v2); + assertThat(db.get(k1).get()).isEqualTo(v1); + assertThat(db.get(k2).get()).isEqualTo(v2); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(2); + + // checking after delete + db.delete(k2); + assertThat(db.get(k2).isPresent()).isTrue(); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(2); + + // checking after putBatch + Map ops = new HashMap<>(); + ops.put(k1, null); + ops.put(k2, v2); + ops.put(k3, v3); + db.putBatch(ops); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(3); + + // checking after deleteBatch + db.deleteBatch(ops.keySet()); + + keys = db.keys(); + assertThat(keys.size()).isEqualTo(3); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(3); + assertThat(db.getDeletedKeysCount()).isEqualTo(3); + } + + @Test + public void testIsEmpty_wPrune() { + db.setPruneEnabled(true); + + assertThat(db.isEmpty()).isTrue(); + + // checking after put + db.put(k1, v1); + db.put(k2, v2); + assertThat(db.get(k1).get()).isEqualTo(v1); + assertThat(db.get(k2).get()).isEqualTo(v2); + + assertThat(db.isEmpty()).isFalse(); + + // checking after delete + db.delete(k2); + assertThat(db.get(k2).isPresent()).isTrue(); + assertThat(db.isEmpty()).isFalse(); + db.delete(k1); + assertThat(db.isEmpty()).isFalse(); + + // checking after putBatch + Map ops = new HashMap<>(); + ops.put(k1, null); + ops.put(k2, v2); + ops.put(k3, v3); + db.putBatch(ops); + assertThat(db.isEmpty()).isFalse(); + + // checking after deleteBatch + db.deleteBatch(ops.keySet()); + assertThat(db.isEmpty()).isFalse(); + + // ensure no cached values + assertThat(db.getInsertedKeysCount()).isEqualTo(3); + assertThat(db.getDeletedKeysCount()).isEqualTo(3); + } +} From 7e8dfbd430118eaea156b77b2bfc98c25e027e49 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 11 May 2018 16:51:11 -0400 Subject: [PATCH 009/129] correcting test case --- .../zero/impl/db/AionRepositoryImplTest.java | 138 +++++++++--------- 1 file changed, 70 insertions(+), 68 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java b/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java index 44f6aa4445..412e60b5b6 100644 --- a/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java +++ b/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -34,67 +34,70 @@ ******************************************************************************/ package org.aion.zero.impl.db; +import static com.google.common.truth.Truth.assertThat; + +import java.math.BigInteger; +import java.util.Optional; +import java.util.Properties; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IContractDetails; import org.aion.base.db.IRepositoryCache; import org.aion.base.db.IRepositoryConfig; import org.aion.base.type.Address; import org.aion.base.util.ByteUtil; -import org.aion.db.impl.DatabaseFactory; -import org.aion.db.impl.leveldb.LevelDBConstants; -import org.aion.mcf.core.AccountState; import org.aion.crypto.HashUtil; import org.aion.db.impl.DBVendor; +import org.aion.db.impl.DatabaseFactory; +import org.aion.mcf.core.AccountState; import org.aion.mcf.db.IBlockStoreBase; import org.aion.mcf.vm.types.DataWord; +import org.aion.zero.db.AionContractDetailsImpl; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; -import org.aion.zero.db.AionContractDetailsImpl; -import org.aion.zero.impl.db.AionRepositoryImpl; -import org.aion.zero.impl.db.ContractDetailsAion; - -import java.math.BigInteger; -import java.util.Optional; -import java.util.Properties; - -import static com.google.common.truth.Truth.assertThat; - @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class AionRepositoryImplTest { - protected IRepositoryConfig repoConfig = new IRepositoryConfig() { - @Override - public String getDbPath() { - return ""; - } - - @Override - public int getPrune() { - return 0; - } - - @Override - public IContractDetails contractDetailsImpl() { - return ContractDetailsAion.createForTesting(0, 1000000).getDetails(); - } - - @Override - public Properties getDatabaseConfig(String db_name) { - Properties props = new Properties(); - props.setProperty(DatabaseFactory.Props.DB_TYPE, DBVendor.MOCKDB.toValue()); - props.setProperty(DatabaseFactory.Props.ENABLE_HEAP_CACHE, "false"); - return props; - } - }; + protected IRepositoryConfig repoConfig = + new IRepositoryConfig() { + @Override + public String getDbPath() { + return ""; + } + + @Override + public int getPrune() { + return 0; + } + + @Override + public IContractDetails contractDetailsImpl() { + return ContractDetailsAion.createForTesting(0, 1000000).getDetails(); + } + + @Override + public Properties getDatabaseConfig(String db_name) { + Properties props = new Properties(); + props.setProperty(DatabaseFactory.Props.DB_TYPE, DBVendor.MOCKDB.toValue()); + props.setProperty(DatabaseFactory.Props.ENABLE_HEAP_CACHE, "false"); + return props; + } + }; + + private static String value1 = + "CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3"; + private static String value2 = + "CAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFE"; + private static String value3 = + "BEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEF"; @Test public void testAccountStateUpdate() { AionRepositoryImpl repository = AionRepositoryImpl.createForTesting(repoConfig); byte[] originalRoot = repository.getRoot(); - Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes("CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3")); + Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes(value1)); IRepositoryCache track = repository.startTracking(); track.addBalance(defaultAccount, BigInteger.valueOf(1)); @@ -112,7 +115,7 @@ public void testAccountAddCodeStorage() { AionRepositoryImpl repository = AionRepositoryImpl.createForTesting(repoConfig); IRepositoryCache track = repository.startTracking(); - Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes("CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3")); + Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes(value1)); track.addBalance(defaultAccount, BigInteger.valueOf(1)); byte[] originalRoot = repository.getRoot(); @@ -133,7 +136,7 @@ public void testAccountStateUpdateStorageRow() { AionRepositoryImpl repository = AionRepositoryImpl.createForTesting(repoConfig); IRepositoryCache track = repository.startTracking(); - Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes("CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3")); + Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes(value1)); track.addBalance(defaultAccount, BigInteger.valueOf(1)); // Consider the original root the one after an account has been added @@ -144,7 +147,8 @@ public void testAccountStateUpdateStorageRow() { track.flush(); - byte[] retrievedValue = repository.getStorageValue(defaultAccount, new DataWord(key)).getNoLeadZeroesData(); + byte[] retrievedValue = + repository.getStorageValue(defaultAccount, new DataWord(key)).getNoLeadZeroesData(); assertThat(retrievedValue).isEqualTo(value); byte[] newRoot = repository.getRoot(); @@ -158,7 +162,7 @@ public void testAccountStateUpdateStorageRowFlush() { AionRepositoryImpl repository = AionRepositoryImpl.createForTesting(repoConfig); IRepositoryCache track = repository.startTracking(); - Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes("CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3")); + Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes(value1)); track.addBalance(defaultAccount, BigInteger.valueOf(1)); // Consider the original root the one after an account has been added @@ -172,9 +176,7 @@ public void testAccountStateUpdateStorageRowFlush() { repository.flush(); - /** - * Verify that the account has been flushed - */ + /** Verify that the account has been flushed */ IByteArrayKeyValueDatabase detailsDB = repository.getDetailsDatabase(); Optional serializedDetails = detailsDB.get(defaultAccount.toBytes()); @@ -185,20 +187,18 @@ public void testAccountStateUpdateStorageRowFlush() { assertThat(details.get(new DataWord(key))).isEqualTo(new DataWord(value)); } - /** - * Repo track test suite - */ - + /** Repo track test suite */ /** - * This test confirms that updates done on the repo track are successfully translated - * into the root repository. + * This test confirms that updates done on the repo track are successfully translated into the + * root repository. */ @Test public void testRepoTrackUpdateStorageRow() { final AionRepositoryImpl repository = AionRepositoryImpl.createForTesting(repoConfig); - final IRepositoryCache> repoTrack = repository.startTracking(); - final Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes("CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3CAF3")); + final IRepositoryCache> repoTrack = + repository.startTracking(); + final Address defaultAccount = Address.wrap(ByteUtil.hexStringToBytes(value1)); final byte[] key = HashUtil.blake128("hello".getBytes()); final byte[] value = HashUtil.blake128("world".getBytes()); @@ -208,29 +208,24 @@ public void testRepoTrackUpdateStorageRow() { repoTrack.addStorageRow(defaultAccount, new DataWord(key), new DataWord(value)); - DataWord retrievedStorageValue = repoTrack.getStorageValue(defaultAccount, new DataWord(key)); + DataWord retrievedStorageValue = + repoTrack.getStorageValue(defaultAccount, new DataWord(key)); assertThat(retrievedStorageValue).isEqualTo(new DataWord(value)); // commit changes, then check that the root has updated repoTrack.flush(); - assertThat(repository.getStorageValue(defaultAccount, new DataWord(key))).isEqualTo(retrievedStorageValue); + assertThat(repository.getStorageValue(defaultAccount, new DataWord(key))) + .isEqualTo(retrievedStorageValue); final byte[] newRoot = repository.getRoot(); assertThat(newRoot).isNotEqualTo(originalRoot); } - /** - * Tests behaviour for trie when trying to revert to a previous root without - * first flushing. Note the behaviour here. Interestingly enough, it seems like - * the trie must first be flushed, so that the root node is in the caching/db layer. - * - * Otherwise the retrieval methods will not be able to find the temporal root value. - */ @Test public void testSyncToPreviousRootNoFlush() { - final Address FIRST_ACC = Address.wrap("CAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFE"); - final Address SECOND_ACC = Address.wrap("BEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEFBEEF"); + final Address FIRST_ACC = Address.wrap(value2); + final Address SECOND_ACC = Address.wrap(value3); final AionRepositoryImpl repository = AionRepositoryImpl.createForTesting(repoConfig); byte[] originalRoot = repository.getRoot(); @@ -243,6 +238,10 @@ public void testSyncToPreviousRootNoFlush() { System.out.println("after first account added"); System.out.println(repository.getWorldState().getTrieDump()); + // check the update on the repo + BigInteger balance = repository.getBalance(FIRST_ACC); + assertThat(balance).isEqualTo(BigInteger.ONE); + byte[] firstRoot = repository.getRoot(); track = repository.startTracking(); @@ -257,18 +256,21 @@ public void testSyncToPreviousRootNoFlush() { assertThat(firstRoot).isNotEqualTo(originalRoot); assertThat(secondRoot).isNotEqualTo(firstRoot); + System.out.println("after sync to after first account added"); repository.syncToRoot(firstRoot); + assertThat(repository.isValidRoot(firstRoot)).isTrue(); + System.out.println(repository.getWorldState().getTrieDump()); assertThat(repository.getRoot()).isEqualTo(firstRoot); - BigInteger balance = repository.getBalance(FIRST_ACC); + balance = repository.getBalance(FIRST_ACC); // notice that the first blocks balance is also zero - assertThat(balance).isEqualTo(BigInteger.ZERO); + assertThat(balance).isEqualTo(BigInteger.ONE); } @Test public void testSyncToPreviousRootWithFlush() { - final Address FIRST_ACC = Address.wrap("CAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFE"); + final Address FIRST_ACC = Address.wrap(value2); AionRepositoryImpl repository = AionRepositoryImpl.createForTesting(repoConfig); byte[] originalRoot = repository.getRoot(); From bb92c601994b02d4e8df083124f2f9ad71c240f1 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 16 May 2018 18:06:03 -0400 Subject: [PATCH 010/129] impoving comments for prune and repair functionality --- .../src/org/aion/zero/impl/db/AionBlockStore.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java b/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java index 73e4132a5c..d483f95627 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -20,7 +20,6 @@ * Contributors: * Aion foundation. ******************************************************************************/ - package org.aion.zero.impl.db; import org.aion.base.db.IByteArrayKeyValueDatabase; @@ -635,7 +634,8 @@ public void pruneAndCorrect() { pruneSideChains(block); // bottom up repair of information - BigInteger parentTotalDifficulty = block.getCumulativeDifficulty(); + // initial TD set to genesis TD + BigInteger parentTotalDifficulty = block.getHeader().getDifficultyBI(); level = 1; while (level <= initialLevel) { parentTotalDifficulty = correctTotalDifficulty(level, parentTotalDifficulty); @@ -672,7 +672,7 @@ private void pruneSideChains(IAionBlock block) { blocks.delete(wrongBlock.getHash()); } - // set new block info without total difficulty + // set new block info with total difficulty = block difficulty blockInfo = new BlockInfo(); blockInfo.setCummDifficulty(block.getHeader().getDifficultyBI()); blockInfo.setHash(blockHash); @@ -697,6 +697,7 @@ private BigInteger correctTotalDifficulty(long level, BigInteger parentTotalDiff } else { // correct block info BlockInfo blockInfo = levelBlocks.remove(0); + // total difficulty previously set to block difficulty blockInfo.setCummDifficulty(blockInfo.getCummDifficulty().add(parentTotalDifficulty)); levelBlocks.add(blockInfo); setBlockInfoForLevel(level, levelBlocks); From b67323ea581ccc9a6dc2f97449f3530cef98c35e Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 16 May 2018 18:30:35 -0400 Subject: [PATCH 011/129] storing the public total difficulty inside the best block --- .../org/aion/zero/impl/AionBlockchainImpl.java | 9 +++------ .../org/aion/zero/impl/sync/TaskShowStatus.java | 2 +- .../sync/handler/BlockPropagationHandler.java | 9 +++++---- .../impl/sync/handler/ReqStatusHandler.java | 17 ++++++++++------- .../src/org/aion/zero/impl/types/AionBlock.java | 16 +++++++++++++--- 5 files changed, 32 insertions(+), 21 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index dfa660e1d3..df77da5c4d 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java @@ -139,8 +139,6 @@ public class AionBlockchainImpl implements IAionBlockchain { */ private volatile AionBlock pubBestBlock; - private volatile BigInteger pubBestTD = ZERO; - private volatile BigInteger totalDifficulty = ZERO; private ChainStatistics chainStats; @@ -572,7 +570,6 @@ ImportResult tryToConnectInternal(final AionBlock block, long currTimeSeconds) { // update best block reference if (ret == IMPORTED_BEST) { pubBestBlock = bestBlock; - pubBestTD = summary.getTotalDifficulty(); } // fire block events @@ -688,7 +685,7 @@ public synchronized AionBlockSummary add(AionBlock block) { List receipts = summary.getReceipts(); updateTotalDifficulty(block); - summary.setTotalDifficulty(getInternalTD()); + summary.setTotalDifficulty(block.getCumulativeDifficulty()); storeBlock(block, receipts); @@ -1106,7 +1103,7 @@ public synchronized void close() { @Override public BigInteger getTotalDifficulty() { - return pubBestTD; + return getBestBlock().getCumulativeDifficulty(); } // this method is for the testing purpose @@ -1120,6 +1117,7 @@ private BigInteger getInternalTD() { private void updateTotalDifficulty(AionBlock block) { totalDifficulty = totalDifficulty.add(block.getDifficultyBI()); + block.setCumulativeDifficulty(totalDifficulty); if (LOG.isDebugEnabled()) { LOG.debug("TD: updated to {}", totalDifficulty); } @@ -1127,7 +1125,6 @@ private void updateTotalDifficulty(AionBlock block) { @Override public void setTotalDifficulty(BigInteger totalDifficulty) { - this.pubBestTD = totalDifficulty; this.totalDifficulty = totalDifficulty; } diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java index 01aae5e311..bb57e1a51f 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java @@ -78,7 +78,7 @@ public void run() { Thread.currentThread().setPriority(Thread.MIN_PRIORITY); while (this.start.get()) { AionBlock selfBest = this.chain.getBestBlock(); - String selfTd = this.chain.getTotalDifficulty().toString(10); + String selfTd = selfBest.getCumulativeDifficulty().toString(10); String status = " this.UPDATE_INTERVAL) { synchronized (cache) { - try { - cache = new ResStatus(this.chain.getBestBlock().getNumber(), - this.chain.getTotalDifficulty().toByteArray(), this.chain.getBestBlockHash(), - this.genesisHash); - } catch (Exception e) { - e.printStackTrace(); - } + try { + AionBlock bestBlock = chain.getBestBlock(); + cache = new ResStatus(bestBlock.getNumber(), + bestBlock.getCumulativeDifficulty().toByteArray(), + bestBlock.getHash(), + this.genesisHash); + } catch (Exception e) { + e.printStackTrace(); + } cacheTs = now; } } diff --git a/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java b/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java index 357a75472b..fb99f461c4 100644 --- a/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java +++ b/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java @@ -59,6 +59,8 @@ public class AionBlock extends AbstractBlock imp private Trie txsState; + private BigInteger td = null; + /* Constructors */ private AionBlock() { } @@ -228,9 +230,13 @@ public BigInteger getDifficultyBI() { } public BigInteger getCumulativeDifficulty() { - // TODO: currently returning incorrect total difficulty - parseRLP(); - return new BigInteger(1, this.header.getDifficulty()); + if (td == null) { + // TODO: currently returning incorrect total difficulty + parseRLP(); + return new BigInteger(1, this.header.getDifficulty()); + } else { + return td; + } } public long getTimestamp() { @@ -442,4 +448,8 @@ public static AionBlock createBlockFromNetwork(A0BlockHeader header, byte[] body return block; } + + public void setCumulativeDifficulty(BigInteger _td){ + td = _td; + } } From ab40ed48af9d32e08b58b5a801254ea9c7c6aaf0 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 17 May 2018 10:04:23 -0400 Subject: [PATCH 012/129] extracting common code into a method --- .../src/org/aion/zero/impl/AionHub.java | 64 ++++++++----------- 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 704cd88f76..88fdf11fa6 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,9 +19,7 @@ * * Contributors: * Aion foundation. - * ******************************************************************************/ - package org.aion.zero.impl; import org.aion.base.db.IRepository; @@ -283,25 +281,9 @@ private void loadBlockchain() { LOG.info( "Corrupt world state for genesis block hash: " + genesis.getShortHash() + ", number: " + genesis .getNumber() + "."); - IRepositoryCache track = repository.startTracking(); - - Address networkBalanceAddress = PrecompiledContracts.totalCurrencyAddress; - track.createAccount(networkBalanceAddress); - - for (Map.Entry addr : genesis.getNetworkBalances().entrySet()) { - track.addStorageRow(networkBalanceAddress, - new DataWord(addr.getKey()), - new DataWord(addr.getValue())); - } - for (Address addr : genesis.getPremine().keySet()) { - track.createAccount(addr); - track.addBalance(addr, genesis.getPremine().get(addr).getBalance()); - } - track.flush(); + buildGenesis(genesis); - this.repository.commitBlock(genesis.getHeader()); - this.repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); LOG.info("Rebuilding genesis block SUCCEEDED."); } @@ -353,24 +335,8 @@ private void loadBlockchain() { AionGenesis genesis = cfg.getGenesis(); - // initialization section for network balance contract - IRepositoryCache track = repository.startTracking(); - - Address networkBalanceAddress = PrecompiledContracts.totalCurrencyAddress; - track.createAccount(networkBalanceAddress); + buildGenesis(genesis); - for (Map.Entry addr : genesis.getNetworkBalances().entrySet()) { - track.addStorageRow(networkBalanceAddress, new DataWord(addr.getKey()), new DataWord(addr.getValue())); - } - - for (Address addr : genesis.getPremine().keySet()) { - track.createAccount(addr); - track.addBalance(addr, genesis.getPremine().get(addr).getBalance()); - } - track.flush(); - - repository.commitBlock(genesis.getHeader()); - this.repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); blockchain.setBestBlock(genesis); blockchain.setTotalDifficulty(genesis.getCumulativeDifficulty()); @@ -425,6 +391,30 @@ private void loadBlockchain() { // this.repository.getBlockStore().load(); } + private void buildGenesis(AionGenesis genesis) { + // initialization section for network balance contract + IRepositoryCache track = repository.startTracking(); + + Address networkBalanceAddress = PrecompiledContracts.totalCurrencyAddress; + track.createAccount(networkBalanceAddress); + + for (Map.Entry addr : genesis.getNetworkBalances().entrySet()) { + track.addStorageRow( + networkBalanceAddress, + new DataWord(addr.getKey()), + new DataWord(addr.getValue())); + } + + for (Address addr : genesis.getPremine().keySet()) { + track.createAccount(addr); + track.addBalance(addr, genesis.getPremine().get(addr).getBalance()); + } + track.flush(); + + this.repository.commitBlock(genesis.getHeader()); + this.repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); + } + public void close() { LOG.info(""); From 601e9056c097c9e73609b0cfed807ecfc2a3d7c1 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 11 May 2018 17:45:31 -0400 Subject: [PATCH 013/129] refactored JournalPruneDataSource to be independent of the block and block header --- .../aion/zero/impl/db/AionRepositoryImpl.java | 189 +++++++++--------- .../org/aion/mcf/db/AbstractRepository.java | 124 ++++++------ .../src/org/aion/mcf/db/DetailsDataStore.java | 75 ++++--- .../aion/mcf/trie/JournalPruneDataSource.java | 28 ++- 4 files changed, 220 insertions(+), 196 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index 057312da49..7b2f58e103 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,11 +19,15 @@ * * Contributors: * Aion foundation. - * ******************************************************************************/ - package org.aion.zero.impl.db; +import static org.aion.base.util.ByteUtil.EMPTY_BYTE_ARRAY; +import static org.aion.crypto.HashUtil.EMPTY_TRIE_HASH; + +import java.io.File; +import java.math.BigInteger; +import java.util.*; import org.aion.base.db.*; import org.aion.base.type.Address; import org.aion.base.util.Hex; @@ -42,28 +46,19 @@ import org.aion.zero.types.AionTransaction; import org.aion.zero.types.AionTxReceipt; -import java.io.File; -import java.math.BigInteger; -import java.util.*; - -import static org.aion.base.util.ByteUtil.EMPTY_BYTE_ARRAY; -import static org.aion.crypto.HashUtil.EMPTY_TRIE_HASH; - -/** - * Has direct database connection. - */ -public class AionRepositoryImpl extends AbstractRepository { +/** Has direct database connection. */ +public class AionRepositoryImpl + extends AbstractRepository { private TransactionStore transactionStore; /** * used by getSnapShotTo * - * @ATTENTION: when do snap shot, another instance will be created. Make - * sure it is used only by getSnapShotTo + *

@ATTENTION: when do snap shot, another instance will be created. Make sure it is used only + * by getSnapShotTo */ - protected AionRepositoryImpl() { - } + protected AionRepositoryImpl() {} protected AionRepositoryImpl(IRepositoryConfig repoConfig) { this.cfg = repoConfig; @@ -74,16 +69,24 @@ private static class AionRepositoryImplHolder { // configuration private static CfgAion config = CfgAion.inst(); // repository singleton instance - private final static AionRepositoryImpl inst = new AionRepositoryImpl( - new RepositoryConfig(new File(config.getBasePath(), config.getDb().getPath()).getAbsolutePath(), - config.getDb().getPrune() > 0 ? - // if the value is smaller than backward step - // there is the risk of importing state-less blocks after reboot - (128 > config.getDb().getPrune() ? 128 : config.getDb().getPrune()) : - // negative value => pruning disabled - config.getDb().getPrune(), - ContractDetailsAion.getInstance(), - config.getDb())); + private static final AionRepositoryImpl inst = + new AionRepositoryImpl( + new RepositoryConfig( + new File(config.getBasePath(), config.getDb().getPath()) + .getAbsolutePath(), + config.getDb().getPrune() > 0 + ? + // if the value is smaller than backward step + // there is the risk of importing state-less blocks after + // reboot + (128 > config.getDb().getPrune() + ? 128 + : config.getDb().getPrune()) + : + // negative value => pruning disabled + config.getDb().getPrune(), + ContractDetailsAion.getInstance(), + config.getDb())); } public static AionRepositoryImpl inst() { @@ -99,8 +102,9 @@ private void init() { initializeDatabasesAndCaches(); // Setup the cache for transaction data source. - this.transactionStore = new TransactionStore<>(transactionDatabase, - AionTransactionStoreSerializer.serializer); + this.transactionStore = + new TransactionStore<>( + transactionDatabase, AionTransactionStoreSerializer.serializer); // Setup block store. this.blockStore = new AionBlockStore(indexDatabase, blockDatabase, checkIntegrity); @@ -112,9 +116,7 @@ private void init() { } } - /** - * @implNote The transaction store is not locked within the repository implementation. - */ + /** @implNote The transaction store is not locked within the repository implementation. */ public TransactionStore getTransactionStore() { return this.transactionStore; } @@ -124,7 +126,8 @@ private Trie createStateTrie() { } @Override - public void updateBatch(Map stateCache, + public void updateBatch( + Map stateCache, Map> detailsCache) { rwLock.writeLock().lock(); @@ -153,17 +156,19 @@ public void updateBatch(Map stateCache, updateAccountState(address, accountState); if (LOG.isTraceEnabled()) { - LOG.trace("update: [{}],nonce: [{}] balance: [{}] [{}]", - Hex.toHexString(address.toBytes()), - accountState.getNonce(), - accountState.getBalance(), - Hex.toHexString(contractDetails.getStorageHash())); + LOG.trace( + "update: [{}],nonce: [{}] balance: [{}] [{}]", + Hex.toHexString(address.toBytes()), + accountState.getNonce(), + accountState.getBalance(), + Hex.toHexString(contractDetails.getStorageHash())); } } continue; } - ContractDetailsCacheImpl contractDetailsCache = (ContractDetailsCacheImpl) contractDetails; + ContractDetailsCacheImpl contractDetailsCache = + (ContractDetailsCacheImpl) contractDetails; if (contractDetailsCache.origContract == null) { contractDetailsCache.origContract = this.cfg.contractDetailsImpl(); @@ -171,7 +176,8 @@ public void updateBatch(Map stateCache, contractDetailsCache.origContract.setAddress(address); } catch (Exception e) { e.printStackTrace(); - LOG.error("contractDetailsCache setAddress exception [{}]", e.toString()); + LOG.error( + "contractDetailsCache setAddress exception [{}]", e.toString()); } contractDetailsCache.commit(); @@ -188,11 +194,12 @@ public void updateBatch(Map stateCache, updateAccountState(address, accountState); if (LOG.isTraceEnabled()) { - LOG.trace("update: [{}],nonce: [{}] balance: [{}] [{}]", - Hex.toHexString(address.toBytes()), - accountState.getNonce(), - accountState.getBalance(), - Hex.toHexString(contractDetails.getStorageHash())); + LOG.trace( + "update: [{}],nonce: [{}] balance: [{}] [{}]", + Hex.toHexString(address.toBytes()), + accountState.getNonce(), + accountState.getBalance(), + Hex.toHexString(contractDetails.getStorageHash())); } } } @@ -205,10 +212,9 @@ public void updateBatch(Map stateCache, } } - /** - * @implNote The method calling this method must handle the locking. - */ - private void updateContractDetails(final Address address, final IContractDetails contractDetails) { + /** @implNote The method calling this method must handle the locking. */ + private void updateContractDetails( + final Address address, final IContractDetails contractDetails) { // locked by calling method detailsDS.update(address, contractDetails); } @@ -369,9 +375,7 @@ public BigInteger getNonce(Address address) { return (account == null) ? BigInteger.ZERO : account.getNonce(); } - /** - * @implNote The method calling this method must handle the locking. - */ + /** @implNote The method calling this method must handle the locking. */ private void updateAccountState(Address address, AccountState accountState) { // locked by calling method worldState.update(address.toBytes(), accountState.getEncoded()); @@ -379,10 +383,10 @@ private void updateAccountState(Address address, AccountState accountState) { /** * @inheritDoc - * @implNote Any other method calling this can rely on the fact that - * the contract details returned is a newly created object by {@link IContractDetails#getSnapshotTo(byte[])}. - * Since this querying method it locked, the methods calling it - * may not need to be locked or synchronized, depending on the specific use case. + * @implNote Any other method calling this can rely on the fact that the contract details + * returned is a newly created object by {@link IContractDetails#getSnapshotTo(byte[])}. + * Since this querying method it locked, the methods calling it may not need to be locked + * or synchronized, depending on the specific use case. */ @Override public IContractDetails getContractDetails(Address address) { @@ -423,10 +427,9 @@ public boolean hasContractDetails(Address address) { /** * @inheritDoc - * @implNote Any other method calling this can rely on the fact that - * the account state returned is a newly created object. - * Since this querying method it locked, the methods calling it - * may not need to be locked or synchronized, depending on the specific use case. + * @implNote Any other method calling this can rely on the fact that the account state returned + * is a newly created object. Since this querying method it locked, the methods calling it + * may not need to be locked or synchronized, depending on the specific use case. */ @Override public AccountState getAccountState(Address address) { @@ -439,7 +442,8 @@ public AccountState getAccountState(Address address) { if (accountData.length != 0) { result = new AccountState(accountData); - LOG.debug("New AccountSate [{}], State [{}]", address.toString(), result.toString()); + LOG.debug( + "New AccountSate [{}], State [{}]", address.toString(), result.toString()); } return result; } finally { @@ -453,11 +457,13 @@ public boolean hasAccountState(Address address) { } /** - * @implNote The loaded objects are fresh copies of the original account - * state and contract details. + * @implNote The loaded objects are fresh copies of the original account state and contract + * details. */ @Override - public void loadAccountState(Address address, Map cacheAccounts, + public void loadAccountState( + Address address, + Map cacheAccounts, Map> cacheDetails) { AccountState account = getAccountState(address); @@ -507,8 +513,10 @@ public void commitBlock(A0BlockHeader blockHeader) { detailsDS.syncLargeStorage(); if (pruneBlockCount > 0) { - stateDSPrune.storeBlockChanges(blockHeader); - detailsDS.getStorageDSPrune().storeBlockChanges(blockHeader); + stateDSPrune.storeBlockChanges(blockHeader.getHash(), blockHeader.getNumber()); + detailsDS + .getStorageDSPrune() + .storeBlockChanges(blockHeader.getHash(), blockHeader.getNumber()); pruneBlocks(blockHeader); } } finally { @@ -524,8 +532,8 @@ private void pruneBlocks(A0BlockHeader curBlock) { byte[] pruneBlockHash = blockStore.getBlockHashByNumber(pruneBlockNumber); if (pruneBlockHash != null) { A0BlockHeader header = blockStore.getBlockByHash(pruneBlockHash).getHeader(); - stateDSPrune.prune(header); - detailsDS.getStorageDSPrune().prune(header); + stateDSPrune.prune(header.getHash(), header.getNumber()); + detailsDS.getStorageDSPrune().prune(header.getHash(), header.getNumber()); } } } @@ -597,10 +605,7 @@ public void removeTxBatch(Set clearTxSet, boolean isPool) { } } - /** - * This function cannot for any reason fail, otherwise we may have dangling - * file IO locks - */ + /** This function cannot for any reason fail, otherwise we may have dangling file IO locks */ @Override public void close() { rwLock.writeLock().lock(); @@ -662,7 +667,8 @@ public void close() { pendingTxCacheDatabase = null; } } catch (Exception e) { - LOGGEN.error("Exception occurred while closing the pendingTxCacheDatabase store.", e); + LOGGEN.error( + "Exception occurred while closing the pendingTxCacheDatabase store.", e); } } finally { rwLock.writeLock().unlock(); @@ -670,12 +676,11 @@ public void close() { } /** - * Retrieves the underlying state database that sits below all caches. This - * is usually provided by {@link org.aion.db.impl.leveldb.LevelDB} or - * {@link org.aion.db.impl.leveldb.LevelDB}. - *

- * Note that referencing the state database directly is unsafe, and should - * only be used for debugging and testing purposes. + * Retrieves the underlying state database that sits below all caches. This is usually provided + * by {@link org.aion.db.impl.leveldb.LevelDB} or {@link org.aion.db.impl.leveldb.LevelDB}. + * + *

Note that referencing the state database directly is unsafe, and should only be used for + * debugging and testing purposes. * * @return */ @@ -684,12 +689,11 @@ public IByteArrayKeyValueDatabase getStateDatabase() { } /** - * Retrieves the underlying details database that sits below all caches. - * This is usually provided by {@link org.aion.db.impl.mockdb.MockDB} - * or {@link org.aion.db.impl.mockdb.MockDB}. - *

- * Note that referencing the state database directly is unsafe, and should - * only be used for debugging and testing purposes. + * Retrieves the underlying details database that sits below all caches. This is usually + * provided by {@link org.aion.db.impl.mockdb.MockDB} or {@link org.aion.db.impl.mockdb.MockDB}. + * + *

Note that referencing the state database directly is unsafe, and should only be used for + * debugging and testing purposes. * * @return */ @@ -697,17 +701,20 @@ public IByteArrayKeyValueDatabase getDetailsDatabase() { return this.detailsDatabase; } - /** - * For testing. - */ + /** For testing. */ public IByteArrayKeyValueDatabase getIndexDatabase() { return this.indexDatabase; } @Override public String toString() { - return "AionRepositoryImpl{ identityHashCode=" + System.identityHashCode(this) + ", " + // - "databaseGroupSize=" + (databaseGroup == null ? 0 : databaseGroup.size()) + '}'; + return "AionRepositoryImpl{ identityHashCode=" + + System.identityHashCode(this) + + ", " + + // + "databaseGroupSize=" + + (databaseGroup == null ? 0 : databaseGroup.size()) + + '}'; } @Override diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index f894acd753..269727801b 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * * Copyright (c) 2017, 2018 Aion foundation. * @@ -18,9 +18,17 @@ * Contributors: * Aion foundation. *******************************************************************************/ - package org.aion.mcf.db; +import static org.aion.db.impl.DatabaseFactory.Props; + +import java.io.File; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Objects; +import java.util.Properties; +import java.util.concurrent.locks.ReadWriteLock; +import java.util.concurrent.locks.ReentrantReadWriteLock; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IRepository; import org.aion.base.db.IRepositoryConfig; @@ -38,22 +46,13 @@ import org.aion.mcf.vm.types.DataWord; import org.slf4j.Logger; -import java.io.File; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Objects; -import java.util.Properties; -import java.util.concurrent.locks.ReadWriteLock; -import java.util.concurrent.locks.ReentrantReadWriteLock; - -import static org.aion.db.impl.DatabaseFactory.Props; - -//import org.aion.dbmgr.exception.DriverManagerNoSuitableDriverRegisteredException; +// import org.aion.dbmgr.exception.DriverManagerNoSuitableDriverRegisteredException; -/** - * Abstract Repository class. - */ -public abstract class AbstractRepository, BH extends IBlockHeader, BSB extends IBlockStoreBase> +/** Abstract Repository class. */ +public abstract class AbstractRepository< + BLK extends AbstractBlock, + BH extends IBlockHeader, + BSB extends IBlockStoreBase> implements IRepository { // Logger @@ -63,9 +62,9 @@ public abstract class AbstractRepository databaseGroup; - protected JournalPruneDataSource stateDSPrune; + protected JournalPruneDataSource stateDSPrune; protected DetailsDataStore detailsDS; // Read Write Lock @@ -125,18 +124,18 @@ protected void initializeDatabasesAndCaches() throws Exception { * on startup, enforce conditions here for safety */ Objects.requireNonNull(this.cfg); -// Objects.requireNonNull(this.cfg.getVendorList()); -// Objects.requireNonNull(this.cfg.getActiveVendor()); - -// /** -// * TODO: this is hack There should be some information on the -// * persistence of the DB so that we do not have to manually check. -// * Currently this information exists within -// * {@link DBVendor#getPersistence()}, but is not utilized. -// */ -// if (this.cfg.getActiveVendor().equals(DBVendor.MOCKDB.toValue())) { -// LOG.warn("WARNING: Active vendor is set to MockDB, data will not persist"); -// } else { + // Objects.requireNonNull(this.cfg.getVendorList()); + // Objects.requireNonNull(this.cfg.getActiveVendor()); + + // /** + // * TODO: this is hack There should be some information on the + // * persistence of the DB so that we do not have to manually check. + // * Currently this information exists within + // * {@link DBVendor#getPersistence()}, but is not utilized. + // */ + // if (this.cfg.getActiveVendor().equals(DBVendor.MOCKDB.toValue())) { + // LOG.warn("WARNING: Active vendor is set to MockDB, data will not persist"); + // } else { // verify user-provided path File f = new File(this.cfg.getDbPath()); try { @@ -148,22 +147,27 @@ protected void initializeDatabasesAndCaches() throws Exception { f.mkdirs(); } } catch (Exception e) { - throw new InvalidFilePathException("Resolved file path \"" + this.cfg.getDbPath() - + "\" not valid as reported by the OS or a read/write permissions error occurred. Please provide an alternative DB file path in /config/config.xml."); + throw new InvalidFilePathException( + "Resolved file path \"" + + this.cfg.getDbPath() + + "\" not valid as reported by the OS or a read/write permissions error occurred. Please provide an alternative DB file path in /config/config.xml."); } -// } -// -// if (!Arrays.asList(this.cfg.getVendorList()).contains(this.cfg.getActiveVendor())) { -// -// ArrayList vendorListString = new ArrayList<>(); -// for (String v : this.cfg.getVendorList()) { -// vendorListString.add("\"" + v + "\""); -// } -// throw new DriverManagerNoSuitableDriverRegisteredException( -// "Please check the vendor name field in /config/config.xml.\n" -// + "No suitable driver found with name \"" + this.cfg.getActiveVendor() -// + "\".\nPlease select a driver from the following vendor list: " + vendorListString); -// } + // } + // + // if (!Arrays.asList(this.cfg.getVendorList()).contains(this.cfg.getActiveVendor())) + // { + // + // ArrayList vendorListString = new ArrayList<>(); + // for (String v : this.cfg.getVendorList()) { + // vendorListString.add("\"" + v + "\""); + // } + // throw new DriverManagerNoSuitableDriverRegisteredException( + // "Please check the vendor name field in /config/config.xml.\n" + // + "No suitable driver found with name \"" + + // this.cfg.getActiveVendor() + // + "\".\nPlease select a driver from the following vendor list: + // " + vendorListString); + // } Properties sharedProps; @@ -171,8 +175,10 @@ protected void initializeDatabasesAndCaches() throws Exception { try { databaseGroup = new ArrayList<>(); - checkIntegrity = Boolean - .valueOf(cfg.getDatabaseConfig(CfgDb.Names.DEFAULT).getProperty(Props.CHECK_INTEGRITY)); + checkIntegrity = + Boolean.valueOf( + cfg.getDatabaseConfig(CfgDb.Names.DEFAULT) + .getProperty(Props.CHECK_INTEGRITY)); // getting state specific properties sharedProps = cfg.getDatabaseConfig(STATE_DB); @@ -241,7 +247,7 @@ protected void initializeDatabasesAndCaches() throws Exception { // Setup the cache for transaction data source. this.detailsDS = new DetailsDataStore<>(detailsDatabase, storageDatabase, this.cfg); - stateDSPrune = new JournalPruneDataSource<>(stateDatabase); + stateDSPrune = new JournalPruneDataSource(stateDatabase); pruneBlockCount = pruneEnabled ? this.cfg.getPrune() : -1; if (pruneEnabled && pruneBlockCount > 0) { LOGGEN.info("Pruning block count set to {}.", pruneBlockCount); @@ -272,16 +278,18 @@ private IByteArrayKeyValueDatabase connectAndOpen(Properties info) { // check object status if (db == null) { - LOG.error("Database <{}> connection could not be established for <{}>.", - info.getProperty(Props.DB_TYPE), - info.getProperty(Props.DB_NAME)); + LOG.error( + "Database <{}> connection could not be established for <{}>.", + info.getProperty(Props.DB_TYPE), + info.getProperty(Props.DB_NAME)); } // check persistence status if (!db.isCreatedOnDisk()) { - LOG.error("Database <{}> cannot be saved to disk for <{}>.", - info.getProperty(Props.DB_TYPE), - info.getProperty(Props.DB_NAME)); + LOG.error( + "Database <{}> cannot be saved to disk for <{}>.", + info.getProperty(Props.DB_TYPE), + info.getProperty(Props.DB_NAME)); } return db; diff --git a/modMcf/src/org/aion/mcf/db/DetailsDataStore.java b/modMcf/src/org/aion/mcf/db/DetailsDataStore.java index c97997f95f..280cd38787 100644 --- a/modMcf/src/org/aion/mcf/db/DetailsDataStore.java +++ b/modMcf/src/org/aion/mcf/db/DetailsDataStore.java @@ -1,25 +1,42 @@ -/******************************************************************************* +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. * - * Copyright (c) 2017, 2018 Aion foundation. + * This file is part of the aion network project. * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see + * along with the aion network project source files. + * If not, see . * - * Contributors: + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: * Aion foundation. - *******************************************************************************/ + * team through the ethereumJ library. + * Ether.Camp Inc. (US) team through Ethereum Harmony. + * John Tromp through the Equihash solver. + * Samuel Neves through the BLAKE2 implementation. + * Zcash project team. + * Bitcoinj team. + ******************************************************************************/ package org.aion.mcf.db; +import static org.aion.base.util.ByteArrayWrapper.wrap; + +import java.util.*; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IContractDetails; import org.aion.base.db.IRepositoryConfig; @@ -31,43 +48,38 @@ import org.aion.mcf.types.AbstractBlock; import org.aion.mcf.vm.types.DataWord; -import java.util.*; - -import static org.aion.base.util.ByteArrayWrapper.wrap; - -/** - * Detail data storage , - */ -public class DetailsDataStore, BH extends IBlockHeader> { +/** Detail data storage , */ +public class DetailsDataStore< + BLK extends AbstractBlock, BH extends IBlockHeader> { - private JournalPruneDataSource storageDSPrune; + private JournalPruneDataSource storageDSPrune; private IRepositoryConfig repoConfig; private IByteArrayKeyValueDatabase detailsSrc; private IByteArrayKeyValueDatabase storageSrc; private Set removes = new HashSet<>(); - public DetailsDataStore() { - } + public DetailsDataStore() {} - public DetailsDataStore(IByteArrayKeyValueDatabase detailsCache, IByteArrayKeyValueDatabase storageCache, + public DetailsDataStore( + IByteArrayKeyValueDatabase detailsCache, + IByteArrayKeyValueDatabase storageCache, IRepositoryConfig repoConfig) { this.repoConfig = repoConfig; withDb(detailsCache, storageCache); } - public DetailsDataStore withDb(IByteArrayKeyValueDatabase detailsSrc, - IByteArrayKeyValueDatabase storageSrc) { + public DetailsDataStore withDb( + IByteArrayKeyValueDatabase detailsSrc, IByteArrayKeyValueDatabase storageSrc) { this.detailsSrc = detailsSrc; this.storageSrc = storageSrc; - this.storageDSPrune = new JournalPruneDataSource<>(storageSrc); + this.storageDSPrune = new JournalPruneDataSource(storageSrc); return this; } /** - * Fetches the ContractDetails from the cache, and if it doesn't exist, add - * to the remove set. + * Fetches the ContractDetails from the cache, and if it doesn't exist, add to the remove set. * * @param key * @return @@ -110,7 +122,6 @@ public synchronized void update(Address key, IContractDetails contract // Remove from the remove set. removes.remove(wrappedKey); - } public synchronized void remove(byte[] key) { @@ -170,7 +181,7 @@ public void syncLargeStorage() { } } - public JournalPruneDataSource getStorageDSPrune() { + public JournalPruneDataSource getStorageDSPrune() { return storageDSPrune; } diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index f547901dfd..f5dc2f116a 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -37,8 +37,6 @@ import java.util.*; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IByteArrayKeyValueStore; -import org.aion.base.type.IBlock; -import org.aion.base.type.IBlockHeader; import org.aion.base.util.ByteArrayWrapper; /** @@ -48,12 +46,11 @@ * submitted to the underlying DataSource with respect to following inserts. E.g. if the key was * deleted at block N and then inserted at block N + 10 this delete is not passed. */ -public class JournalPruneDataSource, BH extends IBlockHeader> - implements IByteArrayKeyValueStore { +public class JournalPruneDataSource implements IByteArrayKeyValueStore { private class Updates { - - BH blockHeader; + ByteArrayWrapper blockHeader; + long blockNumber; Set insertedKeys = new HashSet<>(); Set deletedKeys = new HashSet<>(); } @@ -157,20 +154,22 @@ private Ref decRef(ByteArrayWrapper keyW) { return cnt; } - public synchronized void storeBlockChanges(BH header) { + public synchronized void storeBlockChanges(byte[] blockHash, long blockNumber) { if (!enabled) { return; } - currentUpdates.blockHeader = header; - blockUpdates.put(new ByteArrayWrapper(header.getHash()), currentUpdates); + ByteArrayWrapper hash = new ByteArrayWrapper(blockHash); + currentUpdates.blockHeader = hash; + currentUpdates.blockNumber = blockNumber; + blockUpdates.put(hash, currentUpdates); currentUpdates = new Updates(); } - public synchronized void prune(BH header) { + public synchronized void prune(byte[] blockHash, long blockNumber) { if (!enabled) { return; } - ByteArrayWrapper blockHashW = new ByteArrayWrapper(header.getHash()); + ByteArrayWrapper blockHashW = new ByteArrayWrapper(blockHash); Updates updates = blockUpdates.remove(blockHashW); if (updates != null) { for (ByteArrayWrapper insertedKey : updates.insertedKeys) { @@ -188,20 +187,19 @@ public synchronized void prune(BH header) { } src.deleteBatch(batchRemove); - rollbackForkBlocks(header.getNumber()); + rollbackForkBlocks(blockNumber); } } private void rollbackForkBlocks(long blockNum) { for (Updates updates : new ArrayList<>(blockUpdates.values())) { - if (updates.blockHeader.getNumber() == blockNum) { + if (updates.blockNumber == blockNum) { rollback(updates.blockHeader); } } } - private synchronized void rollback(BH header) { - ByteArrayWrapper blockHashW = new ByteArrayWrapper(header.getHash()); + private synchronized void rollback(ByteArrayWrapper blockHashW) { Updates updates = blockUpdates.remove(blockHashW); Map batchRemove = new HashMap<>(); for (ByteArrayWrapper insertedKey : updates.insertedKeys) { From e92d842128b3fabd5d7e159812ad4fb7d05b6fab Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 14 May 2018 11:44:00 -0400 Subject: [PATCH 014/129] replacing synchronized methods with read-write locks --- .../aion/mcf/trie/JournalPruneDataSource.java | 264 ++++++++++++------ 1 file changed, 184 insertions(+), 80 deletions(-) diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index f5dc2f116a..a2257a3d5c 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -35,9 +35,14 @@ package org.aion.mcf.trie; import java.util.*; +import java.util.concurrent.locks.ReadWriteLock; +import java.util.concurrent.locks.ReentrantReadWriteLock; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IByteArrayKeyValueStore; import org.aion.base.util.ByteArrayWrapper; +import org.aion.log.AionLoggerFactory; +import org.aion.log.LogEnum; +import org.slf4j.Logger; /** * The DataSource which doesn't immediately forward delete updates (unlike inserts) but collects @@ -48,6 +53,9 @@ */ public class JournalPruneDataSource implements IByteArrayKeyValueStore { + private final ReadWriteLock lock = new ReentrantReadWriteLock(); + private static final Logger LOG = AionLoggerFactory.getLogger(LogEnum.DB.name()); + private class Updates { ByteArrayWrapper blockHeader; long blockNumber; @@ -82,58 +90,99 @@ public JournalPruneDataSource(IByteArrayKeyValueDatabase src) { } public void setPruneEnabled(boolean e) { + lock.writeLock().lock(); + enabled = e; + + lock.writeLock().unlock(); } - public synchronized void put(byte[] key, byte[] value) { - ByteArrayWrapper keyW = new ByteArrayWrapper(key); + public void put(byte[] key, byte[] value) { + lock.writeLock().lock(); - // Check to see the value exists. - if (value != null) { + try { + ByteArrayWrapper keyW = new ByteArrayWrapper(key); - // If it exists and pruning is enabled. - if (enabled) { - currentUpdates.insertedKeys.add(keyW); - incRef(keyW); - } + // Check to see the value exists. + if (value != null) { - // put to source database. - src.put(key, value); + // If it exists and pruning is enabled. + if (enabled) { + currentUpdates.insertedKeys.add(keyW); + incRef(keyW); + } + + // put to source database. + src.put(key, value); - } else { - // Value does not exist, so we delete from current updates - if (enabled) { - currentUpdates.deletedKeys.add(keyW); + } else { + // Value does not exist, so we delete from current updates + if (enabled) { + currentUpdates.deletedKeys.add(keyW); + } + // delete is not sent to source db } - // delete is not sent to source db + } catch (Exception e) { + if (e instanceof RuntimeException) { + throw e; + } else { + LOG.error("Could not put key-value pair due to ", e); + } + } finally { + lock.writeLock().unlock(); } } - public synchronized void delete(byte[] key) { - if (!enabled) { - return; + public void delete(byte[] key) { + lock.writeLock().lock(); + + try { + if (!enabled) { + return; + } + currentUpdates.deletedKeys.add(new ByteArrayWrapper(key)); + // delete is delayed + } catch (Exception e) { + if (e instanceof RuntimeException) { + throw e; + } else { + LOG.error("Could not delete key due to ", e); + } + } finally { + lock.writeLock().unlock(); } - currentUpdates.deletedKeys.add(new ByteArrayWrapper(key)); - // delete is delayed } - public synchronized void updateBatch(Map rows) { - Map insertsOnly = new HashMap<>(); - for (Map.Entry entry : rows.entrySet()) { - ByteArrayWrapper keyW = new ByteArrayWrapper(entry.getKey()); - if (entry.getValue() != null) { - if (enabled) { - currentUpdates.insertedKeys.add(keyW); - incRef(keyW); + @Override + public void putBatch(Map inputMap) { + lock.writeLock().lock(); + + try { + Map insertsOnly = new HashMap<>(); + for (Map.Entry entry : inputMap.entrySet()) { + ByteArrayWrapper keyW = new ByteArrayWrapper(entry.getKey()); + if (entry.getValue() != null) { + if (enabled) { + currentUpdates.insertedKeys.add(keyW); + incRef(keyW); + } + insertsOnly.put(entry.getKey(), entry.getValue()); + } else { + if (enabled) { + currentUpdates.deletedKeys.add(keyW); + } } - insertsOnly.put(entry.getKey(), entry.getValue()); + } + src.putBatch(insertsOnly); + } catch (Exception e) { + if (e instanceof RuntimeException) { + throw e; } else { - if (enabled) { - currentUpdates.deletedKeys.add(keyW); - } + LOG.error("Could not put batch due to ", e); } + } finally { + lock.writeLock().unlock(); } - src.putBatch(insertsOnly); } private void incRef(ByteArrayWrapper keyW) { @@ -154,40 +203,52 @@ private Ref decRef(ByteArrayWrapper keyW) { return cnt; } - public synchronized void storeBlockChanges(byte[] blockHash, long blockNumber) { - if (!enabled) { - return; + public void storeBlockChanges(byte[] blockHash, long blockNumber) { + lock.writeLock().lock(); + + try { + if (!enabled) { + return; + } + ByteArrayWrapper hash = new ByteArrayWrapper(blockHash); + currentUpdates.blockHeader = hash; + currentUpdates.blockNumber = blockNumber; + blockUpdates.put(hash, currentUpdates); + currentUpdates = new Updates(); + } finally { + lock.writeLock().unlock(); } - ByteArrayWrapper hash = new ByteArrayWrapper(blockHash); - currentUpdates.blockHeader = hash; - currentUpdates.blockNumber = blockNumber; - blockUpdates.put(hash, currentUpdates); - currentUpdates = new Updates(); } - public synchronized void prune(byte[] blockHash, long blockNumber) { - if (!enabled) { - return; - } - ByteArrayWrapper blockHashW = new ByteArrayWrapper(blockHash); - Updates updates = blockUpdates.remove(blockHashW); - if (updates != null) { - for (ByteArrayWrapper insertedKey : updates.insertedKeys) { - decRef(insertedKey).dbRef = true; + public void prune(byte[] blockHash, long blockNumber) { + lock.writeLock().lock(); + + try { + if (!enabled) { + return; } + ByteArrayWrapper blockHashW = new ByteArrayWrapper(blockHash); + Updates updates = blockUpdates.remove(blockHashW); + if (updates != null) { + for (ByteArrayWrapper insertedKey : updates.insertedKeys) { + decRef(insertedKey).dbRef = true; + } - List batchRemove = new ArrayList<>(); - for (ByteArrayWrapper key : updates.deletedKeys) { - Ref ref = refCount.get(key); - if (ref == null || ref.journalRefs == 0) { - batchRemove.add(key.getData()); - } else if (ref != null) { - ref.dbRef = false; + List batchRemove = new ArrayList<>(); + for (ByteArrayWrapper key : updates.deletedKeys) { + Ref ref = refCount.get(key); + if (ref == null || ref.journalRefs == 0) { + batchRemove.add(key.getData()); + } else if (ref != null) { + ref.dbRef = false; + } } - } - src.deleteBatch(batchRemove); + src.deleteBatch(batchRemove); - rollbackForkBlocks(blockNumber); + rollbackForkBlocks(blockNumber); + } + } finally { + lock.writeLock().unlock(); } } @@ -199,7 +260,7 @@ private void rollbackForkBlocks(long blockNum) { } } - private synchronized void rollback(ByteArrayWrapper blockHashW) { + private void rollback(ByteArrayWrapper blockHashW) { Updates updates = blockUpdates.remove(blockHashW); Map batchRemove = new HashMap<>(); for (ByteArrayWrapper insertedKey : updates.insertedKeys) { @@ -220,29 +281,54 @@ public LinkedHashMap getBlockUpdates() { } public int getDeletedKeysCount() { - return currentUpdates.deletedKeys.size(); + lock.readLock().lock(); + try { + return currentUpdates.deletedKeys.size(); + } finally { + lock.readLock().unlock(); + } } public int getInsertedKeysCount() { - return currentUpdates.insertedKeys.size(); + lock.readLock().lock(); + try { + return currentUpdates.insertedKeys.size(); + } finally { + lock.readLock().unlock(); + } } public Optional get(byte[] key) { - return src.get(key); + lock.readLock().lock(); + try { + return src.get(key); + } catch (Exception e) { + throw e; + } finally { + lock.readLock().unlock(); + } } public Set keys() { - return src.keys(); + lock.readLock().lock(); + try { + return src.keys(); + } catch (Exception e) { + throw e; + } finally { + lock.readLock().unlock(); + } } @Override public void close() { - src.close(); - } + lock.writeLock().lock(); - @Override - public void putBatch(Map inputMap) { - updateBatch(inputMap); + try { + src.close(); + } finally { + lock.writeLock().unlock(); + } } @Override @@ -257,20 +343,38 @@ public void commitBatch() { @Override public void deleteBatch(Collection keys) { - if (!enabled) { - return; + lock.writeLock().lock(); + try { + if (!enabled) { + return; + } + // deletes are delayed + keys.forEach(key -> currentUpdates.deletedKeys.add(new ByteArrayWrapper(key))); + } catch (Exception e) { + if (e instanceof RuntimeException) { + throw e; + } else { + LOG.error("Could not delete batch due to ", e); + } + } finally { + lock.writeLock().unlock(); } - // deletes are delayed - keys.forEach(key -> currentUpdates.deletedKeys.add(new ByteArrayWrapper(key))); } @Override public boolean isEmpty() { - // the delayed deletes are not considered by this check until applied to the db - if (!currentUpdates.insertedKeys.isEmpty()) { - return false; - } else { - return src.isEmpty(); + lock.readLock().lock(); + try { + // the delayed deletes are not considered by this check until applied to the db + if (!currentUpdates.insertedKeys.isEmpty()) { + return false; + } else { + return src.isEmpty(); + } + } catch (Exception e) { + throw e; + } finally { + lock.readLock().unlock(); } } From 0fb29b90382fe8857ce993f45b12abd29bca2070 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 14 May 2018 11:46:53 -0400 Subject: [PATCH 015/129] disabling locking on the state database since the JournalPruneDS is locked --- modMcf/src/org/aion/mcf/db/AbstractRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index 269727801b..45bc3429a1 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -182,8 +182,8 @@ protected void initializeDatabasesAndCaches() throws Exception { // getting state specific properties sharedProps = cfg.getDatabaseConfig(STATE_DB); - // locking enabled for state - sharedProps.setProperty(Props.ENABLE_LOCKING, "true"); + // locking enabled for state when JournalPrune not used + sharedProps.setProperty(Props.ENABLE_LOCKING, "false"); sharedProps.setProperty(Props.DB_PATH, cfg.getDbPath()); sharedProps.setProperty(Props.DB_NAME, STATE_DB); this.stateDatabase = connectAndOpen(sharedProps); From 8aa11337c3028cd5b871a33da946a24204be34c4 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 14 May 2018 11:50:24 -0400 Subject: [PATCH 016/129] moving the JournalPruneDS test class in the correct folder --- .../aion/{ => mcf}/trie/JournalPruneDataSourceTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename modMcf/test/org/aion/{ => mcf}/trie/JournalPruneDataSourceTest.java (99%) diff --git a/modMcf/test/org/aion/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java similarity index 99% rename from modMcf/test/org/aion/trie/JournalPruneDataSourceTest.java rename to modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java index 83106efb95..d90271035f 100644 --- a/modMcf/test/org/aion/trie/JournalPruneDataSourceTest.java +++ b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java @@ -26,7 +26,7 @@ * Contributors to the aion source files in decreasing order of code volume: * Aion foundation. ******************************************************************************/ -package org.aion.trie; +package org.aion.mcf.trie; import static com.google.common.truth.Truth.assertThat; @@ -36,7 +36,6 @@ import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.db.impl.DatabaseFactory; import org.aion.log.AionLoggerFactory; -import org.aion.mcf.trie.JournalPruneDataSource; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -441,7 +440,7 @@ public void testDelete_wPrune() { } @Test - public void testDeleteBatchWithPrune() { + public void testDeleteBatch_wPrune() { // ensure existence Map map = new HashMap<>(); map.put(k1, v1); @@ -467,7 +466,7 @@ public void testDeleteBatchWithPrune() { } @Test - public void testKeys() { + public void testKeys_wPrune() { db.setPruneEnabled(true); // keys shouldn't be null even when empty From ca0c44bc8fc518fddade75feb046352144bd28e9 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 14 May 2018 13:55:39 -0400 Subject: [PATCH 017/129] unit tests for conformance to interface --- .../aion/mcf/trie/JournalPruneDataSource.java | 50 ++++++ .../mcf/trie/JournalPruneDataSourceTest.java | 155 +++++++++++++++++- 2 files changed, 202 insertions(+), 3 deletions(-) diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index a2257a3d5c..a152be5908 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -98,6 +98,8 @@ public void setPruneEnabled(boolean e) { } public void put(byte[] key, byte[] value) { + checkNotNull(key); + lock.writeLock().lock(); try { @@ -116,6 +118,8 @@ public void put(byte[] key, byte[] value) { src.put(key, value); } else { + checkOpen(); + // Value does not exist, so we delete from current updates if (enabled) { currentUpdates.deletedKeys.add(keyW); @@ -134,9 +138,13 @@ public void put(byte[] key, byte[] value) { } public void delete(byte[] key) { + checkNotNull(key); + lock.writeLock().lock(); try { + checkOpen(); + if (!enabled) { return; } @@ -155,6 +163,8 @@ public void delete(byte[] key) { @Override public void putBatch(Map inputMap) { + checkNotNull(inputMap.keySet()); + lock.writeLock().lock(); try { @@ -343,8 +353,13 @@ public void commitBatch() { @Override public void deleteBatch(Collection keys) { + checkNotNull(keys); + lock.writeLock().lock(); + try { + checkOpen(); + if (!enabled) { return; } @@ -364,9 +379,11 @@ public void deleteBatch(Collection keys) { @Override public boolean isEmpty() { lock.readLock().lock(); + try { // the delayed deletes are not considered by this check until applied to the db if (!currentUpdates.insertedKeys.isEmpty()) { + checkOpen(); return false; } else { return src.isEmpty(); @@ -381,4 +398,37 @@ public boolean isEmpty() { public IByteArrayKeyValueDatabase getSrc() { return src; } + + /** + * Checks that the data store connection is open. Throws a {@link RuntimeException} if the data + * store connection is closed. + * + * @implNote Always do this check after acquiring a lock on the class/data. Otherwise it might + * produce inconsistent results due to lack of synchronization. + */ + protected void checkOpen() { + if (!src.isOpen()) { + throw new RuntimeException("Data store is not opened: " + src); + } + } + + /** + * Checks that the given key is not null. Throws a {@link IllegalArgumentException} if the key + * is null. + */ + public static void checkNotNull(byte[] k) { + if (k == null) { + throw new IllegalArgumentException("The data store does not accept null keys."); + } + } + + /** + * Checks that the given collection of keys does not contain null values. Throws a {@link + * IllegalArgumentException} if a null key is present. + */ + public static void checkNotNull(Collection keys) { + if (keys.contains(null)) { + throw new IllegalArgumentException("The data store does not accept null keys."); + } + } } diff --git a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java index d90271035f..f92a3b7517 100644 --- a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java +++ b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java @@ -30,11 +30,10 @@ import static com.google.common.truth.Truth.assertThat; -import java.util.HashMap; -import java.util.Map; -import java.util.Set; +import java.util.*; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.db.impl.DatabaseFactory; +import org.aion.db.impl.DatabaseTestUtils; import org.aion.log.AionLoggerFactory; import org.junit.After; import org.junit.Before; @@ -78,6 +77,8 @@ public void close() { assertThat(source_db.isClosed()).isTrue(); } + // Pruning disabled tests ---------------------------------------------------- + @Test public void testPut_woPrune() { db.setPruneEnabled(false); @@ -314,6 +315,8 @@ public void testIsEmpty_woPrune() { assertThat(db.getDeletedKeysCount()).isEqualTo(0); } + // Pruning enabled tests ---------------------------------------------------- + @Test public void testPut_wPrune() { db.setPruneEnabled(true); @@ -549,4 +552,150 @@ public void testIsEmpty_wPrune() { assertThat(db.getInsertedKeysCount()).isEqualTo(3); assertThat(db.getDeletedKeysCount()).isEqualTo(3); } + + // Access with exception tests ---------------------------------------------------- + + @Test(expected = RuntimeException.class) + public void testIsEmpty_wClosedDatabase() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + // attempt isEmpty on closed db + db.isEmpty(); + } + + @Test(expected = RuntimeException.class) + public void testIsEmpty_wClosedDatabase_wInsertedKeys() { + db.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + + // attempt isEmpty on closed db + db.isEmpty(); + } + + @Test(expected = RuntimeException.class) + public void testKeys_wClosedDatabase() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + // attempt keys on closed db + db.keys(); + } + + @Test(expected = RuntimeException.class) + public void testGet_wClosedDatabase() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + // attempt get on closed db + db.get(DatabaseTestUtils.randomBytes(32)); + } + + @Test(expected = RuntimeException.class) + public void testPut_wClosedDatabase() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + // attempt put on closed db + db.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + } + + @Test(expected = RuntimeException.class) + public void testPut_wClosedDatabase_wNullValue() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + // attempt put on closed db + db.put(DatabaseTestUtils.randomBytes(32), null); + } + + @Test(expected = RuntimeException.class) + public void testDelete_wClosedDatabase() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + // attempt delete on closed db + db.delete(DatabaseTestUtils.randomBytes(32)); + } + + @Test(expected = RuntimeException.class) + public void testPutBatch_wClosedDatabase() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + Map map = new HashMap<>(); + map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + + // attempt putBatch on closed db + db.putBatch(map); + } + + @Test(expected = RuntimeException.class) + public void testDeleteBatch_wClosedDatabase() { + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + List list = new ArrayList<>(); + list.add(DatabaseTestUtils.randomBytes(32)); + list.add(DatabaseTestUtils.randomBytes(32)); + list.add(DatabaseTestUtils.randomBytes(32)); + + // attempt deleteBatch on closed db + db.deleteBatch(list); + } + + @Test(expected = IllegalArgumentException.class) + public void testGet_wNullKey() { + assertThat(source_db.open()).isTrue(); + + // attempt get with null key + db.get(null); + } + + @Test(expected = IllegalArgumentException.class) + public void testPut_wNullKey() { + assertThat(source_db.open()).isTrue(); + + // attempt put with null key + db.put(null, DatabaseTestUtils.randomBytes(32)); + } + + @Test(expected = IllegalArgumentException.class) + public void testDelete_wNullKey() { + assertThat(source_db.open()).isTrue(); + + // attempt delete with null key + db.delete(null); + } + + @Test(expected = IllegalArgumentException.class) + public void testPutBatch_wNullKey() { + assertThat(source_db.open()).isTrue(); + + Map map = new HashMap<>(); + map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + map.put(null, DatabaseTestUtils.randomBytes(32)); + + // attempt putBatch on closed db + db.putBatch(map); + } + + @Test(expected = IllegalArgumentException.class) + public void testDeleteBatch_wNullKey() { + assertThat(source_db.open()).isTrue(); + + List list = new ArrayList<>(); + list.add(DatabaseTestUtils.randomBytes(32)); + list.add(DatabaseTestUtils.randomBytes(32)); + list.add(null); + + // attempt deleteBatch on closed db + db.deleteBatch(list); + } } From d10df6345a00e4f17232bdced842f9f497d4e3db Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 14 May 2018 14:04:36 -0400 Subject: [PATCH 018/129] concurrency tests for JournalPruneDS --- .../mcf/trie/JournalPruneDataSourceTest.java | 245 ++++++++++++++++++ 1 file changed, 245 insertions(+) diff --git a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java index f92a3b7517..c318870db1 100644 --- a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java +++ b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java @@ -29,6 +29,7 @@ package org.aion.mcf.trie; import static com.google.common.truth.Truth.assertThat; +import static org.aion.db.impl.DatabaseTestUtils.assertConcurrent; import java.util.*; import org.aion.base.db.IByteArrayKeyValueDatabase; @@ -698,4 +699,248 @@ public void testDeleteBatch_wNullKey() { // attempt deleteBatch on closed db db.deleteBatch(list); } + + // Concurrent access tests ---------------------------------------------------- + + private static final int CONCURRENT_THREADS = 200; + private static final int TIME_OUT = 100; // in seconds + private static final boolean DISPLAY_MESSAGES = false; + + private static int count = 0; + + private static synchronized int getNext() { + count++; + return count; + } + + private void addThread_IsEmpty(List threads, JournalPruneDataSource db) { + threads.add( + () -> { + boolean check = db.isEmpty(); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + + ": " + + (check ? "EMPTY" : "NOT EMPTY")); + } + }); + } + + private void addThread_Keys(List threads, JournalPruneDataSource db) { + threads.add( + () -> { + Set keys = db.keys(); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + ": #keys = " + keys.size()); + } + }); + } + + private void addThread_Get(List threads, JournalPruneDataSource db, String key) { + threads.add( + () -> { + boolean hasValue = db.get(key.getBytes()).isPresent(); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + + ": " + + key + + " " + + (hasValue ? "PRESENT" : "NOT PRESENT")); + } + }); + } + + private void addThread_Put(List threads, JournalPruneDataSource db, String key) { + threads.add( + () -> { + db.put(key.getBytes(), DatabaseTestUtils.randomBytes(32)); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + ": " + key + " ADDED"); + } + }); + } + + private void addThread_Delete(List threads, JournalPruneDataSource db, String key) { + threads.add( + () -> { + db.delete(key.getBytes()); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + ": " + key + " DELETED"); + } + }); + } + + private void addThread_PutBatch(List threads, JournalPruneDataSource db, String key) { + threads.add( + () -> { + Map map = new HashMap<>(); + map.put((key + 1).getBytes(), DatabaseTestUtils.randomBytes(32)); + map.put((key + 2).getBytes(), DatabaseTestUtils.randomBytes(32)); + map.put((key + 3).getBytes(), DatabaseTestUtils.randomBytes(32)); + db.putBatch(map); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + + ": " + + (key + 1) + + ", " + + (key + 2) + + ", " + + (key + 3) + + " ADDED"); + } + }); + } + + private void addThread_DeleteBatch( + List threads, JournalPruneDataSource db, String key) { + threads.add( + () -> { + List list = new ArrayList<>(); + list.add((key + 1).getBytes()); + list.add((key + 2).getBytes()); + list.add((key + 3).getBytes()); + db.deleteBatch(list); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + + ": " + + (key + 1) + + ", " + + (key + 2) + + ", " + + (key + 3) + + " DELETED"); + } + }); + } + + @Test + public void testConcurrentAccessOnOpenDatabase() throws InterruptedException { + assertThat(source_db.isOpen()).isTrue(); + + // create distinct threads with + List threads = new ArrayList<>(); + + int threadSetCount = CONCURRENT_THREADS / 8; + if (threadSetCount < 3) { + threadSetCount = 3; + } + + for (int i = 0; i < threadSetCount; i++) { + // 1. thread that checks empty + addThread_IsEmpty(threads, db); + + // 2. thread that gets keys + addThread_Keys(threads, db); + + String keyStr = "key-" + i + "."; + + // 3. thread that gets entry + addThread_Get(threads, db, keyStr); + + // 4. thread that puts entry + addThread_Put(threads, db, keyStr); + + // 5. thread that deletes entry + addThread_Delete(threads, db, keyStr); + + // 6. thread that puts entries + addThread_PutBatch(threads, db, keyStr); + + // 7. thread that deletes entry + addThread_DeleteBatch(threads, db, keyStr); + } + + // run threads and check for exceptions + assertConcurrent("Testing concurrent access. ", threads, TIME_OUT); + + // ensuring close + db.close(); + assertThat(source_db.isClosed()).isTrue(); + } + + @Test + public void testConcurrentPut() throws InterruptedException { + assertThat(source_db.isOpen()).isTrue(); + + // create distinct threads with + List threads = new ArrayList<>(); + + for (int i = 0; i < CONCURRENT_THREADS; i++) { + addThread_Put(threads, db, "key-" + i); + } + + // run threads + assertConcurrent("Testing put(...) ", threads, TIME_OUT); + + // check that all values were added + assertThat(db.keys().size()).isEqualTo(CONCURRENT_THREADS); + + // ensuring close + db.close(); + assertThat(source_db.isClosed()).isTrue(); + } + + @Test + public void testConcurrentPutBatch() throws InterruptedException { + assertThat(source_db.isOpen()).isTrue(); + + // create distinct threads with + List threads = new ArrayList<>(); + + for (int i = 0; i < CONCURRENT_THREADS; i++) { + addThread_PutBatch(threads, db, "key-" + i); + } + + // run threads + assertConcurrent("Testing putBatch(...) ", threads, TIME_OUT); + + // check that all values were added + assertThat(db.keys().size()).isEqualTo(3 * CONCURRENT_THREADS); + + // ensuring close + db.close(); + assertThat(source_db.isClosed()).isTrue(); + } + + @Test + public void testConcurrentUpdate() throws InterruptedException { + assertThat(source_db.isOpen()).isTrue(); + + // create distinct threads with + List threads = new ArrayList<>(); + + int threadSetCount = CONCURRENT_THREADS / 4; + if (threadSetCount < 3) { + threadSetCount = 3; + } + + for (int i = 0; i < threadSetCount; i++) { + String keyStr = "key-" + i + "."; + + // 1. thread that puts entry + addThread_Put(threads, db, keyStr); + + // 2. thread that deletes entry + addThread_Delete(threads, db, keyStr); + + // 3. thread that puts entries + addThread_PutBatch(threads, db, keyStr); + + // 4. thread that deletes entry + addThread_DeleteBatch(threads, db, keyStr); + } + + // run threads and check for exceptions + assertConcurrent("Testing concurrent updates. ", threads, TIME_OUT); + + // ensuring close + db.close(); + assertThat(source_db.isClosed()).isTrue(); + } } From 3205e07e43e2f82c313d48ace2659436d9c2ca50 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 14 May 2018 16:25:32 -0400 Subject: [PATCH 019/129] unit tests for pruning functionality --- .../mcf/trie/JournalPruneDataSourceTest.java | 535 +++++++++++++++++- 1 file changed, 533 insertions(+), 2 deletions(-) diff --git a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java index c318870db1..2d34a66ed8 100644 --- a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java +++ b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java @@ -318,6 +318,8 @@ public void testIsEmpty_woPrune() { // Pruning enabled tests ---------------------------------------------------- + private static final byte[] b0 = "block0".getBytes(); + @Test public void testPut_wPrune() { db.setPruneEnabled(true); @@ -332,6 +334,11 @@ public void testPut_wPrune() { // ensure the insert was propagated assertThat(source_db.get(k1).get()).isEqualTo(v1); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } @Test @@ -356,6 +363,11 @@ public void testPutBatch_wPrune() { // ensure the inserts were propagated assertThat(source_db.get(k1).get()).isEqualTo(v1); assertThat(source_db.get(k2).get()).isEqualTo(v2); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } @Test @@ -389,6 +401,11 @@ public void testUpdate_wPrune() { // ensure cached values assertThat(db.getDeletedKeysCount()).isEqualTo(2); assertThat(db.getInsertedKeysCount()).isEqualTo(2); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } @Test @@ -423,6 +440,11 @@ public void testUpdateBatch_wPrune() { // ensure cached values assertThat(db.getDeletedKeysCount()).isEqualTo(1); assertThat(db.getInsertedKeysCount()).isEqualTo(3); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } @Test @@ -441,6 +463,11 @@ public void testDelete_wPrune() { // ensure cached values assertThat(db.getDeletedKeysCount()).isEqualTo(1); assertThat(db.getInsertedKeysCount()).isEqualTo(1); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } @Test @@ -467,6 +494,11 @@ public void testDeleteBatch_wPrune() { // ensure cached values assertThat(db.getDeletedKeysCount()).isEqualTo(3); assertThat(db.getInsertedKeysCount()).isEqualTo(2); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } @Test @@ -514,6 +546,11 @@ public void testKeys_wPrune() { // ensure no cached values assertThat(db.getInsertedKeysCount()).isEqualTo(3); assertThat(db.getDeletedKeysCount()).isEqualTo(3); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } @Test @@ -552,6 +589,11 @@ public void testIsEmpty_wPrune() { // ensure no cached values assertThat(db.getInsertedKeysCount()).isEqualTo(3); assertThat(db.getDeletedKeysCount()).isEqualTo(3); + + // check store block + db.storeBlockChanges(b0, 0); + assertThat(db.getInsertedKeysCount()).isEqualTo(0); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); } // Access with exception tests ---------------------------------------------------- @@ -819,9 +861,44 @@ private void addThread_DeleteBatch( }); } + private void addThread_StoreBlockChanges( + List threads, JournalPruneDataSource db, String hash, long number) { + threads.add( + () -> { + db.storeBlockChanges(hash.getBytes(), number); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + + ": block (" + + hash + + ", " + + number + + ") STORED"); + } + }); + } + + private void addThread_Prune( + List threads, JournalPruneDataSource db, String hash, long number) { + threads.add( + () -> { + db.prune(hash.getBytes(), number); + if (DISPLAY_MESSAGES) { + System.out.println( + Thread.currentThread().getName() + + ": block (" + + hash + + ", " + + number + + ") PRUNED"); + } + }); + } + @Test public void testConcurrentAccessOnOpenDatabase() throws InterruptedException { assertThat(source_db.isOpen()).isTrue(); + db.setPruneEnabled(true); // create distinct threads with List threads = new ArrayList<>(); @@ -831,6 +908,8 @@ public void testConcurrentAccessOnOpenDatabase() throws InterruptedException { threadSetCount = 3; } + String keyStr, blockStr; + for (int i = 0; i < threadSetCount; i++) { // 1. thread that checks empty addThread_IsEmpty(threads, db); @@ -838,7 +917,7 @@ public void testConcurrentAccessOnOpenDatabase() throws InterruptedException { // 2. thread that gets keys addThread_Keys(threads, db); - String keyStr = "key-" + i + "."; + keyStr = "key-" + i + "."; // 3. thread that gets entry addThread_Get(threads, db, keyStr); @@ -854,6 +933,14 @@ public void testConcurrentAccessOnOpenDatabase() throws InterruptedException { // 7. thread that deletes entry addThread_DeleteBatch(threads, db, keyStr); + + blockStr = "block-" + i + "."; + + // 8. thread that stores block changes + addThread_StoreBlockChanges(threads, db, blockStr, i); + + // 9. thread that prunes + addThread_Prune(threads, db, blockStr, i); } // run threads and check for exceptions @@ -867,6 +954,7 @@ public void testConcurrentAccessOnOpenDatabase() throws InterruptedException { @Test public void testConcurrentPut() throws InterruptedException { assertThat(source_db.isOpen()).isTrue(); + db.setPruneEnabled(true); // create distinct threads with List threads = new ArrayList<>(); @@ -889,6 +977,7 @@ public void testConcurrentPut() throws InterruptedException { @Test public void testConcurrentPutBatch() throws InterruptedException { assertThat(source_db.isOpen()).isTrue(); + db.setPruneEnabled(true); // create distinct threads with List threads = new ArrayList<>(); @@ -911,6 +1000,7 @@ public void testConcurrentPutBatch() throws InterruptedException { @Test public void testConcurrentUpdate() throws InterruptedException { assertThat(source_db.isOpen()).isTrue(); + db.setPruneEnabled(true); // create distinct threads with List threads = new ArrayList<>(); @@ -920,8 +1010,10 @@ public void testConcurrentUpdate() throws InterruptedException { threadSetCount = 3; } + String keyStr, blockStr; + for (int i = 0; i < threadSetCount; i++) { - String keyStr = "key-" + i + "."; + keyStr = "key-" + i + "."; // 1. thread that puts entry addThread_Put(threads, db, keyStr); @@ -934,6 +1026,14 @@ public void testConcurrentUpdate() throws InterruptedException { // 4. thread that deletes entry addThread_DeleteBatch(threads, db, keyStr); + + blockStr = "block-" + i + "."; + + // 5. thread that stores block changes + addThread_StoreBlockChanges(threads, db, blockStr, i); + + // 6. thread that prunes + addThread_Prune(threads, db, blockStr, i); } // run threads and check for exceptions @@ -943,4 +1043,435 @@ public void testConcurrentUpdate() throws InterruptedException { db.close(); assertThat(source_db.isClosed()).isTrue(); } + + // Pruning tests ---------------------------------------------------- + + private static final byte[] b1 = "block1".getBytes(); + private static final byte[] b2 = "block2".getBytes(); + private static final byte[] b3 = "block3".getBytes(); + + private static final byte[] k4 = "key4".getBytes(); + private static final byte[] v4 = "value4".getBytes(); + + private static final byte[] k5 = "key5".getBytes(); + private static final byte[] v5 = "value5".getBytes(); + + private static final byte[] k6 = "key6".getBytes(); + private static final byte[] v6 = "value6".getBytes(); + + @Test + public void pruningTest() { + db.setPruneEnabled(true); + + // block 0 + db.put(k1, v1); + db.put(k2, v2); + db.put(k3, v3); + assertThat(db.getInsertedKeysCount()).isEqualTo(3); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + db.storeBlockChanges(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // block 1 + db.put(k4, v4); + db.delete(k2); + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.get(k2).isPresent()).isTrue(); + assertThat(source_db.get(k4).get()).isEqualTo(v4); + + // block 2 + db.put(k2, v3); + db.delete(k3); + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b2, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).isPresent()).isTrue(); + + // block 3 + db.put(k5, v5); + db.put(k6, v6); + db.delete(k2); + assertThat(db.getInsertedKeysCount()).isEqualTo(2); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b3, 3); + assertThat(db.getBlockUpdates().size()).isEqualTo(4); + + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + assertThat(source_db.get(k2).isPresent()).isTrue(); + + // prune block 0 + db.prune(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // prune block 1 + db.prune(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.get(k4).get()).isEqualTo(v4); + // not deleted due to block 2 insert + assertThat(source_db.get(k2).get()).isEqualTo(v3); + + // prune block 2 + db.prune(b2, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).isPresent()).isFalse(); + + // prune block 3 + db.prune(b3, 3); + assertThat(db.getBlockUpdates().size()).isEqualTo(0); + + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + assertThat(source_db.get(k2).isPresent()).isFalse(); + } + + @Test + public void pruningTest_wBatch() { + db.setPruneEnabled(true); + + Map map = new HashMap<>(); + + // block 0 + map.put(k1, v1); + map.put(k2, v2); + map.put(k3, v3); + db.putBatch(map); + + assertThat(db.getInsertedKeysCount()).isEqualTo(3); + assertThat(db.getDeletedKeysCount()).isEqualTo(0); + db.storeBlockChanges(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // block 1 + map.clear(); + map.put(k4, v4); + map.put(k2, null); + db.putBatch(map); + + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.get(k2).isPresent()).isTrue(); + assertThat(source_db.get(k4).get()).isEqualTo(v4); + + // block 2 + map.clear(); + map.put(k2, v3); + map.put(k3, null); + db.putBatch(map); + + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b2, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).isPresent()).isTrue(); + + // block 3 + map.clear(); + map.put(k5, v5); + map.put(k6, v6); + map.put(k2, null); + db.putBatch(map); + + assertThat(db.getInsertedKeysCount()).isEqualTo(2); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b3, 3); + assertThat(db.getBlockUpdates().size()).isEqualTo(4); + + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + assertThat(source_db.get(k2).isPresent()).isTrue(); + + // prune block 0 + db.prune(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // prune block 1 + db.prune(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.get(k4).get()).isEqualTo(v4); + // not deleted due to block 2 insert + assertThat(source_db.get(k2).get()).isEqualTo(v3); + + // prune block 2 + db.prune(b2, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).isPresent()).isFalse(); + + // prune block 3 + db.prune(b3, 3); + assertThat(db.getBlockUpdates().size()).isEqualTo(0); + + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + assertThat(source_db.get(k2).isPresent()).isFalse(); + } + + @Test + public void pruningTest_woStoredLevel() { + + source_db.put(k2, v2); + source_db.put(k3, v3); + + // block 2 + db.put(k2, v3); + db.delete(k3); + assertThat(db.getInsertedKeysCount()).isEqualTo(1); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b2, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).isPresent()).isTrue(); + + // block 3 + db.put(k5, v5); + db.put(k6, v6); + db.delete(k2); + assertThat(db.getInsertedKeysCount()).isEqualTo(2); + assertThat(db.getDeletedKeysCount()).isEqualTo(1); + db.storeBlockChanges(b3, 3); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + assertThat(source_db.get(k2).isPresent()).isTrue(); + + // prune block 0 (not stored) + db.prune(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + // prune block 1 (not stored) + db.prune(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + + // prune block 2 + db.prune(b2, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).isPresent()).isFalse(); + + // prune block 3 + db.prune(b3, 3); + assertThat(db.getBlockUpdates().size()).isEqualTo(0); + + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + assertThat(source_db.get(k2).isPresent()).isFalse(); + } + + @Test + public void pruningTest_wFork_onCurrentLevel() { + db.setPruneEnabled(true); + + // block b0 + db.put(k1, v1); + db.put(k2, v2); + db.put(k3, v3); + db.storeBlockChanges(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.keys().size()).isEqualTo(3); + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // block b1 + db.put(k4, v4); + db.put(k1, v2); + db.delete(k2); + db.storeBlockChanges(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.keys().size()).isEqualTo(4); + assertThat(source_db.get(k1).get()).isEqualTo(v2); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k4).get()).isEqualTo(v4); + + // block b2 + db.put(k5, v5); + db.delete(k3); + db.put(k2, v3); + db.put(k1, v4); + db.put(k4, v6); + db.storeBlockChanges(b2, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + + assertThat(source_db.keys().size()).isEqualTo(5); + assertThat(source_db.get(k1).get()).isEqualTo(v4); + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k4).get()).isEqualTo(v6); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + + // block b3 : note same level as block b2 + db.put(k6, v6); + db.delete(k4); + db.put(k2, v4); + db.put(k1, v3); + db.storeBlockChanges(b3, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(4); + + assertThat(source_db.keys().size()).isEqualTo(6); + assertThat(source_db.get(k1).get()).isEqualTo(v3); + assertThat(source_db.get(k2).get()).isEqualTo(v4); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k4).get()).isEqualTo(v6); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + + // prune block b0 + db.prune(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + assertThat(source_db.keys().size()).isEqualTo(6); + + // prune block b1 + db.prune(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + assertThat(source_db.keys().size()).isEqualTo(6); + + // prune block b3 at level 2 (should be called for main chain block) + db.prune(b3, 2); + // also removed the updates for block b2 + assertThat(db.getBlockUpdates().size()).isEqualTo(0); + + assertThat(source_db.keys().size()).isEqualTo(5); + assertThat(source_db.get(k1).get()).isEqualTo(v3); + assertThat(source_db.get(k2).get()).isEqualTo(v4); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k4).isPresent()).isFalse(); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + } + + @Test + public void pruningTest_wFork_onPastLevel() { + db.setPruneEnabled(true); + + // block b0 + db.put(k1, v1); + db.put(k2, v2); + db.put(k3, v3); + db.storeBlockChanges(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + + assertThat(source_db.keys().size()).isEqualTo(3); + assertThat(source_db.get(k1).get()).isEqualTo(v1); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + + // block b1 + db.put(k4, v4); + db.put(k1, v2); + db.delete(k2); + db.storeBlockChanges(b1, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(2); + + assertThat(source_db.keys().size()).isEqualTo(4); + assertThat(source_db.get(k1).get()).isEqualTo(v2); + assertThat(source_db.get(k2).get()).isEqualTo(v2); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k4).get()).isEqualTo(v4); + + // block b2 : note same level as block b1 + db.put(k5, v5); + db.delete(k3); + db.put(k2, v3); + db.put(k1, v4); + db.storeBlockChanges(b2, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + + assertThat(source_db.keys().size()).isEqualTo(5); + assertThat(source_db.get(k1).get()).isEqualTo(v4); + assertThat(source_db.get(k2).get()).isEqualTo(v3); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k4).get()).isEqualTo(v4); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + + // block b3 + db.put(k6, v6); + db.delete(k4); + db.put(k2, v4); + db.put(k1, v3); + db.storeBlockChanges(b3, 2); + assertThat(db.getBlockUpdates().size()).isEqualTo(4); + + assertThat(source_db.keys().size()).isEqualTo(6); + assertThat(source_db.get(k1).get()).isEqualTo(v3); + assertThat(source_db.get(k2).get()).isEqualTo(v4); + assertThat(source_db.get(k3).get()).isEqualTo(v3); + assertThat(source_db.get(k4).get()).isEqualTo(v4); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + + // prune block b0 + db.prune(b0, 0); + assertThat(db.getBlockUpdates().size()).isEqualTo(3); + assertThat(source_db.keys().size()).isEqualTo(6); + + // prune block b2 at level 1 : (should be called for main chain block) + db.prune(b2, 1); + assertThat(db.getBlockUpdates().size()).isEqualTo(1); + assertThat(source_db.keys().size()).isEqualTo(5); + assertThat(source_db.get(k1).get()).isEqualTo(v3); + assertThat(source_db.get(k2).get()).isEqualTo(v4); + assertThat(source_db.get(k3).isPresent()).isFalse(); + // note: k4 must be explicitly deleted even if it was introduced in the discarded b1 block + assertThat(source_db.get(k4).get()).isEqualTo(v4); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + + // prune block b3 + db.prune(b3, 2); + // also removed the updates for block b2 + assertThat(db.getBlockUpdates().size()).isEqualTo(0); + + assertThat(source_db.keys().size()).isEqualTo(4); + assertThat(source_db.get(k1).get()).isEqualTo(v3); + assertThat(source_db.get(k2).get()).isEqualTo(v4); + assertThat(source_db.get(k3).isPresent()).isFalse(); + assertThat(source_db.get(k4).isPresent()).isFalse(); + assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k6).get()).isEqualTo(v6); + } } From 0f78cc808652529e3580569d9ba04503fb8aa28f Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 14 May 2018 16:42:29 -0400 Subject: [PATCH 020/129] removed dependency on modDbImpl --- .../mcf/trie/JournalPruneDataSourceTest.java | 115 +++++++++++++----- 1 file changed, 85 insertions(+), 30 deletions(-) diff --git a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java index 2d34a66ed8..bd7c41153c 100644 --- a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java +++ b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java @@ -29,12 +29,15 @@ package org.aion.mcf.trie; import static com.google.common.truth.Truth.assertThat; -import static org.aion.db.impl.DatabaseTestUtils.assertConcurrent; +import static org.junit.Assert.assertTrue; import java.util.*; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.db.impl.DatabaseFactory; -import org.aion.db.impl.DatabaseTestUtils; import org.aion.log.AionLoggerFactory; import org.junit.After; import org.junit.Before; @@ -609,7 +612,7 @@ public void testIsEmpty_wClosedDatabase() { @Test(expected = RuntimeException.class) public void testIsEmpty_wClosedDatabase_wInsertedKeys() { - db.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + db.put(randomBytes(32), randomBytes(32)); source_db.close(); assertThat(source_db.isOpen()).isFalse(); @@ -634,7 +637,7 @@ public void testGet_wClosedDatabase() { assertThat(source_db.isOpen()).isFalse(); // attempt get on closed db - db.get(DatabaseTestUtils.randomBytes(32)); + db.get(randomBytes(32)); } @Test(expected = RuntimeException.class) @@ -643,7 +646,7 @@ public void testPut_wClosedDatabase() { assertThat(source_db.isOpen()).isFalse(); // attempt put on closed db - db.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + db.put(randomBytes(32), randomBytes(32)); } @Test(expected = RuntimeException.class) @@ -652,7 +655,7 @@ public void testPut_wClosedDatabase_wNullValue() { assertThat(source_db.isOpen()).isFalse(); // attempt put on closed db - db.put(DatabaseTestUtils.randomBytes(32), null); + db.put(randomBytes(32), null); } @Test(expected = RuntimeException.class) @@ -661,7 +664,7 @@ public void testDelete_wClosedDatabase() { assertThat(source_db.isOpen()).isFalse(); // attempt delete on closed db - db.delete(DatabaseTestUtils.randomBytes(32)); + db.delete(randomBytes(32)); } @Test(expected = RuntimeException.class) @@ -670,9 +673,9 @@ public void testPutBatch_wClosedDatabase() { assertThat(source_db.isOpen()).isFalse(); Map map = new HashMap<>(); - map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); - map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); - map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); + map.put(randomBytes(32), randomBytes(32)); + map.put(randomBytes(32), randomBytes(32)); + map.put(randomBytes(32), randomBytes(32)); // attempt putBatch on closed db db.putBatch(map); @@ -684,9 +687,9 @@ public void testDeleteBatch_wClosedDatabase() { assertThat(source_db.isOpen()).isFalse(); List list = new ArrayList<>(); - list.add(DatabaseTestUtils.randomBytes(32)); - list.add(DatabaseTestUtils.randomBytes(32)); - list.add(DatabaseTestUtils.randomBytes(32)); + list.add(randomBytes(32)); + list.add(randomBytes(32)); + list.add(randomBytes(32)); // attempt deleteBatch on closed db db.deleteBatch(list); @@ -705,7 +708,7 @@ public void testPut_wNullKey() { assertThat(source_db.open()).isTrue(); // attempt put with null key - db.put(null, DatabaseTestUtils.randomBytes(32)); + db.put(null, randomBytes(32)); } @Test(expected = IllegalArgumentException.class) @@ -721,9 +724,9 @@ public void testPutBatch_wNullKey() { assertThat(source_db.open()).isTrue(); Map map = new HashMap<>(); - map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); - map.put(DatabaseTestUtils.randomBytes(32), DatabaseTestUtils.randomBytes(32)); - map.put(null, DatabaseTestUtils.randomBytes(32)); + map.put(randomBytes(32), randomBytes(32)); + map.put(randomBytes(32), randomBytes(32)); + map.put(null, randomBytes(32)); // attempt putBatch on closed db db.putBatch(map); @@ -734,27 +737,26 @@ public void testDeleteBatch_wNullKey() { assertThat(source_db.open()).isTrue(); List list = new ArrayList<>(); - list.add(DatabaseTestUtils.randomBytes(32)); - list.add(DatabaseTestUtils.randomBytes(32)); + list.add(randomBytes(32)); + list.add(randomBytes(32)); list.add(null); // attempt deleteBatch on closed db db.deleteBatch(list); } + public static byte[] randomBytes(int length) { + byte[] result = new byte[length]; + new Random().nextBytes(result); + return result; + } + // Concurrent access tests ---------------------------------------------------- private static final int CONCURRENT_THREADS = 200; private static final int TIME_OUT = 100; // in seconds private static final boolean DISPLAY_MESSAGES = false; - private static int count = 0; - - private static synchronized int getNext() { - count++; - return count; - } - private void addThread_IsEmpty(List threads, JournalPruneDataSource db) { threads.add( () -> { @@ -797,7 +799,7 @@ private void addThread_Get(List threads, JournalPruneDataSource db, St private void addThread_Put(List threads, JournalPruneDataSource db, String key) { threads.add( () -> { - db.put(key.getBytes(), DatabaseTestUtils.randomBytes(32)); + db.put(key.getBytes(), randomBytes(32)); if (DISPLAY_MESSAGES) { System.out.println( Thread.currentThread().getName() + ": " + key + " ADDED"); @@ -820,9 +822,9 @@ private void addThread_PutBatch(List threads, JournalPruneDataSource d threads.add( () -> { Map map = new HashMap<>(); - map.put((key + 1).getBytes(), DatabaseTestUtils.randomBytes(32)); - map.put((key + 2).getBytes(), DatabaseTestUtils.randomBytes(32)); - map.put((key + 3).getBytes(), DatabaseTestUtils.randomBytes(32)); + map.put((key + 1).getBytes(), randomBytes(32)); + map.put((key + 2).getBytes(), randomBytes(32)); + map.put((key + 3).getBytes(), randomBytes(32)); db.putBatch(map); if (DISPLAY_MESSAGES) { System.out.println( @@ -1044,6 +1046,59 @@ public void testConcurrentUpdate() throws InterruptedException { assertThat(source_db.isClosed()).isTrue(); } + /** + * From JUnit + * Wiki on multithreaded code and concurrency + */ + public static void assertConcurrent( + final String message, + final List runnables, + final int maxTimeoutSeconds) + throws InterruptedException { + final int numThreads = runnables.size(); + final List exceptions = Collections.synchronizedList(new ArrayList()); + final ExecutorService threadPool = Executors.newFixedThreadPool(numThreads); + try { + final CountDownLatch allExecutorThreadsReady = new CountDownLatch(numThreads); + final CountDownLatch afterInitBlocker = new CountDownLatch(1); + final CountDownLatch allDone = new CountDownLatch(numThreads); + for (final Runnable submittedTestRunnable : runnables) { + threadPool.submit( + () -> { + allExecutorThreadsReady.countDown(); + try { + afterInitBlocker.await(); + submittedTestRunnable.run(); + } catch (final Throwable e) { + exceptions.add(e); + } finally { + allDone.countDown(); + } + }); + } + // wait until all threads are ready + assertTrue( + "Timeout initializing threads! Perform long lasting initializations before passing runnables to assertConcurrent", + allExecutorThreadsReady.await(runnables.size() * 10, TimeUnit.MILLISECONDS)); + // start all test runners + afterInitBlocker.countDown(); + assertTrue( + message + " timeout! More than" + maxTimeoutSeconds + "seconds", + allDone.await(maxTimeoutSeconds, TimeUnit.SECONDS)); + } finally { + threadPool.shutdownNow(); + } + if (!exceptions.isEmpty()) { + for (Throwable e : exceptions) { + e.printStackTrace(); + } + } + assertTrue( + message + "failed with " + exceptions.size() + " exception(s):" + exceptions, + exceptions.isEmpty()); + } + // Pruning tests ---------------------------------------------------- private static final byte[] b1 = "block1".getBytes(); From 527f3820cf088da5012230bef072e75c86b0c317 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 17 May 2018 11:07:23 -0400 Subject: [PATCH 021/129] applying review comments --- .../aion/mcf/trie/JournalPruneDataSource.java | 100 ++++++++++-------- 1 file changed, 55 insertions(+), 45 deletions(-) diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index a152be5908..135628a801 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -35,6 +35,7 @@ package org.aion.mcf.trie; import java.util.*; +import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import org.aion.base.db.IByteArrayKeyValueDatabase; @@ -83,18 +84,14 @@ public int getTotRefs() { // block hash => updates private LinkedHashMap blockUpdates = new LinkedHashMap<>(); private Updates currentUpdates = new Updates(); - private boolean enabled = true; + private AtomicBoolean enabled = new AtomicBoolean(true); public JournalPruneDataSource(IByteArrayKeyValueDatabase src) { this.src = src; } - public void setPruneEnabled(boolean e) { - lock.writeLock().lock(); - - enabled = e; - - lock.writeLock().unlock(); + public void setPruneEnabled(boolean _enabled) { + enabled.set(_enabled); } public void put(byte[] key, byte[] value) { @@ -103,28 +100,32 @@ public void put(byte[] key, byte[] value) { lock.writeLock().lock(); try { - ByteArrayWrapper keyW = new ByteArrayWrapper(key); - - // Check to see the value exists. - if (value != null) { + if (enabled.get()) { + // pruning enabled + ByteArrayWrapper keyW = ByteArrayWrapper.wrap(key); - // If it exists and pruning is enabled. - if (enabled) { + // Check to see the value exists. + if (value != null) { + // If it exists and pruning is enabled. currentUpdates.insertedKeys.add(keyW); incRef(keyW); - } - // put to source database. - src.put(key, value); + // put to source database. + src.put(key, value); - } else { - checkOpen(); + } else { + checkOpen(); - // Value does not exist, so we delete from current updates - if (enabled) { + // Value does not exist, so we delete from current updates currentUpdates.deletedKeys.add(keyW); } - // delete is not sent to source db + } else { + // pruning disabled + if (value != null) { + src.put(key, value); + } else { + checkOpen(); + } } } catch (Exception e) { if (e instanceof RuntimeException) { @@ -138,6 +139,9 @@ public void put(byte[] key, byte[] value) { } public void delete(byte[] key) { + if (!enabled.get()) { + return; + } checkNotNull(key); lock.writeLock().lock(); @@ -145,10 +149,7 @@ public void delete(byte[] key) { try { checkOpen(); - if (!enabled) { - return; - } - currentUpdates.deletedKeys.add(new ByteArrayWrapper(key)); + currentUpdates.deletedKeys.add(ByteArrayWrapper.wrap(key)); // delete is delayed } catch (Exception e) { if (e instanceof RuntimeException) { @@ -169,19 +170,23 @@ public void putBatch(Map inputMap) { try { Map insertsOnly = new HashMap<>(); - for (Map.Entry entry : inputMap.entrySet()) { - ByteArrayWrapper keyW = new ByteArrayWrapper(entry.getKey()); - if (entry.getValue() != null) { - if (enabled) { + if (enabled.get()) { + for (Map.Entry entry : inputMap.entrySet()) { + ByteArrayWrapper keyW = ByteArrayWrapper.wrap(entry.getKey()); + if (entry.getValue() != null) { currentUpdates.insertedKeys.add(keyW); incRef(keyW); - } - insertsOnly.put(entry.getKey(), entry.getValue()); - } else { - if (enabled) { + insertsOnly.put(entry.getKey(), entry.getValue()); + } else { currentUpdates.deletedKeys.add(keyW); } } + } else { + for (Map.Entry entry : inputMap.entrySet()) { + if (entry.getValue() != null) { + insertsOnly.put(entry.getKey(), entry.getValue()); + } + } } src.putBatch(insertsOnly); } catch (Exception e) { @@ -214,13 +219,14 @@ private Ref decRef(ByteArrayWrapper keyW) { } public void storeBlockChanges(byte[] blockHash, long blockNumber) { + if (!enabled.get()) { + return; + } + lock.writeLock().lock(); try { - if (!enabled) { - return; - } - ByteArrayWrapper hash = new ByteArrayWrapper(blockHash); + ByteArrayWrapper hash = ByteArrayWrapper.wrap(blockHash); currentUpdates.blockHeader = hash; currentUpdates.blockNumber = blockNumber; blockUpdates.put(hash, currentUpdates); @@ -231,13 +237,14 @@ public void storeBlockChanges(byte[] blockHash, long blockNumber) { } public void prune(byte[] blockHash, long blockNumber) { + if (!enabled.get()) { + return; + } + lock.writeLock().lock(); try { - if (!enabled) { - return; - } - ByteArrayWrapper blockHashW = new ByteArrayWrapper(blockHash); + ByteArrayWrapper blockHashW = ByteArrayWrapper.wrap(blockHash); Updates updates = blockUpdates.remove(blockHashW); if (updates != null) { for (ByteArrayWrapper insertedKey : updates.insertedKeys) { @@ -313,6 +320,7 @@ public Optional get(byte[] key) { try { return src.get(key); } catch (Exception e) { + LOG.error("Could not get key due to ", e); throw e; } finally { lock.readLock().unlock(); @@ -324,6 +332,7 @@ public Set keys() { try { return src.keys(); } catch (Exception e) { + LOG.error("Could not get keys due to ", e); throw e; } finally { lock.readLock().unlock(); @@ -353,6 +362,9 @@ public void commitBatch() { @Override public void deleteBatch(Collection keys) { + if (!enabled.get()) { + return; + } checkNotNull(keys); lock.writeLock().lock(); @@ -360,11 +372,8 @@ public void deleteBatch(Collection keys) { try { checkOpen(); - if (!enabled) { - return; - } // deletes are delayed - keys.forEach(key -> currentUpdates.deletedKeys.add(new ByteArrayWrapper(key))); + keys.forEach(key -> currentUpdates.deletedKeys.add(ByteArrayWrapper.wrap(key))); } catch (Exception e) { if (e instanceof RuntimeException) { throw e; @@ -389,6 +398,7 @@ public boolean isEmpty() { return src.isEmpty(); } } catch (Exception e) { + LOG.error("Could not check if empty due to ", e); throw e; } finally { lock.readLock().unlock(); From 2f0ac3126541af6f8ec9204edb6d4093e51dc119 Mon Sep 17 00:00:00 2001 From: aionJoey Date: Thu, 17 May 2018 11:47:31 -0400 Subject: [PATCH 022/129] added logger features --- .../src/org/aion/log/AionLoggerFactory.java | 67 ++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/modLogger/src/org/aion/log/AionLoggerFactory.java b/modLogger/src/org/aion/log/AionLoggerFactory.java index 5600bdbf29..9b9299fe6e 100644 --- a/modLogger/src/org/aion/log/AionLoggerFactory.java +++ b/modLogger/src/org/aion/log/AionLoggerFactory.java @@ -36,6 +36,13 @@ import ch.qos.logback.core.ConsoleAppender; import ch.qos.logback.core.FileAppender; import ch.qos.logback.core.rolling.*; +import ch.qos.logback.core.rolling.RollingFileAppender; +import ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy; +import ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy; +import ch.qos.logback.core.rolling.helper.FileNamePattern; +import ch.qos.logback.core.util.FileSize; + + import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -55,12 +62,13 @@ public class AionLoggerFactory { /** - * Due to Cfg is abstract, use this static atribute to hold muti-chains + * Due to Cfg is abstract, use this static attribute to hold muti-chains * config attribute List, which is chain neural. */ private static Map logModules; private static LoggerContext loggerContext; private static ConsoleAppender appender = new ConsoleAppender<>(); + private static RollingFileAppender fileAppender; // JAY T private final static PatternLayoutEncoder encoder = new PatternLayoutEncoder(); static { logModules = new HashMap<>(); @@ -76,6 +84,54 @@ public static void init(final Map _logModules) { loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); + /** + * Initialize Rolling-File-Appender + */ + String fileName = "./log/aionLog.dat"; + fileAppender = new RollingFileAppender(); + fileAppender.setContext(loggerContext); + fileAppender.setName("aionlogger"); + fileAppender.setFile(fileName); + + /** + * Initialize Triggering-Policy (CONDITION) + */ + SizeBasedTriggeringPolicy tp = new SizeBasedTriggeringPolicy(); + tp.setContext(loggerContext); + tp.start(); + + /** + * Initialize Rolling-Policy (BEHAVIOUR) + */ + SizeAndTimeBasedRollingPolicy rp = new SizeAndTimeBasedRollingPolicy(); + rp.setContext(loggerContext); + + /** + * To modify period of each rollover; + * PER DAY: "aion.%d{yyyy-MM-dd}.%i.log" + * PER HOUR: "aion.%d{yyyy-MM-dd_HH}.%i.log" + * PER MIN: "aion.%d{yyyy-MM-dd_HH-mm}.%i.log" + * Link: https://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy + * Currently set to PER HOUR + */ + FileNamePattern fnp = new FileNamePattern("./log/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd_HH}.%i.log", loggerContext); + rp.setFileNamePattern(fnp.getPattern()); + + /** + * To modify size of each rollover file; + * Link: https://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy + * Currently set to 100MB + */ + rp.setMaxFileSize(new FileSize(100*1000*1000)); + rp.setParent(fileAppender); + rp.start(); + + /** + * Sets TRIGGER & ROLLING policy + */ + fileAppender.setTriggeringPolicy(tp); + fileAppender.setRollingPolicy(rp); + encoder.setContext(loggerContext); encoder.setPattern("%date{yy-MM-dd HH:mm:ss.SSS} %-5level %-4c [%thread]: %message%n"); encoder.start(); @@ -84,6 +140,14 @@ public static void init(final Map _logModules) { appender.setEncoder(encoder); appender.start(); + /** + * Set fileAppender configurations + */ + fileAppender.setContext(loggerContext); + fileAppender.setEncoder(encoder); + fileAppender.setAppend(true); + fileAppender.start(); + ch.qos.logback.classic.Logger rootlogger = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME); rootlogger.detachAndStopAllAppenders(); } @@ -106,6 +170,7 @@ private static Logger newLogger(String label) { ch.qos.logback.classic.Logger newlogger = loggerContext.getLogger(label); newlogger.addAppender(appender); + newlogger.addAppender(fileAppender); boolean flag = false; Iterator> it = logModules.entrySet().iterator(); From 0d89dae088329f90232509e6f9d5714bb06ecde0 Mon Sep 17 00:00:00 2001 From: aionJoey Date: Thu, 17 May 2018 12:16:18 -0400 Subject: [PATCH 023/129] logger feature added --- .../src/org/aion/log/AionLoggerFactory.java | 158 ++++++++---------- 1 file changed, 70 insertions(+), 88 deletions(-) diff --git a/modLogger/src/org/aion/log/AionLoggerFactory.java b/modLogger/src/org/aion/log/AionLoggerFactory.java index 9b9299fe6e..6b2a2c248d 100644 --- a/modLogger/src/org/aion/log/AionLoggerFactory.java +++ b/modLogger/src/org/aion/log/AionLoggerFactory.java @@ -1,75 +1,67 @@ -/******************************************************************************* - * Copyright (c) 2017-2018 Aion foundation. +/** + * ***************************************************************************** Copyright (c) + * 2017-2018 Aion foundation. * - * This file is part of the aion network project. + *

This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + *

The aion network project is free software: you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software Foundation, either + * version 3 of the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + *

The aion network project is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . + *

You should have received a copy of the GNU General Public License along with the aion network + * project source files. If not, see . * - * Contributors: - * Aion foundation. - * - ******************************************************************************/ - + *

Contributors: Aion foundation. + * + *

**************************************************************************** + */ package org.aion.log; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; -import java.util.Map.Entry; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentMap; - +import ch.qos.logback.classic.Level; +import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.encoder.PatternLayoutEncoder; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.ConsoleAppender; -import ch.qos.logback.core.FileAppender; import ch.qos.logback.core.rolling.*; import ch.qos.logback.core.rolling.RollingFileAppender; import ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy; import ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy; import ch.qos.logback.core.rolling.helper.FileNamePattern; import ch.qos.logback.core.util.FileSize; - - +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Map.Entry; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ch.qos.logback.classic.Level; -import ch.qos.logback.classic.LoggerContext; - /** * Used to override SimpleLogger current log level - * - * final public int TRACE_INT = 00; final public int DEBUG_INT = 10; - * finalConcurrentHashMap public int INFO_INT = 20; final public int WARN_INT = - * 30; final public int ERROR_INT = 40; - * - * Default set to 50 which ignore output + * + *

final public int TRACE_INT = 00; final public int DEBUG_INT = 10; finalConcurrentHashMap + * public int INFO_INT = 20; final public int WARN_INT = 30; final public int ERROR_INT = 40; + * + *

Default set to 50 which ignore output */ - public class AionLoggerFactory { /** - * Due to Cfg is abstract, use this static attribute to hold muti-chains - * config attribute List, which is chain neural. + * Due to Cfg is abstract, use this static attribute to hold muti-chains config attribute + * List, which is chain neural. */ private static Map logModules; + private static LoggerContext loggerContext; private static ConsoleAppender appender = new ConsoleAppender<>(); - private static RollingFileAppender fileAppender; // JAY T - private final static PatternLayoutEncoder encoder = new PatternLayoutEncoder(); + private static RollingFileAppender fileAppender; // JAY T + private static final PatternLayoutEncoder encoder = new PatternLayoutEncoder(); + static { logModules = new HashMap<>(); String level = LogLevels.INFO.name(); @@ -84,51 +76,43 @@ public static void init(final Map _logModules) { loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); - /** - * Initialize Rolling-File-Appender - */ + /** Initialize Rolling-File-Appender */ String fileName = "./log/aionLog.dat"; fileAppender = new RollingFileAppender(); fileAppender.setContext(loggerContext); fileAppender.setName("aionlogger"); fileAppender.setFile(fileName); - /** - * Initialize Triggering-Policy (CONDITION) - */ + /** Initialize Triggering-Policy (CONDITION) */ SizeBasedTriggeringPolicy tp = new SizeBasedTriggeringPolicy(); tp.setContext(loggerContext); tp.start(); - /** - * Initialize Rolling-Policy (BEHAVIOUR) - */ + /** Initialize Rolling-Policy (BEHAVIOUR) */ SizeAndTimeBasedRollingPolicy rp = new SizeAndTimeBasedRollingPolicy(); rp.setContext(loggerContext); /** - * To modify period of each rollover; - * PER DAY: "aion.%d{yyyy-MM-dd}.%i.log" - * PER HOUR: "aion.%d{yyyy-MM-dd_HH}.%i.log" - * PER MIN: "aion.%d{yyyy-MM-dd_HH-mm}.%i.log" - * Link: https://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy - * Currently set to PER HOUR + * To modify period of each rollover; PER DAY: "aion.%d{yyyy-MM-dd}.%i.log" PER HOUR: + * "aion.%d{yyyy-MM-dd_HH}.%i.log" PER MIN: "aion.%d{yyyy-MM-dd_HH-mm}.%i.log" Link: + * https://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy Currently set to PER + * HOUR */ - FileNamePattern fnp = new FileNamePattern("./log/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd_HH}.%i.log", loggerContext); + FileNamePattern fnp = + new FileNamePattern( + "./log/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd_HH}.%i.log", loggerContext); rp.setFileNamePattern(fnp.getPattern()); /** - * To modify size of each rollover file; - * Link: https://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy - * Currently set to 100MB + * To modify size of each rollover file; Link: + * https://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy Currently set + * to 100MB */ - rp.setMaxFileSize(new FileSize(100*1000*1000)); + rp.setMaxFileSize(new FileSize(100 * 1000 * 1000)); rp.setParent(fileAppender); rp.start(); - /** - * Sets TRIGGER & ROLLING policy - */ + /** Sets TRIGGER & ROLLING policy */ fileAppender.setTriggeringPolicy(tp); fileAppender.setRollingPolicy(rp); @@ -140,9 +124,7 @@ public static void init(final Map _logModules) { appender.setEncoder(encoder); appender.start(); - /** - * Set fileAppender configurations - */ + /** Set fileAppender configurations */ fileAppender.setContext(loggerContext); fileAppender.setEncoder(encoder); fileAppender.setAppend(true); @@ -152,7 +134,8 @@ public static void init(final Map _logModules) { rootlogger.detachAndStopAllAppenders(); } - private static ConcurrentMap loggerMap = new ConcurrentHashMap(); + private static ConcurrentMap loggerMap = + new ConcurrentHashMap(); public static Logger getLogger(String label) { @@ -179,27 +162,26 @@ private static Logger newLogger(String label) { if (logModule.getKey().equals(label)) { LogLevels logLevel = LogLevels.valueOf(logModule.getValue()); switch (logLevel) { - case TRACE: - newlogger.setLevel(Level.TRACE); - flag = true; - break; - case ERROR: - newlogger.setLevel(Level.ERROR); - flag = true; - break; - case INFO: - newlogger.setLevel(Level.INFO); - flag = true; - break; - case DEBUG: - newlogger.setLevel(Level.DEBUG); - flag = true; - break; + case TRACE: + newlogger.setLevel(Level.TRACE); + flag = true; + break; + case ERROR: + newlogger.setLevel(Level.ERROR); + flag = true; + break; + case INFO: + newlogger.setLevel(Level.INFO); + flag = true; + break; + case DEBUG: + newlogger.setLevel(Level.DEBUG); + flag = true; + break; } } - if (flag) - break; + if (flag) break; } if (!flag) { From 07c93e17a8c4a9ad7fb05fb09e1ad2f2a506bab6 Mon Sep 17 00:00:00 2001 From: aionJoey Date: Thu, 17 May 2018 12:25:21 -0400 Subject: [PATCH 024/129] logger feature added --- modLogger/src/org/aion/log/AionLoggerFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modLogger/src/org/aion/log/AionLoggerFactory.java b/modLogger/src/org/aion/log/AionLoggerFactory.java index 6b2a2c248d..15ed1acecc 100644 --- a/modLogger/src/org/aion/log/AionLoggerFactory.java +++ b/modLogger/src/org/aion/log/AionLoggerFactory.java @@ -77,7 +77,7 @@ public static void init(final Map _logModules) { loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); /** Initialize Rolling-File-Appender */ - String fileName = "./log/aionLog.dat"; + String fileName = "./log/aionCurrentLog.dat"; fileAppender = new RollingFileAppender(); fileAppender.setContext(loggerContext); fileAppender.setName("aionlogger"); From a2186ad55a26bdbad76b887041fed1284c456c8a Mon Sep 17 00:00:00 2001 From: aionJoey Date: Fri, 18 May 2018 10:55:48 -0400 Subject: [PATCH 025/129] allows user to toggle logger --- modApiServer/src/org/aion/api/server/Api.java | 8 ++ modBoot/src/org/aion/Aion.java | 7 +- .../src/org/aion/log/AionLoggerFactory.java | 115 +++++++++++------- modMcf/src/org/aion/mcf/config/CfgLog.java | 44 ++++++- 4 files changed, 124 insertions(+), 50 deletions(-) diff --git a/modApiServer/src/org/aion/api/server/Api.java b/modApiServer/src/org/aion/api/server/Api.java index 743ba51e9e..2dc1402a3b 100644 --- a/modApiServer/src/org/aion/api/server/Api.java +++ b/modApiServer/src/org/aion/api/server/Api.java @@ -109,6 +109,14 @@ public Map contract_compileSolidity(final String _contrac Compiler.Result res = solc.compile(_contract.getBytes(), Compiler.Options.ABI, Compiler.Options.BIN); if (res.isFailed()) { LOG.info("contract compile error: [{}]", res.errors); + + /** + * Enhance performance by separating the log threads and kernel + * TODO: Implement a queue for strings + * TODO: Put every LOG message onto the queue + * TODO: Use a thread service to process these message + */ + CompiledContr ret = new CompiledContr(); ret.error = res.errors; compiledContracts.put("compile-error", ret); diff --git a/modBoot/src/org/aion/Aion.java b/modBoot/src/org/aion/Aion.java index ab9742bfbb..6cbb30558f 100644 --- a/modBoot/src/org/aion/Aion.java +++ b/modBoot/src/org/aion/Aion.java @@ -36,6 +36,7 @@ import org.aion.log.AionLoggerFactory; import org.aion.log.LogEnum; import org.aion.mcf.config.CfgApiRpc; +import org.aion.mcf.config.CfgLog; import org.aion.mcf.mine.IMineRunner; import org.aion.zero.impl.blockchain.AionFactory; import org.aion.zero.impl.blockchain.IAionChain; @@ -84,7 +85,11 @@ public static void main(String args[]) throws InterruptedException { // If commit this out, the config setting will be ignore. all log module been set to "INFO" Level - AionLoggerFactory.init(cfg.getLog().getModules()); + + /** Change INITIALIZE signature to include LOGFILE */ + // AionLoggerFactory.init(cfg.getLog().getModules()); + AionLoggerFactory.init(cfg.getLog().getModules(), cfg.getLog().getLogFile()); + Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.toString()); System.out.println( diff --git a/modLogger/src/org/aion/log/AionLoggerFactory.java b/modLogger/src/org/aion/log/AionLoggerFactory.java index 15ed1acecc..cc61dbd76b 100644 --- a/modLogger/src/org/aion/log/AionLoggerFactory.java +++ b/modLogger/src/org/aion/log/AionLoggerFactory.java @@ -26,7 +26,7 @@ import ch.qos.logback.classic.encoder.PatternLayoutEncoder; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.ConsoleAppender; -import ch.qos.logback.core.rolling.*; +import ch.qos.logback.core.FileAppender; import ch.qos.logback.core.rolling.RollingFileAppender; import ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy; import ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy; @@ -59,9 +59,13 @@ public class AionLoggerFactory { private static LoggerContext loggerContext; private static ConsoleAppender appender = new ConsoleAppender<>(); - private static RollingFileAppender fileAppender; // JAY T private static final PatternLayoutEncoder encoder = new PatternLayoutEncoder(); + /** Static declaration of logFile */ + private static boolean logToFile; + + private static RollingFileAppender fileAppender; + static { logModules = new HashMap<>(); String level = LogLevels.INFO.name(); @@ -70,51 +74,69 @@ public class AionLoggerFactory { } } + /** Change INITIALIZE signature to include LOGFILE */ public static void init(final Map _logModules) { + init(_logModules, false); + } + + // public static void init(final Map _logModules) { + public static void init(final Map _logModules, boolean _logToFile ) { logModules = _logModules; + /** Passed in argument */ + logToFile = _logToFile; + // logToFile = true; + loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); - /** Initialize Rolling-File-Appender */ - String fileName = "./log/aionCurrentLog.dat"; - fileAppender = new RollingFileAppender(); - fileAppender.setContext(loggerContext); - fileAppender.setName("aionlogger"); - fileAppender.setFile(fileName); - - /** Initialize Triggering-Policy (CONDITION) */ - SizeBasedTriggeringPolicy tp = new SizeBasedTriggeringPolicy(); - tp.setContext(loggerContext); - tp.start(); - - /** Initialize Rolling-Policy (BEHAVIOUR) */ - SizeAndTimeBasedRollingPolicy rp = new SizeAndTimeBasedRollingPolicy(); - rp.setContext(loggerContext); - - /** - * To modify period of each rollover; PER DAY: "aion.%d{yyyy-MM-dd}.%i.log" PER HOUR: - * "aion.%d{yyyy-MM-dd_HH}.%i.log" PER MIN: "aion.%d{yyyy-MM-dd_HH-mm}.%i.log" Link: - * https://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy Currently set to PER - * HOUR - */ - FileNamePattern fnp = + /** Toggles file appending configurations */ + if(logToFile) { + /** Initialize Rolling-File-Appender */ + String fileName = "./log/aionCurrentLog.dat"; + fileAppender = new RollingFileAppender(); + fileAppender.setContext(loggerContext); + fileAppender.setName("aionlogger"); + fileAppender.setFile(fileName); + + /** Initialize Triggering-Policy (CONDITION) */ + SizeBasedTriggeringPolicy tp = new SizeBasedTriggeringPolicy(); + tp.setContext(loggerContext); + tp.start(); + + /** Initialize Rolling-Policy (BEHAVIOUR) */ + SizeAndTimeBasedRollingPolicy rp = new SizeAndTimeBasedRollingPolicy(); + rp.setContext(loggerContext); + + /** + * To modify period of each rollover; + * https://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy + * (Currently set to PER DAY) + */ + FileNamePattern fnp = new FileNamePattern( - "./log/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd_HH}.%i.log", loggerContext); - rp.setFileNamePattern(fnp.getPattern()); - - /** - * To modify size of each rollover file; Link: - * https://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy Currently set - * to 100MB - */ - rp.setMaxFileSize(new FileSize(100 * 1000 * 1000)); - rp.setParent(fileAppender); - rp.start(); - - /** Sets TRIGGER & ROLLING policy */ - fileAppender.setTriggeringPolicy(tp); - fileAppender.setRollingPolicy(rp); + "./log/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd}.%i.log", loggerContext); + rp.setFileNamePattern(fnp.getPattern()); + + /** + * To modify size of each rollover file; + * https://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy + * (Currently set to 100MB) + */ + rp.setMaxFileSize(new FileSize(100 * 1000 * 1000)); + rp.setParent(fileAppender); + rp.start(); + + /** Sets TRIGGER & ROLLING policy */ + fileAppender.setTriggeringPolicy(tp); + fileAppender.setRollingPolicy(rp); + + /** Set fileAppender configurations */ + fileAppender.setContext(loggerContext); + fileAppender.setEncoder(encoder); + fileAppender.setAppend(true); + fileAppender.start(); + } encoder.setContext(loggerContext); encoder.setPattern("%date{yy-MM-dd HH:mm:ss.SSS} %-5level %-4c [%thread]: %message%n"); @@ -124,12 +146,6 @@ public static void init(final Map _logModules) { appender.setEncoder(encoder); appender.start(); - /** Set fileAppender configurations */ - fileAppender.setContext(loggerContext); - fileAppender.setEncoder(encoder); - fileAppender.setAppend(true); - fileAppender.start(); - ch.qos.logback.classic.Logger rootlogger = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME); rootlogger.detachAndStopAllAppenders(); } @@ -148,12 +164,17 @@ private static Logger newLogger(String label) { if (loggerContext == null) { // System.out.println("If you see this line, meaning you are under // the unit test!!! If you are not. should report an issue."); + //init(new HashMap<>(), false); init(new HashMap<>()); } ch.qos.logback.classic.Logger newlogger = loggerContext.getLogger(label); newlogger.addAppender(appender); - newlogger.addAppender(fileAppender); + + /** Toggle file appending */ + if(logToFile) { + newlogger.addAppender(fileAppender); + } boolean flag = false; Iterator> it = logModules.entrySet().iterator(); diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index 0af4527b04..80de09cc46 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -43,6 +43,9 @@ public class CfgLog { private Map modules; + /** Declaree logFile variable */ + private boolean logFile; + public CfgLog() { modules = new HashMap<>(); modules.put(LogEnum.CONS.name(), LogLevels.INFO.name()); @@ -53,6 +56,10 @@ public CfgLog() { modules.put(LogEnum.API.name(), LogLevels.INFO.name()); modules.put(LogEnum.TX.name(), LogLevels.ERROR.name()); modules.put(LogEnum.TXPOOL.name(), LogLevels.ERROR.name()); + + /** TOGGLES LOGGING TO FILE - initializes logFile as FALSE */ + this.logFile = false; + } public void fromXML(final XMLStreamReader sr) throws XMLStreamException { @@ -62,7 +69,19 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { int eventType = sr.next(); switch (eventType) { case XMLStreamReader.START_ELEMENT: - String elementName = sr.getLocalName().toUpperCase(); + + /** XML - Takes the input in config.xml and parse as T/F */ + String elementName = sr.getLocalName().toLowerCase(); + switch (elementName) { + case "log-file": + this.logFile = Boolean.parseBoolean(Cfg.readValue(sr)); + break; + default: + break; + } + + elementName = sr.getLocalName().toUpperCase(); + /** String elementName = sr.getLocalName().toUpperCase(); */ if (LogEnum.contains(elementName)) this.modules.put(elementName, Cfg.readValue(sr).toUpperCase()); break; @@ -83,8 +102,24 @@ public String toXML() { Writer strWriter = new StringWriter(); xmlWriter = output.createXMLStreamWriter(strWriter); xmlWriter.writeCharacters("\r\n\t"); - xmlWriter.writeStartElement("log"); + xmlWriter.writeStartElement("Log"); + xmlWriter.writeCharacters("\r\n"); + + /** XML - Displays tag/entry in the config.xml */ + xmlWriter.writeCharacters("\t\t"); + xmlWriter.writeStartElement("log-file"); + xmlWriter.writeCharacters(this.logFile + ""); + xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n"); + + /** Testing whether logFile retrieves boolean value */ + /** if(logFile) { + xmlWriter.writeCharacters("\t\t"); + xmlWriter.writeCharacters("testing for T"); + xmlWriter.writeCharacters("\r\n"); + } */ + + for (Map.Entry module : this.modules.entrySet()) { xmlWriter.writeCharacters("\t\t"); xmlWriter.writeStartElement(module.getKey().toUpperCase()); @@ -109,4 +144,9 @@ public Map getModules() { return this.modules; } + /** Method checks value of logFile as T/F */ + public boolean getLogFile() { + return this.logFile; + } + } \ No newline at end of file From 6fd52f2c6d66ad595bdeb9f2081b955d135acd69 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 13:31:19 -0400 Subject: [PATCH 026/129] first refactor: separate TaskInbound --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 11 +- .../src/org/aion/p2p/impl1/TaskInbound2.java | 173 ++++++++++++++++++ 2 files changed, 179 insertions(+), 5 deletions(-) create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 8e7ef38e0b..3c5cd5e3cc 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -95,7 +95,7 @@ enum Dest { INBOUND, OUTBOUND, ACTIVE } - private static class MsgOut { + static class MsgOut { MsgOut(int _nodeId, String _displayId, Msg _msg, Dest _dest) { nodeId = _nodeId; displayId = _displayId; @@ -111,7 +111,7 @@ private static class MsgOut { long timestamp; } - private static class MsgIn { + static class MsgIn { MsgIn(int nid, String nsid, int route, byte[] msg) { this.nid = nid; this.nsid = nsid; @@ -639,7 +639,7 @@ public void closeSocket(final SocketChannel _sc, String _reason) { } } - private void accept() { + void accept() { SocketChannel channel; try { @@ -735,7 +735,7 @@ private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) th * @throws IOException * IOException */ - private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOException { + int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOException { int currCnt = 0; @@ -992,7 +992,8 @@ public void run() { tcpServer.socket().bind(new InetSocketAddress(Node.ipBytesToStr(selfIp), selfPort)); tcpServer.register(selector, SelectionKey.OP_ACCEPT); - Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); + Thread thrdIn = new Thread(new TaskInbound2(this, this.showLog, this.selector), "p2p-in"); +// Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java new file mode 100644 index 0000000000..2078b23470 --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java @@ -0,0 +1,173 @@ +package org.aion.p2p.impl1; + +import java.io.IOException; +import java.nio.ByteBuffer; +import java.nio.channels.CancelledKeyException; +import java.nio.channels.ClosedChannelException; +import java.nio.channels.SelectionKey; +import java.nio.channels.Selector; +import java.nio.channels.SocketChannel; +import java.util.Iterator; +import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.P2pConstant; + +public class TaskInbound2 implements Runnable { + + private AtomicBoolean start = new AtomicBoolean(true); + private final boolean showLog; + private final P2pMgr mgr; + private final Selector selector; + + public TaskInbound2(P2pMgr _mgr, boolean _showLog, Selector _selector) { + this.showLog = _showLog; + this.mgr = _mgr; + this.selector = _selector; + } + + @Override + public void run() { + + // read buffer pre-alloc. @ max_body_size + ByteBuffer readBuf = ByteBuffer.allocate(P2pConstant.MAX_BODY_SIZE); + + while (start.get()) { + + try { + Thread.sleep(0, 1); + } catch (Exception e) { + } + + int num; + try { + num = this.selector.selectNow(); + } catch (IOException e) { + if (showLog) + System.out.println(""); + continue; + } + + if (num == 0) { + continue; + } + + Iterator keys = this.selector.selectedKeys().iterator(); + + while (keys.hasNext() && (num-- > 0)) { + + final SelectionKey sk = keys.next(); + keys.remove(); + + try{ + + if (!sk.isValid()) + continue; + + if (sk.isAcceptable()) + this.mgr.accept(); + + if (sk.isReadable()) { + + readBuf.rewind(); + + ChannelBuffer chanBuf = (ChannelBuffer) (sk.attachment()); + try { + + int ret; + int cnt = 0; + + while ((ret = ((SocketChannel) sk.channel()).read(readBuf)) > 0) { + cnt += ret; + } + + // read empty select key, continue. + if (cnt <= 0) { + continue; + } + + int prevCnt = cnt + chanBuf.buffRemain; + ByteBuffer forRead; + + if (chanBuf.buffRemain != 0) { + byte[] alreadyRead = new byte[cnt]; + + readBuf.position(0); + readBuf.get(alreadyRead); + forRead = ByteBuffer.allocate(prevCnt); + forRead.put(chanBuf.remainBuffer); + forRead.put(alreadyRead); + } else { + forRead = readBuf; + } + + do { + cnt = this.mgr.read(sk, forRead, prevCnt); + + if (prevCnt == cnt) { + break; + } else + prevCnt = cnt; + + } while (cnt > 0); + + // check if really read data. + if (cnt > prevCnt) { + chanBuf.buffRemain = 0; + throw new P2pException( + "IO read overflow! suppose read:" + prevCnt + " real left:" + cnt); + } + + chanBuf.buffRemain = cnt; + + if (cnt == 0) { + readBuf.rewind(); + } else { + // there are no perfect cycling buffer in jdk + // yet. + // simply just buff move for now. + // @TODO: looking for more efficient way. + + int currPos = forRead.position(); + chanBuf.remainBuffer = new byte[cnt]; + forRead.position(currPos - cnt); + forRead.get(chanBuf.remainBuffer); + readBuf.rewind(); + } + + } catch (NullPointerException e) { + this.mgr.closeSocket((SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-null-exception"); + chanBuf.isClosed.set(true); + } catch (P2pException e) { + this.mgr.closeSocket((SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-p2p-exception"); + chanBuf.isClosed.set(true); + + } catch (ClosedChannelException e) { + this.mgr.closeSocket((SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-closed-channel-exception"); + + } catch (IOException e) { + this.mgr.closeSocket((SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-io-exception: " + e.getMessage()); + chanBuf.isClosed.set(true); + + } catch (CancelledKeyException e) { + chanBuf.isClosed.set(true); + this.mgr.closeSocket((SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-key-cancelled-exception"); + } catch (Exception e) { + if (showLog) + System.out.println(""); + } + } + } catch(Exception ex) { + if(showLog) { + System.out.println(""); + ex.printStackTrace(); + } + } + } + } + if (showLog) + System.out.println(""); + } + +} From dc0cc75d1d6ef7c39da3fbe508609f438446d809 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 13:56:15 -0400 Subject: [PATCH 027/129] second refactor: separate TaskSend --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 572 ++++++++++-------- .../src/org/aion/p2p/impl1/TaskInbound2.java | 60 +- .../src/org/aion/p2p/impl1/TaskSend2.java | 106 ++++ 3 files changed, 460 insertions(+), 278 deletions(-) create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 3c5cd5e3cc..343c0addb2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -25,16 +25,6 @@ package org.aion.p2p.impl1; -import org.aion.p2p.P2pConstant; -import org.aion.p2p.*; -import org.aion.p2p.impl.TaskRequestActiveNodes; -import org.aion.p2p.impl.TaskUPnPManager; -import org.aion.p2p.impl.comm.Act; -import org.aion.p2p.impl.comm.Node; -import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl.zero.msg.*; -import org.apache.commons.collections4.map.LRUMap; - import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.InetSocketAddress; @@ -43,21 +33,28 @@ import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.*; +import org.aion.p2p.P2pConstant; +import org.aion.p2p.impl.TaskRequestActiveNodes; +import org.aion.p2p.impl.TaskUPnPManager; +import org.aion.p2p.impl.comm.Act; +import org.aion.p2p.impl.comm.Node; +import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.impl.zero.msg.*; +import org.apache.commons.collections4.map.LRUMap; -/** - * @author Chris p2p://{uuid}@{ip}:{port} - */ +/** @author Chris p2p://{uuid}@{ip}:{port} */ public final class P2pMgr implements IP2pMgr { - private final static int PERIOD_SHOW_STATUS = 10000; - private final static int PERIOD_REQUEST_ACTIVE_NODES = 1000; - private final static int PERIOD_CONNECT_OUTBOUND = 1000; - private final static int PERIOD_CLEAR = 20000; - private final static int PERIOD_UPNP_PORT_MAPPING = 3600000; + private static final int PERIOD_SHOW_STATUS = 10000; + private static final int PERIOD_REQUEST_ACTIVE_NODES = 1000; + private static final int PERIOD_CONNECT_OUTBOUND = 1000; + private static final int PERIOD_CLEAR = 20000; + private static final int PERIOD_UPNP_PORT_MAPPING = 3600000; - private final static int TIMEOUT_OUTBOUND_CONNECT = 10000; - private final static int TIMEOUT_OUTBOUND_NODES = 20000; - private final static int TIMEOUT_MSG_READ = 10000; + private static final int TIMEOUT_OUTBOUND_CONNECT = 10000; + private static final int TIMEOUT_OUTBOUND_NODES = 20000; + private static final int TIMEOUT_MSG_READ = 10000; private final int maxTempNodes; private final int maxActiveNodes; @@ -89,10 +86,13 @@ public final class P2pMgr implements IP2pMgr { private int errTolerance; // TODO: need refactor by passing the parameter in the later version. - private final static int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); + private static final int txBroadCastRoute = + (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); enum Dest { - INBOUND, OUTBOUND, ACTIVE + INBOUND, + OUTBOUND, + ACTIVE } static class MsgOut { @@ -152,8 +152,7 @@ public void run() { try { num = selector.selectNow(); } catch (IOException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); continue; } @@ -168,13 +167,11 @@ public void run() { final SelectionKey sk = keys.next(); keys.remove(); - try{ + try { - if (!sk.isValid()) - continue; + if (!sk.isValid()) continue; - if (sk.isAcceptable()) - accept(); + if (sk.isAcceptable()) accept(); if (sk.isReadable()) { @@ -215,8 +212,7 @@ public void run() { if (prevCnt == cnt) { break; - } else - prevCnt = cnt; + } else prevCnt = cnt; } while (cnt > 0); @@ -224,7 +220,10 @@ public void run() { if (cnt > prevCnt) { chanBuf.buffRemain = 0; throw new P2pException( - "IO read overflow! suppose read:" + prevCnt + " real left:" + cnt); + "IO read overflow! suppose read:" + + prevCnt + + " real left:" + + cnt); } chanBuf.buffRemain = cnt; @@ -245,45 +244,52 @@ public void run() { } } catch (NullPointerException e) { - closeSocket((SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-null-exception"); + closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-null-exception"); chanBuf.isClosed.set(true); } catch (P2pException e) { - closeSocket((SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-p2p-exception"); + closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-p2p-exception"); chanBuf.isClosed.set(true); } catch (ClosedChannelException e) { - closeSocket((SocketChannel) sk.channel(), + closeSocket( + (SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-closed-channel-exception"); } catch (IOException e) { - closeSocket((SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-io-exception: " + e.getMessage()); + closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + + "-read-msg-io-exception: " + + e.getMessage()); chanBuf.isClosed.set(true); } catch (CancelledKeyException e) { chanBuf.isClosed.set(true); - closeSocket((SocketChannel) sk.channel(), + closeSocket( + (SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-key-cancelled-exception"); } catch (Exception e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } } - } catch(Exception ex) { - if(showLog) { + } catch (Exception ex) { + if (showLog) { System.out.println(""); ex.printStackTrace(); } } } } - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } } // hash mapping channel id to write thread. - private int hash2Lane(int in) { + int hash2Lane(int in) { in ^= in >> (32 - 5); in ^= in >> (32 - 10); in ^= in >> (32 - 15); @@ -310,7 +316,12 @@ public void run() { long now = System.currentTimeMillis(); if (now - mo.timestamp > P2pConstant.WRITE_MSG_TIMEOUT) { if (showLog) - System.out.println(""); + System.out.println( + ""); continue; } @@ -339,22 +350,31 @@ public void run() { if (sk != null) { Object attachment = sk.attachment(); if (attachment != null) { - TaskWrite tw = new TaskWrite(showLog, node.getIdShort(), node.getChannel(), mo.msg, - (ChannelBuffer) attachment, P2pMgr.this); + TaskWrite tw = + new TaskWrite( + showLog, + node.getIdShort(), + node.getChannel(), + mo.msg, + (ChannelBuffer) attachment, + P2pMgr.this); tw.run(); } } } else { if (showLog) - System.out.println("" + mo.displayId + " node-not-exit"); + System.out.println( + "" + + mo.displayId + + " node-not-exit"); } } catch (InterruptedException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); return; } catch (Exception e) { - if (showLog) - e.printStackTrace(); + if (showLog) e.printStackTrace(); } } } @@ -369,26 +389,21 @@ public void run() { MsgIn mi = receiveMsgQue.take(); List hs = handlers.get(mi.route); - if (hs == null) - continue; + if (hs == null) continue; for (Handler hlr : hs) { - if (hlr == null) - continue; + if (hlr == null) continue; try { hlr.receive(mi.nid, mi.nsid, mi.msg); } catch (Exception e) { - if (showLog) - e.printStackTrace(); + if (showLog) e.printStackTrace(); } } } catch (InterruptedException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); return; } catch (Exception e) { - if (showLog) - e.printStackTrace(); + if (showLog) e.printStackTrace(); } } } @@ -402,7 +417,12 @@ public void run() { System.out.println(status); System.out.println( "--------------------------------------------------------------------------------------------------------------------------------------------------------------------"); - System.out.println("recv queue [" + receiveMsgQue.size() + "] send queue [" + sendMsgQue.size() + "]\n"); + System.out.println( + "recv queue [" + + receiveMsgQue.size() + + "] send queue [" + + sendMsgQue.size() + + "]\n"); } } @@ -414,50 +434,51 @@ public void run() { try { Thread.sleep(PERIOD_CONNECT_OUTBOUND); } catch (InterruptedException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } if (nodeMgr.activeNodesSize() >= maxActiveNodes) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); continue; } Node node; try { node = nodeMgr.tempNodesTake(); - if (nodeMgr.isSeedIp(node.getIpStr())) - node.setFromBootList(true); - if (node.getIfFromBootList()) - nodeMgr.addTempNode(node); + if (nodeMgr.isSeedIp(node.getIpStr())) node.setFromBootList(true); + if (node.getIfFromBootList()) nodeMgr.addTempNode(node); // if (node.peerMetric.shouldNotConn()) { // continue; // } } catch (InterruptedException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); return; } catch (Exception e) { - if (showLog) - e.printStackTrace(); + if (showLog) e.printStackTrace(); continue; } int nodeIdHash = node.getIdHash(); - if (!nodeMgr.getOutboundNodes().containsKey(nodeIdHash) && !nodeMgr.hasActiveNode(nodeIdHash)) { + if (!nodeMgr.getOutboundNodes().containsKey(nodeIdHash) + && !nodeMgr.hasActiveNode(nodeIdHash)) { int _port = node.getPort(); try { SocketChannel channel = SocketChannel.open(); - channel.socket().connect(new InetSocketAddress(node.getIpStr(), _port), - TIMEOUT_OUTBOUND_CONNECT); + channel.socket() + .connect( + new InetSocketAddress(node.getIpStr(), _port), + TIMEOUT_OUTBOUND_CONNECT); configChannel(channel); if (channel.finishConnect() && channel.isConnected()) { if (showLog) - System.out.println(""); + System.out.println( + ""); SelectionKey sk = channel.register(selector, SelectionKey.OP_READ); ChannelBuffer rb = new ChannelBuffer(P2pMgr.this.showLog); @@ -470,27 +491,42 @@ public void run() { nodeMgr.addOutboundNode(node); if (showLog) - System.out.println(" id=" + node.getIdShort() + " ip=" - + node.getIpStr() + ">"); - sendMsgQue.offer(new MsgOut(node.getIdHash(), node.getIdShort(), cachedReqHandshake1, - Dest.OUTBOUND)); + System.out.println( + " id=" + + node.getIdShort() + + " ip=" + + node.getIpStr() + + ">"); + sendMsgQue.offer( + new MsgOut( + node.getIdHash(), + node.getIdShort(), + cachedReqHandshake1, + Dest.OUTBOUND)); // node.peerMetric.decFailedCount(); } else { if (showLog) - System.out.println(""); + System.out.println( + ""); channel.close(); // node.peerMetric.incFailedCount(); } } catch (IOException e) { if (showLog) - System.out.println(""); + System.out.println( + ""); // node.peerMetric.incFailedCount(); } catch (Exception e) { - if (showLog) - e.printStackTrace(); + if (showLog) e.printStackTrace(); } } } @@ -512,17 +548,18 @@ public void run() { Object obj = outboundIt.next(); - if (obj == null) - continue; + if (obj == null) continue; int nodeIdHash = (int) obj; Node node = nodeMgr.getOutboundNodes().get(nodeIdHash); - if (node == null) - continue; + if (node == null) continue; - if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_OUTBOUND_NODES) { - closeSocket(node.getChannel(), "outbound-timeout node=" + node.getIdShort()); + if (System.currentTimeMillis() - node.getTimestamp() + > TIMEOUT_OUTBOUND_NODES) { + closeSocket( + node.getChannel(), + "outbound-timeout node=" + node.getIdShort()); outboundIt.remove(); } } @@ -536,28 +573,30 @@ public void run() { } /** - * @param _nodeId - * byte[36] - * @param _ip - * String - * @param _port - * int - * @param _bootNodes - * String[] - * @param _upnpEnable - * boolean - * @param _maxTempNodes - * int - * @param _maxActiveNodes - * int - * @param _showStatus - * boolean - * @param _showLog - * boolean + * @param _nodeId byte[36] + * @param _ip String + * @param _port int + * @param _bootNodes String[] + * @param _upnpEnable boolean + * @param _maxTempNodes int + * @param _maxActiveNodes int + * @param _showStatus boolean + * @param _showLog boolean */ - public P2pMgr(int _netId, String _revision, String _nodeId, String _ip, int _port, final String[] _bootNodes, - boolean _upnpEnable, int _maxTempNodes, int _maxActiveNodes, boolean _showStatus, boolean _showLog, - boolean _bootlistSyncOnly, int _errorTolerance) { + public P2pMgr( + int _netId, + String _revision, + String _nodeId, + String _ip, + int _port, + final String[] _bootNodes, + boolean _upnpEnable, + int _maxTempNodes, + int _maxActiveNodes, + boolean _showStatus, + boolean _showLog, + boolean _bootlistSyncOnly, + int _errorTolerance) { this.selfNetId = _netId; this.selfRevision = _revision; this.selfNodeId = _nodeId.getBytes(); @@ -589,25 +628,21 @@ public P2pMgr(int _netId, String _revision, String _nodeId, String _ip, int _por } /** - * @param _node - * Node + * @param _node Node * @return boolean */ private boolean validateNode(final Node _node) { if (_node != null) { boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); - boolean notSameIpOrPort = !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); + boolean notSameIpOrPort = + !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); return notSelfId && notSameIpOrPort && notActive && notOutbound; - } else - return false; + } else return false; } - /** - * @param _channel - * SocketChannel TODO: check option - */ + /** @param _channel SocketChannel TODO: check option */ private void configChannel(final SocketChannel _channel) throws IOException { _channel.configureBlocking(false); _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); @@ -620,22 +655,16 @@ private void configChannel(final SocketChannel _channel) throws IOException { // _channel.setOption(StandardSocketOptions.SO_REUSEADDR, true); } - /** - * @param _sc - * SocketChannel - */ + /** @param _sc SocketChannel */ public void closeSocket(final SocketChannel _sc, String _reason) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); try { SelectionKey sk = _sc.keyFor(selector); _sc.close(); - if (sk != null) - sk.cancel(); + if (sk != null) sk.cancel(); } catch (IOException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } } @@ -643,8 +672,7 @@ void accept() { SocketChannel channel; try { - if (nodeMgr.activeNodesSize() >= this.maxActiveNodes) - return; + if (nodeMgr.activeNodesSize() >= this.maxActiveNodes) return; channel = tcpServer.accept(); configChannel(channel); @@ -664,25 +692,22 @@ void accept() { node.setChannel(channel); nodeMgr.addInboundNode(node); - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } catch (IOException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } } /** * SocketChannel * - * @throws IOException - * IOException + * @throws IOException IOException */ - private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) throws IOException { + private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) + throws IOException { - if (cnt < Header.LEN) - return cnt; + if (cnt < Header.LEN) return cnt; int origPos = readBuffer.position(); @@ -695,16 +720,15 @@ private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) readBuffer.position(origPos); return cnt - Header.LEN; - } /** * SocketChannel * - * @throws IOException - * IOException + * @throws IOException IOException */ - private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) throws IOException { + private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) + throws IOException { int bodyLen = _cb.header.getLen(); @@ -714,8 +738,7 @@ private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) th return cnt; } - if (cnt < bodyLen) - return cnt; + if (cnt < bodyLen) return cnt; int origPos = readBuffer.position(); int startP = origPos - cnt; @@ -730,10 +753,8 @@ private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) th } /** - * @param _sk - * SelectionKey - * @throws IOException - * IOException + * @param _sk SelectionKey + * @throws IOException IOException */ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOException { @@ -756,8 +777,7 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce currCnt = readBody(rb, _readBuffer, currCnt); } - if (!rb.isBodyCompleted()) - return currCnt; + if (!rb.isBodyCompleted()) return currCnt; Header h = rb.header; @@ -770,13 +790,27 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce byte act = h.getAction(); int route = h.getRoute(); - boolean underRC = rb.shouldRoute(route, - ((route == txBroadCastRoute) ? P2pConstant.READ_MAX_RATE_TXBC : P2pConstant.READ_MAX_RATE)); + boolean underRC = + rb.shouldRoute( + route, + ((route == txBroadCastRoute) + ? P2pConstant.READ_MAX_RATE_TXBC + : P2pConstant.READ_MAX_RATE)); if (!underRC) { if (showLog) - System.out.println(""); + System.out.println( + ""); return currCnt; } @@ -786,17 +820,25 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce case Ctrl.NET: try { handleP2pMsg(_sk, act, bodyBytes); - } catch(Exception ex){ - if(showLog) - System.out.println(""); + } catch (Exception ex) { + if (showLog) + System.out.println( + ""); } break; case Ctrl.SYNC: - if (!handlers.containsKey(route)) { if (showLog) - System.out.println(""); + System.out.println( + ""); return currCnt; } @@ -805,7 +847,15 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce default: if (showLog) System.out.println( - ""); + ""); break; } break; @@ -816,40 +866,34 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce } return currCnt; - } - /** - * @return boolean TODO: implementation - */ + /** @return boolean TODO: implementation */ private boolean handshakeRuleCheck(int netId) { // check net id - if (netId != selfNetId) - return false; + if (netId != selfNetId) return false; // check supported protocol versions return true; } /** - * @param _buffer - * ChannelBuffer - * @param _channelHash - * int - * @param _nodeId - * byte[] - * @param _netId - * int - * @param _port - * int - * @param _revision - * byte[] - *

- * Construct node info after handshake request success + * @param _buffer ChannelBuffer + * @param _channelHash int + * @param _nodeId byte[] + * @param _netId int + * @param _port int + * @param _revision byte[] + *

Construct node info after handshake request success */ - private void handleReqHandshake(final ChannelBuffer _buffer, int _channelHash, final byte[] _nodeId, int _netId, - int _port, final byte[] _revision) { + private void handleReqHandshake( + final ChannelBuffer _buffer, + int _channelHash, + final byte[] _nodeId, + int _netId, + int _port, + final byte[] _revision) { Node node = nodeMgr.getInboundNode(_channelHash); if (node != null && node.peerMetric.notBan()) { if (handshakeRuleCheck(_netId)) { @@ -868,12 +912,16 @@ private void handleReqHandshake(final ChannelBuffer _buffer, int _channelHash, f } node.setBinaryVersion(binaryVersion); nodeMgr.moveInboundToActive(_channelHash, this); - sendMsgQue.offer(new MsgOut(node.getIdHash(), node.getIdShort(), cachedResHandshake1, Dest.ACTIVE)); + sendMsgQue.offer( + new MsgOut( + node.getIdHash(), + node.getIdShort(), + cachedResHandshake1, + Dest.ACTIVE)); } } else { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } } } @@ -888,39 +936,37 @@ private void handleResHandshake(int _nodeIdHash, String _binaryVersion) { } /** - * @param _sk - * SelectionKey - * @param _act - * ACT - * @param _msgBytes - * byte[] + * @param _sk SelectionKey + * @param _act ACT + * @param _msgBytes byte[] */ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBytes) { - ChannelBuffer rb = (ChannelBuffer) _sk.attachment(); switch (_act) { - case Act.REQ_HANDSHAKE: if (_msgBytes.length > ReqHandshake.LEN) { ReqHandshake1 reqHandshake1 = ReqHandshake1.decode(_msgBytes); if (reqHandshake1 != null) { - handleReqHandshake(rb, _sk.channel().hashCode(), reqHandshake1.getNodeId(), - reqHandshake1.getNetId(), reqHandshake1.getPort(), reqHandshake1.getRevision()); + handleReqHandshake( + rb, + _sk.channel().hashCode(), + reqHandshake1.getNodeId(), + reqHandshake1.getNetId(), + reqHandshake1.getPort(), + reqHandshake1.getRevision()); } } break; case Act.RES_HANDSHAKE: - if (rb.nodeIdHash == 0) - return; + if (rb.nodeIdHash == 0) return; if (_msgBytes.length > ResHandshake.LEN) { ResHandshake1 resHandshake1 = ResHandshake1.decode(_msgBytes); if (resHandshake1 != null && resHandshake1.getSuccess()) handleResHandshake(rb.nodeIdHash, resHandshake1.getBinaryVersion()); - } break; @@ -928,14 +974,17 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy if (rb.nodeIdHash != 0) { Node node = nodeMgr.getActiveNode(rb.nodeIdHash); if (node != null) - sendMsgQue.offer(new MsgOut(node.getIdHash(), node.getIdShort(), - new ResActiveNodes(nodeMgr.getActiveNodesList()), Dest.ACTIVE)); + sendMsgQue.offer( + new MsgOut( + node.getIdHash(), + node.getIdShort(), + new ResActiveNodes(nodeMgr.getActiveNodesList()), + Dest.ACTIVE)); } break; case Act.RES_ACTIVE_NODES: - if (syncSeedsOnly) - break; + if (syncSeedsOnly) break; if (rb.nodeIdHash != 0) { Node node = nodeMgr.getActiveNode(rb.nodeIdHash); @@ -945,29 +994,23 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy if (resActiveNodes != null) { List incomingNodes = resActiveNodes.getNodes(); for (Node incomingNode : incomingNodes) { - if (nodeMgr.tempNodesSize() >= this.maxTempNodes) - return; - if (validateNode(incomingNode)) - nodeMgr.addTempNode(incomingNode); + if (nodeMgr.tempNodesSize() >= this.maxTempNodes) return; + if (validateNode(incomingNode)) nodeMgr.addTempNode(incomingNode); } } } } break; default: - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); break; } } /** - * @param _nodeIdHash - * int - * @param _route - * int - * @param _msgBytes - * byte[] + * @param _nodeIdHash int + * @param _route int + * @param _msgBytes byte[] */ private void handleKernelMsg(int _nodeIdHash, int _route, final byte[] _msgBytes) { Node node = nodeMgr.getActiveNode(_nodeIdHash); @@ -992,21 +1035,34 @@ public void run() { tcpServer.socket().bind(new InetSocketAddress(Node.ipBytesToStr(selfIp), selfPort)); tcpServer.register(selector, SelectionKey.OP_ACCEPT); - Thread thrdIn = new Thread(new TaskInbound2(this, this.showLog, this.selector), "p2p-in"); -// Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); + Thread thrdIn = + new Thread(new TaskInbound2(this, this.showLog, this.selector, this.start), "p2p-in"); + // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); if (showLog) - this.handlers.forEach((route, callbacks) -> { - Handler handler = callbacks.get(0); - Header h = handler.getHeader(); - System.out.println(""); - }); - - for (int i = 0; i < TaskSend.TOTAL_LANE; i++) { - Thread thrdOut = new Thread(new TaskSend(i), "p2p-out-" + i); + this.handlers.forEach( + (route, callbacks) -> { + Handler handler = callbacks.get(0); + Header h = handler.getHeader(); + System.out.println( + ""); + }); + + for (int i = 0; i < TaskSend2.TOTAL_LANE; i++) { + Thread thrdOut = new Thread(new TaskSend2(this, i, this.sendMsgQue, + this.start, this.showLog, this.nodeMgr, this.selector), "p2p-out-" + i); thrdOut.setPriority(Thread.NORM_PRIORITY); thrdOut.start(); } @@ -1018,15 +1074,22 @@ public void run() { } if (upnpEnable) - scheduledWorkers.scheduleWithFixedDelay(new TaskUPnPManager(selfPort), 1, PERIOD_UPNP_PORT_MAPPING, + scheduledWorkers.scheduleWithFixedDelay( + new TaskUPnPManager(selfPort), + 1, + PERIOD_UPNP_PORT_MAPPING, TimeUnit.MILLISECONDS); if (showStatus) - scheduledWorkers.scheduleWithFixedDelay(new TaskStatus(), 2, PERIOD_SHOW_STATUS, TimeUnit.MILLISECONDS); + scheduledWorkers.scheduleWithFixedDelay( + new TaskStatus(), 2, PERIOD_SHOW_STATUS, TimeUnit.MILLISECONDS); if (!syncSeedsOnly) - scheduledWorkers.scheduleWithFixedDelay(new TaskRequestActiveNodes(this), 5000, - PERIOD_REQUEST_ACTIVE_NODES, TimeUnit.MILLISECONDS); + scheduledWorkers.scheduleWithFixedDelay( + new TaskRequestActiveNodes(this), + 5000, + PERIOD_REQUEST_ACTIVE_NODES, + TimeUnit.MILLISECONDS); Thread thrdClear = new Thread(new TaskClear(), "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); @@ -1037,8 +1100,7 @@ public void run() { thrdConn.start(); } catch (IOException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } } @@ -1080,8 +1142,14 @@ public void register(final List _cbs) { } List supportedVersions = new ArrayList<>(versions); - cachedReqHandshake1 = new ReqHandshake1(selfNodeId, selfNetId, this.selfIp, this.selfPort, - this.selfRevision.getBytes(), supportedVersions); + cachedReqHandshake1 = + new ReqHandshake1( + selfNodeId, + selfNetId, + this.selfIp, + this.selfPort, + this.selfRevision.getBytes(), + supportedVersions); } @Override @@ -1119,10 +1187,8 @@ public int getSelfIdHash() { /** * Remove an active node if exists. * - * @param _nodeIdHash - * int - * @param _reason - * String + * @param _nodeIdHash int + * @param _reason String */ void dropActive(int _nodeIdHash, String _reason) { nodeMgr.dropActive(_nodeIdHash, this, _reason); @@ -1140,7 +1206,11 @@ public void errCheck(int _nodeIdHash, String _displayId) { errCnt.put(_nodeIdHash, 0); if (showLog) { System.out.println( - ""); + ""); } } else { errCnt.put(_nodeIdHash, cnt); @@ -1151,4 +1221,4 @@ private void ban(int nodeIdHashcode) { nodeMgr.ban(nodeIdHashcode); nodeMgr.dropActive(nodeIdHashcode, this, "ban"); } -} \ No newline at end of file +} diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java index 2078b23470..82c564567e 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java @@ -13,15 +13,16 @@ public class TaskInbound2 implements Runnable { - private AtomicBoolean start = new AtomicBoolean(true); + private AtomicBoolean start; private final boolean showLog; private final P2pMgr mgr; private final Selector selector; - public TaskInbound2(P2pMgr _mgr, boolean _showLog, Selector _selector) { + public TaskInbound2(P2pMgr _mgr, boolean _showLog, Selector _selector, AtomicBoolean _start) { this.showLog = _showLog; this.mgr = _mgr; this.selector = _selector; + this.start = _start; } @Override @@ -41,8 +42,7 @@ public void run() { try { num = this.selector.selectNow(); } catch (IOException e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); continue; } @@ -57,13 +57,11 @@ public void run() { final SelectionKey sk = keys.next(); keys.remove(); - try{ + try { - if (!sk.isValid()) - continue; + if (!sk.isValid()) continue; - if (sk.isAcceptable()) - this.mgr.accept(); + if (sk.isAcceptable()) this.mgr.accept(); if (sk.isReadable()) { @@ -104,8 +102,7 @@ public void run() { if (prevCnt == cnt) { break; - } else - prevCnt = cnt; + } else prevCnt = cnt; } while (cnt > 0); @@ -113,7 +110,10 @@ public void run() { if (cnt > prevCnt) { chanBuf.buffRemain = 0; throw new P2pException( - "IO read overflow! suppose read:" + prevCnt + " real left:" + cnt); + "IO read overflow! suppose read:" + + prevCnt + + " real left:" + + cnt); } chanBuf.buffRemain = cnt; @@ -134,40 +134,46 @@ public void run() { } } catch (NullPointerException e) { - this.mgr.closeSocket((SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-null-exception"); + this.mgr.closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-null-exception"); chanBuf.isClosed.set(true); } catch (P2pException e) { - this.mgr.closeSocket((SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-p2p-exception"); + this.mgr.closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-p2p-exception"); chanBuf.isClosed.set(true); } catch (ClosedChannelException e) { - this.mgr.closeSocket((SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-closed-channel-exception"); + this.mgr.closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-closed-channel-exception"); } catch (IOException e) { - this.mgr.closeSocket((SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-io-exception: " + e.getMessage()); + this.mgr.closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + + "-read-msg-io-exception: " + + e.getMessage()); chanBuf.isClosed.set(true); } catch (CancelledKeyException e) { chanBuf.isClosed.set(true); - this.mgr.closeSocket((SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-key-cancelled-exception"); + this.mgr.closeSocket( + (SocketChannel) sk.channel(), + chanBuf.displayId + "-read-msg-key-cancelled-exception"); } catch (Exception e) { - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } } - } catch(Exception ex) { - if(showLog) { + } catch (Exception ex) { + if (showLog) { System.out.println(""); ex.printStackTrace(); } } } } - if (showLog) - System.out.println(""); + if (showLog) System.out.println(""); } - } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java new file mode 100644 index 0000000000..6ce5aadead --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java @@ -0,0 +1,106 @@ +package org.aion.p2p.impl1; + +import java.nio.channels.SelectionKey; +import java.nio.channels.Selector; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.P2pConstant; +import org.aion.p2p.impl.comm.Node; +import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.impl1.P2pMgr.MsgOut; + +public class TaskSend2 implements Runnable { + static final int TOTAL_LANE = (1 << 5) - 1; + + private final P2pMgr mgr; + private final AtomicBoolean start; + private final LinkedBlockingQueue sendMsgQue; + private final NodeMgr nodeMgr; + private final Selector selector; + private boolean showLog; + private int lane; + + public TaskSend2(P2pMgr _mgr, int _lane, LinkedBlockingQueue _sendMsgQue, + AtomicBoolean _start, boolean _showLog, NodeMgr _nodeMgr, Selector _selector) { + + this.mgr = _mgr; + this.lane = _lane; + this.sendMsgQue = _sendMsgQue; + this.start = _start; + this.showLog = _showLog; + this.nodeMgr = _nodeMgr; + this.selector = _selector; + } + + @Override + public void run() { + while (start.get()) { + try { + MsgOut mo = sendMsgQue.take(); + // if timeout , throw away this msg. + long now = System.currentTimeMillis(); + if (now - mo.timestamp > P2pConstant.WRITE_MSG_TIMEOUT) { + if (showLog) + System.out.println( + ""); + continue; + } + + // if not belong to current lane, put it back. + int targetLane = this.mgr.hash2Lane(mo.nodeId); + if (targetLane != lane) { + sendMsgQue.offer(mo); + continue; + } + + Node node = null; + switch (mo.dest) { + case ACTIVE: + node = nodeMgr.getActiveNode(mo.nodeId); + break; + case INBOUND: + node = nodeMgr.getInboundNode(mo.nodeId); + break; + case OUTBOUND: + node = nodeMgr.getOutboundNode(mo.nodeId); + break; + } + + if (node != null) { + SelectionKey sk = node.getChannel().keyFor(selector); + if (sk != null) { + Object attachment = sk.attachment(); + if (attachment != null) { + TaskWrite tw = + new TaskWrite( + showLog, + node.getIdShort(), + node.getChannel(), + mo.msg, + (ChannelBuffer) attachment, + this.mgr); + tw.run(); + } + } + } else { + if (showLog) + System.out.println( + "" + + mo.displayId + + " node-not-exit"); + } + } catch (InterruptedException e) { + if (showLog) System.out.println(""); + return; + } catch (Exception e) { + if (showLog) e.printStackTrace(); + } + } + } +} From 4cf46426320bfa9047a79e4b42bf2fa6fd6fc277 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 14:08:15 -0400 Subject: [PATCH 028/129] third refactor: separate TaskReceive --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 20 ++++++-- .../src/org/aion/p2p/impl1/TaskReceive2.java | 49 +++++++++++++++++++ .../src/org/aion/p2p/impl1/TaskSend2.java | 44 ++++++++++------- 3 files changed, 90 insertions(+), 23 deletions(-) create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 343c0addb2..d5c280dfec 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -1036,7 +1036,9 @@ public void run() { tcpServer.register(selector, SelectionKey.OP_ACCEPT); Thread thrdIn = - new Thread(new TaskInbound2(this, this.showLog, this.selector, this.start), "p2p-in"); + new Thread( + new TaskInbound2(this, this.showLog, this.selector, this.start), + "p2p-in"); // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); @@ -1061,14 +1063,24 @@ public void run() { }); for (int i = 0; i < TaskSend2.TOTAL_LANE; i++) { - Thread thrdOut = new Thread(new TaskSend2(this, i, this.sendMsgQue, - this.start, this.showLog, this.nodeMgr, this.selector), "p2p-out-" + i); + Thread thrdOut = + new Thread( + new TaskSend2( + this, + i, + this.sendMsgQue, + this.start, + this.showLog, + this.nodeMgr, + this.selector), + "p2p-out-" + i); thrdOut.setPriority(Thread.NORM_PRIORITY); thrdOut.start(); } for (int i = 0, m = Runtime.getRuntime().availableProcessors(); i < m; i++) { - Thread t = new Thread(new TaskReceive(), "p2p-worker-" + i); + Thread t = new Thread(new TaskReceive2(this.start, this.receiveMsgQue, + this.handlers, this.showLog), "p2p-worker-" + i); t.setPriority(Thread.NORM_PRIORITY); t.start(); } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java new file mode 100644 index 0000000000..b41b690bec --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java @@ -0,0 +1,49 @@ +package org.aion.p2p.impl1; + +import java.util.List; +import java.util.Map; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.Handler; +import org.aion.p2p.impl1.P2pMgr.MsgIn; + +public class TaskReceive2 implements Runnable { + private final AtomicBoolean start; + private final LinkedBlockingQueue receiveMsgQue; + private final Map> handlers; + private final boolean showLog; + + public TaskReceive2(AtomicBoolean _start, LinkedBlockingQueue _receiveMsgQue, + Map> _handlers, boolean _showLog) { + this.start = _start; + this.receiveMsgQue = _receiveMsgQue; + this.handlers = _handlers; + this.showLog = _showLog; + } + + @Override + public void run() { + while (this.start.get()) { + try { + MsgIn mi = this.receiveMsgQue.take(); + + List hs = this.handlers.get(mi.route); + if (hs == null) continue; + for (Handler hlr : hs) { + if (hlr == null) continue; + + try { + hlr.receive(mi.nid, mi.nsid, mi.msg); + } catch (Exception e) { + if (this.showLog) e.printStackTrace(); + } + } + } catch (InterruptedException e) { + if (this.showLog) System.out.println(""); + return; + } catch (Exception e) { + if (this.showLog) e.printStackTrace(); + } + } + } +} diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java index 6ce5aadead..964879fcdc 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java @@ -20,8 +20,14 @@ public class TaskSend2 implements Runnable { private boolean showLog; private int lane; - public TaskSend2(P2pMgr _mgr, int _lane, LinkedBlockingQueue _sendMsgQue, - AtomicBoolean _start, boolean _showLog, NodeMgr _nodeMgr, Selector _selector) { + public TaskSend2( + P2pMgr _mgr, + int _lane, + LinkedBlockingQueue _sendMsgQue, + AtomicBoolean _start, + boolean _showLog, + NodeMgr _nodeMgr, + Selector _selector) { this.mgr = _mgr; this.lane = _lane; @@ -42,11 +48,11 @@ public void run() { if (now - mo.timestamp > P2pConstant.WRITE_MSG_TIMEOUT) { if (showLog) System.out.println( - ""); + ""); continue; } @@ -76,24 +82,24 @@ public void run() { Object attachment = sk.attachment(); if (attachment != null) { TaskWrite tw = - new TaskWrite( - showLog, - node.getIdShort(), - node.getChannel(), - mo.msg, - (ChannelBuffer) attachment, - this.mgr); + new TaskWrite( + showLog, + node.getIdShort(), + node.getChannel(), + mo.msg, + (ChannelBuffer) attachment, + this.mgr); tw.run(); } } } else { if (showLog) System.out.println( - "" - + mo.displayId - + " node-not-exit"); + "" + + mo.displayId + + " node-not-exit"); } } catch (InterruptedException e) { if (showLog) System.out.println(""); From 91829ec2a69032b008c8f8328d0312b46fdf6edd Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 14:20:40 -0400 Subject: [PATCH 029/129] fourth refactor: separate TaskStatus --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 14 ++++++-- .../src/org/aion/p2p/impl1/TaskReceive2.java | 7 ++-- .../src/org/aion/p2p/impl1/TaskStatus2.java | 36 +++++++++++++++++++ 3 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index d5c280dfec..890487ac18 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -1079,8 +1079,14 @@ public void run() { } for (int i = 0, m = Runtime.getRuntime().availableProcessors(); i < m; i++) { - Thread t = new Thread(new TaskReceive2(this.start, this.receiveMsgQue, - this.handlers, this.showLog), "p2p-worker-" + i); + Thread t = + new Thread( + new TaskReceive2( + this.start, + this.receiveMsgQue, + this.handlers, + this.showLog), + "p2p-worker-" + i); t.setPriority(Thread.NORM_PRIORITY); t.start(); } @@ -1094,7 +1100,9 @@ public void run() { if (showStatus) scheduledWorkers.scheduleWithFixedDelay( - new TaskStatus(), 2, PERIOD_SHOW_STATUS, TimeUnit.MILLISECONDS); + new TaskStatus2(this.nodeMgr, this.selfShortId, this.sendMsgQue, + this.receiveMsgQue), 2, PERIOD_SHOW_STATUS, + TimeUnit.MILLISECONDS); if (!syncSeedsOnly) scheduledWorkers.scheduleWithFixedDelay( diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java index b41b690bec..2ee26f0229 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java @@ -13,8 +13,11 @@ public class TaskReceive2 implements Runnable { private final Map> handlers; private final boolean showLog; - public TaskReceive2(AtomicBoolean _start, LinkedBlockingQueue _receiveMsgQue, - Map> _handlers, boolean _showLog) { + public TaskReceive2( + AtomicBoolean _start, + LinkedBlockingQueue _receiveMsgQue, + Map> _handlers, + boolean _showLog) { this.start = _start; this.receiveMsgQue = _receiveMsgQue; this.handlers = _handlers; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java new file mode 100644 index 0000000000..a250b6db9a --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java @@ -0,0 +1,36 @@ +package org.aion.p2p.impl1; + +import java.util.concurrent.LinkedBlockingQueue; +import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.impl1.P2pMgr.MsgIn; +import org.aion.p2p.impl1.P2pMgr.MsgOut; + +public class TaskStatus2 implements Runnable { + private final NodeMgr nodeMgr; + private final String selfShortId; + private LinkedBlockingQueue sendMsgQue; + private LinkedBlockingQueue receiveMsgQue; + + public TaskStatus2(NodeMgr _nodeMgr, String _selfShortId, + LinkedBlockingQueue _sendMsgQue, LinkedBlockingQueue _receiveMsgQue) { + this.nodeMgr = _nodeMgr; + this.selfShortId = _selfShortId; + this.sendMsgQue = _sendMsgQue; + this.receiveMsgQue = _receiveMsgQue; + } + + @Override + public void run() { + Thread.currentThread().setName("p2p-ts"); + String status = this.nodeMgr.dumpNodeInfo(this.selfShortId); + System.out.println(status); + System.out.println( + "--------------------------------------------------------------------------------------------------------------------------------------------------------------------"); + System.out.println( + "recv queue [" + + this.receiveMsgQue.size() + + "] send queue [" + + this.sendMsgQue.size() + + "]\n"); + } +} From 0b981ec01e8c98cc85edcf84a42f4bbed57cf4e5 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 14:41:43 -0400 Subject: [PATCH 030/129] fifth refactor: separate TaskConnectPeers --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 17 +- .../org/aion/p2p/impl1/TaskConnectPeers2.java | 147 ++++++++++++++++++ .../src/org/aion/p2p/impl1/TaskStatus2.java | 19 ++- 3 files changed, 170 insertions(+), 13 deletions(-) create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 890487ac18..8cadc76435 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -643,7 +643,7 @@ private boolean validateNode(final Node _node) { } /** @param _channel SocketChannel TODO: check option */ - private void configChannel(final SocketChannel _channel) throws IOException { + void configChannel(final SocketChannel _channel) throws IOException { _channel.configureBlocking(false); _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); @@ -1100,9 +1100,14 @@ public void run() { if (showStatus) scheduledWorkers.scheduleWithFixedDelay( - new TaskStatus2(this.nodeMgr, this.selfShortId, this.sendMsgQue, - this.receiveMsgQue), 2, PERIOD_SHOW_STATUS, - TimeUnit.MILLISECONDS); + new TaskStatus2( + this.nodeMgr, + this.selfShortId, + this.sendMsgQue, + this.receiveMsgQue), + 2, + PERIOD_SHOW_STATUS, + TimeUnit.MILLISECONDS); if (!syncSeedsOnly) scheduledWorkers.scheduleWithFixedDelay( @@ -1115,7 +1120,9 @@ public void run() { thrdClear.setPriority(Thread.NORM_PRIORITY); thrdClear.start(); - Thread thrdConn = new Thread(new TaskConnectPeers(), "p2p-conn"); + Thread thrdConn = new Thread(new TaskConnectPeers2(this, this.start, this.showLog, + this.nodeMgr, this.maxActiveNodes, this.selector, this.sendMsgQue, + cachedReqHandshake1), "p2p-conn"); thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java new file mode 100644 index 0000000000..b91219f069 --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java @@ -0,0 +1,147 @@ +package org.aion.p2p.impl1; + +import java.io.IOException; +import java.net.InetSocketAddress; +import java.nio.channels.SelectionKey; +import java.nio.channels.Selector; +import java.nio.channels.SocketChannel; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.impl.comm.Node; +import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.impl.zero.msg.ReqHandshake1; +import org.aion.p2p.impl1.P2pMgr.Dest; +import org.aion.p2p.impl1.P2pMgr.MsgOut; + +public class TaskConnectPeers2 implements Runnable { + private static final int PERIOD_CONNECT_OUTBOUND = 1000; + private static final int TIMEOUT_OUTBOUND_CONNECT = 10000; + + private AtomicBoolean start; + private final boolean showLog; + private final NodeMgr nodeMgr; + private final int maxActiveNodes; + private final P2pMgr mgr; + private LinkedBlockingQueue sendMsgQue; + private Selector selector; + private ReqHandshake1 cachedReqHandshake1; + + public TaskConnectPeers2(P2pMgr _mgr, AtomicBoolean _start, boolean _showLog, NodeMgr _nodeMgr, + int _maxActiveNodes, Selector _selector, LinkedBlockingQueue _sendMsgQue, + ReqHandshake1 _cachedReqHandshake1) { + + this.start = _start; + this.showLog = _showLog; + this.nodeMgr = _nodeMgr; + this.maxActiveNodes = _maxActiveNodes; + this.mgr = _mgr; + this.selector = _selector; + this.sendMsgQue = _sendMsgQue; + this.cachedReqHandshake1 = _cachedReqHandshake1; + } + + @Override + public void run() { + Thread.currentThread().setName("p2p-tcp"); + while (this.start.get()) { + try { + Thread.sleep(PERIOD_CONNECT_OUTBOUND); + } catch (InterruptedException e) { + if (this.showLog) System.out.println(""); + } + + if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { + if (this.showLog) System.out.println(""); + continue; + } + + Node node; + try { + node = this.nodeMgr.tempNodesTake(); + if (this.nodeMgr.isSeedIp(node.getIpStr())) node.setFromBootList(true); + if (node.getIfFromBootList()) this.nodeMgr.addTempNode(node); + // if (node.peerMetric.shouldNotConn()) { + // continue; + // } + } catch (InterruptedException e) { + if (this.showLog) System.out.println(""); + return; + } catch (Exception e) { + if (this.showLog) e.printStackTrace(); + continue; + } + int nodeIdHash = node.getIdHash(); + if (!this.nodeMgr.getOutboundNodes().containsKey(nodeIdHash) + && !this.nodeMgr.hasActiveNode(nodeIdHash)) { + int _port = node.getPort(); + try { + SocketChannel channel = SocketChannel.open(); + + channel.socket() + .connect( + new InetSocketAddress(node.getIpStr(), _port), + TIMEOUT_OUTBOUND_CONNECT); + this.mgr.configChannel(channel); + + if (channel.finishConnect() && channel.isConnected()) { + + if (this.showLog) + System.out.println( + ""); + + SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); + ChannelBuffer rb = new ChannelBuffer(this.showLog); + rb.displayId = node.getIdShort(); + rb.nodeIdHash = nodeIdHash; + sk.attach(rb); + + node.refreshTimestamp(); + node.setChannel(channel); + this.nodeMgr.addOutboundNode(node); + + if (this.showLog) + System.out.println( + " id=" + + node.getIdShort() + + " ip=" + + node.getIpStr() + + ">"); + this.sendMsgQue.offer( + new MsgOut( + node.getIdHash(), + node.getIdShort(), + this.cachedReqHandshake1, + Dest.OUTBOUND)); + // node.peerMetric.decFailedCount(); + + } else { + if (this.showLog) + System.out.println( + ""); + channel.close(); + // node.peerMetric.incFailedCount(); + } + } catch (IOException e) { + if (this.showLog) + System.out.println( + ""); + // node.peerMetric.incFailedCount(); + } catch (Exception e) { + if (this.showLog) e.printStackTrace(); + } + } + } + } +} diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java index a250b6db9a..ad2507d8dc 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java @@ -11,8 +11,11 @@ public class TaskStatus2 implements Runnable { private LinkedBlockingQueue sendMsgQue; private LinkedBlockingQueue receiveMsgQue; - public TaskStatus2(NodeMgr _nodeMgr, String _selfShortId, - LinkedBlockingQueue _sendMsgQue, LinkedBlockingQueue _receiveMsgQue) { + public TaskStatus2( + NodeMgr _nodeMgr, + String _selfShortId, + LinkedBlockingQueue _sendMsgQue, + LinkedBlockingQueue _receiveMsgQue) { this.nodeMgr = _nodeMgr; this.selfShortId = _selfShortId; this.sendMsgQue = _sendMsgQue; @@ -25,12 +28,12 @@ public void run() { String status = this.nodeMgr.dumpNodeInfo(this.selfShortId); System.out.println(status); System.out.println( - "--------------------------------------------------------------------------------------------------------------------------------------------------------------------"); + "--------------------------------------------------------------------------------------------------------------------------------------------------------------------"); System.out.println( - "recv queue [" - + this.receiveMsgQue.size() - + "] send queue [" - + this.sendMsgQue.size() - + "]\n"); + "recv queue [" + + this.receiveMsgQue.size() + + "] send queue [" + + this.sendMsgQue.size() + + "]\n"); } } From 44e73a0eb19a458b72e8f71f24c2454df0066e74 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 15:11:38 -0400 Subject: [PATCH 031/129] sixth refactor: separate TaskClear --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 446 +----------------- .../src/org/aion/p2p/impl1/TaskClear2.java | 57 +++ .../org/aion/p2p/impl1/TaskConnectPeers2.java | 73 +-- 3 files changed, 111 insertions(+), 465 deletions(-) create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/TaskClear2.java diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 8cadc76435..bc838803dd 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -134,160 +134,6 @@ static class MsgIn { private static ReqHandshake1 cachedReqHandshake1; private static ResHandshake1 cachedResHandshake1; - private final class TaskInbound implements Runnable { - @Override - public void run() { - - // read buffer pre-alloc. @ max_body_size - ByteBuffer readBuf = ByteBuffer.allocate(P2pConstant.MAX_BODY_SIZE); - - while (start.get()) { - - try { - Thread.sleep(0, 1); - } catch (Exception e) { - } - - int num; - try { - num = selector.selectNow(); - } catch (IOException e) { - if (showLog) System.out.println(""); - continue; - } - - if (num == 0) { - continue; - } - - Iterator keys = selector.selectedKeys().iterator(); - - while (keys.hasNext() && (num-- > 0)) { - - final SelectionKey sk = keys.next(); - keys.remove(); - - try { - - if (!sk.isValid()) continue; - - if (sk.isAcceptable()) accept(); - - if (sk.isReadable()) { - - readBuf.rewind(); - - ChannelBuffer chanBuf = (ChannelBuffer) (sk.attachment()); - try { - - int ret; - int cnt = 0; - - while ((ret = ((SocketChannel) sk.channel()).read(readBuf)) > 0) { - cnt += ret; - } - - // read empty select key, continue. - if (cnt <= 0) { - continue; - } - - int prevCnt = cnt + chanBuf.buffRemain; - ByteBuffer forRead; - - if (chanBuf.buffRemain != 0) { - byte[] alreadyRead = new byte[cnt]; - - readBuf.position(0); - readBuf.get(alreadyRead); - forRead = ByteBuffer.allocate(prevCnt); - forRead.put(chanBuf.remainBuffer); - forRead.put(alreadyRead); - } else { - forRead = readBuf; - } - - do { - cnt = read(sk, forRead, prevCnt); - - if (prevCnt == cnt) { - break; - } else prevCnt = cnt; - - } while (cnt > 0); - - // check if really read data. - if (cnt > prevCnt) { - chanBuf.buffRemain = 0; - throw new P2pException( - "IO read overflow! suppose read:" - + prevCnt - + " real left:" - + cnt); - } - - chanBuf.buffRemain = cnt; - - if (cnt == 0) { - readBuf.rewind(); - } else { - // there are no perfect cycling buffer in jdk - // yet. - // simply just buff move for now. - // @TODO: looking for more efficient way. - - int currPos = forRead.position(); - chanBuf.remainBuffer = new byte[cnt]; - forRead.position(currPos - cnt); - forRead.get(chanBuf.remainBuffer); - readBuf.rewind(); - } - - } catch (NullPointerException e) { - closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-null-exception"); - chanBuf.isClosed.set(true); - } catch (P2pException e) { - closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-p2p-exception"); - chanBuf.isClosed.set(true); - - } catch (ClosedChannelException e) { - closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-closed-channel-exception"); - - } catch (IOException e) { - closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId - + "-read-msg-io-exception: " - + e.getMessage()); - chanBuf.isClosed.set(true); - - } catch (CancelledKeyException e) { - chanBuf.isClosed.set(true); - closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-key-cancelled-exception"); - } catch (Exception e) { - if (showLog) System.out.println(""); - } - } - } catch (Exception ex) { - if (showLog) { - System.out.println(""); - ex.printStackTrace(); - } - } - } - } - if (showLog) System.out.println(""); - } - } - // hash mapping channel id to write thread. int hash2Lane(int in) { in ^= in >> (32 - 5); @@ -298,280 +144,6 @@ int hash2Lane(int in) { return in & 0b11111; } - private final class TaskSend implements Runnable { - - static final int TOTAL_LANE = (1 << 5) - 1; - int lane; - - TaskSend(int _lane) { - this.lane = _lane; - } - - @Override - public void run() { - while (P2pMgr.this.start.get()) { - try { - MsgOut mo = sendMsgQue.take(); - // if timeout , throw away this msg. - long now = System.currentTimeMillis(); - if (now - mo.timestamp > P2pConstant.WRITE_MSG_TIMEOUT) { - if (showLog) - System.out.println( - ""); - continue; - } - - // if not belong to current lane, put it back. - int targetLane = hash2Lane(mo.nodeId); - if (targetLane != lane) { - sendMsgQue.offer(mo); - continue; - } - - Node node = null; - switch (mo.dest) { - case ACTIVE: - node = nodeMgr.getActiveNode(mo.nodeId); - break; - case INBOUND: - node = nodeMgr.getInboundNode(mo.nodeId); - break; - case OUTBOUND: - node = nodeMgr.getOutboundNode(mo.nodeId); - break; - } - - if (node != null) { - SelectionKey sk = node.getChannel().keyFor(selector); - if (sk != null) { - Object attachment = sk.attachment(); - if (attachment != null) { - TaskWrite tw = - new TaskWrite( - showLog, - node.getIdShort(), - node.getChannel(), - mo.msg, - (ChannelBuffer) attachment, - P2pMgr.this); - tw.run(); - } - } - } else { - if (showLog) - System.out.println( - "" - + mo.displayId - + " node-not-exit"); - } - } catch (InterruptedException e) { - if (showLog) System.out.println(""); - return; - } catch (Exception e) { - if (showLog) e.printStackTrace(); - } - } - } - } - - private final class TaskReceive implements Runnable { - @Override - public void run() { - - while (P2pMgr.this.start.get()) { - try { - MsgIn mi = receiveMsgQue.take(); - - List hs = handlers.get(mi.route); - if (hs == null) continue; - for (Handler hlr : hs) { - if (hlr == null) continue; - - try { - hlr.receive(mi.nid, mi.nsid, mi.msg); - } catch (Exception e) { - if (showLog) e.printStackTrace(); - } - } - } catch (InterruptedException e) { - if (showLog) System.out.println(""); - return; - } catch (Exception e) { - if (showLog) e.printStackTrace(); - } - } - } - } - - private final class TaskStatus implements Runnable { - @Override - public void run() { - Thread.currentThread().setName("p2p-ts"); - String status = nodeMgr.dumpNodeInfo(selfShortId); - System.out.println(status); - System.out.println( - "--------------------------------------------------------------------------------------------------------------------------------------------------------------------"); - System.out.println( - "recv queue [" - + receiveMsgQue.size() - + "] send queue [" - + sendMsgQue.size() - + "]\n"); - } - } - - private final class TaskConnectPeers implements Runnable { - @Override - public void run() { - Thread.currentThread().setName("p2p-tcp"); - while (start.get()) { - try { - Thread.sleep(PERIOD_CONNECT_OUTBOUND); - } catch (InterruptedException e) { - if (showLog) System.out.println(""); - } - - if (nodeMgr.activeNodesSize() >= maxActiveNodes) { - if (showLog) System.out.println(""); - continue; - } - - Node node; - try { - node = nodeMgr.tempNodesTake(); - if (nodeMgr.isSeedIp(node.getIpStr())) node.setFromBootList(true); - if (node.getIfFromBootList()) nodeMgr.addTempNode(node); - // if (node.peerMetric.shouldNotConn()) { - // continue; - // } - } catch (InterruptedException e) { - if (showLog) System.out.println(""); - return; - } catch (Exception e) { - if (showLog) e.printStackTrace(); - continue; - } - int nodeIdHash = node.getIdHash(); - if (!nodeMgr.getOutboundNodes().containsKey(nodeIdHash) - && !nodeMgr.hasActiveNode(nodeIdHash)) { - int _port = node.getPort(); - try { - SocketChannel channel = SocketChannel.open(); - - channel.socket() - .connect( - new InetSocketAddress(node.getIpStr(), _port), - TIMEOUT_OUTBOUND_CONNECT); - configChannel(channel); - - if (channel.finishConnect() && channel.isConnected()) { - - if (showLog) - System.out.println( - ""); - - SelectionKey sk = channel.register(selector, SelectionKey.OP_READ); - ChannelBuffer rb = new ChannelBuffer(P2pMgr.this.showLog); - rb.displayId = node.getIdShort(); - rb.nodeIdHash = nodeIdHash; - sk.attach(rb); - - node.refreshTimestamp(); - node.setChannel(channel); - nodeMgr.addOutboundNode(node); - - if (showLog) - System.out.println( - " id=" - + node.getIdShort() - + " ip=" - + node.getIpStr() - + ">"); - sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - cachedReqHandshake1, - Dest.OUTBOUND)); - // node.peerMetric.decFailedCount(); - - } else { - if (showLog) - System.out.println( - ""); - channel.close(); - // node.peerMetric.incFailedCount(); - } - } catch (IOException e) { - if (showLog) - System.out.println( - ""); - // node.peerMetric.incFailedCount(); - } catch (Exception e) { - if (showLog) e.printStackTrace(); - } - } - } - } - } - - private final class TaskClear implements Runnable { - @Override - public void run() { - Thread.currentThread().setName("p2p-clr"); - while (start.get()) { - try { - Thread.sleep(PERIOD_CLEAR); - - nodeMgr.timeoutInbound(P2pMgr.this); - - Iterator outboundIt = nodeMgr.getOutboundNodes().keySet().iterator(); - while (outboundIt.hasNext()) { - - Object obj = outboundIt.next(); - - if (obj == null) continue; - - int nodeIdHash = (int) obj; - Node node = nodeMgr.getOutboundNodes().get(nodeIdHash); - - if (node == null) continue; - - if (System.currentTimeMillis() - node.getTimestamp() - > TIMEOUT_OUTBOUND_NODES) { - closeSocket( - node.getChannel(), - "outbound-timeout node=" + node.getIdShort()); - outboundIt.remove(); - } - } - - nodeMgr.timeoutActive(P2pMgr.this); - - } catch (Exception e) { - } - } - } - } - /** * @param _nodeId byte[36] * @param _ip String @@ -1116,13 +688,23 @@ public void run() { PERIOD_REQUEST_ACTIVE_NODES, TimeUnit.MILLISECONDS); - Thread thrdClear = new Thread(new TaskClear(), "p2p-clear"); + Thread thrdClear = new Thread(new TaskClear2(this, this.nodeMgr, this.start), + "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); thrdClear.start(); - Thread thrdConn = new Thread(new TaskConnectPeers2(this, this.start, this.showLog, - this.nodeMgr, this.maxActiveNodes, this.selector, this.sendMsgQue, - cachedReqHandshake1), "p2p-conn"); + Thread thrdConn = + new Thread( + new TaskConnectPeers2( + this, + this.start, + this.showLog, + this.nodeMgr, + this.maxActiveNodes, + this.selector, + this.sendMsgQue, + cachedReqHandshake1), + "p2p-conn"); thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskClear2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskClear2.java new file mode 100644 index 0000000000..5907191150 --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskClear2.java @@ -0,0 +1,57 @@ +package org.aion.p2p.impl1; + +import java.util.Iterator; +import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.impl.comm.Node; +import org.aion.p2p.impl.comm.NodeMgr; + +public class TaskClear2 implements Runnable { + private static final int PERIOD_CLEAR = 20000; + private static final int TIMEOUT_OUTBOUND_NODES = 20000; + + private final P2pMgr mgr; + private final NodeMgr nodeMgr; + private AtomicBoolean start; + + public TaskClear2(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { + this.mgr = _mgr; + this.nodeMgr = _nodeMgr; + this.start = _start; + } + + @Override + public void run() { + while (start.get()) { + try { + Thread.sleep(PERIOD_CLEAR); + + nodeMgr.timeoutInbound(this.mgr); + + Iterator outboundIt = nodeMgr.getOutboundNodes().keySet().iterator(); + while (outboundIt.hasNext()) { + + Object obj = outboundIt.next(); + + if (obj == null) continue; + + int nodeIdHash = (int) obj; + Node node = nodeMgr.getOutboundNodes().get(nodeIdHash); + + if (node == null) continue; + + if (System.currentTimeMillis() - node.getTimestamp() + > TIMEOUT_OUTBOUND_NODES) { + this.mgr.closeSocket( + node.getChannel(), + "outbound-timeout node=" + node.getIdShort()); + outboundIt.remove(); + } + } + + nodeMgr.timeoutActive(this.mgr); + + } catch (Exception e) { + } + } + } +} diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java index b91219f069..e570636bbc 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java @@ -26,9 +26,15 @@ public class TaskConnectPeers2 implements Runnable { private Selector selector; private ReqHandshake1 cachedReqHandshake1; - public TaskConnectPeers2(P2pMgr _mgr, AtomicBoolean _start, boolean _showLog, NodeMgr _nodeMgr, - int _maxActiveNodes, Selector _selector, LinkedBlockingQueue _sendMsgQue, - ReqHandshake1 _cachedReqHandshake1) { + public TaskConnectPeers2( + P2pMgr _mgr, + AtomicBoolean _start, + boolean _showLog, + NodeMgr _nodeMgr, + int _maxActiveNodes, + Selector _selector, + LinkedBlockingQueue _sendMsgQue, + ReqHandshake1 _cachedReqHandshake1) { this.start = _start; this.showLog = _showLog; @@ -51,7 +57,8 @@ public void run() { } if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { - if (this.showLog) System.out.println(""); + if (this.showLog) + System.out.println(""); continue; } @@ -72,26 +79,26 @@ public void run() { } int nodeIdHash = node.getIdHash(); if (!this.nodeMgr.getOutboundNodes().containsKey(nodeIdHash) - && !this.nodeMgr.hasActiveNode(nodeIdHash)) { + && !this.nodeMgr.hasActiveNode(nodeIdHash)) { int _port = node.getPort(); try { SocketChannel channel = SocketChannel.open(); channel.socket() - .connect( - new InetSocketAddress(node.getIpStr(), _port), - TIMEOUT_OUTBOUND_CONNECT); + .connect( + new InetSocketAddress(node.getIpStr(), _port), + TIMEOUT_OUTBOUND_CONNECT); this.mgr.configChannel(channel); if (channel.finishConnect() && channel.isConnected()) { if (this.showLog) System.out.println( - ""); + ""); SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); ChannelBuffer rb = new ChannelBuffer(this.showLog); @@ -105,38 +112,38 @@ public void run() { if (this.showLog) System.out.println( - " id=" - + node.getIdShort() - + " ip=" - + node.getIpStr() - + ">"); + " id=" + + node.getIdShort() + + " ip=" + + node.getIpStr() + + ">"); this.sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - this.cachedReqHandshake1, - Dest.OUTBOUND)); + new MsgOut( + node.getIdHash(), + node.getIdShort(), + this.cachedReqHandshake1, + Dest.OUTBOUND)); // node.peerMetric.decFailedCount(); } else { if (this.showLog) System.out.println( - ""); + ""); channel.close(); // node.peerMetric.incFailedCount(); } } catch (IOException e) { if (this.showLog) System.out.println( - ""); + ""); // node.peerMetric.incFailedCount(); } catch (Exception e) { if (this.showLog) e.printStackTrace(); From 4d8faec410a85b99a41d93f8321541537afffbbf Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 16:56:56 -0400 Subject: [PATCH 032/129] moved MsgOut/In classes, renames and cleanups --- modP2p/src/org/aion/p2p/IP2pMgr.java | 4 +- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 338 ++++++++---------- .../impl1/{TaskClear2.java => TaskClear.java} | 10 +- ...nnectPeers2.java => TaskConnectPeers.java} | 29 +- .../{TaskInbound2.java => TaskInbound.java} | 16 +- .../{TaskReceive2.java => TaskReceive.java} | 27 +- .../impl1/{TaskSend2.java => TaskSend.java} | 56 ++- .../{TaskStatus2.java => TaskStatus.java} | 8 +- 8 files changed, 239 insertions(+), 249 deletions(-) rename modP2pImpl/src/org/aion/p2p/impl1/{TaskClear2.java => TaskClear.java} (81%) rename modP2pImpl/src/org/aion/p2p/impl1/{TaskConnectPeers2.java => TaskConnectPeers.java} (88%) rename modP2pImpl/src/org/aion/p2p/impl1/{TaskInbound2.java => TaskInbound.java} (92%) rename modP2pImpl/src/org/aion/p2p/impl1/{TaskReceive2.java => TaskReceive.java} (72%) rename modP2pImpl/src/org/aion/p2p/impl1/{TaskSend2.java => TaskSend.java} (71%) rename modP2pImpl/src/org/aion/p2p/impl1/{TaskStatus2.java => TaskStatus.java} (89%) diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index 58cb082578..64efa4173f 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -56,12 +56,12 @@ public interface IP2pMgr { void send(int _id, String _displayId, final Msg _msg); /** - * Used to hook up with kernel to shutdown threads in network module + * Used to hook up with kernel to shutdown threads in network module. */ void shutdown(); /** - * start all p2p process + * Starts all p2p processes. */ void run(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index bc838803dd..d7bd563e28 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -41,24 +41,23 @@ import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; import org.aion.p2p.impl.zero.msg.*; +import org.aion.p2p.impl1.TaskReceive.MsgIn; +import org.aion.p2p.impl1.TaskSend.MsgOut; import org.apache.commons.collections4.map.LRUMap; /** @author Chris p2p://{uuid}@{ip}:{port} */ public final class P2pMgr implements IP2pMgr { - private static final int PERIOD_SHOW_STATUS = 10000; private static final int PERIOD_REQUEST_ACTIVE_NODES = 1000; - private static final int PERIOD_CONNECT_OUTBOUND = 1000; - private static final int PERIOD_CLEAR = 20000; private static final int PERIOD_UPNP_PORT_MAPPING = 3600000; - - private static final int TIMEOUT_OUTBOUND_CONNECT = 10000; - private static final int TIMEOUT_OUTBOUND_NODES = 20000; private static final int TIMEOUT_MSG_READ = 10000; + // TODO: need refactor by passing the parameter in the later version. + private static final int txBroadCastRoute = + (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); + private final int maxTempNodes; private final int maxActiveNodes; - private final boolean syncSeedsOnly; private final boolean showStatus; private final boolean showLog; @@ -70,79 +69,24 @@ public final class P2pMgr implements IP2pMgr { private final byte[] selfIp; private final int selfPort; private final boolean upnpEnable; + private final NodeMgr nodeMgr; private final Map> handlers = new ConcurrentHashMap<>(); private final Set versions = new HashSet<>(); - - private final NodeMgr nodeMgr; + private final Map errCnt = Collections.synchronizedMap(new LRUMap<>(128)); private ServerSocketChannel tcpServer; private Selector selector; - private ScheduledThreadPoolExecutor scheduledWorkers; - - private final Map errCnt = Collections.synchronizedMap(new LRUMap<>(128)); - private int errTolerance; - - // TODO: need refactor by passing the parameter in the later version. - private static final int txBroadCastRoute = - (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); - - enum Dest { - INBOUND, - OUTBOUND, - ACTIVE - } - - static class MsgOut { - MsgOut(int _nodeId, String _displayId, Msg _msg, Dest _dest) { - nodeId = _nodeId; - displayId = _displayId; - msg = _msg; - dest = _dest; - timestamp = System.currentTimeMillis(); - } - - int nodeId; - String displayId; - Msg msg; - Dest dest; - long timestamp; - } - - static class MsgIn { - MsgIn(int nid, String nsid, int route, byte[] msg) { - this.nid = nid; - this.nsid = nsid; - this.route = route; - this.msg = msg; - } - - int nid; - String nsid; - int route; - byte[] msg; - } - private LinkedBlockingQueue sendMsgQue = new LinkedBlockingQueue<>(); - private LinkedBlockingQueue receiveMsgQue = new LinkedBlockingQueue<>(); - private AtomicBoolean start = new AtomicBoolean(true); private static ReqHandshake1 cachedReqHandshake1; private static ResHandshake1 cachedResHandshake1; - // hash mapping channel id to write thread. - int hash2Lane(int in) { - in ^= in >> (32 - 5); - in ^= in >> (32 - 10); - in ^= in >> (32 - 15); - in ^= in >> (32 - 20); - in ^= in >> (32 - 25); - return in & 0b11111; - } + enum Dest { INBOUND, OUTBOUND, ACTIVE } /** * @param _nodeId byte[36] @@ -156,19 +100,20 @@ int hash2Lane(int in) { * @param _showLog boolean */ public P2pMgr( - int _netId, - String _revision, - String _nodeId, - String _ip, - int _port, - final String[] _bootNodes, - boolean _upnpEnable, - int _maxTempNodes, - int _maxActiveNodes, - boolean _showStatus, - boolean _showLog, - boolean _bootlistSyncOnly, - int _errorTolerance) { + int _netId, + String _revision, + String _nodeId, + String _ip, + int _port, + final String[] _bootNodes, + boolean _upnpEnable, + int _maxTempNodes, + int _maxActiveNodes, + boolean _showStatus, + boolean _showLog, + boolean _bootlistSyncOnly, + int _errorTolerance) { + this.selfNetId = _netId; this.selfRevision = _revision; this.selfNodeId = _nodeId.getBytes(); @@ -199,47 +144,6 @@ public P2pMgr( cachedResHandshake1 = new ResHandshake1(true, this.selfRevision); } - /** - * @param _node Node - * @return boolean - */ - private boolean validateNode(final Node _node) { - if (_node != null) { - boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); - boolean notSameIpOrPort = - !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); - boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); - boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); - return notSelfId && notSameIpOrPort && notActive && notOutbound; - } else return false; - } - - /** @param _channel SocketChannel TODO: check option */ - void configChannel(final SocketChannel _channel) throws IOException { - _channel.configureBlocking(false); - _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); - - // set buffer to 256k. - _channel.socket().setReceiveBufferSize(P2pConstant.RECV_BUFFER_SIZE); - _channel.socket().setSendBufferSize(P2pConstant.SEND_BUFFER_SIZE); - // _channel.setOption(StandardSocketOptions.SO_KEEPALIVE, true); - // _channel.setOption(StandardSocketOptions.TCP_NODELAY, true); - // _channel.setOption(StandardSocketOptions.SO_REUSEADDR, true); - } - - /** @param _sc SocketChannel */ - public void closeSocket(final SocketChannel _sc, String _reason) { - if (showLog) System.out.println(""); - - try { - SelectionKey sk = _sc.keyFor(selector); - _sc.close(); - if (sk != null) sk.cancel(); - } catch (IOException e) { - if (showLog) System.out.println(""); - } - } - void accept() { SocketChannel channel; try { @@ -277,7 +181,7 @@ void accept() { * @throws IOException IOException */ private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + throws IOException { if (cnt < Header.LEN) return cnt; @@ -300,7 +204,7 @@ private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) * @throws IOException IOException */ private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + throws IOException { int bodyLen = _cb.header.getLen(); @@ -363,26 +267,26 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce int route = h.getRoute(); boolean underRC = - rb.shouldRoute( - route, - ((route == txBroadCastRoute) - ? P2pConstant.READ_MAX_RATE_TXBC - : P2pConstant.READ_MAX_RATE)); + rb.shouldRoute( + route, + ((route == txBroadCastRoute) + ? P2pConstant.READ_MAX_RATE_TXBC + : P2pConstant.READ_MAX_RATE)); if (!underRC) { if (showLog) System.out.println( - ""); + ""); return currCnt; } @@ -395,22 +299,22 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce } catch (Exception ex) { if (showLog) System.out.println( - ""); + ""); } break; case Ctrl.SYNC: if (!handlers.containsKey(route)) { if (showLog) System.out.println( - ""); + ""); return currCnt; } @@ -419,15 +323,15 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce default: if (showLog) System.out.println( - ""); + ""); break; } break; @@ -440,12 +344,51 @@ int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOExce return currCnt; } + /** + * @param _node Node + * @return boolean + */ + private boolean validateNode(final Node _node) { + if (_node != null) { + boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); + boolean notSameIpOrPort = + !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); + boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); + boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); + return notSelfId && notSameIpOrPort && notActive && notOutbound; + } else return false; + } + + /** @param _channel SocketChannel TODO: check option */ + void configChannel(final SocketChannel _channel) throws IOException { + _channel.configureBlocking(false); + _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); + + // set buffer to 256k. + _channel.socket().setReceiveBufferSize(P2pConstant.RECV_BUFFER_SIZE); + _channel.socket().setSendBufferSize(P2pConstant.SEND_BUFFER_SIZE); + // _channel.setOption(StandardSocketOptions.SO_KEEPALIVE, true); + // _channel.setOption(StandardSocketOptions.TCP_NODELAY, true); + // _channel.setOption(StandardSocketOptions.SO_REUSEADDR, true); + } + + /** @param _sc SocketChannel */ + public void closeSocket(final SocketChannel _sc, String _reason) { + if (showLog) System.out.println(""); + + try { + SelectionKey sk = _sc.keyFor(selector); + _sc.close(); + if (sk != null) sk.cancel(); + } catch (IOException e) { + if (showLog) System.out.println(""); + } + } + /** @return boolean TODO: implementation */ private boolean handshakeRuleCheck(int netId) { - // check net id if (netId != selfNetId) return false; - // check supported protocol versions return true; } @@ -609,7 +552,7 @@ public void run() { Thread thrdIn = new Thread( - new TaskInbound2(this, this.showLog, this.selector, this.start), + new TaskInbound(this, this.selector, this.start), "p2p-in"); // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); @@ -634,15 +577,14 @@ public void run() { + ">"); }); - for (int i = 0; i < TaskSend2.TOTAL_LANE; i++) { + for (int i = 0; i < TaskSend.TOTAL_LANE; i++) { Thread thrdOut = new Thread( - new TaskSend2( + new TaskSend( this, i, this.sendMsgQue, this.start, - this.showLog, this.nodeMgr, this.selector), "p2p-out-" + i); @@ -653,7 +595,7 @@ public void run() { for (int i = 0, m = Runtime.getRuntime().availableProcessors(); i < m; i++) { Thread t = new Thread( - new TaskReceive2( + new TaskReceive( this.start, this.receiveMsgQue, this.handlers, @@ -672,7 +614,7 @@ public void run() { if (showStatus) scheduledWorkers.scheduleWithFixedDelay( - new TaskStatus2( + new TaskStatus( this.nodeMgr, this.selfShortId, this.sendMsgQue, @@ -688,17 +630,16 @@ public void run() { PERIOD_REQUEST_ACTIVE_NODES, TimeUnit.MILLISECONDS); - Thread thrdClear = new Thread(new TaskClear2(this, this.nodeMgr, this.start), - "p2p-clear"); + Thread thrdClear = + new Thread(new TaskClear(this, this.nodeMgr, this.start), "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); thrdClear.start(); Thread thrdConn = new Thread( - new TaskConnectPeers2( + new TaskConnectPeers( this, this.start, - this.showLog, this.nodeMgr, this.maxActiveNodes, this.selector, @@ -713,20 +654,6 @@ public void run() { } } - @Override - public INode getRandom() { - return nodeMgr.getRandom(); - } - - @Override - public Map getActiveNodes() { - return new HashMap<>(this.nodeMgr.getActiveNodesMap()); - } - - public int getTempNodesCount() { - return nodeMgr.tempNodesSize(); - } - @Override public void register(final List _cbs) { for (Handler _cb : _cbs) { @@ -783,16 +710,6 @@ public List versions() { return new ArrayList<>(versions); } - @Override - public int chainId() { - return selfNetId; - } - - @Override - public int getSelfIdHash() { - return this.selfNodeIdHash; - } - /** * Remove an active node if exists. * @@ -803,10 +720,6 @@ void dropActive(int _nodeIdHash, String _reason) { nodeMgr.dropActive(_nodeIdHash, this, _reason); } - public boolean isShowLog() { - return showLog; - } - @Override public void errCheck(int _nodeIdHash, String _displayId) { int cnt = (errCnt.get(_nodeIdHash) == null ? 1 : (errCnt.get(_nodeIdHash) + 1)); @@ -830,4 +743,35 @@ private void ban(int nodeIdHashcode) { nodeMgr.ban(nodeIdHashcode); nodeMgr.dropActive(nodeIdHashcode, this, "ban"); } -} + + + + @Override + public INode getRandom() { + return this.nodeMgr.getRandom(); + } + + @Override + public Map getActiveNodes() { + return new HashMap<>(this.nodeMgr.getActiveNodesMap()); + } + + @Override + public int chainId() { + return this.selfNetId; + } + + @Override + public int getSelfIdHash() { + return this.selfNodeIdHash; + } + + @Override + public boolean isShowLog() { + return this.showLog; + } + + public int getTempNodesCount() { + return this.nodeMgr.tempNodesSize(); + } +} \ No newline at end of file diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskClear2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java similarity index 81% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskClear2.java rename to modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java index 5907191150..5ed5581837 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskClear2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java @@ -5,7 +5,7 @@ import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; -public class TaskClear2 implements Runnable { +public class TaskClear implements Runnable { private static final int PERIOD_CLEAR = 20000; private static final int TIMEOUT_OUTBOUND_NODES = 20000; @@ -13,7 +13,7 @@ public class TaskClear2 implements Runnable { private final NodeMgr nodeMgr; private AtomicBoolean start; - public TaskClear2(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { + public TaskClear(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { this.mgr = _mgr; this.nodeMgr = _nodeMgr; this.start = _start; @@ -39,11 +39,9 @@ public void run() { if (node == null) continue; - if (System.currentTimeMillis() - node.getTimestamp() - > TIMEOUT_OUTBOUND_NODES) { + if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_OUTBOUND_NODES) { this.mgr.closeSocket( - node.getChannel(), - "outbound-timeout node=" + node.getIdShort()); + node.getChannel(), "outbound-timeout node=" + node.getIdShort()); outboundIt.remove(); } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java similarity index 88% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java rename to modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java index e570636bbc..cbd7a9bd12 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java @@ -11,14 +11,13 @@ import org.aion.p2p.impl.comm.NodeMgr; import org.aion.p2p.impl.zero.msg.ReqHandshake1; import org.aion.p2p.impl1.P2pMgr.Dest; -import org.aion.p2p.impl1.P2pMgr.MsgOut; +import org.aion.p2p.impl1.TaskSend.MsgOut; -public class TaskConnectPeers2 implements Runnable { +public class TaskConnectPeers implements Runnable { private static final int PERIOD_CONNECT_OUTBOUND = 1000; private static final int TIMEOUT_OUTBOUND_CONNECT = 10000; private AtomicBoolean start; - private final boolean showLog; private final NodeMgr nodeMgr; private final int maxActiveNodes; private final P2pMgr mgr; @@ -26,10 +25,9 @@ public class TaskConnectPeers2 implements Runnable { private Selector selector; private ReqHandshake1 cachedReqHandshake1; - public TaskConnectPeers2( + public TaskConnectPeers( P2pMgr _mgr, AtomicBoolean _start, - boolean _showLog, NodeMgr _nodeMgr, int _maxActiveNodes, Selector _selector, @@ -37,7 +35,6 @@ public TaskConnectPeers2( ReqHandshake1 _cachedReqHandshake1) { this.start = _start; - this.showLog = _showLog; this.nodeMgr = _nodeMgr; this.maxActiveNodes = _maxActiveNodes; this.mgr = _mgr; @@ -53,11 +50,11 @@ public void run() { try { Thread.sleep(PERIOD_CONNECT_OUTBOUND); } catch (InterruptedException e) { - if (this.showLog) System.out.println(""); + if (this.mgr.isShowLog()) System.out.println(""); } if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { - if (this.showLog) + if (this.mgr.isShowLog()) System.out.println(""); continue; } @@ -71,10 +68,10 @@ public void run() { // continue; // } } catch (InterruptedException e) { - if (this.showLog) System.out.println(""); + if (this.mgr.isShowLog()) System.out.println(""); return; } catch (Exception e) { - if (this.showLog) e.printStackTrace(); + if (this.mgr.isShowLog()) e.printStackTrace(); continue; } int nodeIdHash = node.getIdHash(); @@ -92,7 +89,7 @@ public void run() { if (channel.finishConnect() && channel.isConnected()) { - if (this.showLog) + if (this.mgr.isShowLog()) System.out.println( ""); SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); - ChannelBuffer rb = new ChannelBuffer(this.showLog); + ChannelBuffer rb = new ChannelBuffer(this.mgr.isShowLog()); rb.displayId = node.getIdShort(); rb.nodeIdHash = nodeIdHash; sk.attach(rb); @@ -110,7 +107,7 @@ public void run() { node.setChannel(channel); this.nodeMgr.addOutboundNode(node); - if (this.showLog) + if (this.mgr.isShowLog()) System.out.println( " id=" + node.getIdShort() @@ -126,7 +123,7 @@ public void run() { // node.peerMetric.decFailedCount(); } else { - if (this.showLog) + if (this.mgr.isShowLog()) System.out.println( ""); // node.peerMetric.incFailedCount(); } catch (Exception e) { - if (this.showLog) e.printStackTrace(); + if (this.mgr.isShowLog()) e.printStackTrace(); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java similarity index 92% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java rename to modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java index 82c564567e..2f62103211 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java @@ -11,15 +11,12 @@ import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.P2pConstant; -public class TaskInbound2 implements Runnable { - +public class TaskInbound implements Runnable { private AtomicBoolean start; - private final boolean showLog; private final P2pMgr mgr; private final Selector selector; - public TaskInbound2(P2pMgr _mgr, boolean _showLog, Selector _selector, AtomicBoolean _start) { - this.showLog = _showLog; + public TaskInbound(P2pMgr _mgr, Selector _selector, AtomicBoolean _start) { this.mgr = _mgr; this.selector = _selector; this.start = _start; @@ -42,7 +39,7 @@ public void run() { try { num = this.selector.selectNow(); } catch (IOException e) { - if (showLog) System.out.println(""); + if (this.mgr.isShowLog()) System.out.println(""); continue; } @@ -163,17 +160,18 @@ public void run() { (SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-key-cancelled-exception"); } catch (Exception e) { - if (showLog) System.out.println(""); + if (this.mgr.isShowLog()) System.out.println(""); } } } catch (Exception ex) { - if (showLog) { + if (this.mgr.isShowLog()) { System.out.println(""); ex.printStackTrace(); } } } } - if (showLog) System.out.println(""); + if (this.mgr.isShowLog()) System.out.println(""); } + } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java similarity index 72% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java rename to modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java index 2ee26f0229..229bd82a9f 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java @@ -5,15 +5,14 @@ import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.Handler; -import org.aion.p2p.impl1.P2pMgr.MsgIn; -public class TaskReceive2 implements Runnable { +public class TaskReceive implements Runnable { private final AtomicBoolean start; private final LinkedBlockingQueue receiveMsgQue; private final Map> handlers; private final boolean showLog; - public TaskReceive2( + public TaskReceive( AtomicBoolean _start, LinkedBlockingQueue _receiveMsgQue, Map> _handlers, @@ -49,4 +48,26 @@ public void run() { } } } + + static class MsgIn { + private final int nid; + private final String nsid; + private final int route; + private final byte[] msg; + + /** + * Constructs an incoming message. + * + * @param nid + * @param nsid + * @param route + * @param msg + */ + MsgIn(int nid, String nsid, int route, byte[] msg) { + this.nid = nid; + this.nsid = nsid; + this.route = route; + this.msg = msg; + } + } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java similarity index 71% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java rename to modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java index 964879fcdc..bd38d8a77d 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java @@ -4,12 +4,13 @@ import java.nio.channels.Selector; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.Msg; import org.aion.p2p.P2pConstant; import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl1.P2pMgr.MsgOut; +import org.aion.p2p.impl1.P2pMgr.Dest; -public class TaskSend2 implements Runnable { +public class TaskSend implements Runnable { static final int TOTAL_LANE = (1 << 5) - 1; private final P2pMgr mgr; @@ -17,15 +18,13 @@ public class TaskSend2 implements Runnable { private final LinkedBlockingQueue sendMsgQue; private final NodeMgr nodeMgr; private final Selector selector; - private boolean showLog; private int lane; - public TaskSend2( + public TaskSend( P2pMgr _mgr, int _lane, LinkedBlockingQueue _sendMsgQue, AtomicBoolean _start, - boolean _showLog, NodeMgr _nodeMgr, Selector _selector) { @@ -33,7 +32,6 @@ public TaskSend2( this.lane = _lane; this.sendMsgQue = _sendMsgQue; this.start = _start; - this.showLog = _showLog; this.nodeMgr = _nodeMgr; this.selector = _selector; } @@ -46,7 +44,7 @@ public void run() { // if timeout , throw away this msg. long now = System.currentTimeMillis(); if (now - mo.timestamp > P2pConstant.WRITE_MSG_TIMEOUT) { - if (showLog) + if (this.mgr.isShowLog()) System.out.println( ""); + if (this.mgr.isShowLog()) System.out.println(""); return; } catch (Exception e) { - if (showLog) e.printStackTrace(); + if (this.mgr.isShowLog()) e.printStackTrace(); } } } + + // hash mapping channel id to write thread. + private int hash2Lane(int in) { + in ^= in >> (32 - 5); + in ^= in >> (32 - 10); + in ^= in >> (32 - 15); + in ^= in >> (32 - 20); + in ^= in >> (32 - 25); + return in & 0b11111; + } + + static class MsgOut { + private final int nodeId; + private final String displayId; + private final Msg msg; + private final Dest dest; + private final long timestamp; + + /** + * Constructs an outgoing message. + * + * @param _nodeId + * @param _displayId + * @param _msg + * @param _dest + */ + MsgOut(int _nodeId, String _displayId, Msg _msg, Dest _dest) { + nodeId = _nodeId; + displayId = _displayId; + msg = _msg; + dest = _dest; + timestamp = System.currentTimeMillis(); + } + } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java similarity index 89% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java rename to modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java index ad2507d8dc..a7fcf64313 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus2.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java @@ -2,16 +2,16 @@ import java.util.concurrent.LinkedBlockingQueue; import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl1.P2pMgr.MsgIn; -import org.aion.p2p.impl1.P2pMgr.MsgOut; +import org.aion.p2p.impl1.TaskReceive.MsgIn; +import org.aion.p2p.impl1.TaskSend.MsgOut; -public class TaskStatus2 implements Runnable { +public class TaskStatus implements Runnable { private final NodeMgr nodeMgr; private final String selfShortId; private LinkedBlockingQueue sendMsgQue; private LinkedBlockingQueue receiveMsgQue; - public TaskStatus2( + public TaskStatus( NodeMgr _nodeMgr, String _selfShortId, LinkedBlockingQueue _sendMsgQue, From d1aba20ce445d3d28339a1a280449018aed44ea6 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 17:30:34 -0400 Subject: [PATCH 033/129] moved accept,read others into TaskInbound, cleanups --- modP2p/src/org/aion/p2p/IP2pMgr.java | 26 +- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 424 ++---------------- .../src/org/aion/p2p/impl1/TaskInbound.java | 388 +++++++++++++++- 3 files changed, 433 insertions(+), 405 deletions(-) diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index 64efa4173f..5331080c4a 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -29,40 +29,28 @@ import java.util.List; import java.util.Map; -/** - * @author chris - */ +/** @author chris */ public interface IP2pMgr { - /** - * @return Map - */ + /** @return Map */ Map getActiveNodes(); - /** - * @param _hs List - */ + /** @param _hs List */ void register(final List _hs); - /** - * @return INode - */ + /** @return INode */ INode getRandom(); /** - * @param _id int + * @param _id int * @param _msg Msg */ void send(int _id, String _displayId, final Msg _msg); - /** - * Used to hook up with kernel to shutdown threads in network module. - */ + /** Used to hook up with kernel to shutdown threads in network module. */ void shutdown(); - /** - * Starts all p2p processes. - */ + /** Starts all p2p processes. */ void run(); List versions(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index d7bd563e28..431d02e02f 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -26,9 +26,7 @@ package org.aion.p2p.impl1; import java.io.IOException; -import java.io.UnsupportedEncodingException; import java.net.InetSocketAddress; -import java.nio.ByteBuffer; import java.nio.channels.*; import java.util.*; import java.util.concurrent.*; @@ -37,7 +35,6 @@ import org.aion.p2p.P2pConstant; import org.aion.p2p.impl.TaskRequestActiveNodes; import org.aion.p2p.impl.TaskUPnPManager; -import org.aion.p2p.impl.comm.Act; import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; import org.aion.p2p.impl.zero.msg.*; @@ -53,7 +50,7 @@ public final class P2pMgr implements IP2pMgr { private static final int TIMEOUT_MSG_READ = 10000; // TODO: need refactor by passing the parameter in the later version. - private static final int txBroadCastRoute = + static final int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); private final int maxTempNodes; @@ -86,7 +83,11 @@ public final class P2pMgr implements IP2pMgr { private static ReqHandshake1 cachedReqHandshake1; private static ResHandshake1 cachedResHandshake1; - enum Dest { INBOUND, OUTBOUND, ACTIVE } + enum Dest { + INBOUND, + OUTBOUND, + ACTIVE + } /** * @param _nodeId byte[36] @@ -100,19 +101,19 @@ enum Dest { INBOUND, OUTBOUND, ACTIVE } * @param _showLog boolean */ public P2pMgr( - int _netId, - String _revision, - String _nodeId, - String _ip, - int _port, - final String[] _bootNodes, - boolean _upnpEnable, - int _maxTempNodes, - int _maxActiveNodes, - boolean _showStatus, - boolean _showLog, - boolean _bootlistSyncOnly, - int _errorTolerance) { + int _netId, + String _revision, + String _nodeId, + String _ip, + int _port, + final String[] _bootNodes, + boolean _upnpEnable, + int _maxTempNodes, + int _maxActiveNodes, + boolean _showStatus, + boolean _showLog, + boolean _bootlistSyncOnly, + int _errorTolerance) { this.selfNetId = _netId; this.selfRevision = _revision; @@ -133,7 +134,7 @@ public P2pMgr( for (String _bootNode : _bootNodes) { Node node = Node.parseP2p(_bootNode); - if (node != null && validateNode(node)) { + if (validateNode(node)) { nodeMgr.addTempNode(node); nodeMgr.seedIpAdd(node.getIpStr()); } @@ -144,211 +145,11 @@ public P2pMgr( cachedResHandshake1 = new ResHandshake1(true, this.selfRevision); } - void accept() { - SocketChannel channel; - try { - - if (nodeMgr.activeNodesSize() >= this.maxActiveNodes) return; - - channel = tcpServer.accept(); - configChannel(channel); - - SelectionKey sk = channel.register(selector, SelectionKey.OP_READ); - sk.attach(new ChannelBuffer(this.showLog)); - - String ip = channel.socket().getInetAddress().getHostAddress(); - int port = channel.socket().getPort(); - - if (syncSeedsOnly && nodeMgr.isSeedIp(ip)) { - channel.close(); - return; - } - - Node node = nodeMgr.allocNode(ip, 0); - node.setChannel(channel); - nodeMgr.addInboundNode(node); - - if (showLog) System.out.println(""); - - } catch (IOException e) { - if (showLog) System.out.println(""); - } - } - - /** - * SocketChannel - * - * @throws IOException IOException - */ - private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { - - if (cnt < Header.LEN) return cnt; - - int origPos = readBuffer.position(); - - int startP = origPos - cnt; - - readBuffer.position(startP); - - _cb.readHead(readBuffer); - - readBuffer.position(origPos); - - return cnt - Header.LEN; - } - - /** - * SocketChannel - * - * @throws IOException IOException - */ - private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { - - int bodyLen = _cb.header.getLen(); - - // some msg have nobody. - if (bodyLen == 0) { - _cb.body = new byte[0]; - return cnt; - } - - if (cnt < bodyLen) return cnt; - - int origPos = readBuffer.position(); - int startP = origPos - cnt; - - readBuffer.position(startP); - - _cb.readBody(readBuffer); - - readBuffer.position(origPos); - - return cnt - bodyLen; - } - - /** - * @param _sk SelectionKey - * @throws IOException IOException - */ - int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOException { - - int currCnt = 0; - - if (_sk.attachment() == null) { - throw new P2pException("attachment is null"); - } - ChannelBuffer rb = (ChannelBuffer) _sk.attachment(); - - // read header - if (!rb.isHeaderCompleted()) { - currCnt = readHeader(rb, _readBuffer, _cnt); - } else { - currCnt = _cnt; - } - - // read body - if (rb.isHeaderCompleted() && !rb.isBodyCompleted()) { - currCnt = readBody(rb, _readBuffer, currCnt); - } - - if (!rb.isBodyCompleted()) return currCnt; - - Header h = rb.header; - - byte[] bodyBytes = rb.body; - rb.refreshHeader(); - rb.refreshBody(); - - short ver = h.getVer(); - byte ctrl = h.getCtrl(); - byte act = h.getAction(); - int route = h.getRoute(); - - boolean underRC = - rb.shouldRoute( - route, - ((route == txBroadCastRoute) - ? P2pConstant.READ_MAX_RATE_TXBC - : P2pConstant.READ_MAX_RATE)); - - if (!underRC) { - if (showLog) - System.out.println( - ""); - return currCnt; - } - - switch (ver) { - case Ver.V0: - switch (ctrl) { - case Ctrl.NET: - try { - handleP2pMsg(_sk, act, bodyBytes); - } catch (Exception ex) { - if (showLog) - System.out.println( - ""); - } - break; - case Ctrl.SYNC: - if (!handlers.containsKey(route)) { - if (showLog) - System.out.println( - ""); - return currCnt; - } - - handleKernelMsg(rb.nodeIdHash, route, bodyBytes); - break; - default: - if (showLog) - System.out.println( - ""); - break; - } - break; - default: - if (showLog) - System.out.println(""); - break; - } - - return currCnt; - } - /** * @param _node Node * @return boolean */ - private boolean validateNode(final Node _node) { + boolean validateNode(final Node _node) { if (_node != null) { boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); boolean notSameIpOrPort = @@ -385,158 +186,6 @@ public void closeSocket(final SocketChannel _sc, String _reason) { } } - /** @return boolean TODO: implementation */ - private boolean handshakeRuleCheck(int netId) { - // check net id - if (netId != selfNetId) return false; - // check supported protocol versions - return true; - } - - /** - * @param _buffer ChannelBuffer - * @param _channelHash int - * @param _nodeId byte[] - * @param _netId int - * @param _port int - * @param _revision byte[] - *

Construct node info after handshake request success - */ - private void handleReqHandshake( - final ChannelBuffer _buffer, - int _channelHash, - final byte[] _nodeId, - int _netId, - int _port, - final byte[] _revision) { - Node node = nodeMgr.getInboundNode(_channelHash); - if (node != null && node.peerMetric.notBan()) { - if (handshakeRuleCheck(_netId)) { - _buffer.nodeIdHash = Arrays.hashCode(_nodeId); - _buffer.displayId = new String(Arrays.copyOfRange(_nodeId, 0, 6)); - node.setId(_nodeId); - node.setPort(_port); - - // handshake 1 - if (_revision != null) { - String binaryVersion; - try { - binaryVersion = new String(_revision, "UTF-8"); - } catch (UnsupportedEncodingException e) { - binaryVersion = "decode-fail"; - } - node.setBinaryVersion(binaryVersion); - nodeMgr.moveInboundToActive(_channelHash, this); - sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - cachedResHandshake1, - Dest.ACTIVE)); - } - - } else { - if (showLog) System.out.println(""); - } - } - } - - private void handleResHandshake(int _nodeIdHash, String _binaryVersion) { - Node node = nodeMgr.getOutboundNodes().get(_nodeIdHash); - if (node != null && node.peerMetric.notBan()) { - node.refreshTimestamp(); - node.setBinaryVersion(_binaryVersion); - nodeMgr.moveOutboundToActive(node.getIdHash(), node.getIdShort(), this); - } - } - - /** - * @param _sk SelectionKey - * @param _act ACT - * @param _msgBytes byte[] - */ - private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBytes) { - - ChannelBuffer rb = (ChannelBuffer) _sk.attachment(); - - switch (_act) { - case Act.REQ_HANDSHAKE: - if (_msgBytes.length > ReqHandshake.LEN) { - ReqHandshake1 reqHandshake1 = ReqHandshake1.decode(_msgBytes); - if (reqHandshake1 != null) { - handleReqHandshake( - rb, - _sk.channel().hashCode(), - reqHandshake1.getNodeId(), - reqHandshake1.getNetId(), - reqHandshake1.getPort(), - reqHandshake1.getRevision()); - } - } - break; - - case Act.RES_HANDSHAKE: - if (rb.nodeIdHash == 0) return; - - if (_msgBytes.length > ResHandshake.LEN) { - ResHandshake1 resHandshake1 = ResHandshake1.decode(_msgBytes); - if (resHandshake1 != null && resHandshake1.getSuccess()) - handleResHandshake(rb.nodeIdHash, resHandshake1.getBinaryVersion()); - } - break; - - case Act.REQ_ACTIVE_NODES: - if (rb.nodeIdHash != 0) { - Node node = nodeMgr.getActiveNode(rb.nodeIdHash); - if (node != null) - sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - new ResActiveNodes(nodeMgr.getActiveNodesList()), - Dest.ACTIVE)); - } - break; - - case Act.RES_ACTIVE_NODES: - if (syncSeedsOnly) break; - - if (rb.nodeIdHash != 0) { - Node node = nodeMgr.getActiveNode(rb.nodeIdHash); - if (node != null) { - node.refreshTimestamp(); - ResActiveNodes resActiveNodes = ResActiveNodes.decode(_msgBytes); - if (resActiveNodes != null) { - List incomingNodes = resActiveNodes.getNodes(); - for (Node incomingNode : incomingNodes) { - if (nodeMgr.tempNodesSize() >= this.maxTempNodes) return; - if (validateNode(incomingNode)) nodeMgr.addTempNode(incomingNode); - } - } - } - } - break; - default: - if (showLog) System.out.println(""); - break; - } - } - - /** - * @param _nodeIdHash int - * @param _route int - * @param _msgBytes byte[] - */ - private void handleKernelMsg(int _nodeIdHash, int _route, final byte[] _msgBytes) { - Node node = nodeMgr.getActiveNode(_nodeIdHash); - if (node != null) { - int nodeIdHash = node.getIdHash(); - String nodeDisplayId = node.getIdShort(); - node.refreshTimestamp(); - receiveMsgQue.offer(new MsgIn(nodeIdHash, nodeDisplayId, _route, _msgBytes)); - } - } - @Override public void run() { try { @@ -550,10 +199,9 @@ public void run() { tcpServer.socket().bind(new InetSocketAddress(Node.ipBytesToStr(selfIp), selfPort)); tcpServer.register(selector, SelectionKey.OP_ACCEPT); - Thread thrdIn = - new Thread( - new TaskInbound(this, this.selector, this.start), - "p2p-in"); + Thread thrdIn = new Thread(new TaskInbound(this, this.selector, this.start, + this.nodeMgr, this.tcpServer, this.handlers, this.sendMsgQue, cachedResHandshake1, + this.receiveMsgQue), "p2p-in"); // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); @@ -661,9 +309,7 @@ public void register(final List _cbs) { short ver = h.getVer(); byte ctrl = h.getCtrl(); if (Ver.filter(ver) != Ver.UNKNOWN && Ctrl.filter(ctrl) != Ctrl.UNKNOWN) { - if (!versions.contains(ver)) { - versions.add(ver); - } + versions.add(ver); int route = h.getRoute(); List routeHandlers = handlers.get(route); @@ -744,8 +390,6 @@ private void ban(int nodeIdHashcode) { nodeMgr.dropActive(nodeIdHashcode, this, "ban"); } - - @Override public INode getRandom() { return this.nodeMgr.getRandom(); @@ -774,4 +418,20 @@ public boolean isShowLog() { public int getTempNodesCount() { return this.nodeMgr.tempNodesSize(); } -} \ No newline at end of file + + public int getMaxActiveNodes() { + return this.maxActiveNodes; + } + + public int getMaxTempNodes() { + return this.maxTempNodes; + } + + public int getSelfNetId() { + return this.selfNetId; + } + + public boolean isSyncSeedsOnly() { + return this.syncSeedsOnly; + } +} diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java index 2f62103211..1e131811e8 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java @@ -1,25 +1,62 @@ package org.aion.p2p.impl1; import java.io.IOException; +import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; import java.nio.channels.CancelledKeyException; import java.nio.channels.ClosedChannelException; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; +import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; +import java.util.Arrays; import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.p2p.Ctrl; +import org.aion.p2p.Handler; +import org.aion.p2p.Header; import org.aion.p2p.P2pConstant; +import org.aion.p2p.Ver; +import org.aion.p2p.impl.comm.Act; +import org.aion.p2p.impl.comm.Node; +import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.impl.zero.msg.ReqHandshake; +import org.aion.p2p.impl.zero.msg.ReqHandshake1; +import org.aion.p2p.impl.zero.msg.ResActiveNodes; +import org.aion.p2p.impl.zero.msg.ResHandshake; +import org.aion.p2p.impl.zero.msg.ResHandshake1; +import org.aion.p2p.impl1.P2pMgr.Dest; +import org.aion.p2p.impl1.TaskReceive.MsgIn; +import org.aion.p2p.impl1.TaskSend.MsgOut; public class TaskInbound implements Runnable { private AtomicBoolean start; private final P2pMgr mgr; private final Selector selector; + private final NodeMgr nodeMgr; + private ServerSocketChannel tcpServer; + private final Map> handlers; + private LinkedBlockingQueue sendMsgQue; + private ResHandshake1 cachedResHandshake1; + private LinkedBlockingQueue receiveMsgQue; + + public TaskInbound(P2pMgr _mgr, Selector _selector, AtomicBoolean _start, NodeMgr _nodeMgr, + ServerSocketChannel _tcpServer, Map> _handlers, + LinkedBlockingQueue _sendMsgQue, ResHandshake1 _cachedResHandshake1, + LinkedBlockingQueue _receiveMsgQue) { - public TaskInbound(P2pMgr _mgr, Selector _selector, AtomicBoolean _start) { this.mgr = _mgr; this.selector = _selector; this.start = _start; + this.nodeMgr = _nodeMgr; + this.tcpServer = _tcpServer; + this.handlers = _handlers; + this.sendMsgQue = _sendMsgQue; + this.cachedResHandshake1 = _cachedResHandshake1; + this.receiveMsgQue = _receiveMsgQue; } @Override @@ -58,7 +95,7 @@ public void run() { if (!sk.isValid()) continue; - if (sk.isAcceptable()) this.mgr.accept(); + if (sk.isAcceptable()) accept(); if (sk.isReadable()) { @@ -95,7 +132,7 @@ public void run() { } do { - cnt = this.mgr.read(sk, forRead, prevCnt); + cnt = read(sk, forRead, prevCnt); if (prevCnt == cnt) { break; @@ -160,7 +197,8 @@ public void run() { (SocketChannel) sk.channel(), chanBuf.displayId + "-read-msg-key-cancelled-exception"); } catch (Exception e) { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) + System.out.println(""); } } } catch (Exception ex) { @@ -174,4 +212,346 @@ public void run() { if (this.mgr.isShowLog()) System.out.println(""); } + private void accept() { + SocketChannel channel; + try { + + if (this.nodeMgr.activeNodesSize() >= this.mgr.getMaxActiveNodes()) return; + + channel = this.tcpServer.accept(); + this.mgr.configChannel(channel); + + SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); + sk.attach(new ChannelBuffer(this.mgr.isShowLog())); + + String ip = channel.socket().getInetAddress().getHostAddress(); + int port = channel.socket().getPort(); + + if (this.mgr.isSyncSeedsOnly() && this.nodeMgr.isSeedIp(ip)) { + channel.close(); + return; + } + + Node node = this.nodeMgr.allocNode(ip, 0); + node.setChannel(channel); + this.nodeMgr.addInboundNode(node); + + if (this.mgr.isShowLog()) System.out.println(""); + + } catch (IOException e) { + if (this.mgr.isShowLog()) System.out.println(""); + } + } + + /** + * SocketChannel + * + * @throws IOException IOException + */ + private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) + throws IOException { + + if (cnt < Header.LEN) return cnt; + + int origPos = readBuffer.position(); + int startP = origPos - cnt; + readBuffer.position(startP); + _cb.readHead(readBuffer); + readBuffer.position(origPos); + return cnt - Header.LEN; + } + + /** + * SocketChannel + * + * @throws IOException IOException + */ + private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) + throws IOException { + + int bodyLen = _cb.header.getLen(); + + // some msg have nobody. + if (bodyLen == 0) { + _cb.body = new byte[0]; + return cnt; + } + + if (cnt < bodyLen) return cnt; + + int origPos = readBuffer.position(); + int startP = origPos - cnt; + readBuffer.position(startP); + _cb.readBody(readBuffer); + readBuffer.position(origPos); + return cnt - bodyLen; + } + + /** + * @param _sk SelectionKey + * @throws IOException IOException + */ + private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOException { + + int currCnt = 0; + + if (_sk.attachment() == null) { + throw new P2pException("attachment is null"); + } + ChannelBuffer rb = (ChannelBuffer) _sk.attachment(); + + // read header + if (!rb.isHeaderCompleted()) { + currCnt = readHeader(rb, _readBuffer, _cnt); + } else { + currCnt = _cnt; + } + + // read body + if (rb.isHeaderCompleted() && !rb.isBodyCompleted()) { + currCnt = readBody(rb, _readBuffer, currCnt); + } + + if (!rb.isBodyCompleted()) return currCnt; + + Header h = rb.header; + + byte[] bodyBytes = rb.body; + rb.refreshHeader(); + rb.refreshBody(); + + short ver = h.getVer(); + byte ctrl = h.getCtrl(); + byte act = h.getAction(); + int route = h.getRoute(); + + boolean underRC = + rb.shouldRoute( + route, + ((route == P2pMgr.txBroadCastRoute) + ? P2pConstant.READ_MAX_RATE_TXBC + : P2pConstant.READ_MAX_RATE)); + + if (!underRC) { + if (this.mgr.isShowLog()) + System.out.println( + ""); + return currCnt; + } + + switch (ver) { + case Ver.V0: + switch (ctrl) { + case Ctrl.NET: + try { + handleP2pMsg(_sk, act, bodyBytes); + } catch (Exception ex) { + if (this.mgr.isShowLog()) + System.out.println( + ""); + } + break; + case Ctrl.SYNC: + if (!this.handlers.containsKey(route)) { + if (this.mgr.isShowLog()) + System.out.println( + ""); + return currCnt; + } + + this.handleKernelMsg(rb.nodeIdHash, route, bodyBytes); + break; + default: + if (this.mgr.isShowLog()) + System.out.println( + ""); + break; + } + break; + default: + if (this.mgr.isShowLog()) + System.out.println(""); + break; + } + + return currCnt; + } + + /** + * @param _sk SelectionKey + * @param _act ACT + * @param _msgBytes byte[] + */ + private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBytes) { + + ChannelBuffer rb = (ChannelBuffer) _sk.attachment(); + + switch (_act) { + case Act.REQ_HANDSHAKE: + if (_msgBytes.length > ReqHandshake.LEN) { + ReqHandshake1 reqHandshake1 = ReqHandshake1.decode(_msgBytes); + if (reqHandshake1 != null) { + handleReqHandshake( + rb, + _sk.channel().hashCode(), + reqHandshake1.getNodeId(), + reqHandshake1.getNetId(), + reqHandshake1.getPort(), + reqHandshake1.getRevision()); + } + } + break; + + case Act.RES_HANDSHAKE: + if (rb.nodeIdHash == 0) return; + + if (_msgBytes.length > ResHandshake.LEN) { + ResHandshake1 resHandshake1 = ResHandshake1.decode(_msgBytes); + if (resHandshake1 != null && resHandshake1.getSuccess()) + handleResHandshake(rb.nodeIdHash, resHandshake1.getBinaryVersion()); + } + break; + + case Act.REQ_ACTIVE_NODES: + if (rb.nodeIdHash != 0) { + Node node = nodeMgr.getActiveNode(rb.nodeIdHash); + if (node != null) + this.sendMsgQue.offer( + new MsgOut( + node.getIdHash(), + node.getIdShort(), + new ResActiveNodes(nodeMgr.getActiveNodesList()), + Dest.ACTIVE)); + } + break; + + case Act.RES_ACTIVE_NODES: + if (this.mgr.isSyncSeedsOnly()) break; + + if (rb.nodeIdHash != 0) { + Node node = nodeMgr.getActiveNode(rb.nodeIdHash); + if (node != null) { + node.refreshTimestamp(); + ResActiveNodes resActiveNodes = ResActiveNodes.decode(_msgBytes); + if (resActiveNodes != null) { + List incomingNodes = resActiveNodes.getNodes(); + for (Node incomingNode : incomingNodes) { + if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) return; + if (this.mgr.validateNode(incomingNode)) nodeMgr.addTempNode(incomingNode); + } + } + } + } + break; + default: + if (this.mgr.isShowLog()) System.out.println(""); + break; + } + } + + /** + * @param _buffer ChannelBuffer + * @param _channelHash int + * @param _nodeId byte[] + * @param _netId int + * @param _port int + * @param _revision byte[] + *

Construct node info after handshake request success + */ + private void handleReqHandshake( + final ChannelBuffer _buffer, + int _channelHash, + final byte[] _nodeId, + int _netId, + int _port, + final byte[] _revision) { + Node node = nodeMgr.getInboundNode(_channelHash); + if (node != null && node.peerMetric.notBan()) { + if (handshakeRuleCheck(_netId)) { + _buffer.nodeIdHash = Arrays.hashCode(_nodeId); + _buffer.displayId = new String(Arrays.copyOfRange(_nodeId, 0, 6)); + node.setId(_nodeId); + node.setPort(_port); + + // handshake 1 + if (_revision != null) { + String binaryVersion; + try { + binaryVersion = new String(_revision, "UTF-8"); + } catch (UnsupportedEncodingException e) { + binaryVersion = "decode-fail"; + } + node.setBinaryVersion(binaryVersion); + nodeMgr.moveInboundToActive(_channelHash, this.mgr); + this.sendMsgQue.offer( + new MsgOut( + node.getIdHash(), + node.getIdShort(), + this.cachedResHandshake1, + Dest.ACTIVE)); + } + + } else { + if (this.mgr.isShowLog()) System.out.println(""); + } + } + } + + private void handleResHandshake(int _nodeIdHash, String _binaryVersion) { + Node node = nodeMgr.getOutboundNodes().get(_nodeIdHash); + if (node != null && node.peerMetric.notBan()) { + node.refreshTimestamp(); + node.setBinaryVersion(_binaryVersion); + nodeMgr.moveOutboundToActive(node.getIdHash(), node.getIdShort(), this.mgr); + } + } + + /** + * @param _nodeIdHash int + * @param _route int + * @param _msgBytes byte[] + */ + private void handleKernelMsg(int _nodeIdHash, int _route, final byte[] _msgBytes) { + Node node = nodeMgr.getActiveNode(_nodeIdHash); + if (node != null) { + int nodeIdHash = node.getIdHash(); + String nodeDisplayId = node.getIdShort(); + node.refreshTimestamp(); + this.receiveMsgQue.offer(new MsgIn(nodeIdHash, nodeDisplayId, _route, _msgBytes)); + } + } + + /** @return boolean TODO: implementation */ + private boolean handshakeRuleCheck(int netId) { + // check net id + if (netId != this.mgr.getSelfNetId()) return false; + // check supported protocol versions + return true; + } } From e7f238659bf429d5b22737b5c8b95cbe564121b0 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 18 May 2018 17:45:39 -0400 Subject: [PATCH 034/129] added licenses, more cleanups --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 267 +++++++++--------- .../src/org/aion/p2p/impl1/TaskClear.java | 27 +- .../org/aion/p2p/impl1/TaskConnectPeers.java | 29 +- .../src/org/aion/p2p/impl1/TaskInbound.java | 168 ++++++----- .../src/org/aion/p2p/impl1/TaskReceive.java | 27 +- .../src/org/aion/p2p/impl1/TaskSend.java | 29 +- .../src/org/aion/p2p/impl1/TaskStatus.java | 27 +- 7 files changed, 367 insertions(+), 207 deletions(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 431d02e02f..6d4acdabd4 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -51,21 +51,12 @@ public final class P2pMgr implements IP2pMgr { // TODO: need refactor by passing the parameter in the later version. static final int txBroadCastRoute = - (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); - - private final int maxTempNodes; - private final int maxActiveNodes; - private final boolean syncSeedsOnly; - private final boolean showStatus; - private final boolean showLog; - private final int selfNetId; - private final String selfRevision; - private final byte[] selfNodeId; - private final int selfNodeIdHash; - private final String selfShortId; - private final byte[] selfIp; - private final int selfPort; - private final boolean upnpEnable; + (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); + + private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; + private final boolean syncSeedsOnly, showStatus, showLog, upnpEnable; + private final String selfRevision, selfShortId; + private final byte[] selfNodeId, selfIp; private final NodeMgr nodeMgr; private final Map> handlers = new ConcurrentHashMap<>(); @@ -145,47 +136,6 @@ public P2pMgr( cachedResHandshake1 = new ResHandshake1(true, this.selfRevision); } - /** - * @param _node Node - * @return boolean - */ - boolean validateNode(final Node _node) { - if (_node != null) { - boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); - boolean notSameIpOrPort = - !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); - boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); - boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); - return notSelfId && notSameIpOrPort && notActive && notOutbound; - } else return false; - } - - /** @param _channel SocketChannel TODO: check option */ - void configChannel(final SocketChannel _channel) throws IOException { - _channel.configureBlocking(false); - _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); - - // set buffer to 256k. - _channel.socket().setReceiveBufferSize(P2pConstant.RECV_BUFFER_SIZE); - _channel.socket().setSendBufferSize(P2pConstant.SEND_BUFFER_SIZE); - // _channel.setOption(StandardSocketOptions.SO_KEEPALIVE, true); - // _channel.setOption(StandardSocketOptions.TCP_NODELAY, true); - // _channel.setOption(StandardSocketOptions.SO_REUSEADDR, true); - } - - /** @param _sc SocketChannel */ - public void closeSocket(final SocketChannel _sc, String _reason) { - if (showLog) System.out.println(""); - - try { - SelectionKey sk = _sc.keyFor(selector); - _sc.close(); - if (sk != null) sk.cancel(); - } catch (IOException e) { - if (showLog) System.out.println(""); - } - } - @Override public void run() { try { @@ -199,101 +149,111 @@ public void run() { tcpServer.socket().bind(new InetSocketAddress(Node.ipBytesToStr(selfIp), selfPort)); tcpServer.register(selector, SelectionKey.OP_ACCEPT); - Thread thrdIn = new Thread(new TaskInbound(this, this.selector, this.start, - this.nodeMgr, this.tcpServer, this.handlers, this.sendMsgQue, cachedResHandshake1, - this.receiveMsgQue), "p2p-in"); + Thread thrdIn = + new Thread( + new TaskInbound( + this, + this.selector, + this.start, + this.nodeMgr, + this.tcpServer, + this.handlers, + this.sendMsgQue, + cachedResHandshake1, + this.receiveMsgQue), + "p2p-in"); // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); if (showLog) this.handlers.forEach( - (route, callbacks) -> { - Handler handler = callbacks.get(0); - Header h = handler.getHeader(); - System.out.println( - ""); - }); + (route, callbacks) -> { + Handler handler = callbacks.get(0); + Header h = handler.getHeader(); + System.out.println( + ""); + }); for (int i = 0; i < TaskSend.TOTAL_LANE; i++) { Thread thrdOut = - new Thread( - new TaskSend( - this, - i, - this.sendMsgQue, - this.start, - this.nodeMgr, - this.selector), - "p2p-out-" + i); + new Thread( + new TaskSend( + this, + i, + this.sendMsgQue, + this.start, + this.nodeMgr, + this.selector), + "p2p-out-" + i); thrdOut.setPriority(Thread.NORM_PRIORITY); thrdOut.start(); } for (int i = 0, m = Runtime.getRuntime().availableProcessors(); i < m; i++) { Thread t = - new Thread( - new TaskReceive( - this.start, - this.receiveMsgQue, - this.handlers, - this.showLog), - "p2p-worker-" + i); + new Thread( + new TaskReceive( + this.start, + this.receiveMsgQue, + this.handlers, + this.showLog), + "p2p-worker-" + i); t.setPriority(Thread.NORM_PRIORITY); t.start(); } if (upnpEnable) scheduledWorkers.scheduleWithFixedDelay( - new TaskUPnPManager(selfPort), - 1, - PERIOD_UPNP_PORT_MAPPING, - TimeUnit.MILLISECONDS); + new TaskUPnPManager(selfPort), + 1, + PERIOD_UPNP_PORT_MAPPING, + TimeUnit.MILLISECONDS); if (showStatus) scheduledWorkers.scheduleWithFixedDelay( - new TaskStatus( - this.nodeMgr, - this.selfShortId, - this.sendMsgQue, - this.receiveMsgQue), - 2, - PERIOD_SHOW_STATUS, - TimeUnit.MILLISECONDS); + new TaskStatus( + this.nodeMgr, + this.selfShortId, + this.sendMsgQue, + this.receiveMsgQue), + 2, + PERIOD_SHOW_STATUS, + TimeUnit.MILLISECONDS); if (!syncSeedsOnly) scheduledWorkers.scheduleWithFixedDelay( - new TaskRequestActiveNodes(this), - 5000, - PERIOD_REQUEST_ACTIVE_NODES, - TimeUnit.MILLISECONDS); + new TaskRequestActiveNodes(this), + 5000, + PERIOD_REQUEST_ACTIVE_NODES, + TimeUnit.MILLISECONDS); Thread thrdClear = - new Thread(new TaskClear(this, this.nodeMgr, this.start), "p2p-clear"); + new Thread(new TaskClear(this, this.nodeMgr, this.start), "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); thrdClear.start(); Thread thrdConn = - new Thread( - new TaskConnectPeers( - this, - this.start, - this.nodeMgr, - this.maxActiveNodes, - this.selector, - this.sendMsgQue, - cachedReqHandshake1), - "p2p-conn"); + new Thread( + new TaskConnectPeers( + this, + this.start, + this.nodeMgr, + this.maxActiveNodes, + this.selector, + this.sendMsgQue, + cachedReqHandshake1), + "p2p-conn"); thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); @@ -356,16 +316,6 @@ public List versions() { return new ArrayList<>(versions); } - /** - * Remove an active node if exists. - * - * @param _nodeIdHash int - * @param _reason String - */ - void dropActive(int _nodeIdHash, String _reason) { - nodeMgr.dropActive(_nodeIdHash, this, _reason); - } - @Override public void errCheck(int _nodeIdHash, String _displayId) { int cnt = (errCnt.get(_nodeIdHash) == null ? 1 : (errCnt.get(_nodeIdHash) + 1)); @@ -385,11 +335,6 @@ public void errCheck(int _nodeIdHash, String _displayId) { } } - private void ban(int nodeIdHashcode) { - nodeMgr.ban(nodeIdHashcode); - nodeMgr.dropActive(nodeIdHashcode, this, "ban"); - } - @Override public INode getRandom() { return this.nodeMgr.getRandom(); @@ -415,6 +360,62 @@ public boolean isShowLog() { return this.showLog; } + /** @param _sc SocketChannel */ + public void closeSocket(final SocketChannel _sc, String _reason) { + if (showLog) System.out.println(""); + + try { + SelectionKey sk = _sc.keyFor(selector); + _sc.close(); + if (sk != null) sk.cancel(); + } catch (IOException e) { + if (showLog) System.out.println(""); + } + } + + /** + * Remove an active node if exists. + * + * @param _nodeIdHash int + * @param _reason String + */ + void dropActive(int _nodeIdHash, String _reason) { + nodeMgr.dropActive(_nodeIdHash, this, _reason); + } + + /** + * @param _node Node + * @return boolean + */ + boolean validateNode(final Node _node) { + if (_node != null) { + boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); + boolean notSameIpOrPort = + !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); + boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); + boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); + return notSelfId && notSameIpOrPort && notActive && notOutbound; + } else return false; + } + + /** @param _channel SocketChannel TODO: check option */ + void configChannel(final SocketChannel _channel) throws IOException { + _channel.configureBlocking(false); + _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); + + // set buffer to 256k. + _channel.socket().setReceiveBufferSize(P2pConstant.RECV_BUFFER_SIZE); + _channel.socket().setSendBufferSize(P2pConstant.SEND_BUFFER_SIZE); + // _channel.setOption(StandardSocketOptions.SO_KEEPALIVE, true); + // _channel.setOption(StandardSocketOptions.TCP_NODELAY, true); + // _channel.setOption(StandardSocketOptions.SO_REUSEADDR, true); + } + + private void ban(int nodeIdHashcode) { + nodeMgr.ban(nodeIdHashcode); + nodeMgr.dropActive(nodeIdHashcode, this, "ban"); + } + public int getTempNodesCount() { return this.nodeMgr.tempNodesSize(); } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java index 5ed5581837..ddabf32b44 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java @@ -1,3 +1,28 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors to the aion source files in decreasing order of code volume: + * + * Aion foundation. + * + */ + package org.aion.p2p.impl1; import java.util.Iterator; @@ -13,7 +38,7 @@ public class TaskClear implements Runnable { private final NodeMgr nodeMgr; private AtomicBoolean start; - public TaskClear(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { + TaskClear(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { this.mgr = _mgr; this.nodeMgr = _nodeMgr; this.start = _start; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java index cbd7a9bd12..5019f543a2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java @@ -1,3 +1,28 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors to the aion source files in decreasing order of code volume: + * + * Aion foundation. + * + */ + package org.aion.p2p.impl1; import java.io.IOException; @@ -17,15 +42,15 @@ public class TaskConnectPeers implements Runnable { private static final int PERIOD_CONNECT_OUTBOUND = 1000; private static final int TIMEOUT_OUTBOUND_CONNECT = 10000; - private AtomicBoolean start; private final NodeMgr nodeMgr; private final int maxActiveNodes; private final P2pMgr mgr; + private AtomicBoolean start; private LinkedBlockingQueue sendMsgQue; private Selector selector; private ReqHandshake1 cachedReqHandshake1; - public TaskConnectPeers( + TaskConnectPeers( P2pMgr _mgr, AtomicBoolean _start, NodeMgr _nodeMgr, diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java index 1e131811e8..0a3e8f342c 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java @@ -1,3 +1,28 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors to the aion source files in decreasing order of code volume: + * + * Aion foundation. + * + */ + package org.aion.p2p.impl1; import java.io.IOException; @@ -37,16 +62,22 @@ public class TaskInbound implements Runnable { private final P2pMgr mgr; private final Selector selector; private final NodeMgr nodeMgr; - private ServerSocketChannel tcpServer; private final Map> handlers; + private ServerSocketChannel tcpServer; private LinkedBlockingQueue sendMsgQue; private ResHandshake1 cachedResHandshake1; private LinkedBlockingQueue receiveMsgQue; - public TaskInbound(P2pMgr _mgr, Selector _selector, AtomicBoolean _start, NodeMgr _nodeMgr, - ServerSocketChannel _tcpServer, Map> _handlers, - LinkedBlockingQueue _sendMsgQue, ResHandshake1 _cachedResHandshake1, - LinkedBlockingQueue _receiveMsgQue) { + TaskInbound( + P2pMgr _mgr, + Selector _selector, + AtomicBoolean _start, + NodeMgr _nodeMgr, + ServerSocketChannel _tcpServer, + Map> _handlers, + LinkedBlockingQueue _sendMsgQue, + ResHandshake1 _cachedResHandshake1, + LinkedBlockingQueue _receiveMsgQue) { this.mgr = _mgr; this.selector = _selector; @@ -236,7 +267,8 @@ private void accept() { node.setChannel(channel); this.nodeMgr.addInboundNode(node); - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) + System.out.println(""); } catch (IOException e) { if (this.mgr.isShowLog()) System.out.println(""); @@ -249,7 +281,7 @@ private void accept() { * @throws IOException IOException */ private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + throws IOException { if (cnt < Header.LEN) return cnt; @@ -267,7 +299,7 @@ private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) * @throws IOException IOException */ private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + throws IOException { int bodyLen = _cb.header.getLen(); @@ -326,26 +358,26 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw int route = h.getRoute(); boolean underRC = - rb.shouldRoute( - route, - ((route == P2pMgr.txBroadCastRoute) - ? P2pConstant.READ_MAX_RATE_TXBC - : P2pConstant.READ_MAX_RATE)); + rb.shouldRoute( + route, + ((route == P2pMgr.txBroadCastRoute) + ? P2pConstant.READ_MAX_RATE_TXBC + : P2pConstant.READ_MAX_RATE)); if (!underRC) { if (this.mgr.isShowLog()) System.out.println( - ""); + ""); return currCnt; } @@ -358,22 +390,22 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw } catch (Exception ex) { if (this.mgr.isShowLog()) System.out.println( - ""); + ""); } break; case Ctrl.SYNC: if (!this.handlers.containsKey(route)) { if (this.mgr.isShowLog()) System.out.println( - ""); + ""); return currCnt; } @@ -382,15 +414,15 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw default: if (this.mgr.isShowLog()) System.out.println( - ""); + ""); break; } break; @@ -418,12 +450,12 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy ReqHandshake1 reqHandshake1 = ReqHandshake1.decode(_msgBytes); if (reqHandshake1 != null) { handleReqHandshake( - rb, - _sk.channel().hashCode(), - reqHandshake1.getNodeId(), - reqHandshake1.getNetId(), - reqHandshake1.getPort(), - reqHandshake1.getRevision()); + rb, + _sk.channel().hashCode(), + reqHandshake1.getNodeId(), + reqHandshake1.getNetId(), + reqHandshake1.getPort(), + reqHandshake1.getRevision()); } } break; @@ -443,11 +475,11 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy Node node = nodeMgr.getActiveNode(rb.nodeIdHash); if (node != null) this.sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - new ResActiveNodes(nodeMgr.getActiveNodesList()), - Dest.ACTIVE)); + new MsgOut( + node.getIdHash(), + node.getIdShort(), + new ResActiveNodes(nodeMgr.getActiveNodesList()), + Dest.ACTIVE)); } break; @@ -463,14 +495,16 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy List incomingNodes = resActiveNodes.getNodes(); for (Node incomingNode : incomingNodes) { if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) return; - if (this.mgr.validateNode(incomingNode)) nodeMgr.addTempNode(incomingNode); + if (this.mgr.validateNode(incomingNode)) + nodeMgr.addTempNode(incomingNode); } } } } break; default: - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) + System.out.println(""); break; } } @@ -485,12 +519,12 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy *

Construct node info after handshake request success */ private void handleReqHandshake( - final ChannelBuffer _buffer, - int _channelHash, - final byte[] _nodeId, - int _netId, - int _port, - final byte[] _revision) { + final ChannelBuffer _buffer, + int _channelHash, + final byte[] _nodeId, + int _netId, + int _port, + final byte[] _revision) { Node node = nodeMgr.getInboundNode(_channelHash); if (node != null && node.peerMetric.notBan()) { if (handshakeRuleCheck(_netId)) { @@ -510,11 +544,11 @@ private void handleReqHandshake( node.setBinaryVersion(binaryVersion); nodeMgr.moveInboundToActive(_channelHash, this.mgr); this.sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - this.cachedResHandshake1, - Dest.ACTIVE)); + new MsgOut( + node.getIdHash(), + node.getIdShort(), + this.cachedResHandshake1, + Dest.ACTIVE)); } } else { diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java index 229bd82a9f..de5fb0c6f1 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java @@ -1,3 +1,28 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors to the aion source files in decreasing order of code volume: + * + * Aion foundation. + * + */ + package org.aion.p2p.impl1; import java.util.List; @@ -12,7 +37,7 @@ public class TaskReceive implements Runnable { private final Map> handlers; private final boolean showLog; - public TaskReceive( + TaskReceive( AtomicBoolean _start, LinkedBlockingQueue _receiveMsgQue, Map> _handlers, diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java index bd38d8a77d..6258a76372 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java @@ -1,3 +1,28 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors to the aion source files in decreasing order of code volume: + * + * Aion foundation. + * + */ + package org.aion.p2p.impl1; import java.nio.channels.SelectionKey; @@ -18,9 +43,9 @@ public class TaskSend implements Runnable { private final LinkedBlockingQueue sendMsgQue; private final NodeMgr nodeMgr; private final Selector selector; - private int lane; + private final int lane; - public TaskSend( + TaskSend( P2pMgr _mgr, int _lane, LinkedBlockingQueue _sendMsgQue, diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java index a7fcf64313..702b90281f 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java @@ -1,3 +1,28 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors to the aion source files in decreasing order of code volume: + * + * Aion foundation. + * + */ + package org.aion.p2p.impl1; import java.util.concurrent.LinkedBlockingQueue; @@ -11,7 +36,7 @@ public class TaskStatus implements Runnable { private LinkedBlockingQueue sendMsgQue; private LinkedBlockingQueue receiveMsgQue; - public TaskStatus( + TaskStatus( NodeMgr _nodeMgr, String _selfShortId, LinkedBlockingQueue _sendMsgQue, From a6b558a58ebc89159073330ad531860bb0c8be7a Mon Sep 17 00:00:00 2001 From: aionick Date: Tue, 22 May 2018 09:41:17 -0400 Subject: [PATCH 035/129] refactoring to improve readability --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 248 +++++++++--------- .../org/aion/p2p/impl1/TaskConnectPeers.java | 58 ++-- .../src/org/aion/p2p/impl1/TaskInbound.java | 59 ++--- .../src/org/aion/p2p/impl1/TaskReceive.java | 3 + .../src/org/aion/p2p/impl1/TaskSend.java | 25 +- .../src/org/aion/p2p/impl1/TaskStatus.java | 5 +- 6 files changed, 202 insertions(+), 196 deletions(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 6d4acdabd4..b808f2b9b4 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -58,7 +58,6 @@ public final class P2pMgr implements IP2pMgr { private final String selfRevision, selfShortId; private final byte[] selfNodeId, selfIp; private final NodeMgr nodeMgr; - private final Map> handlers = new ConcurrentHashMap<>(); private final Set versions = new HashSet<>(); private final Map errCnt = Collections.synchronizedMap(new LRUMap<>(128)); @@ -149,111 +148,59 @@ public void run() { tcpServer.socket().bind(new InetSocketAddress(Node.ipBytesToStr(selfIp), selfPort)); tcpServer.register(selector, SelectionKey.OP_ACCEPT); - Thread thrdIn = - new Thread( - new TaskInbound( - this, - this.selector, - this.start, - this.nodeMgr, - this.tcpServer, - this.handlers, - this.sendMsgQue, - cachedResHandshake1, - this.receiveMsgQue), - "p2p-in"); + Thread thrdIn = new Thread(getInboundInstance(), "p2p-in"); // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); if (showLog) this.handlers.forEach( - (route, callbacks) -> { - Handler handler = callbacks.get(0); - Header h = handler.getHeader(); - System.out.println( - ""); - }); + (route, callbacks) -> { + Handler handler = callbacks.get(0); + Header h = handler.getHeader(); + System.out.println( + getRouteMsg(route, h.getVer(), h.getCtrl(), h.getAction(), + handler.getClass().getSimpleName())); + }); for (int i = 0; i < TaskSend.TOTAL_LANE; i++) { - Thread thrdOut = - new Thread( - new TaskSend( - this, - i, - this.sendMsgQue, - this.start, - this.nodeMgr, - this.selector), - "p2p-out-" + i); + Thread thrdOut = new Thread(getSendInstance(i), "p2p-out-" + i); thrdOut.setPriority(Thread.NORM_PRIORITY); thrdOut.start(); } for (int i = 0, m = Runtime.getRuntime().availableProcessors(); i < m; i++) { - Thread t = - new Thread( - new TaskReceive( - this.start, - this.receiveMsgQue, - this.handlers, - this.showLog), - "p2p-worker-" + i); + Thread t = new Thread(getReceiveInstance(), "p2p-worker-" + i); t.setPriority(Thread.NORM_PRIORITY); t.start(); } if (upnpEnable) scheduledWorkers.scheduleWithFixedDelay( - new TaskUPnPManager(selfPort), - 1, - PERIOD_UPNP_PORT_MAPPING, - TimeUnit.MILLISECONDS); + new TaskUPnPManager(selfPort), + 1, + PERIOD_UPNP_PORT_MAPPING, + TimeUnit.MILLISECONDS); if (showStatus) scheduledWorkers.scheduleWithFixedDelay( - new TaskStatus( - this.nodeMgr, - this.selfShortId, - this.sendMsgQue, - this.receiveMsgQue), + getStatusInstance(), 2, PERIOD_SHOW_STATUS, TimeUnit.MILLISECONDS); if (!syncSeedsOnly) scheduledWorkers.scheduleWithFixedDelay( - new TaskRequestActiveNodes(this), - 5000, - PERIOD_REQUEST_ACTIVE_NODES, - TimeUnit.MILLISECONDS); + new TaskRequestActiveNodes(this), + 5000, + PERIOD_REQUEST_ACTIVE_NODES, + TimeUnit.MILLISECONDS); - Thread thrdClear = - new Thread(new TaskClear(this, this.nodeMgr, this.start), "p2p-clear"); + Thread thrdClear = new Thread(getClearInstance(), "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); thrdClear.start(); - Thread thrdConn = - new Thread( - new TaskConnectPeers( - this, - this.start, - this.nodeMgr, - this.maxActiveNodes, - this.selector, - this.sendMsgQue, - cachedReqHandshake1), - "p2p-conn"); + Thread thrdConn = new Thread(getConnectPeersInstance(), "p2p-conn"); thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); @@ -284,14 +231,7 @@ public void register(final List _cbs) { } List supportedVersions = new ArrayList<>(versions); - cachedReqHandshake1 = - new ReqHandshake1( - selfNodeId, - selfNetId, - this.selfIp, - this.selfPort, - this.selfRevision.getBytes(), - supportedVersions); + cachedReqHandshake1 = getReqHandshake1Instance(supportedVersions); } @Override @@ -323,43 +263,13 @@ public void errCheck(int _nodeIdHash, String _displayId) { ban(_nodeIdHash); errCnt.put(_nodeIdHash, 0); if (showLog) { - System.out.println( - ""); + System.out.println(getBanNodeMsg(_displayId, _nodeIdHash, cnt)); } } else { errCnt.put(_nodeIdHash, cnt); } } - @Override - public INode getRandom() { - return this.nodeMgr.getRandom(); - } - - @Override - public Map getActiveNodes() { - return new HashMap<>(this.nodeMgr.getActiveNodesMap()); - } - - @Override - public int chainId() { - return this.selfNetId; - } - - @Override - public int getSelfIdHash() { - return this.selfNodeIdHash; - } - - @Override - public boolean isShowLog() { - return this.showLog; - } - /** @param _sc SocketChannel */ public void closeSocket(final SocketChannel _sc, String _reason) { if (showLog) System.out.println(""); @@ -391,7 +301,7 @@ boolean validateNode(final Node _node) { if (_node != null) { boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); boolean notSameIpOrPort = - !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); + !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); return notSelfId && notSameIpOrPort && notActive && notOutbound; @@ -416,23 +326,125 @@ private void ban(int nodeIdHashcode) { nodeMgr.dropActive(nodeIdHashcode, this, "ban"); } + // <------------------------ getter methods below ---------------------------> + + @Override + public INode getRandom() { + return this.nodeMgr.getRandom(); + } + + @Override + public Map getActiveNodes() { + return new HashMap<>(this.nodeMgr.getActiveNodesMap()); + } + + @Override + public int chainId() { + return this.selfNetId; + } + + @Override + public int getSelfIdHash() { + return this.selfNodeIdHash; + } + + @Override + public boolean isShowLog() { + return this.showLog; + } + public int getTempNodesCount() { return this.nodeMgr.tempNodesSize(); } - public int getMaxActiveNodes() { + int getMaxActiveNodes() { return this.maxActiveNodes; } - public int getMaxTempNodes() { + int getMaxTempNodes() { return this.maxTempNodes; } - public int getSelfNetId() { + int getSelfNetId() { return this.selfNetId; } - public boolean isSyncSeedsOnly() { + boolean isSyncSeedsOnly() { return this.syncSeedsOnly; } + + // <---------------------- message and Runnable getters below -------------------------> + + private String getRouteMsg(Integer route, short ver, byte ctrl, byte act, String name) { + return ""; + } + + private String getBanNodeMsg(String id, int hash, int cnt) { + return ""; + } + + private TaskInbound getInboundInstance() { + return new TaskInbound( + this, + this.selector, + this.start, + this.nodeMgr, + this.tcpServer, + this.handlers, + this.sendMsgQue, + cachedResHandshake1, + this.receiveMsgQue); + } + + private TaskSend getSendInstance(int i) { + return new TaskSend( + this, + i, + this.sendMsgQue, + this.start, + this.nodeMgr, + this.selector); + } + + private TaskReceive getReceiveInstance() { + return new TaskReceive( + this.start, + this.receiveMsgQue, + this.handlers, + this.showLog); + } + + private TaskStatus getStatusInstance() { + return new TaskStatus( + this.nodeMgr, + this.selfShortId, + this.sendMsgQue, + this.receiveMsgQue); + } + + private TaskClear getClearInstance() { + return new TaskClear(this, this.nodeMgr, this.start); + } + + private TaskConnectPeers getConnectPeersInstance() { + return new TaskConnectPeers( + this, + this.start, + this.nodeMgr, + this.maxActiveNodes, + this.selector, + this.sendMsgQue, + cachedReqHandshake1); + } + + private ReqHandshake1 getReqHandshake1Instance(List versions) { + return new ReqHandshake1( + selfNodeId, + selfNetId, + this.selfIp, + this.selfPort, + this.selfRevision.getBytes(), + versions); + } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java index 5019f543a2..5095e67e5b 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java @@ -75,12 +75,12 @@ public void run() { try { Thread.sleep(PERIOD_CONNECT_OUTBOUND); } catch (InterruptedException e) { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) System.out.println(getTcpInterruptedMsg()); } if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { if (this.mgr.isShowLog()) - System.out.println(""); + System.out.println(getTcpPassMaxNodesMsg()); continue; } @@ -93,7 +93,7 @@ public void run() { // continue; // } } catch (InterruptedException e) { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) System.out.println(getTcpInterruptedMsg()); return; } catch (Exception e) { if (this.mgr.isShowLog()) e.printStackTrace(); @@ -115,12 +115,7 @@ public void run() { if (channel.finishConnect() && channel.isConnected()) { if (this.mgr.isShowLog()) - System.out.println( - ""); + System.out.println(getSucesCnctMsg(node.getIdShort(), node.getIpStr())); SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); ChannelBuffer rb = new ChannelBuffer(this.mgr.isShowLog()); @@ -133,12 +128,7 @@ public void run() { this.nodeMgr.addOutboundNode(node); if (this.mgr.isShowLog()) - System.out.println( - " id=" - + node.getIdShort() - + " ip=" - + node.getIpStr() - + ">"); + System.out.println(getPrepRqstMsg(node.getIdShort(), node.getIpStr())); this.sendMsgQue.offer( new MsgOut( node.getIdHash(), @@ -149,23 +139,13 @@ public void run() { } else { if (this.mgr.isShowLog()) - System.out.println( - ""); + System.out.println(getFailCnctMsg(node.getIdShort(), node.getIpStr())); channel.close(); // node.peerMetric.incFailedCount(); } } catch (IOException e) { if (this.mgr.isShowLog()) - System.out.println( - ""); + System.out.println(getOutboundConnectMsg(node.getIpStr(), _port)); // node.peerMetric.incFailedCount(); } catch (Exception e) { if (this.mgr.isShowLog()) e.printStackTrace(); @@ -173,4 +153,28 @@ public void run() { } } } + + private String getTcpInterruptedMsg() { + return ""; + } + + private String getTcpPassMaxNodesMsg() { + return ""; + } + + private String getSucesCnctMsg(String idStr, String ipStr) { + return ""; + } + + private String getOutboundConnectMsg(String ipStr, int port) { + return ""; + } + + private String getFailCnctMsg(String idStr, String ipStr) { + return ""; + } + + private String getPrepRqstMsg(String idStr, String ipStr) { + return " id=" + idStr + " ip=" + ipStr + ">"; + } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java index 0a3e8f342c..8d8928a289 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java @@ -58,11 +58,11 @@ import org.aion.p2p.impl1.TaskSend.MsgOut; public class TaskInbound implements Runnable { - private AtomicBoolean start; private final P2pMgr mgr; private final Selector selector; private final NodeMgr nodeMgr; private final Map> handlers; + private AtomicBoolean start; private ServerSocketChannel tcpServer; private LinkedBlockingQueue sendMsgQue; private ResHandshake1 cachedResHandshake1; @@ -174,11 +174,7 @@ public void run() { // check if really read data. if (cnt > prevCnt) { chanBuf.buffRemain = 0; - throw new P2pException( - "IO read overflow! suppose read:" - + prevCnt - + " real left:" - + cnt); + throw new P2pException(getReadOverflowMsg(prevCnt, cnt)); } chanBuf.buffRemain = cnt; @@ -367,17 +363,7 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw if (!underRC) { if (this.mgr.isShowLog()) System.out.println( - ""); + getRouteMsg(ver, ctrl, act, rb.getRouteCount(route).count, rb.displayId)); return currCnt; } @@ -396,16 +382,7 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw case Ctrl.SYNC: if (!this.handlers.containsKey(route)) { if (this.mgr.isShowLog()) - System.out.println( - ""); + System.out.println(getUnregRouteMsg(ver, ctrl, act, rb.displayId)); return currCnt; } @@ -413,16 +390,7 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw break; default: if (this.mgr.isShowLog()) - System.out.println( - ""); + System.out.println(getInvalRouteMsg(ver, ctrl, act, rb.displayId)); break; } break; @@ -588,4 +556,21 @@ private boolean handshakeRuleCheck(int netId) { // check supported protocol versions return true; } + + private String getReadOverflowMsg(int prevCnt, int cnt) { + return "IO read overflow! suppose read:" + prevCnt + " real left:" + cnt; + } + + private String getRouteMsg(short ver, byte ctrl, byte act, int count, String idStr) { + return ""; + } + + private String getUnregRouteMsg(short ver, byte ctrl, byte act, String idStr) { + return ""; + } + + private String getInvalRouteMsg(short ver, byte ctrl, byte act, String idStr) { + return ""; + } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java index de5fb0c6f1..d9a2659d44 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java @@ -74,6 +74,9 @@ public void run() { } } + /** + * An incoming message. + */ static class MsgIn { private final int nid; private final String nsid; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java index 6258a76372..e6f494abd2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java @@ -70,12 +70,7 @@ public void run() { long now = System.currentTimeMillis(); if (now - mo.timestamp > P2pConstant.WRITE_MSG_TIMEOUT) { if (this.mgr.isShowLog()) - System.out.println( - ""); + System.out.println(getTimeoutMsg(mo.displayId, now)); continue; } @@ -117,12 +112,7 @@ public void run() { } } else { if (this.mgr.isShowLog()) - System.out.println( - "" - + mo.displayId - + " node-not-exit"); + System.out.println(getNodeNotExitMsg(mo.dest.name(), mo.displayId)); } } catch (InterruptedException e) { if (this.mgr.isShowLog()) System.out.println(""); @@ -143,6 +133,9 @@ private int hash2Lane(int in) { return in & 0b11111; } + /** + * An outgoing message. + */ static class MsgOut { private final int nodeId; private final String displayId; @@ -166,4 +159,12 @@ static class MsgOut { timestamp = System.currentTimeMillis(); } } + + private String getTimeoutMsg(String id, long now) { + return ""; + } + + private String getNodeNotExitMsg(String name, String id) { + return "" + id + " node-not-exit"; + } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java index 702b90281f..7e39610cb2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java @@ -52,8 +52,9 @@ public void run() { Thread.currentThread().setName("p2p-ts"); String status = this.nodeMgr.dumpNodeInfo(this.selfShortId); System.out.println(status); - System.out.println( - "--------------------------------------------------------------------------------------------------------------------------------------------------------------------"); + System.out.println("--------------------------------------------------------------------" + + "-------------------------------------------------------------------------------" + + "-----------------"); System.out.println( "recv queue [" + this.receiveMsgQue.size() From 71827854866aedacda2f0fea07ac7860427c5005 Mon Sep 17 00:00:00 2001 From: aionick Date: Tue, 22 May 2018 11:06:16 -0400 Subject: [PATCH 036/129] moved tasks to separate package --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 28 +++++++++++-------- .../p2p/impl1/{ => tasks}/ChannelBuffer.java | 2 +- .../aion/p2p/impl1/{ => tasks}/TaskClear.java | 5 ++-- .../impl1/{ => tasks}/TaskConnectPeers.java | 7 +++-- .../p2p/impl1/{ => tasks}/TaskInbound.java | 10 ++++--- .../p2p/impl1/{ => tasks}/TaskReceive.java | 8 +++--- .../aion/p2p/impl1/{ => tasks}/TaskSend.java | 11 ++++---- .../p2p/impl1/{ => tasks}/TaskStatus.java | 8 +++--- .../aion/p2p/impl1/{ => tasks}/TaskWrite.java | 3 +- 9 files changed, 47 insertions(+), 35 deletions(-) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/ChannelBuffer.java (99%) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/TaskClear.java (94%) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/TaskConnectPeers.java (97%) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/TaskInbound.java (98%) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/TaskReceive.java (94%) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/TaskSend.java (95%) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/TaskStatus.java (93%) rename modP2pImpl/src/org/aion/p2p/impl1/{ => tasks}/TaskWrite.java (98%) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index b808f2b9b4..e417cc4dfa 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -38,8 +38,14 @@ import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; import org.aion.p2p.impl.zero.msg.*; -import org.aion.p2p.impl1.TaskReceive.MsgIn; -import org.aion.p2p.impl1.TaskSend.MsgOut; +import org.aion.p2p.impl1.tasks.TaskReceive; +import org.aion.p2p.impl1.tasks.TaskReceive.MsgIn; +import org.aion.p2p.impl1.tasks.TaskSend; +import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; +import org.aion.p2p.impl1.tasks.TaskClear; +import org.aion.p2p.impl1.tasks.TaskConnectPeers; +import org.aion.p2p.impl1.tasks.TaskInbound; +import org.aion.p2p.impl1.tasks.TaskStatus; import org.apache.commons.collections4.map.LRUMap; /** @author Chris p2p://{uuid}@{ip}:{port} */ @@ -50,7 +56,7 @@ public final class P2pMgr implements IP2pMgr { private static final int TIMEOUT_MSG_READ = 10000; // TODO: need refactor by passing the parameter in the later version. - static final int txBroadCastRoute = + public static final int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; @@ -73,7 +79,7 @@ public final class P2pMgr implements IP2pMgr { private static ReqHandshake1 cachedReqHandshake1; private static ResHandshake1 cachedResHandshake1; - enum Dest { + public enum Dest { INBOUND, OUTBOUND, ACTIVE @@ -289,7 +295,7 @@ public void closeSocket(final SocketChannel _sc, String _reason) { * @param _nodeIdHash int * @param _reason String */ - void dropActive(int _nodeIdHash, String _reason) { + public void dropActive(int _nodeIdHash, String _reason) { nodeMgr.dropActive(_nodeIdHash, this, _reason); } @@ -297,7 +303,7 @@ void dropActive(int _nodeIdHash, String _reason) { * @param _node Node * @return boolean */ - boolean validateNode(final Node _node) { + public boolean validateNode(final Node _node) { if (_node != null) { boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); boolean notSameIpOrPort = @@ -309,7 +315,7 @@ boolean validateNode(final Node _node) { } /** @param _channel SocketChannel TODO: check option */ - void configChannel(final SocketChannel _channel) throws IOException { + public void configChannel(final SocketChannel _channel) throws IOException { _channel.configureBlocking(false); _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); @@ -357,19 +363,19 @@ public int getTempNodesCount() { return this.nodeMgr.tempNodesSize(); } - int getMaxActiveNodes() { + public int getMaxActiveNodes() { return this.maxActiveNodes; } - int getMaxTempNodes() { + public int getMaxTempNodes() { return this.maxTempNodes; } - int getSelfNetId() { + public int getSelfNetId() { return this.selfNetId; } - boolean isSyncSeedsOnly() { + public boolean isSyncSeedsOnly() { return this.syncSeedsOnly; } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/ChannelBuffer.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java similarity index 99% rename from modP2pImpl/src/org/aion/p2p/impl1/ChannelBuffer.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java index a3d8c54399..e03dd70e2d 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/ChannelBuffer.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java @@ -22,7 +22,7 @@ * Aion foundation. * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import org.aion.p2p.Header; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java similarity index 94% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index ddabf32b44..ee077f3893 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -23,12 +23,13 @@ * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import java.util.Iterator; import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.impl1.P2pMgr; public class TaskClear implements Runnable { private static final int PERIOD_CLEAR = 20000; @@ -38,7 +39,7 @@ public class TaskClear implements Runnable { private final NodeMgr nodeMgr; private AtomicBoolean start; - TaskClear(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { + public TaskClear(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { this.mgr = _mgr; this.nodeMgr = _nodeMgr; this.start = _start; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java similarity index 97% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index 5095e67e5b..7201b9cb20 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -23,7 +23,7 @@ * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import java.io.IOException; import java.net.InetSocketAddress; @@ -35,8 +35,9 @@ import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; import org.aion.p2p.impl.zero.msg.ReqHandshake1; +import org.aion.p2p.impl1.P2pMgr; import org.aion.p2p.impl1.P2pMgr.Dest; -import org.aion.p2p.impl1.TaskSend.MsgOut; +import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; public class TaskConnectPeers implements Runnable { private static final int PERIOD_CONNECT_OUTBOUND = 1000; @@ -50,7 +51,7 @@ public class TaskConnectPeers implements Runnable { private Selector selector; private ReqHandshake1 cachedReqHandshake1; - TaskConnectPeers( + public TaskConnectPeers( P2pMgr _mgr, AtomicBoolean _start, NodeMgr _nodeMgr, diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java similarity index 98% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index 8d8928a289..c22f466b15 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -23,7 +23,7 @@ * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import java.io.IOException; import java.io.UnsupportedEncodingException; @@ -53,9 +53,11 @@ import org.aion.p2p.impl.zero.msg.ResActiveNodes; import org.aion.p2p.impl.zero.msg.ResHandshake; import org.aion.p2p.impl.zero.msg.ResHandshake1; +import org.aion.p2p.impl1.P2pException; +import org.aion.p2p.impl1.P2pMgr; import org.aion.p2p.impl1.P2pMgr.Dest; -import org.aion.p2p.impl1.TaskReceive.MsgIn; -import org.aion.p2p.impl1.TaskSend.MsgOut; +import org.aion.p2p.impl1.tasks.TaskReceive.MsgIn; +import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; public class TaskInbound implements Runnable { private final P2pMgr mgr; @@ -68,7 +70,7 @@ public class TaskInbound implements Runnable { private ResHandshake1 cachedResHandshake1; private LinkedBlockingQueue receiveMsgQue; - TaskInbound( + public TaskInbound( P2pMgr _mgr, Selector _selector, AtomicBoolean _start, diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java similarity index 94% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index d9a2659d44..a491bce3e2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -23,7 +23,7 @@ * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import java.util.List; import java.util.Map; @@ -37,7 +37,7 @@ public class TaskReceive implements Runnable { private final Map> handlers; private final boolean showLog; - TaskReceive( + public TaskReceive( AtomicBoolean _start, LinkedBlockingQueue _receiveMsgQue, Map> _handlers, @@ -77,7 +77,7 @@ public void run() { /** * An incoming message. */ - static class MsgIn { + public static class MsgIn { private final int nid; private final String nsid; private final int route; @@ -91,7 +91,7 @@ static class MsgIn { * @param route * @param msg */ - MsgIn(int nid, String nsid, int route, byte[] msg) { + public MsgIn(int nid, String nsid, int route, byte[] msg) { this.nid = nid; this.nsid = nsid; this.route = route; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java similarity index 95% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index e6f494abd2..e9cb6693ac 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -23,7 +23,7 @@ * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; @@ -33,10 +33,11 @@ import org.aion.p2p.P2pConstant; import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.impl1.P2pMgr; import org.aion.p2p.impl1.P2pMgr.Dest; public class TaskSend implements Runnable { - static final int TOTAL_LANE = (1 << 5) - 1; + public static final int TOTAL_LANE = (1 << 5) - 1; private final P2pMgr mgr; private final AtomicBoolean start; @@ -45,7 +46,7 @@ public class TaskSend implements Runnable { private final Selector selector; private final int lane; - TaskSend( + public TaskSend( P2pMgr _mgr, int _lane, LinkedBlockingQueue _sendMsgQue, @@ -136,7 +137,7 @@ private int hash2Lane(int in) { /** * An outgoing message. */ - static class MsgOut { + public static class MsgOut { private final int nodeId; private final String displayId; private final Msg msg; @@ -151,7 +152,7 @@ static class MsgOut { * @param _msg * @param _dest */ - MsgOut(int _nodeId, String _displayId, Msg _msg, Dest _dest) { + public MsgOut(int _nodeId, String _displayId, Msg _msg, Dest _dest) { nodeId = _nodeId; displayId = _displayId; msg = _msg; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java similarity index 93% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index 7e39610cb2..f935388423 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -23,12 +23,12 @@ * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import java.util.concurrent.LinkedBlockingQueue; import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl1.TaskReceive.MsgIn; -import org.aion.p2p.impl1.TaskSend.MsgOut; +import org.aion.p2p.impl1.tasks.TaskReceive.MsgIn; +import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; public class TaskStatus implements Runnable { private final NodeMgr nodeMgr; @@ -36,7 +36,7 @@ public class TaskStatus implements Runnable { private LinkedBlockingQueue sendMsgQue; private LinkedBlockingQueue receiveMsgQue; - TaskStatus( + public TaskStatus( NodeMgr _nodeMgr, String _selfShortId, LinkedBlockingQueue _sendMsgQue, diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java similarity index 98% rename from modP2pImpl/src/org/aion/p2p/impl1/TaskWrite.java rename to modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java index 126ffdd557..675beb2e08 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java @@ -23,7 +23,7 @@ * */ -package org.aion.p2p.impl1; +package org.aion.p2p.impl1.tasks; import java.io.IOException; import java.nio.ByteBuffer; @@ -31,6 +31,7 @@ import java.nio.channels.SocketChannel; import org.aion.p2p.Header; import org.aion.p2p.Msg; +import org.aion.p2p.impl1.P2pMgr; /** @author chris */ public class TaskWrite implements Runnable { From 606b1e3e9b29619b20c6515e85dcd7b78693976e Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 22 May 2018 11:16:04 -0400 Subject: [PATCH 037/129] bugfix: incorrect check for presence in the data source --- .../org/aion/mcf/trie/JournalPruneDataSource.java | 13 +++++++++---- .../aion/mcf/trie/JournalPruneDataSourceTest.java | 10 ++++------ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index 135628a801..31a1a1e9a1 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -76,6 +76,11 @@ public Ref(boolean dbRef) { public int getTotRefs() { return journalRefs + (dbRef ? 1 : 0); } + + @Override + public String toString() { + return "refs: " + String.valueOf(journalRefs) + " db: " + String.valueOf(dbRef); + } } Map refCount = new HashMap<>(); @@ -203,7 +208,7 @@ public void putBatch(Map inputMap) { private void incRef(ByteArrayWrapper keyW) { Ref cnt = refCount.get(keyW); if (cnt == null) { - cnt = new Ref(src.get(keyW.getData()) != null); + cnt = new Ref(src.get(keyW.getData()).isPresent()); refCount.put(keyW, cnt); } cnt.journalRefs++; @@ -279,14 +284,14 @@ private void rollbackForkBlocks(long blockNum) { private void rollback(ByteArrayWrapper blockHashW) { Updates updates = blockUpdates.remove(blockHashW); - Map batchRemove = new HashMap<>(); + List batchRemove = new ArrayList<>(); for (ByteArrayWrapper insertedKey : updates.insertedKeys) { Ref ref = decRef(insertedKey); if (ref.getTotRefs() == 0) { - batchRemove.put(insertedKey.getData(), null); + batchRemove.add(insertedKey.getData()); } } - src.putBatch(batchRemove); + src.deleteBatch(batchRemove); } public Map getRefCount() { diff --git a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java index bd7c41153c..6e0dab3af0 100644 --- a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java +++ b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java @@ -1430,12 +1430,12 @@ public void pruningTest_wFork_onCurrentLevel() { // also removed the updates for block b2 assertThat(db.getBlockUpdates().size()).isEqualTo(0); - assertThat(source_db.keys().size()).isEqualTo(5); + assertThat(source_db.keys().size()).isEqualTo(4); assertThat(source_db.get(k1).get()).isEqualTo(v3); assertThat(source_db.get(k2).get()).isEqualTo(v4); assertThat(source_db.get(k3).get()).isEqualTo(v3); assertThat(source_db.get(k4).isPresent()).isFalse(); - assertThat(source_db.get(k5).get()).isEqualTo(v5); + assertThat(source_db.get(k5).isPresent()).isFalse(); assertThat(source_db.get(k6).get()).isEqualTo(v6); } @@ -1485,7 +1485,6 @@ public void pruningTest_wFork_onPastLevel() { // block b3 db.put(k6, v6); - db.delete(k4); db.put(k2, v4); db.put(k1, v3); db.storeBlockChanges(b3, 2); @@ -1507,12 +1506,11 @@ public void pruningTest_wFork_onPastLevel() { // prune block b2 at level 1 : (should be called for main chain block) db.prune(b2, 1); assertThat(db.getBlockUpdates().size()).isEqualTo(1); - assertThat(source_db.keys().size()).isEqualTo(5); + assertThat(source_db.keys().size()).isEqualTo(4); assertThat(source_db.get(k1).get()).isEqualTo(v3); assertThat(source_db.get(k2).get()).isEqualTo(v4); assertThat(source_db.get(k3).isPresent()).isFalse(); - // note: k4 must be explicitly deleted even if it was introduced in the discarded b1 block - assertThat(source_db.get(k4).get()).isEqualTo(v4); + assertThat(source_db.get(k4).isPresent()).isFalse(); assertThat(source_db.get(k5).get()).isEqualTo(v5); assertThat(source_db.get(k6).get()).isEqualTo(v6); From d7c1f587e926f1104c7caf3f568d5685cd10f88d Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 15 May 2018 13:44:28 -0400 Subject: [PATCH 038/129] new configuration class and interface for pruning --- .../src/org/aion/base/db/IPruneConfig.java | 30 ++++ modMcf/src/org/aion/mcf/config/CfgPrune.java | 139 ++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 modAionBase/src/org/aion/base/db/IPruneConfig.java create mode 100644 modMcf/src/org/aion/mcf/config/CfgPrune.java diff --git a/modAionBase/src/org/aion/base/db/IPruneConfig.java b/modAionBase/src/org/aion/base/db/IPruneConfig.java new file mode 100644 index 0000000000..871537b85a --- /dev/null +++ b/modAionBase/src/org/aion/base/db/IPruneConfig.java @@ -0,0 +1,30 @@ +package org.aion.base.db; + +/** + * Interface for pruning configuration parameters. + * + * @author Alexandra Roatis + */ +public interface IPruneConfig { + + /** + * Indicates if pruning should be enabled or disabled. + * + * @return {@code true} when pruning enabled, {@code false} when pruning disabled. + */ + boolean isEnabled(); + + /** + * @return the number of topmost blocks for which the full data should be maintained on disk. + */ + int getCurrentCount(); + + /** + * Gets the rate at which blocks should be archived (for which the full data should be + * maintained on disk). Blocks that are exact multiples of the returned value should be + * persisted on disk, regardless of other pruning. + * + * @return integer value representing the archive rate + */ + int getArchiveRate(); +} diff --git a/modMcf/src/org/aion/mcf/config/CfgPrune.java b/modMcf/src/org/aion/mcf/config/CfgPrune.java new file mode 100644 index 0000000000..4e71fed6e9 --- /dev/null +++ b/modMcf/src/org/aion/mcf/config/CfgPrune.java @@ -0,0 +1,139 @@ +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: + * Aion foundation. + ******************************************************************************/ +package org.aion.mcf.config; + +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamReader; +import javax.xml.stream.XMLStreamWriter; +import org.aion.base.db.IPruneConfig; + +/** + * Configuration for data pruning behavior. + * + * @author Alexandra Roatis + */ +public class CfgPrune implements IPruneConfig { + + private boolean enabled; + private int current; + private int archive; + + public CfgPrune() { + this.enabled = true; + this.current = 128; + this.archive = 10000; + } + + public CfgPrune(boolean _enabled) { + this.enabled = _enabled; + this.current = 128; + this.archive = 10000; + } + + public void fromXML(final XMLStreamReader sr) throws XMLStreamException { + loop: + while (sr.hasNext()) { + int eventType = sr.next(); + switch (eventType) { + case XMLStreamReader.START_ELEMENT: + String elementName = sr.getLocalName().toLowerCase(); + switch (elementName) { + case "enabled": + this.enabled = Boolean.parseBoolean(Cfg.readValue(sr)); + break; + case "current_count": + this.current = Integer.parseInt(Cfg.readValue(sr)); + // must be at least 128 + if (this.current < 128) { + this.current = 128; + } + break; + case "archive_rate": + this.archive = Integer.parseInt(Cfg.readValue(sr)); + // must be at least 1000 + if (this.current < 1000) { + this.current = 1000; + } + break; + default: + Cfg.skipElement(sr); + break; + } + break; + case XMLStreamReader.END_ELEMENT: + break loop; + } + } + } + + public void toXML(XMLStreamWriter xmlWriter) throws XMLStreamException { + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeStartElement("prune"); + + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeComment("Boolean value. Enable/disable database pruning."); + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeStartElement("enabled"); + xmlWriter.writeCharacters(String.valueOf(this.enabled)); + xmlWriter.writeEndElement(); + + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeComment( + "Integer value with minimum set to 128. Only blocks older than best block level minus this number are candidates for pruning."); + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeStartElement("current_count"); + xmlWriter.writeCharacters(String.valueOf(this.current)); + xmlWriter.writeEndElement(); + + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeComment( + "Integer value with minimum set to 1000. States for blocks that are exact multiples of this number will not be pruned."); + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeStartElement("archive_rate"); + xmlWriter.writeCharacters(String.valueOf(this.archive)); + xmlWriter.writeEndElement(); + + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeEndElement(); + } + + public boolean isEnabled() { + return enabled; + } + + @Override + public int getCurrentCount() { + return current; + } + + @Override + public int getArchiveRate() { + return archive; + } +} From e3198507212c39449e1e4a76113930fe3b03174d Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 15 May 2018 13:59:36 -0400 Subject: [PATCH 039/129] using new detailed pruning configuration --- .../org/aion/base/db/IRepositoryConfig.java | 12 +- .../aion/zero/impl/StandaloneBlockchain.java | 230 ++++++++++-------- .../aion/zero/impl/db/AionRepositoryImpl.java | 20 +- .../aion/zero/impl/db/RepositoryConfig.java | 24 +- .../org/aion/db/AionContractDetailsTest.java | 149 +++++++----- .../aion/zero/impl/MockRepositoryConfig.java | 9 +- .../zero/impl/db/AionRepositoryImplTest.java | 10 +- modBoot/resource/config.xml | 9 + modMcf/src/org/aion/mcf/config/CfgDb.java | 183 +++++++------- .../org/aion/mcf/db/AbstractRepository.java | 15 +- 10 files changed, 353 insertions(+), 308 deletions(-) diff --git a/modAionBase/src/org/aion/base/db/IRepositoryConfig.java b/modAionBase/src/org/aion/base/db/IRepositoryConfig.java index 02671bd267..7a315bbfd9 100644 --- a/modAionBase/src/org/aion/base/db/IRepositoryConfig.java +++ b/modAionBase/src/org/aion/base/db/IRepositoryConfig.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -37,19 +37,17 @@ import java.util.Properties; /** - * Represents a configuration interface accepted that should be accepted by the - * repository to implement necessary configs + * Represents a configuration interface accepted that should be accepted by the repository to + * implement necessary configs * * @author yao */ public interface IRepositoryConfig { - /** - * @return absolute path to the DB folder containing files - */ + /** @return absolute path to the DB folder containing files */ String getDbPath(); - int getPrune(); + IPruneConfig getPruneConfig(); IContractDetails contractDetailsImpl(); diff --git a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java index 02608cb2e1..092a83d873 100644 --- a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java +++ b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,22 +19,27 @@ * * Contributors: * Aion foundation. - * + * ******************************************************************************/ package org.aion.zero.impl; +import java.math.BigInteger; +import java.util.*; import org.aion.base.db.IContractDetails; +import org.aion.base.db.IPruneConfig; import org.aion.base.db.IRepositoryCache; import org.aion.base.db.IRepositoryConfig; import org.aion.base.type.Address; import org.aion.base.util.ByteArrayWrapper; -import org.aion.db.impl.DatabaseFactory; -import org.aion.mcf.core.AccountState; import org.aion.crypto.ECKey; import org.aion.crypto.ECKeyFac; import org.aion.db.impl.DBVendor; +import org.aion.db.impl.DatabaseFactory; +import org.aion.mcf.config.CfgPrune; +import org.aion.mcf.core.AccountState; import org.aion.mcf.valid.BlockHeaderValidator; +import org.aion.mcf.vm.types.DataWord; import org.aion.vm.PrecompiledContracts; import org.aion.zero.exceptions.HeaderStructureException; import org.aion.zero.impl.blockchain.ChainConfiguration; @@ -47,50 +52,49 @@ import org.aion.zero.impl.valid.AionHeaderVersionRule; import org.aion.zero.impl.valid.EnergyConsumedRule; import org.aion.zero.types.A0BlockHeader; -import org.aion.mcf.vm.types.DataWord; - -import java.math.BigInteger; -import java.util.*; /** - * Used mainly for debugging and testing purposes, provides codepaths for easy - * setup, into standard configurations that a user might expected, and handles - * any non-intuitive setup that the blockchain may require. + * Used mainly for debugging and testing purposes, provides codepaths for easy setup, into standard + * configurations that a user might expected, and handles any non-intuitive setup that the + * blockchain may require. */ public class StandaloneBlockchain extends AionBlockchainImpl { public AionGenesis genesis; - private static IRepositoryConfig repoConfig = new IRepositoryConfig() { - @Override - public String getDbPath() { - return ""; - } + private static IRepositoryConfig repoConfig = + new IRepositoryConfig() { + @Override + public String getDbPath() { + return ""; + } - @Override - public int getPrune() { - return -1; - } + @Override + public IPruneConfig getPruneConfig() { + return new CfgPrune(false); + } - @Override - public IContractDetails contractDetailsImpl() { - return ContractDetailsAion.createForTesting(0, 1000000).getDetails(); - } + @Override + public IContractDetails contractDetailsImpl() { + return ContractDetailsAion.createForTesting(0, 1000000).getDetails(); + } - @Override - public Properties getDatabaseConfig(String db_name) { - Properties props = new Properties(); - props.setProperty(DatabaseFactory.Props.DB_TYPE, DBVendor.MOCKDB.toValue()); - props.setProperty(DatabaseFactory.Props.ENABLE_HEAP_CACHE, "false"); - return props; - } - }; + @Override + public Properties getDatabaseConfig(String db_name) { + Properties props = new Properties(); + props.setProperty(DatabaseFactory.Props.DB_TYPE, DBVendor.MOCKDB.toValue()); + props.setProperty(DatabaseFactory.Props.ENABLE_HEAP_CACHE, "false"); + return props; + } + }; protected StandaloneBlockchain(final A0BCConfig config, final ChainConfiguration chainConfig) { super(config, AionRepositoryImpl.createForTesting(repoConfig), chainConfig); } - protected StandaloneBlockchain(final A0BCConfig config, final ChainConfiguration chainConfig, + protected StandaloneBlockchain( + final A0BCConfig config, + final ChainConfiguration chainConfig, IRepositoryConfig repoConfig) { super(config, AionRepositoryImpl.createForTesting(repoConfig), chainConfig); } @@ -103,9 +107,7 @@ public AionGenesis getGenesis() { return this.genesis; } - public void loadJSON(String json) { - - } + public void loadJSON(String json) {} public BlockHeaderValidator getBlockHeaderValidator() { return this.chainConfiguration.createBlockHeaderValidator(); @@ -133,15 +135,15 @@ public static class Builder { private IRepositoryConfig repoConfig; public static final int INITIAL_ACC_LEN = 10; - public static final BigInteger DEFAULT_BALANCE = new BigInteger("1000000000000000000000000"); + public static final BigInteger DEFAULT_BALANCE = + new BigInteger("1000000000000000000000000"); /** - * The type of validator selected for the blockchain, a "full" validator - * validates blocks as if they were broadcasted from the network. - * Therefore the header validator will require a valid equiHash - * solution. + * The type of validator selected for the blockchain, a "full" validator validates blocks as + * if they were broadcasted from the network. Therefore the header validator will require a + * valid equiHash solution. * - * {@code validatorType -> (full|simple)} + *

{@code validatorType -> (full|simple)} */ String validatorType; @@ -154,7 +156,8 @@ public Builder withDefaultAccounts() { for (int i = 0; i < INITIAL_ACC_LEN; i++) { ECKey pk = ECKeyFac.inst().create(); this.defaultKeys.add(pk); - initialState.put(new ByteArrayWrapper(pk.getAddress()), + initialState.put( + new ByteArrayWrapper(pk.getAddress()), new AccountState(BigInteger.ZERO, DEFAULT_BALANCE)); } return this; @@ -162,8 +165,11 @@ public Builder withDefaultAccounts() { public Builder withDefaultAccounts(List defaultAccounts) { this.defaultKeys.addAll(defaultAccounts); - this.defaultKeys.forEach(k -> initialState.put(new ByteArrayWrapper(k.getAddress()), - new AccountState(BigInteger.ZERO, DEFAULT_BALANCE))); + this.defaultKeys.forEach( + k -> + initialState.put( + new ByteArrayWrapper(k.getAddress()), + new AccountState(BigInteger.ZERO, DEFAULT_BALANCE))); return this; } @@ -199,8 +205,8 @@ public String getDbPath() { } @Override - public int getPrune() { - return -1; + public IPruneConfig getPruneConfig() { + return new CfgPrune(false); } @Override @@ -219,41 +225,45 @@ public Properties getDatabaseConfig(String db_name) { } public Bundle build() { - this.a0Config = this.a0Config == null ? new A0BCConfig() { - @Override - public Address getCoinbase() { - return Address.ZERO_ADDRESS(); - } - - @Override - public byte[] getExtraData() { - return new byte[32]; - } - - @Override - public boolean getExitOnBlockConflict() { - return false; - } - - @Override - public Address getMinerCoinbase() { - return Address.ZERO_ADDRESS(); - } - - @Override - public int getFlushInterval() { - return 1; - } - - @Override - public AbstractEnergyStrategyLimit getEnergyLimitStrategy() { - return new TargetStrategy( - configuration.getConstants().getEnergyLowerBoundLong(), - configuration.getConstants().getEnergyDivisorLimitLong(), - 10_000_000L); - } - - } : this.a0Config; + this.a0Config = + this.a0Config == null + ? new A0BCConfig() { + @Override + public Address getCoinbase() { + return Address.ZERO_ADDRESS(); + } + + @Override + public byte[] getExtraData() { + return new byte[32]; + } + + @Override + public boolean getExitOnBlockConflict() { + return false; + } + + @Override + public Address getMinerCoinbase() { + return Address.ZERO_ADDRESS(); + } + + @Override + public int getFlushInterval() { + return 1; + } + + @Override + public AbstractEnergyStrategyLimit getEnergyLimitStrategy() { + return new TargetStrategy( + configuration.getConstants().getEnergyLowerBoundLong(), + configuration + .getConstants() + .getEnergyDivisorLimitLong(), + 10_000_000L); + } + } + : this.a0Config; if (this.configuration == null) { if (this.validatorType == null) { @@ -261,34 +271,38 @@ public AbstractEnergyStrategyLimit getEnergyLimitStrategy() { } else if (this.validatorType.equals("full")) { this.configuration = new ChainConfiguration(); } else if (this.validatorType.equals("simple")) { - this.configuration = new ChainConfiguration() { - /* - * Remove the equiHash solution for the simplified - * validator this gives us the ability to connect new - * blocks without validating the solution and POW. - * - * This is good for transaction testing, but another set - * of tests need to ensure that the equihash and POW - * generated are valid. - */ - @Override - public BlockHeaderValidator createBlockHeaderValidator() { - return new BlockHeaderValidator( - Arrays.asList( - new AionExtraDataRule(this.constants.getMaximumExtraDataSize()), - new EnergyConsumedRule(), - new AionHeaderVersionRule())); - } - }; + this.configuration = + new ChainConfiguration() { + /* + * Remove the equiHash solution for the simplified + * validator this gives us the ability to connect new + * blocks without validating the solution and POW. + * + * This is good for transaction testing, but another set + * of tests need to ensure that the equihash and POW + * generated are valid. + */ + @Override + public BlockHeaderValidator + createBlockHeaderValidator() { + return new BlockHeaderValidator( + Arrays.asList( + new AionExtraDataRule( + this.constants + .getMaximumExtraDataSize()), + new EnergyConsumedRule(), + new AionHeaderVersionRule())); + } + }; } else { throw new IllegalArgumentException("validatorType != (full|simple)"); } } - if (this.repoConfig == null) - this.repoConfig = generateRepositoryConfig(); + if (this.repoConfig == null) this.repoConfig = generateRepositoryConfig(); - StandaloneBlockchain bc = new StandaloneBlockchain(this.a0Config, this.configuration, this.repoConfig); + StandaloneBlockchain bc = + new StandaloneBlockchain(this.a0Config, this.configuration, this.repoConfig); AionGenesis.Builder genesisBuilder = new AionGenesis.Builder(); for (Map.Entry acc : this.initialState.entrySet()) { @@ -307,7 +321,9 @@ public BlockHeaderValidator createBlockHeaderValidator() { track.createAccount(PrecompiledContracts.totalCurrencyAddress); for (Map.Entry key : genesis.getNetworkBalances().entrySet()) { - track.addStorageRow(PrecompiledContracts.totalCurrencyAddress, new DataWord(key.getKey()), + track.addStorageRow( + PrecompiledContracts.totalCurrencyAddress, + new DataWord(key.getKey()), new DataWord(key.getValue())); } @@ -320,8 +336,8 @@ public BlockHeaderValidator createBlockHeaderValidator() { // TODO: violates abstraction, consider adding to interface after // stable ((AionRepositoryImpl) bc.getRepository()).commitBlock(genesis.getHeader()); - ((AionBlockStore) bc.getRepository().getBlockStore()).saveBlock(genesis, genesis.getCumulativeDifficulty(), - true); + ((AionBlockStore) bc.getRepository().getBlockStore()) + .saveBlock(genesis, genesis.getCumulativeDifficulty(), true); bc.setBestBlock(genesis); bc.setTotalDifficulty(genesis.getCumulativeDifficulty()); diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index 7b2f58e103..f1195566bb 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -74,17 +74,6 @@ private static class AionRepositoryImplHolder { new RepositoryConfig( new File(config.getBasePath(), config.getDb().getPath()) .getAbsolutePath(), - config.getDb().getPrune() > 0 - ? - // if the value is smaller than backward step - // there is the risk of importing state-less blocks after - // reboot - (128 > config.getDb().getPrune() - ? 128 - : config.getDb().getPrune()) - : - // negative value => pruning disabled - config.getDb().getPrune(), ContractDetailsAion.getInstance(), config.getDb())); } @@ -122,7 +111,7 @@ public TransactionStore getTransacti } private Trie createStateTrie() { - return new SecureTrie(stateDSPrune).withPruningEnabled(pruneBlockCount > 0); + return new SecureTrie(stateDSPrune).withPruningEnabled(pruneEnabled); } @Override @@ -512,7 +501,7 @@ public void commitBlock(A0BlockHeader blockHeader) { worldState.sync(); detailsDS.syncLargeStorage(); - if (pruneBlockCount > 0) { + if (pruneEnabled) { stateDSPrune.storeBlockChanges(blockHeader.getHash(), blockHeader.getNumber()); detailsDS .getStorageDSPrune() @@ -554,7 +543,12 @@ public IRepository getSnapshotTo(byte[] root) { repo.cfg = cfg; repo.stateDatabase = this.stateDatabase; repo.stateDSPrune = this.stateDSPrune; + + // pruning config + repo.pruneEnabled = this.pruneEnabled; repo.pruneBlockCount = this.pruneBlockCount; + repo.archiveRate = this.archiveRate; + repo.detailsDS = this.detailsDS; repo.isSnapshot = true; diff --git a/modAionImpl/src/org/aion/zero/impl/db/RepositoryConfig.java b/modAionImpl/src/org/aion/zero/impl/db/RepositoryConfig.java index a2acc69722..c65456edcb 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/RepositoryConfig.java +++ b/modAionImpl/src/org/aion/zero/impl/db/RepositoryConfig.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,23 +19,21 @@ * * Contributors: * Aion foundation. - * ******************************************************************************/ - package org.aion.zero.impl.db; +import java.util.Map; +import java.util.Properties; import org.aion.base.db.DetailsProvider; import org.aion.base.db.IContractDetails; +import org.aion.base.db.IPruneConfig; import org.aion.base.db.IRepositoryConfig; import org.aion.mcf.config.CfgDb; -import java.util.Map; -import java.util.Properties; - public class RepositoryConfig implements IRepositoryConfig { private final String dbPath; - private final int prune; + private final IPruneConfig cfgPrune; private final DetailsProvider detailsProvider; private final Map cfg; @@ -45,8 +43,8 @@ public String getDbPath() { } @Override - public int getPrune() { - return prune; + public IPruneConfig getPruneConfig() { + return cfgPrune; } @Override @@ -63,13 +61,11 @@ public Properties getDatabaseConfig(String db_name) { return new Properties(prop); } - public RepositoryConfig(final String dbPath, - final int prune, - final DetailsProvider detailsProvider, - final CfgDb cfgDb) { + public RepositoryConfig( + final String dbPath, final DetailsProvider detailsProvider, final CfgDb cfgDb) { this.dbPath = dbPath; - this.prune = prune; this.detailsProvider = detailsProvider; this.cfg = cfgDb.asProperties(); + this.cfgPrune = cfgDb.getPrune(); } } diff --git a/modAionImpl/test/org/aion/db/AionContractDetailsTest.java b/modAionImpl/test/org/aion/db/AionContractDetailsTest.java index 4222d694fc..5c69f27978 100644 --- a/modAionImpl/test/org/aion/db/AionContractDetailsTest.java +++ b/modAionImpl/test/org/aion/db/AionContractDetailsTest.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -34,59 +34,61 @@ ******************************************************************************/ package org.aion.db; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import java.util.HashMap; +import java.util.Map; +import java.util.Properties; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IContractDetails; +import org.aion.base.db.IPruneConfig; import org.aion.base.db.IRepositoryConfig; import org.aion.base.type.Address; import org.aion.base.util.ByteUtil; import org.aion.db.impl.DBVendor; import org.aion.db.impl.DatabaseFactory; -import org.aion.db.impl.leveldb.LevelDBConstants; +import org.aion.mcf.config.CfgPrune; import org.aion.mcf.vm.types.DataWord; import org.aion.zero.db.AionContractDetailsImpl; import org.aion.zero.impl.db.AionRepositoryImpl; import org.aion.zero.impl.db.ContractDetailsAion; import org.apache.commons.lang3.RandomUtils; -import org.junit.Ignore; import org.junit.Test; -import java.util.HashMap; -import java.util.Map; -import java.util.Properties; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - public class AionContractDetailsTest { - private static final int IN_MEMORY_STORAGE_LIMIT = 1000000; // CfgAion.inst().getDb().getDetailsInMemoryStorageLimit(); - - protected IRepositoryConfig repoConfig = new IRepositoryConfig() { - @Override - public String getDbPath() { - return ""; - } - - @Override - public int getPrune() { - return 0; - } - - @Override - public IContractDetails contractDetailsImpl() { - return ContractDetailsAion.createForTesting(0, 1000000).getDetails(); - } - - @Override - public Properties getDatabaseConfig(String db_name) { - Properties props = new Properties(); - props.setProperty(DatabaseFactory.Props.DB_TYPE, DBVendor.MOCKDB.toValue()); - props.setProperty(DatabaseFactory.Props.ENABLE_HEAP_CACHE, "false"); - return props; - } - }; - - private static IContractDetails deserialize(byte[] rlp, IByteArrayKeyValueDatabase externalStorage) { + private static final int IN_MEMORY_STORAGE_LIMIT = + 1000000; // CfgAion.inst().getDb().getDetailsInMemoryStorageLimit(); + + protected IRepositoryConfig repoConfig = + new IRepositoryConfig() { + @Override + public String getDbPath() { + return ""; + } + + @Override + public IPruneConfig getPruneConfig() { + return new CfgPrune(false); + } + + @Override + public IContractDetails contractDetailsImpl() { + return ContractDetailsAion.createForTesting(0, 1000000).getDetails(); + } + + @Override + public Properties getDatabaseConfig(String db_name) { + Properties props = new Properties(); + props.setProperty(DatabaseFactory.Props.DB_TYPE, DBVendor.MOCKDB.toValue()); + props.setProperty(DatabaseFactory.Props.ENABLE_HEAP_CACHE, "false"); + return props; + } + }; + + private static IContractDetails deserialize( + byte[] rlp, IByteArrayKeyValueDatabase externalStorage) { AionContractDetailsImpl result = new AionContractDetailsImpl(); result.setExternalStorageDataSource(externalStorage); result.decode(rlp); @@ -105,10 +107,11 @@ public void test_1() throws Exception { byte[] key_2 = ByteUtil.hexStringToBytes("222222"); byte[] val_2 = ByteUtil.hexStringToBytes("bbbbbb"); - AionContractDetailsImpl contractDetails = new AionContractDetailsImpl( - -1, //CfgAion.inst().getDb().getPrune(), - 1000000 //CfgAion.inst().getDb().getDetailsInMemoryStorageLimit() - ); + AionContractDetailsImpl contractDetails = + new AionContractDetailsImpl( + -1, // CfgAion.inst().getDb().getPrune(), + 1000000 // CfgAion.inst().getDb().getDetailsInMemoryStorageLimit() + ); contractDetails.setCode(code); contractDetails.put(new DataWord(key_1), new DataWord(val_1)); contractDetails.put(new DataWord(key_2), new DataWord(val_2)); @@ -117,20 +120,25 @@ public void test_1() throws Exception { AionContractDetailsImpl contractDetails_ = new AionContractDetailsImpl(data); - assertEquals(ByteUtil.toHexString(code), - ByteUtil.toHexString(contractDetails_.getCode())); + assertEquals(ByteUtil.toHexString(code), ByteUtil.toHexString(contractDetails_.getCode())); - assertEquals(ByteUtil.toHexString(val_1), - ByteUtil.toHexString(contractDetails_.get(new DataWord(key_1)).getNoLeadZeroesData())); + assertEquals( + ByteUtil.toHexString(val_1), + ByteUtil.toHexString( + contractDetails_.get(new DataWord(key_1)).getNoLeadZeroesData())); - assertEquals(ByteUtil.toHexString(val_2), - ByteUtil.toHexString(contractDetails_.get(new DataWord(key_2)).getNoLeadZeroesData())); + assertEquals( + ByteUtil.toHexString(val_2), + ByteUtil.toHexString( + contractDetails_.get(new DataWord(key_2)).getNoLeadZeroesData())); } @Test public void test_2() throws Exception { - byte[] code = ByteUtil.hexStringToBytes("7c0100000000000000000000000000000000000000000000000000000000600035046333d546748114610065578063430fe5f01461007c5780634d432c1d1461008d578063501385b2146100b857806357eb3b30146100e9578063dbc7df61146100fb57005b6100766004356024356044356102f0565b60006000f35b61008760043561039e565b60006000f35b610098600435610178565b8073ffffffffffffffffffffffffffffffffffffffff1660005260206000f35b6100c96004356024356044356101a0565b8073ffffffffffffffffffffffffffffffffffffffff1660005260206000f35b6100f1610171565b8060005260206000f35b610106600435610133565b8360005282602052816040528073ffffffffffffffffffffffffffffffffffffffff1660605260806000f35b5b60006020819052908152604090208054600182015460028301546003909301549192909173ffffffffffffffffffffffffffffffffffffffff1684565b5b60015481565b5b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604081206002015481908302341080156101fe575073ffffffffffffffffffffffffffffffffffffffff8516600090815260208190526040812054145b8015610232575073ffffffffffffffffffffffffffffffffffffffff85166000908152602081905260409020600101548390105b61023b57610243565b3391506102e8565b6101966103ca60003973ffffffffffffffffffffffffffffffffffffffff3381166101965285166101b68190526000908152602081905260408120600201546101d6526101f68490526102169080f073ffffffffffffffffffffffffffffffffffffffff8616600090815260208190526040902060030180547fffffffffffffffffffffffff0000000000000000000000000000000000000000168217905591508190505b509392505050565b73ffffffffffffffffffffffffffffffffffffffff33166000908152602081905260408120548190821461032357610364565b60018054808201909155600090815260026020526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790555b50503373ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090209081556001810192909255600290910155565b3373ffffffffffffffffffffffffffffffffffffffff166000908152602081905260409020600201555600608061019660043960048051602451604451606451600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909517815560018054909516909317909355600355915561013390819061006390396000f3007c0100000000000000000000000000000000000000000000000000000000600035046347810fe381146100445780637e4a1aa81461005557806383d2421b1461006957005b61004f6004356100ab565b60006000f35b6100636004356024356100fc565b60006000f35b61007460043561007a565b60006000f35b6001543373ffffffffffffffffffffffffffffffffffffffff9081169116146100a2576100a8565b60078190555b50565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550565b6001543373ffffffffffffffffffffffffffffffffffffffff9081169116146101245761012f565b600582905560068190555b505056"); + byte[] code = + ByteUtil.hexStringToBytes( + "7c0100000000000000000000000000000000000000000000000000000000600035046333d546748114610065578063430fe5f01461007c5780634d432c1d1461008d578063501385b2146100b857806357eb3b30146100e9578063dbc7df61146100fb57005b6100766004356024356044356102f0565b60006000f35b61008760043561039e565b60006000f35b610098600435610178565b8073ffffffffffffffffffffffffffffffffffffffff1660005260206000f35b6100c96004356024356044356101a0565b8073ffffffffffffffffffffffffffffffffffffffff1660005260206000f35b6100f1610171565b8060005260206000f35b610106600435610133565b8360005282602052816040528073ffffffffffffffffffffffffffffffffffffffff1660605260806000f35b5b60006020819052908152604090208054600182015460028301546003909301549192909173ffffffffffffffffffffffffffffffffffffffff1684565b5b60015481565b5b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604081206002015481908302341080156101fe575073ffffffffffffffffffffffffffffffffffffffff8516600090815260208190526040812054145b8015610232575073ffffffffffffffffffffffffffffffffffffffff85166000908152602081905260409020600101548390105b61023b57610243565b3391506102e8565b6101966103ca60003973ffffffffffffffffffffffffffffffffffffffff3381166101965285166101b68190526000908152602081905260408120600201546101d6526101f68490526102169080f073ffffffffffffffffffffffffffffffffffffffff8616600090815260208190526040902060030180547fffffffffffffffffffffffff0000000000000000000000000000000000000000168217905591508190505b509392505050565b73ffffffffffffffffffffffffffffffffffffffff33166000908152602081905260408120548190821461032357610364565b60018054808201909155600090815260026020526040902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790555b50503373ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090209081556001810192909255600290910155565b3373ffffffffffffffffffffffffffffffffffffffff166000908152602081905260409020600201555600608061019660043960048051602451604451606451600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116909517815560018054909516909317909355600355915561013390819061006390396000f3007c0100000000000000000000000000000000000000000000000000000000600035046347810fe381146100445780637e4a1aa81461005557806383d2421b1461006957005b61004f6004356100ab565b60006000f35b6100636004356024356100fc565b60006000f35b61007460043561007a565b60006000f35b6001543373ffffffffffffffffffffffffffffffffffffffff9081169116146100a2576100a8565b60078190555b50565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550565b6001543373ffffffffffffffffffffffffffffffffffffffff9081169116146101245761012f565b600582905560068190555b505056"); Address address = Address.wrap(RandomUtils.nextBytes(Address.ADDRESS_LEN)); byte[] key_0 = ByteUtil.hexStringToBytes("18d63b70aa690ad37cb50908746c9a55"); @@ -197,48 +205,60 @@ public void test_2() throws Exception { AionContractDetailsImpl contractDetails_ = new AionContractDetailsImpl(data); - assertEquals(ByteUtil.toHexString(code), - ByteUtil.toHexString(contractDetails_.getCode())); + assertEquals(ByteUtil.toHexString(code), ByteUtil.toHexString(contractDetails_.getCode())); assertTrue(address.equals(contractDetails_.getAddress())); - assertEquals(ByteUtil.toHexString(val_1), + assertEquals( + ByteUtil.toHexString(val_1), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_1)).getData())); - assertEquals(ByteUtil.toHexString(val_2), + assertEquals( + ByteUtil.toHexString(val_2), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_2)).getData())); - assertEquals(ByteUtil.toHexString(val_3), + assertEquals( + ByteUtil.toHexString(val_3), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_3)).getData())); - assertEquals(ByteUtil.toHexString(val_4), + assertEquals( + ByteUtil.toHexString(val_4), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_4)).getData())); - assertEquals(ByteUtil.toHexString(val_5), + assertEquals( + ByteUtil.toHexString(val_5), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_5)).getData())); - assertEquals(ByteUtil.toHexString(val_6), + assertEquals( + ByteUtil.toHexString(val_6), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_6)).getData())); - assertEquals(ByteUtil.toHexString(val_7), + assertEquals( + ByteUtil.toHexString(val_7), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_7)).getData())); - assertEquals(ByteUtil.toHexString(val_8), + assertEquals( + ByteUtil.toHexString(val_8), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_8)).getData())); - assertEquals(ByteUtil.toHexString(val_9), + assertEquals( + ByteUtil.toHexString(val_9), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_9)).getData())); - assertEquals(ByteUtil.toHexString(val_10), + assertEquals( + ByteUtil.toHexString(val_10), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_10)).getData())); - assertEquals(ByteUtil.toHexString(val_11), + assertEquals( + ByteUtil.toHexString(val_11), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_11)).getData())); - assertEquals(ByteUtil.toHexString(val_12), + assertEquals( + ByteUtil.toHexString(val_12), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_12)).getData())); - assertEquals(ByteUtil.toHexString(val_13), + assertEquals( + ByteUtil.toHexString(val_13), ByteUtil.toHexString(contractDetails_.get(new DataWord(key_13)).getData())); } @@ -310,7 +330,6 @@ public void testExternalStorageTransition() { original.put(key, value); } - original.syncStorage(); assertTrue(!externalStorage.isEmpty()); diff --git a/modAionImpl/test/org/aion/zero/impl/MockRepositoryConfig.java b/modAionImpl/test/org/aion/zero/impl/MockRepositoryConfig.java index 699260162a..15a29ea253 100644 --- a/modAionImpl/test/org/aion/zero/impl/MockRepositoryConfig.java +++ b/modAionImpl/test/org/aion/zero/impl/MockRepositoryConfig.java @@ -1,13 +1,14 @@ package org.aion.zero.impl; +import java.util.Properties; import org.aion.base.db.IContractDetails; +import org.aion.base.db.IPruneConfig; import org.aion.base.db.IRepositoryConfig; import org.aion.db.impl.DBVendor; import org.aion.db.impl.DatabaseFactory; +import org.aion.mcf.config.CfgPrune; import org.aion.zero.impl.db.ContractDetailsAion; -import java.util.Properties; - public class MockRepositoryConfig implements IRepositoryConfig { private DBVendor vendor = DBVendor.MOCKDB; @@ -17,8 +18,8 @@ public String getDbPath() { } @Override - public int getPrune() { - return 0; + public IPruneConfig getPruneConfig() { + return new CfgPrune(false); } @Override diff --git a/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java b/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java index 412e60b5b6..c05c59b414 100644 --- a/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java +++ b/modAionImpl/test/org/aion/zero/impl/db/AionRepositoryImplTest.java @@ -39,15 +39,13 @@ import java.math.BigInteger; import java.util.Optional; import java.util.Properties; -import org.aion.base.db.IByteArrayKeyValueDatabase; -import org.aion.base.db.IContractDetails; -import org.aion.base.db.IRepositoryCache; -import org.aion.base.db.IRepositoryConfig; +import org.aion.base.db.*; import org.aion.base.type.Address; import org.aion.base.util.ByteUtil; import org.aion.crypto.HashUtil; import org.aion.db.impl.DBVendor; import org.aion.db.impl.DatabaseFactory; +import org.aion.mcf.config.CfgPrune; import org.aion.mcf.core.AccountState; import org.aion.mcf.db.IBlockStoreBase; import org.aion.mcf.vm.types.DataWord; @@ -67,8 +65,8 @@ public String getDbPath() { } @Override - public int getPrune() { - return 0; + public IPruneConfig getPruneConfig() { + return new CfgPrune(false); } @Override diff --git a/modBoot/resource/config.xml b/modBoot/resource/config.xml index 9b3a51e4e9..a3234cb7a4 100644 --- a/modBoot/resource/config.xml +++ b/modBoot/resource/config.xml @@ -64,6 +64,15 @@ database true + + + + true + + 128 + + 10000 + 1000 diff --git a/modMcf/src/org/aion/mcf/config/CfgDb.java b/modMcf/src/org/aion/mcf/config/CfgDb.java index 9f39813acd..b1272ddccc 100644 --- a/modMcf/src/org/aion/mcf/config/CfgDb.java +++ b/modMcf/src/org/aion/mcf/config/CfgDb.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -22,25 +22,22 @@ ******************************************************************************/ package org.aion.mcf.config; -import org.aion.base.util.Utils; -import org.aion.db.impl.DBVendor; +import static org.aion.db.impl.DatabaseFactory.Props; -import javax.xml.stream.XMLOutputFactory; -import javax.xml.stream.XMLStreamException; -import javax.xml.stream.XMLStreamReader; -import javax.xml.stream.XMLStreamWriter; import java.io.IOException; import java.io.StringWriter; import java.io.Writer; import java.util.HashMap; import java.util.Map; import java.util.Properties; +import javax.xml.stream.XMLOutputFactory; +import javax.xml.stream.XMLStreamException; +import javax.xml.stream.XMLStreamReader; +import javax.xml.stream.XMLStreamWriter; +import org.aion.base.util.Utils; +import org.aion.db.impl.DBVendor; -import static org.aion.db.impl.DatabaseFactory.Props; - -/** - * @author chris - */ +/** @author chris */ public class CfgDb { public static class Names { @@ -63,7 +60,7 @@ public static class Names { private String vendor; private boolean compression; private boolean check_integrity; - private int prune; + private CfgPrune prune; /** * Enabling expert mode allows more detailed database configurations. @@ -80,7 +77,7 @@ public CfgDb() { this.vendor = DBVendor.LEVELDB.toValue(); this.compression = false; this.check_integrity = true; - this.prune = -1; + this.prune = new CfgPrune(); if (expert) { this.specificConfig = new HashMap<>(); @@ -103,79 +100,88 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { this.check_integrity = Boolean.parseBoolean(Cfg.readValue(sr)); break; case "prune": - this.prune = Integer.parseInt(Cfg.readValue(sr)); + this.prune.fromXML(sr); break; - // parameter considered only when expert==false + // parameter considered only when expert==false case "vendor": this.vendor = Cfg.readValue(sr); break; - // parameter considered only when expert==false + // parameter considered only when expert==false case Props.ENABLE_DB_COMPRESSION: this.compression = Boolean.parseBoolean(Cfg.readValue(sr)); break; - // parameter considered only when expert==true - case Names.DEFAULT: { - CfgDbDetails dbConfig = this.specificConfig.get(Names.DEFAULT); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.DEFAULT, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.BLOCK: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.BLOCK, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.INDEX: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.INDEX, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.DETAILS: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.DETAILS, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.STORAGE: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.STORAGE, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.STATE: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.STATE, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.TRANSACTION: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.TRANSACTION, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.TX_POOL: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.TX_POOL, dbConfig); - break; - } - // parameter considered only when expert==true - case Names.TX_CACHE: { - CfgDbDetails dbConfig = new CfgDbDetails(); - dbConfig.fromXML(sr); - this.specificConfig.put(Names.TX_CACHE, dbConfig); - break; - } + // parameter considered only when expert==true + case Names.DEFAULT: + { + CfgDbDetails dbConfig = this.specificConfig.get(Names.DEFAULT); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.DEFAULT, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.BLOCK: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.BLOCK, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.INDEX: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.INDEX, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.DETAILS: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.DETAILS, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.STORAGE: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.STORAGE, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.STATE: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.STATE, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.TRANSACTION: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.TRANSACTION, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.TX_POOL: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.TX_POOL, dbConfig); + break; + } + // parameter considered only when expert==true + case Names.TX_CACHE: + { + CfgDbDetails dbConfig = new CfgDbDetails(); + dbConfig.fromXML(sr); + this.specificConfig.put(Names.TX_CACHE, dbConfig); + break; + } default: Cfg.skipElement(sr); break; @@ -205,25 +211,24 @@ public String toXML() { xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n\t\t"); - xmlWriter.writeComment("Boolean value. Enable/disable database integrity check run at startup."); + xmlWriter.writeComment( + "Boolean value. Enable/disable database integrity check run at startup."); xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeStartElement("check_integrity"); xmlWriter.writeCharacters(String.valueOf(this.check_integrity)); xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n\t\t"); - xmlWriter.writeComment("Integer value. Number of blocks after which to prune. Pruning disabled when negative."); - xmlWriter.writeCharacters("\r\n\t\t"); - xmlWriter.writeStartElement("prune"); - xmlWriter.writeCharacters(String.valueOf(this.prune)); - xmlWriter.writeEndElement(); + xmlWriter.writeComment("Configuration for data pruning behavior."); + this.prune.toXML(xmlWriter); if (!expert) { xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeComment( "Database implementation used to store data; supported options: leveldb, h2, rocksdb."); xmlWriter.writeCharacters("\r\n\t\t"); - xmlWriter.writeComment("Caution: changing implementation requires re-syncing from genesis!"); + xmlWriter.writeComment( + "Caution: changing implementation requires re-syncing from genesis!"); xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeStartElement("vendor"); xmlWriter.writeCharacters(this.vendor); @@ -260,7 +265,7 @@ public String getPath() { return this.path; } - public int getPrune() { + public CfgPrune getPrune() { return this.prune; } @@ -307,4 +312,4 @@ public void setHeapCacheEnabled(boolean value) { } } } -} \ No newline at end of file +} diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index 45bc3429a1..15246e6c98 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -102,6 +102,7 @@ public abstract class AbstractRepository< // Block related parameters. protected long bestBlockNumber = 0; protected long pruneBlockCount; + protected long archiveRate; protected boolean pruneEnabled = true; // Current blockstore. @@ -248,9 +249,17 @@ protected void initializeDatabasesAndCaches() throws Exception { // Setup the cache for transaction data source. this.detailsDS = new DetailsDataStore<>(detailsDatabase, storageDatabase, this.cfg); stateDSPrune = new JournalPruneDataSource(stateDatabase); - pruneBlockCount = pruneEnabled ? this.cfg.getPrune() : -1; - if (pruneEnabled && pruneBlockCount > 0) { - LOGGEN.info("Pruning block count set to {}.", pruneBlockCount); + + // pruning config + pruneEnabled = this.cfg.getPruneConfig().isEnabled(); + pruneBlockCount = this.cfg.getPruneConfig().getCurrentCount(); + archiveRate = this.cfg.getPruneConfig().getArchiveRate(); + + if (pruneEnabled) { + LOGGEN.info( + "Pruning ENABLED. Block count set to {} and archive rate set to {}.", + pruneBlockCount, + archiveRate); } else { stateDSPrune.setPruneEnabled(false); } From cf6e9d589a9a01b6f91dac2639f2eee971fc9177 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 15 May 2018 16:12:50 -0400 Subject: [PATCH 040/129] bugfix: method parameters should be generic --- .../src/org/aion/base/db/IKeyValueStore.java | 118 +++++++----------- 1 file changed, 47 insertions(+), 71 deletions(-) diff --git a/modAionBase/src/org/aion/base/db/IKeyValueStore.java b/modAionBase/src/org/aion/base/db/IKeyValueStore.java index 5f2f8c00ba..831d8257a6 100644 --- a/modAionBase/src/org/aion/base/db/IKeyValueStore.java +++ b/modAionBase/src/org/aion/base/db/IKeyValueStore.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -42,14 +42,11 @@ /** * Functionality for a key-value cache allowing itemized updates. * - * @param - * the data type of the keys - * @param - * the data type of the values + * @param the data type of the keys + * @param the data type of the values * @author Alexandra Roatis - * @implNote For the underlying DB connection, if [isClosed() == true], then all - * function calls which are documented to throw RuntimeException, will - * throw a RuntimeException. + * @implNote For the underlying DB connection, if [isClosed() == true], then all function calls + * which are documented to throw RuntimeException, will throw a RuntimeException. */ public interface IKeyValueStore extends AutoCloseable { @@ -60,8 +57,7 @@ public interface IKeyValueStore extends AutoCloseable { * Returns if the DB is empty or not. * * @return True if number of keys > 0, false otherwise - * @throws RuntimeException - * if the data store is closed + * @throws RuntimeException if the data store is closed */ boolean isEmpty(); @@ -69,23 +65,18 @@ public interface IKeyValueStore extends AutoCloseable { * Returns the set of keys for the database. * * @return Set of keys - * @throws RuntimeException - * if the data store is closed - * @apiNote Returns an empty set if the database keys could not be - * retrieved. + * @throws RuntimeException if the data store is closed + * @apiNote Returns an empty set if the database keys could not be retrieved. */ Set keys(); /** - * get retrieves a value from the database, returning an optional, it is - * fulfilled if a value was able to be retrieved from the DB, otherwise the - * optional is empty + * get retrieves a value from the database, returning an optional, it is fulfilled if a value + * was able to be retrieved from the DB, otherwise the optional is empty * * @param k - * @throws RuntimeException - * if the data store is closed - * @throws IllegalArgumentException - * if the key is null + * @throws RuntimeException if the data store is closed + * @throws IllegalArgumentException if the key is null */ Optional get(K k); @@ -93,44 +84,34 @@ public interface IKeyValueStore extends AutoCloseable { // ------------------------------------------------------------------------------------- /** - * Places or updates a value into the cache at the corresponding key. Makes - * no guarantees about when the value is actually inserted into the - * underlying data store. + * Places or updates a value into the cache at the corresponding key. Makes no guarantees about + * when the value is actually inserted into the underlying data store. * - * @param k - * the key for the new entry - * @param v - * the value for the new entry - * @throws RuntimeException - * if the underlying data store is closed - * @throws IllegalArgumentException - * if the key is null - * @implNote The choice of when to push the changes to the data store is - * left up to the implementation. + * @param k the key for the new entry + * @param v the value for the new entry + * @throws RuntimeException if the underlying data store is closed + * @throws IllegalArgumentException if the key is null + * @implNote The choice of when to push the changes to the data store is left up to the + * implementation. * @apiNote Put must have the following properties: - *

    - *
  1. Creates a new entry in the cache, if the key-value pair does - * not exist in the cache or underlying data store.
  2. - *
  3. Updates the entry in the cache when the key-value pair - * already exists. - *
  4. Deletes the entry when given a {@code null} value.
  5. - *
+ *
    + *
  1. Creates a new entry in the cache, if the key-value pair does not exist in the cache + * or underlying data store. + *
  2. Updates the entry in the cache when the key-value pair already exists. + *
  3. Deletes the entry when given a {@code null} value. + *
*/ void put(K k, V v); /** - * Delete an entry from the cache, marking it for deletion inside the data - * store. Makes no guarantees about when the value is actually deleted from - * the underlying data store. + * Delete an entry from the cache, marking it for deletion inside the data store. Makes no + * guarantees about when the value is actually deleted from the underlying data store. * - * @param k - * the key of the entry to be deleted - * @throws RuntimeException - * if the underlying data store is closed - * @throws IllegalArgumentException - * if the key is null - * @implNote The choice of when to push the changes to the data store is - * left up to the implementation. + * @param k the key of the entry to be deleted + * @throws RuntimeException if the underlying data store is closed + * @throws IllegalArgumentException if the key is null + * @implNote The choice of when to push the changes to the data store is left up to the + * implementation. */ void delete(K k); @@ -138,37 +119,32 @@ public interface IKeyValueStore extends AutoCloseable { // --------------------------------------------------------------------------------------------------- /** - * Puts or updates the data store with the given key-value pairs, as - * follows: + * Puts or updates the data store with the given key-value pairs, as follows: + * *
    - *
  • if the key is present in the data store, the stored - * value is overwritten
  • - *
  • if the key is not present in the data store, the new - * key-value pair is stored
  • - *
  • if the value is null, the matching stored key will be - * deleted from the data store, or
  • + *
  • if the key is present in the data store, the stored value is overwritten + *
  • if the key is not present in the data store, the new key-value pair is + * stored + *
  • if the value is null, the matching stored key will be deleted from the + * data store, or *
* - * @param inputMap - * a {@link Map} of key-value pairs to be updated in the database - * @throws RuntimeException - * if the data store is closed - * @throws IllegalArgumentException - * if the map contains a null key + * @param inputMap a {@link Map} of key-value pairs to be updated in the database + * @throws RuntimeException if the data store is closed + * @throws IllegalArgumentException if the map contains a null key */ void putBatch(Map inputMap); - void putToBatch(byte[] key, byte[] value); + void putToBatch(K key, V value); + void commitBatch(); /** * Similar to delete, except operates on a list of keys * * @param keys - * @throws RuntimeException - * if the data store is closed - * @throws IllegalArgumentException - * if the collection contains a null key + * @throws RuntimeException if the data store is closed + * @throws IllegalArgumentException if the collection contains a null key */ void deleteBatch(Collection keys); } From e40b69903dca5de2dda389527d89f613fe875760 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 18 May 2018 13:53:34 -0400 Subject: [PATCH 041/129] new data source class that deletes from the current db only keys not present in the archive db --- .../org/aion/mcf/ds/ArchivedDataSource.java | 125 ++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java diff --git a/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java b/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java new file mode 100644 index 0000000000..14ce977950 --- /dev/null +++ b/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java @@ -0,0 +1,125 @@ +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: + * Aion foundation. + ******************************************************************************/ +package org.aion.mcf.ds; + +import java.util.Collection; +import java.util.Map; +import java.util.Optional; +import java.util.Set; +import org.aion.base.db.IByteArrayKeyValueDatabase; +import org.aion.base.db.IByteArrayKeyValueStore; + +/** + * A data source with archived data that must no be deleted. + * + * @author Alexandra Roatis + */ +public class ArchivedDataSource implements IByteArrayKeyValueStore { + + IByteArrayKeyValueDatabase data, archive; + + public ArchivedDataSource(IByteArrayKeyValueDatabase _db, IByteArrayKeyValueDatabase _archive) { + this.data = _db; + this.archive = _archive; + } + + @Override + public boolean isEmpty() { + return data.isEmpty(); + } + + @Override + public Set keys() { + return data.keys(); + } + + @Override + public Optional get(byte[] key) { + return data.get(key); + } + + @Override + public void put(byte[] key, byte[] value) { + if (value != null) { + data.put(key, value); + } else { + // internal delete will check if archived + delete(key); + } + } + + @Override + public void delete(byte[] key) { + // delete key only if not archived + if (!archive.get(key).isPresent()) { + data.delete(key); + } + } + + @Override + public void putBatch(Map batch) { + for (Map.Entry entry : batch.entrySet()) { + // will check if archived + putToBatch(entry.getKey(), entry.getValue()); + } + commitBatch(); + } + + @Override + public void putToBatch(byte[] key, byte[] value) { + if (value != null) { + data.putToBatch(key, value); + } else { + // deleted key only if not archived + if (!archive.get(key).isPresent()) { + data.putToBatch(key, null); + } + } + } + + @Override + public void commitBatch() { + data.commitBatch(); + } + + @Override + public void deleteBatch(Collection keys) { + for (byte[] key : keys) { + // will check if archived + putToBatch(key, null); + } + commitBatch(); + } + + @Override + public void close() { + data.close(); + archive.close(); + } +} From 471614e2b34caf3cd19e98be6864379c73bdc58e Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 18 May 2018 14:25:52 -0400 Subject: [PATCH 042/129] refactored journal prune class to take a data store as argument; method to check if open database added to data store interface --- .../src/org/aion/base/db/IKeyValueStore.java | 9 +++ .../aion/db/generic/DatabaseWithCache.java | 12 +-- .../org/aion/db/generic/LockedDatabase.java | 13 ++++ .../org/aion/db/generic/TimedDatabase.java | 9 +++ .../src/org/aion/db/impl/AbstractDB.java | 74 +++++++++---------- .../org/aion/mcf/ds/ArchivedDataSource.java | 6 ++ modMcf/src/org/aion/mcf/ds/XorDataSource.java | 16 ++-- .../aion/mcf/trie/JournalPruneDataSource.java | 33 ++++----- 8 files changed, 99 insertions(+), 73 deletions(-) diff --git a/modAionBase/src/org/aion/base/db/IKeyValueStore.java b/modAionBase/src/org/aion/base/db/IKeyValueStore.java index 831d8257a6..d480cd619d 100644 --- a/modAionBase/src/org/aion/base/db/IKeyValueStore.java +++ b/modAionBase/src/org/aion/base/db/IKeyValueStore.java @@ -147,4 +147,13 @@ public interface IKeyValueStore extends AutoCloseable { * @throws IllegalArgumentException if the collection contains a null key */ void deleteBatch(Collection keys); + + /** + * Checks that the data store connection is open. Throws a {@link RuntimeException} if the data + * store connection is closed. + * + * @implNote Always do this check after acquiring a lock on the class/data. Otherwise it might + * produce inconsistent results due to lack of synchronization. + */ + void check(); } diff --git a/modDbImpl/src/org/aion/db/generic/DatabaseWithCache.java b/modDbImpl/src/org/aion/db/generic/DatabaseWithCache.java index e2380e64ef..80636044ae 100644 --- a/modDbImpl/src/org/aion/db/generic/DatabaseWithCache.java +++ b/modDbImpl/src/org/aion/db/generic/DatabaseWithCache.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -163,14 +163,8 @@ public CacheStats getStats() { return this.loadingCache.stats(); } - /** - * Checks that the database connection is open. - * Throws a {@link RuntimeException} if the database connection is closed. - * - * @implNote Always do this check after acquiring a lock on the class/data. - * Otherwise it might produce inconsistent results due to lack of synchronization. - */ - private void check() { + @Override + public void check() { if (!database.isOpen()) { throw new RuntimeException("Database is not opened: " + this); } diff --git a/modDbImpl/src/org/aion/db/generic/LockedDatabase.java b/modDbImpl/src/org/aion/db/generic/LockedDatabase.java index ad7ed79c6d..9015430f35 100644 --- a/modDbImpl/src/org/aion/db/generic/LockedDatabase.java +++ b/modDbImpl/src/org/aion/db/generic/LockedDatabase.java @@ -366,6 +366,19 @@ public void deleteBatch(Collection keys) { } } + @Override + public void check() { + // acquire read lock + lock.readLock().lock(); + + try { + database.check(); + } finally { + // releasing read lock + lock.readLock().unlock(); + } + } + @Override public void drop() { // acquire write lock diff --git a/modDbImpl/src/org/aion/db/generic/TimedDatabase.java b/modDbImpl/src/org/aion/db/generic/TimedDatabase.java index 4a70fddc23..aa0fcfe372 100644 --- a/modDbImpl/src/org/aion/db/generic/TimedDatabase.java +++ b/modDbImpl/src/org/aion/db/generic/TimedDatabase.java @@ -252,6 +252,15 @@ public void deleteBatch(Collection keys) { LOG.debug(database.toString() + " deleteBatch(" + keys.size() + ") in " + (t2 - t1) + " ns."); } + @Override + public void check() { + long t1 = System.nanoTime(); + database.check(); + long t2 = System.nanoTime(); + + LOG.debug(database.toString() + " check() in " + (t2 - t1) + " ns."); + } + @Override public void drop() { long t1 = System.nanoTime(); diff --git a/modDbImpl/src/org/aion/db/impl/AbstractDB.java b/modDbImpl/src/org/aion/db/impl/AbstractDB.java index ee346f2ec8..9fa6243eed 100644 --- a/modDbImpl/src/org/aion/db/impl/AbstractDB.java +++ b/modDbImpl/src/org/aion/db/impl/AbstractDB.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -34,18 +34,16 @@ ******************************************************************************/ package org.aion.db.impl; -import org.aion.base.db.IByteArrayKeyValueDatabase; -import org.aion.base.util.ByteArrayWrapper; -import org.aion.log.AionLoggerFactory; -import org.aion.log.LogEnum; -import org.h2.store.fs.FileUtils; -import org.slf4j.Logger; - import java.io.File; import java.nio.file.Files; import java.nio.file.Path; import java.util.*; import java.util.stream.Stream; +import org.aion.base.db.IByteArrayKeyValueDatabase; +import org.aion.base.util.ByteArrayWrapper; +import org.aion.log.AionLoggerFactory; +import org.aion.log.LogEnum; +import org.slf4j.Logger; /** * Common functionality for database implementations. @@ -70,7 +68,8 @@ protected AbstractDB(String name) { this.name = name; } - protected AbstractDB(String name, String path, boolean enableDbCache, boolean enableDbCompression) { + protected AbstractDB( + String name, String path, boolean enableDbCache, boolean enableDbCompression) { this(name); Objects.requireNonNull(path, "The database path cannot be null."); @@ -81,14 +80,22 @@ protected AbstractDB(String name, String path, boolean enableDbCache, boolean en } protected String propertiesInfo() { - return ""; // + return ""; // } @Override public boolean commit() { - // not implemented since we always commit the changes to the database for this implementation - throw new UnsupportedOperationException("Only automatic commits are supported by " + this.toString()); + // not implemented since we always commit the changes to the database for this + // implementation + throw new UnsupportedOperationException( + "Only automatic commits are supported by " + this.toString()); } @Override @@ -119,22 +126,16 @@ public Optional getPath() { return Optional.ofNullable(this.path); } - /** - * Checks that the database connection is open. - * Throws a {@link RuntimeException} if the database connection is closed. - * - * @implNote Always do this check after acquiring a lock on the class/data. - * Otherwise it might produce inconsistent results due to lack of synchronization. - */ - protected void check() { + @Override + public void check() { if (!isOpen()) { throw new RuntimeException("Database is not opened: " + this); } } /** - * Checks that the given key is not null. - * Throws a {@link IllegalArgumentException} if the key is null. + * Checks that the given key is not null. Throws a {@link IllegalArgumentException} if the key + * is null. */ public static void check(byte[] k) { if (k == null) { @@ -143,8 +144,8 @@ public static void check(byte[] k) { } /** - * Checks that the given collection of keys does not contain null values. - * Throws a {@link IllegalArgumentException} if a null key is present. + * Checks that the given collection of keys does not contain null values. Throws a {@link + * IllegalArgumentException} if a null key is present. */ public static void check(Collection keys) { if (keys.contains(null)) { @@ -170,23 +171,21 @@ public boolean isPersistent() { } /** - * For testing the lock functionality of public methods. - * Helps ensure that locks are released after normal or exceptional execution. + * For testing the lock functionality of public methods. Helps ensure that locks are released + * after normal or exceptional execution. * - * @return {@code true} when the resource is locked, - * {@code false} otherwise + * @return {@code true} when the resource is locked, {@code false} otherwise */ @Override public boolean isLocked() { return false; } - /** - * Functionality for directly interacting with the heap cache. - */ + /** Functionality for directly interacting with the heap cache. */ public abstract boolean commitCache(Map cache); - // IKeyValueStore functionality ------------------------------------------------------------------------------------ + // IKeyValueStore functionality + // ------------------------------------------------------------------------------------ @Override public Optional get(byte[] k) { @@ -200,12 +199,11 @@ public Optional get(byte[] k) { } /** - * Database specific get functionality, without locking required. Locking is applied in {@link #get(byte[])}. + * Database specific get functionality, without locking required. Locking is applied in {@link + * #get(byte[])}. * - * @param k - * the key for which the method must return the associated value + * @param k the key for which the method must return the associated value * @return the value stored in the database for the give key. */ protected abstract byte[] getInternal(byte[] k); - -} \ No newline at end of file +} diff --git a/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java b/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java index 14ce977950..9d0efcfcef 100644 --- a/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java +++ b/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java @@ -117,6 +117,12 @@ public void deleteBatch(Collection keys) { commitBatch(); } + @Override + public void check() { + data.check(); + archive.check(); + } + @Override public void close() { data.close(); diff --git a/modMcf/src/org/aion/mcf/ds/XorDataSource.java b/modMcf/src/org/aion/mcf/ds/XorDataSource.java index e4f77cbe52..f71259481d 100644 --- a/modMcf/src/org/aion/mcf/ds/XorDataSource.java +++ b/modMcf/src/org/aion/mcf/ds/XorDataSource.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -34,13 +34,11 @@ ******************************************************************************/ package org.aion.mcf.ds; -import org.aion.base.db.IByteArrayKeyValueDatabase; +import java.util.*; import org.aion.base.db.IByteArrayKeyValueStore; import org.aion.base.util.ByteArrayWrapper; import org.aion.base.util.ByteUtil; -import java.util.*; - public class XorDataSource implements IByteArrayKeyValueStore { IByteArrayKeyValueStore source; byte[] subKey; @@ -89,8 +87,9 @@ public void putBatch(Map rows) { } public void updateBatch(Map rows, boolean erasure) { - //not supported - throw new UnsupportedOperationException("ByteArrayWrapper map not supported in XorDataSource.updateBatch yet"); + // not supported + throw new UnsupportedOperationException( + "ByteArrayWrapper map not supported in XorDataSource.updateBatch yet"); } @Override @@ -104,6 +103,11 @@ public void deleteBatch(Collection keys) { } + @Override + public void check() { + source.check(); + } + @Override public boolean isEmpty() { // TODO Auto-generated method stub diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index 31a1a1e9a1..5b1317ae3a 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -38,7 +38,6 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; -import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IByteArrayKeyValueStore; import org.aion.base.util.ByteArrayWrapper; import org.aion.log.AionLoggerFactory; @@ -85,13 +84,13 @@ public String toString() { Map refCount = new HashMap<>(); - private IByteArrayKeyValueDatabase src; + private IByteArrayKeyValueStore src; // block hash => updates private LinkedHashMap blockUpdates = new LinkedHashMap<>(); private Updates currentUpdates = new Updates(); private AtomicBoolean enabled = new AtomicBoolean(true); - public JournalPruneDataSource(IByteArrayKeyValueDatabase src) { + public JournalPruneDataSource(IByteArrayKeyValueStore src) { this.src = src; } @@ -119,7 +118,7 @@ public void put(byte[] key, byte[] value) { src.put(key, value); } else { - checkOpen(); + check(); // Value does not exist, so we delete from current updates currentUpdates.deletedKeys.add(keyW); @@ -129,7 +128,7 @@ public void put(byte[] key, byte[] value) { if (value != null) { src.put(key, value); } else { - checkOpen(); + check(); } } } catch (Exception e) { @@ -152,7 +151,7 @@ public void delete(byte[] key) { lock.writeLock().lock(); try { - checkOpen(); + check(); currentUpdates.deletedKeys.add(ByteArrayWrapper.wrap(key)); // delete is delayed @@ -350,6 +349,8 @@ public void close() { try { src.close(); + } catch (Exception e) { + LOG.error("Could not close source due to ", e); } finally { lock.writeLock().unlock(); } @@ -375,7 +376,7 @@ public void deleteBatch(Collection keys) { lock.writeLock().lock(); try { - checkOpen(); + check(); // deletes are delayed keys.forEach(key -> currentUpdates.deletedKeys.add(ByteArrayWrapper.wrap(key))); @@ -397,7 +398,7 @@ public boolean isEmpty() { try { // the delayed deletes are not considered by this check until applied to the db if (!currentUpdates.insertedKeys.isEmpty()) { - checkOpen(); + check(); return false; } else { return src.isEmpty(); @@ -410,21 +411,13 @@ public boolean isEmpty() { } } - public IByteArrayKeyValueDatabase getSrc() { + public IByteArrayKeyValueStore getSrc() { return src; } - /** - * Checks that the data store connection is open. Throws a {@link RuntimeException} if the data - * store connection is closed. - * - * @implNote Always do this check after acquiring a lock on the class/data. Otherwise it might - * produce inconsistent results due to lack of synchronization. - */ - protected void checkOpen() { - if (!src.isOpen()) { - throw new RuntimeException("Data store is not opened: " + src); - } + @Override + public void check() { + src.check(); } /** From 9c5b5522d06217ca0f42c1551a446e1b12def1f2 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 18 May 2018 14:38:41 -0400 Subject: [PATCH 043/129] building the journal prune on top of the data source with archive --- .../org/aion/zero/impl/db/AionRepositoryImpl.java | 11 +++++++++++ modMcf/src/org/aion/mcf/config/CfgDb.java | 1 + modMcf/src/org/aion/mcf/db/AbstractRepository.java | 12 +++++++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index f1195566bb..231b07f353 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -542,6 +542,7 @@ public IRepository getSnapshotTo(byte[] root) { repo.blockStore = blockStore; repo.cfg = cfg; repo.stateDatabase = this.stateDatabase; + repo.stateWithArchive = this.stateWithArchive; repo.stateDSPrune = this.stateDSPrune; // pruning config @@ -624,6 +625,16 @@ public void close() { LOGGEN.error("Exception occurred while closing the state database.", e); } + try { + if (stateArchiveDatabase != null) { + stateArchiveDatabase.close(); + LOGGEN.info("State archive database closed."); + stateArchiveDatabase = null; + } + } catch (Exception e) { + LOGGEN.error("Exception occurred while closing the state archive database.", e); + } + try { if (transactionDatabase != null) { transactionDatabase.close(); diff --git a/modMcf/src/org/aion/mcf/config/CfgDb.java b/modMcf/src/org/aion/mcf/config/CfgDb.java index b1272ddccc..3ec6abc924 100644 --- a/modMcf/src/org/aion/mcf/config/CfgDb.java +++ b/modMcf/src/org/aion/mcf/config/CfgDb.java @@ -50,6 +50,7 @@ public static class Names { public static final String STORAGE = "storage"; public static final String STATE = "state"; + public static final String STATE_ARCHIVE = "stateArchive"; public static final String TRANSACTION = "transaction"; public static final String TX_CACHE = "pendingtxCache"; diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index 15246e6c98..70c4afd00b 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -40,6 +40,7 @@ import org.aion.mcf.config.CfgDb; import org.aion.mcf.core.AccountState; import org.aion.mcf.db.exception.InvalidFilePathException; +import org.aion.mcf.ds.ArchivedDataSource; import org.aion.mcf.trie.JournalPruneDataSource; import org.aion.mcf.trie.Trie; import org.aion.mcf.types.AbstractBlock; @@ -70,6 +71,7 @@ public abstract class AbstractRepository< protected static final String DETAILS_DB = CfgDb.Names.DETAILS; protected static final String STORAGE_DB = CfgDb.Names.STORAGE; protected static final String STATE_DB = CfgDb.Names.STATE; + protected static final String STATE_ARCHIVE_DB = CfgDb.Names.STATE_ARCHIVE; protected static final String PENDING_TX_POOL_DB = CfgDb.Names.TX_POOL; protected static final String PENDING_TX_CACHE_DB = CfgDb.Names.TX_CACHE; @@ -88,11 +90,13 @@ public abstract class AbstractRepository< protected IByteArrayKeyValueDatabase indexDatabase; protected IByteArrayKeyValueDatabase blockDatabase; protected IByteArrayKeyValueDatabase stateDatabase; + protected IByteArrayKeyValueDatabase stateArchiveDatabase; protected IByteArrayKeyValueDatabase txPoolDatabase; protected IByteArrayKeyValueDatabase pendingTxCacheDatabase; protected Collection databaseGroup; + protected ArchivedDataSource stateWithArchive; protected JournalPruneDataSource stateDSPrune; protected DetailsDataStore detailsDS; @@ -190,6 +194,11 @@ protected void initializeDatabasesAndCaches() throws Exception { this.stateDatabase = connectAndOpen(sharedProps); databaseGroup.add(stateDatabase); + // using state config for state_archive + sharedProps.setProperty(Props.DB_NAME, STATE_ARCHIVE_DB); + this.stateArchiveDatabase = connectAndOpen(sharedProps); + databaseGroup.add(stateArchiveDatabase); + // getting transaction specific properties sharedProps = cfg.getDatabaseConfig(TRANSACTION_DB); sharedProps.setProperty(Props.ENABLE_LOCKING, "false"); @@ -248,7 +257,8 @@ protected void initializeDatabasesAndCaches() throws Exception { // Setup the cache for transaction data source. this.detailsDS = new DetailsDataStore<>(detailsDatabase, storageDatabase, this.cfg); - stateDSPrune = new JournalPruneDataSource(stateDatabase); + stateWithArchive = new ArchivedDataSource(stateDatabase, stateArchiveDatabase); + stateDSPrune = new JournalPruneDataSource(stateWithArchive); // pruning config pruneEnabled = this.cfg.getPruneConfig().isEnabled(); From 8e487b5e7bce9d8940e6665c87a1ed731593a725 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 18 May 2018 15:10:51 -0400 Subject: [PATCH 044/129] archiving the world state at runtime --- .../aion/zero/impl/db/AionRepositoryImpl.java | 5 + .../org/aion/mcf/ds/ArchivedDataSource.java | 4 + .../aion/mcf/trie/JournalPruneDataSource.java | 16 + modMcf/src/org/aion/mcf/trie/Trie.java | 71 ++-- modMcf/src/org/aion/mcf/trie/TrieImpl.java | 344 ++++++++++++------ .../aion/mcf/trie/scan/ExtractToDatabase.java | 51 +++ 6 files changed, 341 insertions(+), 150 deletions(-) create mode 100644 modMcf/src/org/aion/mcf/trie/scan/ExtractToDatabase.java diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index 231b07f353..f047665c3a 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -502,6 +502,11 @@ public void commitBlock(A0BlockHeader blockHeader) { detailsDS.syncLargeStorage(); if (pruneEnabled) { + if (blockHeader.getNumber() % archiveRate == 0 && stateDSPrune.isArchiveEnabled()) { + // archive block + worldState.saveDiffStateToDatabase( + blockHeader.getStateRoot(), stateDSPrune.getArchiveSource()); + } stateDSPrune.storeBlockChanges(blockHeader.getHash(), blockHeader.getNumber()); detailsDS .getStorageDSPrune() diff --git a/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java b/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java index 9d0efcfcef..0f0f35d2fa 100644 --- a/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java +++ b/modMcf/src/org/aion/mcf/ds/ArchivedDataSource.java @@ -128,4 +128,8 @@ public void close() { data.close(); archive.close(); } + + public IByteArrayKeyValueDatabase getArchiveDatabase() { + return archive; + } } diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index 5b1317ae3a..3141f79d65 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -38,10 +38,12 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; +import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IByteArrayKeyValueStore; import org.aion.base.util.ByteArrayWrapper; import org.aion.log.AionLoggerFactory; import org.aion.log.LogEnum; +import org.aion.mcf.ds.ArchivedDataSource; import org.slf4j.Logger; /** @@ -89,15 +91,21 @@ public String toString() { private LinkedHashMap blockUpdates = new LinkedHashMap<>(); private Updates currentUpdates = new Updates(); private AtomicBoolean enabled = new AtomicBoolean(true); + private final boolean hasArchive; public JournalPruneDataSource(IByteArrayKeyValueStore src) { this.src = src; + this.hasArchive = src instanceof ArchivedDataSource; } public void setPruneEnabled(boolean _enabled) { enabled.set(_enabled); } + public boolean isArchiveEnabled() { + return hasArchive; + } + public void put(byte[] key, byte[] value) { checkNotNull(key); @@ -415,6 +423,14 @@ public IByteArrayKeyValueStore getSrc() { return src; } + public IByteArrayKeyValueDatabase getArchiveSource() { + if (!hasArchive) { + return null; + } else { + return ((ArchivedDataSource) src).getArchiveDatabase(); + } + } + @Override public void check() { src.check(); diff --git a/modMcf/src/org/aion/mcf/trie/Trie.java b/modMcf/src/org/aion/mcf/trie/Trie.java index 8a0f865c30..34b38e312b 100644 --- a/modMcf/src/org/aion/mcf/trie/Trie.java +++ b/modMcf/src/org/aion/mcf/trie/Trie.java @@ -1,36 +1,45 @@ -/******************************************************************************* +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. * - * Copyright (c) 2017, 2018 Aion foundation. + * This file is part of the aion network project. * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see + * along with the aion network project source files. + * If not, see . * - * Contributors: + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: * Aion foundation. *******************************************************************************/ package org.aion.mcf.trie; +import org.aion.base.db.IByteArrayKeyValueDatabase; + /** - * Trie interface for the main data structure in Ethereum - * which is used to store both the account state and storage of each account. + * Trie interface for the main data structure in Ethereum which is used to store both the account + * state and storage of each account. */ public interface Trie { /** * Gets a value from the trie for a given key * - * @param key - * - any length byte array + * @param key - any length byte array * @return an rlp encoded byte array of the stored object */ byte[] get(byte[] key); @@ -38,18 +47,15 @@ public interface Trie { /** * Insert or update a value in the trie for a specified key * - * @param key - * - any length byte array - * @param value - * rlp encoded byte array of the object to store + * @param key - any length byte array + * @param value rlp encoded byte array of the object to store */ void update(byte[] key, byte[] value); /** * Deletes a key/value from the trie for a given key * - * @param key - * - any length byte array + * @param key - any length byte array */ void delete(byte[] key); @@ -63,37 +69,36 @@ public interface Trie { /** * Set the top node of the trie * - * @param root - * - 32-byte SHA-3 hash of the root node + * @param root - 32-byte SHA-3 hash of the root node */ void setRoot(byte[] root); /** * Used to check for corruption in the database. * - * @param root - * a world state trie root + * @param root a world state trie root * @return {@code true} if the root is valid, {@code false} otherwise */ boolean isValidRoot(byte[] root); - /** - * Commit all the changes until now - */ + /** Commit all the changes until now */ void sync(); void sync(boolean flushCache); - /** - * Discard all the changes until now - */ + /** Discard all the changes until now */ @Deprecated void undo(); String getTrieDump(); + String getTrieDump(byte[] stateRoot); + int getTrieSize(byte[] stateRoot); boolean validate(); -} \ No newline at end of file + long saveFullStateToDatabase(byte[] stateRoot, IByteArrayKeyValueDatabase db); + + long saveDiffStateToDatabase(byte[] stateRoot, IByteArrayKeyValueDatabase db); +} diff --git a/modMcf/src/org/aion/mcf/trie/TrieImpl.java b/modMcf/src/org/aion/mcf/trie/TrieImpl.java index 7f459824f5..4b3ef2ff2b 100644 --- a/modMcf/src/org/aion/mcf/trie/TrieImpl.java +++ b/modMcf/src/org/aion/mcf/trie/TrieImpl.java @@ -1,77 +1,78 @@ -/******************************************************************************* +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. * - * Copyright (c) 2017, 2018 Aion foundation. + * This file is part of the aion network project. * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see + * along with the aion network project source files. + * If not, see . * - * Contributors: + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: * Aion foundation. *******************************************************************************/ package org.aion.mcf.trie; +import static java.util.Arrays.copyOfRange; +import static org.aion.base.util.ByteArrayWrapper.wrap; +import static org.aion.base.util.ByteUtil.EMPTY_BYTE_ARRAY; +import static org.aion.base.util.ByteUtil.matchingNibbleLength; +import static org.aion.crypto.HashUtil.EMPTY_TRIE_HASH; +import static org.aion.rlp.CompactEncoder.*; +import static org.aion.rlp.RLP.calcElementPrefixSize; +import static org.spongycastle.util.Arrays.concatenate; + +import java.io.*; +import java.util.*; +import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.db.IByteArrayKeyValueStore; import org.aion.base.util.ByteArrayWrapper; import org.aion.base.util.FastByteComparisons; import org.aion.base.util.Hex; import org.aion.crypto.HashUtil; -import org.aion.mcf.trie.scan.CollectFullSetOfNodes; -import org.aion.mcf.trie.scan.CountNodes; -import org.aion.mcf.trie.scan.ScanAction; -import org.aion.mcf.trie.scan.TraceAllNodes; +import org.aion.mcf.trie.scan.*; import org.aion.rlp.RLP; import org.aion.rlp.RLPItem; import org.aion.rlp.RLPList; import org.aion.rlp.Value; -import java.io.*; -import java.util.*; - -import static java.util.Arrays.copyOfRange; -import static org.aion.base.util.ByteArrayWrapper.wrap; -import static org.aion.base.util.ByteUtil.EMPTY_BYTE_ARRAY; -import static org.aion.base.util.ByteUtil.matchingNibbleLength; -import static org.aion.crypto.HashUtil.EMPTY_TRIE_HASH; -import static org.aion.rlp.CompactEncoder.*; -import static org.aion.rlp.RLP.calcElementPrefixSize; -import static org.spongycastle.util.Arrays.concatenate; - /** - * The modified Merkle Patricia tree (trie) provides a persistent data structure - * to map between arbitrary-length binary data (byte arrays). It is defined in - * terms of a mutable data structure to map between 256-bit binary fragments and - * arbitrary-length binary data, typically implemented as a database. The core - * of the trie, and its sole requirement in terms of the protocol specification - * is to provide a single value that identifies a given set of key-value pairs, - * which may either a 32 byte sequence or the empty byte sequence. It is left as - * an implementation consideration to store and maintain the structure of the - * trie in a manner the allows effective and efficient realisation of the - * protocol. - *

- * The trie implements a caching mechanism and will use cached values if they - * are present. If a node is not present in the cache it will try to fetch it - * from the database and store the cached value. - *

- * Note: the data isn't persisted unless `sync` is explicitly called. - *

- * This Trie implementation supports node pruning (i.e. obsolete nodes are - * marked for removal in the Cache and actually removed from the underlying - * storage on [sync] call), but the algorithm is not suitable for the most - * general case. In general case a trie node might be referenced from several - * parent nodes and for correct pruning the reference counting algorithm needs - * to be implemented. As soon as the real life tree keys are hashes it is very - * unlikely the case so the pruning algorithm is simplified in this - * implementation. + * The modified Merkle Patricia tree (trie) provides a persistent data structure to map between + * arbitrary-length binary data (byte arrays). It is defined in terms of a mutable data structure to + * map between 256-bit binary fragments and arbitrary-length binary data, typically implemented as a + * database. The core of the trie, and its sole requirement in terms of the protocol specification + * is to provide a single value that identifies a given set of key-value pairs, which may either a + * 32 byte sequence or the empty byte sequence. It is left as an implementation consideration to + * store and maintain the structure of the trie in a manner the allows effective and efficient + * realisation of the protocol. + * + *

The trie implements a caching mechanism and will use cached values if they are present. If a + * node is not present in the cache it will try to fetch it from the database and store the cached + * value. + * + *

Note: the data isn't persisted unless `sync` is explicitly called. + * + *

This Trie implementation supports node pruning (i.e. obsolete nodes are marked for removal in + * the Cache and actually removed from the underlying storage on [sync] call), but the algorithm is + * not suitable for the most general case. In general case a trie node might be referenced from + * several parent nodes and for correct pruning the reference counting algorithm needs to be + * implemented. As soon as the real life tree keys are hashes it is very unlikely the case so the + * pruning algorithm is simplified in this implementation. * * @author Nick Savers * @since 20.05.2014 @@ -81,8 +82,7 @@ public class TrieImpl implements Trie { private static byte LIST_SIZE = 17; private static int MAX_SIZE = 20; - @Deprecated - private Object prevRoot; + @Deprecated private Object prevRoot; private Object root; private Cache cache; @@ -119,9 +119,7 @@ public Object getRoot() { return root; } - /** - * for testing TrieTest.testRollbackToRootScenarios - */ + /** for testing TrieTest.testRollbackToRootScenarios */ public void setRoot(Object root) { this.root = root; } @@ -152,9 +150,7 @@ public TrieImpl withPruningEnabled(boolean pruningEnabled) { return this; } - /** - * Retrieve a value from a key as String. - */ + /** Retrieve a value from a key as String. */ public byte[] get(String key) { return this.get(key.getBytes()); } @@ -169,9 +165,7 @@ public byte[] get(byte[] key) { } } - /** - * Insert key/value pair into trie. - */ + /** Insert key/value pair into trie. */ public void update(String key, String value) { this.update(key.getBytes(), value.getBytes()); } @@ -198,9 +192,7 @@ public synchronized boolean isValidRoot(byte[] root) { return !(this.getNode(root) == null); } - /** - * Delete a key/value pair from the trie. - */ + /** Delete a key/value pair from the trie. */ public void delete(String key) { this.update(key.getBytes(), EMPTY_BYTE_ARRAY); } @@ -215,8 +207,9 @@ public void delete(byte[] key) { @Override public byte[] getRootHash() { synchronized (cache) { - if (root == null || (root instanceof byte[] && ((byte[]) root).length == 0) || (root instanceof String && "" - .equals(root))) { + if (root == null + || (root instanceof byte[] && ((byte[]) root).length == 0) + || (root instanceof String && "".equals(root))) { return EMPTY_TRIE_HASH; } else if (root instanceof byte[]) { return (byte[]) this.getRoot(); @@ -241,8 +234,8 @@ private Object get(Object node, byte[] key) { byte[] k = unpackToNibbles(currentNode.get(0).asBytes()); Object v = currentNode.get(1).asObj(); - if (key.length - keypos >= k.length && Arrays - .equals(k, copyOfRange(key, keypos, k.length + keypos))) { + if (key.length - keypos >= k.length + && Arrays.equals(k, copyOfRange(key, keypos, k.length + keypos))) { node = v; keypos += k.length; } else { @@ -277,7 +270,7 @@ private Object insert(Object node, byte[] key, Object value) { } if (isEmptyNode(node)) { - Object[] newNode = new Object[] { packNibbles(key), value }; + Object[] newNode = new Object[] {packNibbles(key), value}; return this.putToCache(newNode); } @@ -295,7 +288,7 @@ private Object insert(Object node, byte[] key, Object value) { // Matching key pair (ie. there's already an object with this key) if (Arrays.equals(k, key)) { - Object[] newNode = new Object[] { packNibbles(key), value }; + Object[] newNode = new Object[] {packNibbles(key), value}; return this.putToCache(newNode); } @@ -311,7 +304,8 @@ private Object insert(Object node, byte[] key, Object value) { // Expand the 2 length slice to a 17 length slice // Create two nodes to putToCache into the new 17 length node Object oldNode = this.insert("", copyOfRange(k, matchingLength + 1, k.length), v); - Object newNode = this.insert("", copyOfRange(key, matchingLength + 1, key.length), value); + Object newNode = + this.insert("", copyOfRange(key, matchingLength + 1, key.length), value); // Create an expanded slice Object[] scaledSlice = emptyStringSlice(17); @@ -328,7 +322,8 @@ private Object insert(Object node, byte[] key, Object value) { // End of the chain, return return newHash; } else { - Object[] newNode = new Object[] { packNibbles(copyOfRange(key, 0, matchingLength)), newHash }; + Object[] newNode = + new Object[] {packNibbles(copyOfRange(key, 0, matchingLength)), newHash}; return this.putToCache(newNode); } } else { @@ -337,10 +332,15 @@ private Object insert(Object node, byte[] key, Object value) { Object[] newNode = copyNode(currentNode); // Replace the first nibble in the key - newNode[key[0]] = this.insert(currentNode.get(key[0]).asObj(), copyOfRange(key, 1, key.length), value); - - if (!FastByteComparisons - .equal(HashUtil.h256(getNode(newNode).encode()), HashUtil.h256(currentNode.encode()))) { + newNode[key[0]] = + this.insert( + currentNode.get(key[0]).asObj(), + copyOfRange(key, 1, key.length), + value); + + if (!FastByteComparisons.equal( + HashUtil.h256(getNode(newNode).encode()), + HashUtil.h256(currentNode.encode()))) { markRemoved(HashUtil.h256(currentNode.encode())); if (!isEmptyNode(currentNode.get(key[0]))) { markRemoved(currentNode.get(key[0]).asBytes()); @@ -379,9 +379,9 @@ private Object delete(Object node, byte[] key) { Object newNode; if (child.length() == PAIR_SIZE) { byte[] newKey = concatenate(k, unpackToNibbles(child.get(0).asBytes())); - newNode = new Object[] { packNibbles(newKey), child.get(1).asObj() }; + newNode = new Object[] {packNibbles(newKey), child.get(1).asObj()}; } else { - newNode = new Object[] { currentNode.get(0), hash }; + newNode = new Object[] {currentNode.get(0), hash}; } markRemoved(HashUtil.h256(currentNode.encode())); return this.putToCache(newNode); @@ -408,21 +408,22 @@ private Object delete(Object node, byte[] key) { Object[] newNode = null; if (amount == 16) { - newNode = new Object[] { packNibbles(new byte[] { 16 }), itemList[amount] }; + newNode = new Object[] {packNibbles(new byte[] {16}), itemList[amount]}; } else if (amount >= 0) { Value child = this.getNode(itemList[amount]); if (child.length() == PAIR_SIZE) { - key = concatenate(new byte[] { amount }, unpackToNibbles(child.get(0).asBytes())); - newNode = new Object[] { packNibbles(key), child.get(1).asObj() }; + key = concatenate(new byte[] {amount}, unpackToNibbles(child.get(0).asBytes())); + newNode = new Object[] {packNibbles(key), child.get(1).asObj()}; } else if (child.length() == LIST_SIZE) { - newNode = new Object[] { packNibbles(new byte[] { amount }), itemList[amount] }; + newNode = new Object[] {packNibbles(new byte[] {amount}), itemList[amount]}; } } else { newNode = itemList; } - if (!FastByteComparisons - .equal(HashUtil.h256(getNode(newNode).encode()), HashUtil.h256(currentNode.encode()))) { + if (!FastByteComparisons.equal( + HashUtil.h256(getNode(newNode).encode()), + HashUtil.h256(currentNode.encode()))) { markRemoved(HashUtil.h256(currentNode.encode())); } @@ -437,8 +438,8 @@ private void markRemoved(byte[] hash) { } /** - * Helper method to retrieve the actual node. If the node is not a list and - * length is > 32 bytes get the actual node from the db. + * Helper method to retrieve the actual node. If the node is not a list and length is > 32 bytes + * get the actual node from the db. */ private Value getNode(Object node) { @@ -465,7 +466,9 @@ private Object putToCache(Object node) { private boolean isEmptyNode(Object node) { Value n = new Value(node); - return (node == null || (n.isString() && (n.asString().isEmpty() || n.get(0).isNull())) || n.length() == 0); + return (node == null + || (n.isString() && (n.asString().isEmpty() || n.get(0).isNull())) + || n.length() == 0); } private Object[] copyNode(Value currentNode) { @@ -485,7 +488,8 @@ public boolean equals(Object trie) { if (this == trie) { return true; } - return trie instanceof Trie && Arrays.equals(this.getRootHash(), ((Trie) trie).getRootHash()); + return trie instanceof Trie + && Arrays.equals(this.getRootHash(), ((Trie) trie).getRootHash()); } @Override @@ -524,10 +528,7 @@ public TrieImpl copy() { } } - /** - * ****************************** Utility functions * - * ***************************** - */ + /** ****************************** Utility functions * ***************************** */ // Created an array of empty elements of required length private static Object[] emptyStringSlice(int l) { Object[] slice = new Object[l]; @@ -538,13 +539,12 @@ private static Object[] emptyStringSlice(int l) { } /** - * Insert/delete operations on a Trie structure leaves the old nodes in - * cache, this method scans the cache and removes them. The method is not - * thread safe, the tree should not be modified during the cleaning process. + * Insert/delete operations on a Trie structure leaves the old nodes in cache, this method scans + * the cache and removes them. The method is not thread safe, the tree should not be modified + * during the cleaning process. */ public void cleanCache() { synchronized (cache) { - CollectFullSetOfNodes collectAction = new CollectFullSetOfNodes(); this.scanTree(this.getRootHash(), collectAction); @@ -576,7 +576,6 @@ public void printFootPrint() { public void scanTree(byte[] hash, ScanAction scanAction) { synchronized (cache) { - Value node = this.getCache().get(hash); if (node == null) { throw new RuntimeException("Not found: " + Hex.toHexString(hash)); @@ -638,6 +637,57 @@ public void scanTreeLoop(byte[] hash, ScanAction scanAction) { } } + /** + * Scans the trie similar to {@link #scanTreeLoop(byte[], ScanAction)}, but stops once a state + * is found in the given database. + * + * @param hash state root + * @param scanAction action to perform on each node + * @param db database containing keys that need not be explored + */ + public void scanTreeDiffLoop( + byte[] hash, ScanAction scanAction, IByteArrayKeyValueDatabase db) { + + ArrayList hashes = new ArrayList<>(); + hashes.add(hash); + + while (!hashes.isEmpty()) { + synchronized (cache) { + byte[] myHash = hashes.remove(0); + Value node = this.getCache().get(myHash); + if (node == null) { + System.out.println("Skipped key. Not found: " + Hex.toHexString(myHash)); + } else { + if (node.isList()) { + List siblings = node.asList(); + if (siblings.size() == PAIR_SIZE) { + Value val = new Value(siblings.get(1)); + if (val.isHashCode() && !hasTerminator((byte[]) siblings.get(0))) { + // scanTree(val.asBytes(), scanAction); + byte[] valBytes = val.asBytes(); + if (!db.get(valBytes).isPresent()) { + hashes.add(valBytes); + } + } + } else { + for (int j = 0; j < LIST_SIZE; ++j) { + Value val = new Value(siblings.get(j)); + if (val.isHashCode()) { + // scanTree(val.asBytes(), scanAction); + byte[] valBytes = val.asBytes(); + if (!db.get(valBytes).isPresent()) { + hashes.add(valBytes); + } + } + } + } + scanAction.doOnNode(myHash, node); + } + } + } + } + } + public void deserialize(byte[] data) { synchronized (cache) { RLPList rlpList = (RLPList) RLP.decode2(data).get(0); @@ -695,21 +745,43 @@ public byte[] serialize() { byte[] keysHeader = RLP.encodeLongElementHeader(keysTotalSize); byte[] valsHeader = RLP.encodeListHeader(valsTotalSize); - byte[] listHeader = RLP.encodeListHeader( - keysTotalSize + keysHeader.length + valsTotalSize + valsHeader.length + root.length); - - byte[] rlpData = new byte[keysTotalSize + keysHeader.length + valsTotalSize + valsHeader.length - + listHeader.length + root.length]; + byte[] listHeader = + RLP.encodeListHeader( + keysTotalSize + + keysHeader.length + + valsTotalSize + + valsHeader.length + + root.length); + + byte[] rlpData = + new byte + [keysTotalSize + + keysHeader.length + + valsTotalSize + + valsHeader.length + + listHeader.length + + root.length]; // copy headers: // [ rlp_list_header, rlp_keys_header, rlp_keys, rlp_vals_header, // rlp_val] System.arraycopy(listHeader, 0, rlpData, 0, listHeader.length); System.arraycopy(keysHeader, 0, rlpData, listHeader.length, keysHeader.length); - System.arraycopy(valsHeader, 0, rlpData, (listHeader.length + keysHeader.length + keysTotalSize), + System.arraycopy( + valsHeader, + 0, + rlpData, + (listHeader.length + keysHeader.length + keysTotalSize), valsHeader.length); - System.arraycopy(root, 0, rlpData, - (listHeader.length + keysHeader.length + keysTotalSize + valsTotalSize + valsHeader.length), + System.arraycopy( + root, + 0, + rlpData, + (listHeader.length + + keysHeader.length + + keysTotalSize + + valsTotalSize + + valsHeader.length), root.length); int k_1 = 0; @@ -720,15 +792,26 @@ public byte[] serialize() { continue; } - System.arraycopy(key.getData(), 0, rlpData, (listHeader.length + keysHeader.length + k_1), + System.arraycopy( + key.getData(), + 0, + rlpData, + (listHeader.length + keysHeader.length + k_1), key.getData().length); k_1 += key.getData().length; byte[] valBytes = RLP.encodeElement(node.getValue().getData()); - System.arraycopy(valBytes, 0, rlpData, - listHeader.length + keysHeader.length + keysTotalSize + valsHeader.length + k_2, + System.arraycopy( + valBytes, + 0, + rlpData, + listHeader.length + + keysHeader.length + + keysTotalSize + + valsHeader.length + + k_2, valBytes.length); k_2 += valBytes.length; } @@ -793,12 +876,14 @@ public boolean validate() { synchronized (cache) { final int[] cnt = new int[1]; try { - scanTree(getRootHash(), new ScanAction() { - @Override - public void doOnNode(byte[] hash, Value node) { - cnt[0]++; - } - }); + scanTree( + getRootHash(), + new ScanAction() { + @Override + public void doOnNode(byte[] hash, Value node) { + cnt[0]++; + } + }); } catch (Exception e) { return false; } @@ -806,4 +891,29 @@ public void doOnNode(byte[] hash, Value node) { } } + @Override + public long saveFullStateToDatabase(byte[] stateRoot, IByteArrayKeyValueDatabase db) { + ExtractToDatabase traceAction = new ExtractToDatabase(db); + traceTrie(stateRoot, traceAction); + return traceAction.count; + } + + private void traceDiffTrie(byte[] stateRoot, ScanAction action, IByteArrayKeyValueDatabase db) { + synchronized (cache) { + Value value = new Value(stateRoot); + + if (value.isHashCode() && !db.get(value.asBytes()).isPresent()) { + scanTreeDiffLoop(stateRoot, action, db); + } else { + action.doOnNode(stateRoot, value); + } + } + } + + @Override + public long saveDiffStateToDatabase(byte[] stateRoot, IByteArrayKeyValueDatabase db) { + ExtractToDatabase traceAction = new ExtractToDatabase(db); + traceDiffTrie(stateRoot, traceAction, db); + return traceAction.count; + } } diff --git a/modMcf/src/org/aion/mcf/trie/scan/ExtractToDatabase.java b/modMcf/src/org/aion/mcf/trie/scan/ExtractToDatabase.java new file mode 100644 index 0000000000..bb617f82f5 --- /dev/null +++ b/modMcf/src/org/aion/mcf/trie/scan/ExtractToDatabase.java @@ -0,0 +1,51 @@ +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: + * Aion foundation. + ******************************************************************************/ +package org.aion.mcf.trie.scan; + +import org.aion.base.db.IByteArrayKeyValueDatabase; +import org.aion.rlp.Value; + +/** @author Alexandra Roatis */ +public class ExtractToDatabase implements ScanAction { + + // only the keys are relevant so the value will be this constant + byte[] dummy_value = new byte[] {0}; + IByteArrayKeyValueDatabase db; + public long count = 0; + + public ExtractToDatabase(IByteArrayKeyValueDatabase _db) { + this.db = _db; + } + + @Override + public void doOnNode(byte[] hash, Value node) { + db.put(hash, dummy_value); + count++; + } +} From 631da9ef9e2a69274a9b010fdef9551296feab02 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 18 May 2018 16:23:29 -0400 Subject: [PATCH 045/129] bugfix: incorrect variable update --- modMcf/src/org/aion/mcf/config/CfgPrune.java | 23 +++++++++++--------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/modMcf/src/org/aion/mcf/config/CfgPrune.java b/modMcf/src/org/aion/mcf/config/CfgPrune.java index 4e71fed6e9..0fb56f98e9 100644 --- a/modMcf/src/org/aion/mcf/config/CfgPrune.java +++ b/modMcf/src/org/aion/mcf/config/CfgPrune.java @@ -44,16 +44,19 @@ public class CfgPrune implements IPruneConfig { private int current; private int archive; + private static final int MINIMUM_CURRENT_COUNT = 128; + private static final int MINIMUM_ARCHIVE_RATE = 1000; + public CfgPrune() { this.enabled = true; - this.current = 128; - this.archive = 10000; + this.current = MINIMUM_CURRENT_COUNT; + this.archive = MINIMUM_ARCHIVE_RATE; } public CfgPrune(boolean _enabled) { this.enabled = _enabled; - this.current = 128; - this.archive = 10000; + this.current = MINIMUM_CURRENT_COUNT; + this.archive = MINIMUM_ARCHIVE_RATE; } public void fromXML(final XMLStreamReader sr) throws XMLStreamException { @@ -69,16 +72,16 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { break; case "current_count": this.current = Integer.parseInt(Cfg.readValue(sr)); - // must be at least 128 - if (this.current < 128) { - this.current = 128; + // must be at least MINIMUM_CURRENT_COUNT + if (this.current < MINIMUM_CURRENT_COUNT) { + this.current = MINIMUM_CURRENT_COUNT; } break; case "archive_rate": this.archive = Integer.parseInt(Cfg.readValue(sr)); - // must be at least 1000 - if (this.current < 1000) { - this.current = 1000; + // must be at least MINIMUM_ARCHIVE_RATE + if (this.archive < MINIMUM_ARCHIVE_RATE) { + this.archive = MINIMUM_ARCHIVE_RATE; } break; default: From 236dddf3fe2e6618455414b950c4a189f11b8a14 Mon Sep 17 00:00:00 2001 From: aionJoey Date: Tue, 22 May 2018 12:01:38 -0400 Subject: [PATCH 046/129] file path check --- modBoot/src/org/aion/Aion.java | 167 +++++++++--------- .../src/org/aion/log/AionLoggerFactory.java | 64 ++++--- modMcf/src/org/aion/mcf/config/CfgLog.java | 118 ++++++++----- 3 files changed, 194 insertions(+), 155 deletions(-) diff --git a/modBoot/src/org/aion/Aion.java b/modBoot/src/org/aion/Aion.java index 6cbb30558f..5ced73e85b 100644 --- a/modBoot/src/org/aion/Aion.java +++ b/modBoot/src/org/aion/Aion.java @@ -17,14 +17,17 @@ * along with the aion network project source files. * If not, see . * - * Contributors to the aion source files in decreasing order of code volume: - * + * Contributors: * Aion foundation. - * + * ******************************************************************************/ - package org.aion; +import static org.aion.crypto.ECKeyFac.ECKeyType.ED25519; +import static org.aion.crypto.HashUtil.H256Type.BLAKE2B_256; +import static org.aion.zero.impl.Version.KERNEL_VERSION; + +import java.util.ServiceLoader; import org.aion.api.server.http.NanoServer; import org.aion.api.server.pb.ApiAion0; import org.aion.api.server.pb.IHdlr; @@ -36,7 +39,6 @@ import org.aion.log.AionLoggerFactory; import org.aion.log.LogEnum; import org.aion.mcf.config.CfgApiRpc; -import org.aion.mcf.config.CfgLog; import org.aion.mcf.mine.IMineRunner; import org.aion.zero.impl.blockchain.AionFactory; import org.aion.zero.impl.blockchain.IAionChain; @@ -44,12 +46,6 @@ import org.aion.zero.impl.config.CfgAion; import org.slf4j.Logger; -import java.util.ServiceLoader; - -import static org.aion.crypto.ECKeyFac.ECKeyType.ED25519; -import static org.aion.crypto.HashUtil.H256Type.BLAKE2B_256; -import static org.aion.zero.impl.Version.KERNEL_VERSION; - public class Aion { public static void main(String args[]) throws InterruptedException { @@ -72,10 +68,8 @@ public static void main(String args[]) throws InterruptedException { * if in the config.xml id is set as default [NODE-ID-PLACEHOLDER] * return true which means should save back to xml config */ - if(cfg.fromXML()) - cfg.toXML(new String[]{ "--id=" + cfg.getId() }); + if (cfg.fromXML()) cfg.toXML(new String[] {"--id=" + cfg.getId()}); - try { ServiceLoader.load(AionLoggerFactory.class); } catch (Exception e) { @@ -83,27 +77,31 @@ public static void main(String args[]) throws InterruptedException { throw e; } - - // If commit this out, the config setting will be ignore. all log module been set to "INFO" Level - - /** Change INITIALIZE signature to include LOGFILE */ - // AionLoggerFactory.init(cfg.getLog().getModules()); - AionLoggerFactory.init(cfg.getLog().getModules(), cfg.getLog().getLogFile()); - + // If commit this out, the config setting will be ignore. all log module been set to "INFO" + // Level + /** Changed INITIALIZE signature to include LOGFILE and LOGPATH*/ + AionLoggerFactory.init(cfg.getLog().getModules(), cfg.getLog().getLogFile(), cfg.getLog().getLogPath()); Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.toString()); - System.out.println( - " _____ \n" + - " .'. | .~ ~. |.. |\n" + - " .' `. | | | | ``.. |\n" + - " .''''''''`. | | | | ``.. |\n" + - ".' `. | `._____.' | ``|\n\n" + - " NETWORK v" + KERNEL_VERSION + - "\n\n" - ); + /** Outputs message to console depending on logPath validity */ + if(cfg.getLog().getOriginal()) { + System.out.println("Logger file path: '" + cfg.getLog().getLogPath() + "'\n"); + } else { + System.out.println("File path is invalid; set to default: 'log'\n"); + } + + System.out.println( + " _____ \n" + + " .'. | .~ ~. |.. |\n" + + " .' `. | | | | ``.. |\n" + + " .''''''''`. | | | | ``.. |\n" + + ".' `. | `._____.' | ``|\n\n" + + " NETWORK v" + + KERNEL_VERSION + + "\n\n"); IAionChain ac = AionFactory.create(); - + IMineRunner nm = null; if (!cfg.getConsensus().isSeed()) { @@ -123,21 +121,25 @@ public static void main(String args[]) throws InterruptedException { IHdlr handler = new HdlrZmq(new ApiAion0(ac)); processor = new ProtocolProcessor(handler, cfg.getApi().getZmq()); ProtocolProcessor finalProcessor = processor; - zmqThread = new Thread(() -> { - finalProcessor.run(); - }, "zmq-api"); + zmqThread = + new Thread( + () -> { + finalProcessor.run(); + }, + "zmq-api"); zmqThread.start(); } NanoServer rpcServer = null; - if(cfg.getApi().getRpc().getActive()) { - CfgApiRpc rpcCfg = cfg.getApi().getRpc(); - rpcServer = new NanoServer( - rpcCfg.getIp(), - rpcCfg.getPort(), - rpcCfg.getCorsEnabled(), - rpcCfg.getEnabled(), - rpcCfg.getMaxthread()); + if (cfg.getApi().getRpc().getActive()) { + CfgApiRpc rpcCfg = cfg.getApi().getRpc(); + rpcServer = + new NanoServer( + rpcCfg.getIp(), + rpcCfg.getPort(), + rpcCfg.getCorsEnabled(), + rpcCfg.getEnabled(), + rpcCfg.getMaxthread()); rpcServer.start(); } @@ -150,8 +152,9 @@ class ShutdownThreadHolder { final IMineRunner miner; final ProtocolProcessor pp; final NanoServer rpc; - - private ShutdownThreadHolder(Thread zmqThread, IMineRunner nm, ProtocolProcessor pp, NanoServer rpc) { + + private ShutdownThreadHolder( + Thread zmqThread, IMineRunner nm, ProtocolProcessor pp, NanoServer rpc) { this.zmqThread = zmqThread; this.miner = nm; this.pp = pp; @@ -160,42 +163,46 @@ private ShutdownThreadHolder(Thread zmqThread, IMineRunner nm, ProtocolProcessor } ShutdownThreadHolder holder = new ShutdownThreadHolder(zmqThread, nm, processor, rpcServer); - - Runtime.getRuntime().addShutdownHook(new Thread(() -> { - - LOG.info("Starting shutdown process..."); - - if (holder.rpc != null) { - LOG.info("Shutting down RpcServer"); - holder.rpc.shutdown(); - LOG.info("Shutdown RpcServer ... Done!"); - } - - if (holder.pp != null) { - LOG.info("Shutting down zmq ProtocolProcessor"); - try { - holder.pp.shutdown(); - LOG.info("Shutdown zmq ProtocolProcessor... Done!"); - } catch (InterruptedException e) { - LOG.info("Shutdown zmq ProtocolProcessor failed! {}", e.getMessage()); - Thread.currentThread().interrupt(); - } - } - - if (holder.miner != null) { - LOG.info("Shutting down sealer"); - holder.miner.stopMining(); - holder.miner.shutdown(); - LOG.info("Shutdown sealer... Done!"); - } - - LOG.info("Shutting down the AionHub..."); - ac.getAionHub().close(); - - LOG.info("---------------------------------------------"); - LOG.info("| Aion kernel graceful shutdown successful! |"); - LOG.info("---------------------------------------------"); - }, "shutdown")); + Runtime.getRuntime() + .addShutdownHook( + new Thread( + () -> { + LOG.info("Starting shutdown process..."); + + if (holder.rpc != null) { + LOG.info("Shutting down RpcServer"); + holder.rpc.shutdown(); + LOG.info("Shutdown RpcServer ... Done!"); + } + + if (holder.pp != null) { + LOG.info("Shutting down zmq ProtocolProcessor"); + try { + holder.pp.shutdown(); + LOG.info("Shutdown zmq ProtocolProcessor... Done!"); + } catch (InterruptedException e) { + LOG.info( + "Shutdown zmq ProtocolProcessor failed! {}", + e.getMessage()); + Thread.currentThread().interrupt(); + } + } + + if (holder.miner != null) { + LOG.info("Shutting down sealer"); + holder.miner.stopMining(); + holder.miner.shutdown(); + LOG.info("Shutdown sealer... Done!"); + } + + LOG.info("Shutting down the AionHub..."); + ac.getAionHub().close(); + + LOG.info("---------------------------------------------"); + LOG.info("| Aion kernel graceful shutdown successful! |"); + LOG.info("---------------------------------------------"); + }, + "shutdown")); } } diff --git a/modLogger/src/org/aion/log/AionLoggerFactory.java b/modLogger/src/org/aion/log/AionLoggerFactory.java index cc61dbd76b..a2f0045ab2 100644 --- a/modLogger/src/org/aion/log/AionLoggerFactory.java +++ b/modLogger/src/org/aion/log/AionLoggerFactory.java @@ -1,24 +1,26 @@ -/** - * ***************************************************************************** Copyright (c) - * 2017-2018 Aion foundation. +/******************************************************************************* + * Copyright (c) 2017-2018 Aion foundation. * - *

This file is part of the aion network project. + * This file is part of the aion network project. * - *

The aion network project is free software: you can redistribute it and/or modify it under the - * terms of the GNU General Public License as published by the Free Software Foundation, either - * version 3 of the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - *

The aion network project is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - *

You should have received a copy of the GNU General Public License along with the aion network - * project source files. If not, see . + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * - *

Contributors: Aion foundation. + * Contributors: + * Aion foundation. * - *

**************************************************************************** - */ + ******************************************************************************/ package org.aion.log; import ch.qos.logback.classic.Level; @@ -26,7 +28,6 @@ import ch.qos.logback.classic.encoder.PatternLayoutEncoder; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.ConsoleAppender; -import ch.qos.logback.core.FileAppender; import ch.qos.logback.core.rolling.RollingFileAppender; import ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy; import ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy; @@ -62,8 +63,8 @@ public class AionLoggerFactory { private static final PatternLayoutEncoder encoder = new PatternLayoutEncoder(); /** Static declaration of logFile */ - private static boolean logToFile; - + private static boolean logFile; + private static String logPath; private static RollingFileAppender fileAppender; static { @@ -74,26 +75,23 @@ public class AionLoggerFactory { } } - /** Change INITIALIZE signature to include LOGFILE */ + /** Change INITIALIZE signature to include LOGFILE and LOGPATH */ public static void init(final Map _logModules) { - init(_logModules, false); + init(_logModules, false, "log"); } - // public static void init(final Map _logModules) { - public static void init(final Map _logModules, boolean _logToFile ) { + public static void init(final Map _logModules, boolean _logToFile, String _logToPath) { logModules = _logModules; - - /** Passed in argument */ - logToFile = _logToFile; - // logToFile = true; + logFile = _logToFile; + logPath = _logToPath; loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); /** Toggles file appending configurations */ - if(logToFile) { + if (logFile) { /** Initialize Rolling-File-Appender */ - String fileName = "./log/aionCurrentLog.dat"; + String fileName = logPath + "/aionCurrentLog.dat"; fileAppender = new RollingFileAppender(); fileAppender.setContext(loggerContext); fileAppender.setName("aionlogger"); @@ -114,8 +112,8 @@ public static void init(final Map _logModules, boolean _logToFil * (Currently set to PER DAY) */ FileNamePattern fnp = - new FileNamePattern( - "./log/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd}.%i.log", loggerContext); + new FileNamePattern( + logPath + "/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd}.%i.log", loggerContext); rp.setFileNamePattern(fnp.getPattern()); /** @@ -164,15 +162,15 @@ private static Logger newLogger(String label) { if (loggerContext == null) { // System.out.println("If you see this line, meaning you are under // the unit test!!! If you are not. should report an issue."); - //init(new HashMap<>(), false); + // init(new HashMap<>(), false); init(new HashMap<>()); } ch.qos.logback.classic.Logger newlogger = loggerContext.getLogger(label); newlogger.addAppender(appender); - /** Toggle file appending */ - if(logToFile) { + /** Toggles file appending */ + if (logFile) { newlogger.addAppender(fileAppender); } diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index 80de09cc46..bfd431a4da 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -27,24 +27,21 @@ import java.io.StringWriter; import java.io.Writer; import java.util.*; - -import org.aion.log.LogEnum; -import org.aion.log.LogLevels; - import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLStreamWriter; +import org.aion.log.LogEnum; +import org.aion.log.LogLevels; -/** - * @author chris - */ +/** @author chris */ public class CfgLog { private Map modules; - - /** Declaree logFile variable */ private boolean logFile; + private String logPath; + private boolean validPath; + private boolean original; public CfgLog() { modules = new HashMap<>(); @@ -56,10 +53,10 @@ public CfgLog() { modules.put(LogEnum.API.name(), LogLevels.INFO.name()); modules.put(LogEnum.TX.name(), LogLevels.ERROR.name()); modules.put(LogEnum.TXPOOL.name(), LogLevels.ERROR.name()); - - /** TOGGLES LOGGING TO FILE - initializes logFile as FALSE */ this.logFile = false; - + this.logPath = "log"; + this.validPath = true; + this.original = true; } public void fromXML(final XMLStreamReader sr) throws XMLStreamException { @@ -68,28 +65,33 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { while (sr.hasNext()) { int eventType = sr.next(); switch (eventType) { - case XMLStreamReader.START_ELEMENT: - - /** XML - Takes the input in config.xml and parse as T/F */ - String elementName = sr.getLocalName().toLowerCase(); - switch (elementName) { - case "log-file": - this.logFile = Boolean.parseBoolean(Cfg.readValue(sr)); - break; - default: - break; - } - - elementName = sr.getLocalName().toUpperCase(); - /** String elementName = sr.getLocalName().toUpperCase(); */ - if (LogEnum.contains(elementName)) - this.modules.put(elementName, Cfg.readValue(sr).toUpperCase()); - break; - case XMLStreamReader.END_ELEMENT: - break loop; - default: - //Cfg.skipElement(sr); - break; + case XMLStreamReader.START_ELEMENT: + + /** XML - Takes the input in config.xml and parse as T/F */ + String elementName = sr.getLocalName().toLowerCase(); + switch (elementName) { + case "log-file": + this.logFile = Boolean.parseBoolean(Cfg.readValue(sr)); + break; + case "log-path": + this.logPath = Cfg.readValue(sr); + if(!isValidPath()) { + this.original = false; + } + break; + default: + break; + } + + elementName = sr.getLocalName().toUpperCase(); + if (LogEnum.contains(elementName)) + this.modules.put(elementName, Cfg.readValue(sr).toUpperCase()); + break; + case XMLStreamReader.END_ELEMENT: + break loop; + default: + // Cfg.skipElement(sr); + break; } } } @@ -102,7 +104,7 @@ public String toXML() { Writer strWriter = new StringWriter(); xmlWriter = output.createXMLStreamWriter(strWriter); xmlWriter.writeCharacters("\r\n\t"); - xmlWriter.writeStartElement("Log"); + xmlWriter.writeStartElement("log"); xmlWriter.writeCharacters("\r\n"); /** XML - Displays tag/entry in the config.xml */ @@ -112,13 +114,17 @@ public String toXML() { xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n"); - /** Testing whether logFile retrieves boolean value */ - /** if(logFile) { - xmlWriter.writeCharacters("\t\t"); - xmlWriter.writeCharacters("testing for T"); - xmlWriter.writeCharacters("\r\n"); - } */ + /** XML - Displays log-path in the config.xml */ + xmlWriter.writeCharacters("\t\t"); + xmlWriter.writeStartElement("log-path"); + xmlWriter.writeCharacters(this.logPath + ""); + xmlWriter.writeEndElement(); + xmlWriter.writeCharacters("\r\n"); + /** If file path is invalid, outputs message to config */ + if(!isValidPath()) { + xmlWriter.writeCharacters("\t\tInvalid file path; set to default: 'log'\r\n" ); + } for (Map.Entry module : this.modules.entrySet()) { xmlWriter.writeCharacters("\t\t"); @@ -149,4 +155,32 @@ public boolean getLogFile() { return this.logFile; } -} \ No newline at end of file + /** Method returns user input path of logFile */ + public String getLogPath() { + if(!isValidPath()) { + return this.logPath = "log"; + } else { + return this.logPath; + } + } + + /** Method checks logPath for illegal inputs */ + public boolean isValidPath() { + if(logPath.contains("-") || logPath.contains("+") || logPath.contains("=") + || logPath.contains("?") || logPath.contains("!") || logPath.contains("@") + || logPath.contains("#") || logPath.contains("$") || logPath.contains("%") + || logPath.contains("^") || logPath.contains("*") || logPath.contains(":") + || logPath.contains(";") || logPath.contains(".") || logPath.contains(",") + || logPath.contains("'") || logPath.contains("|")) { + return this.validPath = false; + } else { + return this.validPath = true; + } + } + + /** Method returns logPath input validity */ + public boolean getOriginal() { + return this.original; + } + +} From 4666b676a3047786bf6797ad5da7be6893c15ef3 Mon Sep 17 00:00:00 2001 From: aionick Date: Tue, 22 May 2018 15:13:35 -0400 Subject: [PATCH 047/129] added getNrgPrice functionality --- .../src/org/aion/api/server/pb/ApiAion0.java | 20 + .../src/org/aion/api/server/pb/Message.java | 994 ++++++++++++++++-- 2 files changed, 953 insertions(+), 61 deletions(-) diff --git a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java index 17bd085601..228ad5562d 100644 --- a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java +++ b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java @@ -50,6 +50,7 @@ import org.aion.api.server.ApiUtil; import org.aion.api.server.IApiAion; import org.aion.api.server.pb.Message.Retcode; +import org.aion.api.server.pb.Message.Servs; import org.aion.api.server.types.ArgTxCall; import org.aion.api.server.types.CompiledContr; import org.aion.api.server.types.EvtContract; @@ -497,6 +498,25 @@ public byte[] process(byte[] request, byte[] socketId) { return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } + case Message.Funcs.f_getNrgPrice_VALUE: { + if (service != Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); + } + + long nrg = this.getRecommendedNrgPrice(); + + try { + Message.rsp_getNrgPrice rsp = Message.rsp_getNrgPrice.newBuilder() + .setNrgPrice(nrg).build(); + + byte[] retHeader = ApiUtil + .toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error("ApiAion0.process.getNrgPrice exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } case Message.Funcs.f_compile_VALUE: { if (service != Message.Servs.s_tx_VALUE) { diff --git a/modApiServer/src/org/aion/api/server/pb/Message.java b/modApiServer/src/org/aion/api/server/pb/Message.java index 184c7cb2e2..d9df38fa08 100644 --- a/modApiServer/src/org/aion/api/server/pb/Message.java +++ b/modApiServer/src/org/aion/api/server/pb/Message.java @@ -417,6 +417,10 @@ public enum Funcs * f_getNonce = 56; */ f_getNonce(56), + /** + * f_getNrgPrice = 57; + */ + f_getNrgPrice(57), UNRECOGNIZED(-1), ; @@ -648,6 +652,10 @@ public enum Funcs * f_getNonce = 56; */ public static final int f_getNonce_VALUE = 56; + /** + * f_getNrgPrice = 57; + */ + public static final int f_getNrgPrice_VALUE = 57; public final int getNumber() { @@ -725,6 +733,7 @@ public static Funcs forNumber(int value) { case 54: return f_getBlockSqlByRange; case 55: return f_getBlockDetailsByRange; case 56: return f_getNonce; + case 57: return f_getNrgPrice; default: return null; } } @@ -70730,6 +70739,845 @@ public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { } + public interface req_getNrgPriceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNrgPrice) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} + */ + public static final class req_getNrgPrice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNrgPrice) + req_getNrgPriceOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getNrgPrice.newBuilder() to construct. + private req_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getNrgPrice() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getNrgPrice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNrgPrice.class, org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getNrgPrice)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getNrgPrice other = (org.aion.api.server.pb.Message.req_getNrgPrice) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNrgPrice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNrgPrice) + org.aion.api.server.pb.Message.req_getNrgPriceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNrgPrice.class, org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getNrgPrice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + } + + public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getNrgPrice build() { + org.aion.api.server.pb.Message.req_getNrgPrice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getNrgPrice buildPartial() { + org.aion.api.server.pb.Message.req_getNrgPrice result = new org.aion.api.server.pb.Message.req_getNrgPrice(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getNrgPrice) { + return mergeFrom((org.aion.api.server.pb.Message.req_getNrgPrice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNrgPrice other) { + if (other == org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getNrgPrice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getNrgPrice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNrgPrice) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNrgPrice) + private static final org.aion.api.server.pb.Message.req_getNrgPrice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNrgPrice(); + } + + public static org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getNrgPrice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getNrgPrice(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface rsp_getNrgPriceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNrgPrice) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 nrgPrice = 1; + */ + long getNrgPrice(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} + */ + public static final class rsp_getNrgPrice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNrgPrice) + rsp_getNrgPriceOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getNrgPrice.newBuilder() to construct. + private rsp_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getNrgPrice() { + nrgPrice_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getNrgPrice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNrgPrice.class, org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); + } + + public static final int NRGPRICE_FIELD_NUMBER = 1; + private long nrgPrice_; + /** + * uint64 nrgPrice = 1; + */ + public long getNrgPrice() { + return nrgPrice_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nrgPrice_ != 0L) { + output.writeUInt64(1, nrgPrice_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getNrgPrice other = (org.aion.api.server.pb.Message.rsp_getNrgPrice) obj; + + boolean result = true; + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNrgPrice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNrgPrice) + org.aion.api.server.pb.Message.rsp_getNrgPriceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNrgPrice.class, org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getNrgPrice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice build() { + org.aion.api.server.pb.Message.rsp_getNrgPrice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice buildPartial() { + org.aion.api.server.pb.Message.rsp_getNrgPrice result = new org.aion.api.server.pb.Message.rsp_getNrgPrice(this); + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getNrgPrice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNrgPrice other) { + if (other == org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance()) return this; + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getNrgPrice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getNrgPrice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 1; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 1; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 1; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNrgPrice) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNrgPrice) + private static final org.aion.api.server.pb.Message.rsp_getNrgPrice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNrgPrice(); + } + + public static org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getNrgPrice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getNrgPrice(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_org_aion_api_server_pb_t_Contract_descriptor; private static final @@ -71250,6 +72098,16 @@ public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -71468,67 +72326,69 @@ public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { "tBlockDetailsByRange\0229\n\nblkDetails\030\001 \003(\013" + "2%.org.aion.api.server.pb.t_BlockDetail\"" + "\037\n\014req_getNonce\022\017\n\007address\030\001 \001(\014\"\035\n\014rsp_" + - "getNonce\022\r\n\005nonce\030\001 \001(\014*\204\001\n\005Servs\022\010\n\004s_h" + - "b\020\000\022\013\n\007s_admin\020\001\022\013\n\007s_chain\020\002\022\r\n\ts_accou" + - "nt\020\003\022\010\n\004s_tx\020\004\022\t\n\005s_net\020\005\022\n\n\006s_mine\020\006\022\017\n" + - "\013s_privilege\020\007\022\014\n\010s_wallet\020\010\022\010\n\004s_NA\020\t*\265" + - "\n\n\005Funcs\022\025\n\021f_protocolVersion\020\000\022\022\n\016f_min" + - "erAddress\020\001\022\016\n\nf_accounts\020\002\022\021\n\rf_blockNu" + - "mber\020\003\022\020\n\014f_getBalance\020\004\022\022\n\016f_getStorage" + - "At\020\005\022\023\n\017f_unlockAccount\020\006\022\025\n\021f_sendTrans" + - "action\020\007\022\032\n\026f_getTransactionByHash\020\010\022\r\n\t" + - "f_compile\020\t\022\024\n\020f_contractDeploy\020\n\022\031\n\025f_g" + - "etTransactionCount\020\013\022$\n f_getBlockTransa" + - "ctionCountByHash\020\014\022&\n\"f_getBlockTransact" + - "ionCountByNumber\020\r\022\r\n\tf_getCode\020\016\022\n\n\006f_c" + - "all\020\017\022\024\n\020f_getBlockByHash\020\020\022\026\n\022f_getBloc" + - "kByNumber\020\021\022\'\n#f_getTransactionByBlockHa" + - "shAndIndex\020\022\022)\n%f_getTransactionByBlockN" + - "umberAndIndex\020\023\022\033\n\027f_getTransactionRecei" + - "pt\020\024\022\022\n\016f_getCompilers\020\025\022\025\n\021f_compileSol" + - "idity\020\026\022\r\n\tf_getWork\020\027\022\020\n\014f_submitWork\020\030" + - "\022\035\n\031f_fetchQueuedTransactions\020\031\022\027\n\023f_sig" + - "nedTransaction\020\032\022\024\n\020f_rawTransaction\020\033\022\021" + - "\n\rf_estimateNrg\020\034\022\014\n\010f_mining\020\035\022\016\n\nf_has" + - "hrate\020\036\022\024\n\020f_getActiveNodes\020\037\022\024\n\020f_getSo" + - "lcVersion\020 \022\017\n\013f_isSyncing\020!\022\016\n\nf_syncIn" + - "fo\020\"\022\023\n\017f_getSystemInfo\020#\022\023\n\017f_eventRegi" + - "ster\020$\022\025\n\021f_eventDeregister\020%\022\023\n\017f_accou" + - "ntCreate\020&\022\021\n\rf_accountLock\020\'\022\023\n\017f_userP" + - "rivilege\020(\022\020\n\014f_eventQuery\020)\022\024\n\020f_import" + - "Accounts\020*\022\024\n\020f_exportAccounts\020+\022\034\n\030f_ge" + - "tBlockHeaderByNumber\020,\022\032\n\026f_getBlockHead" + - "erByHash\020-\022\037\n\033f_getCurrentTotalDifficult" + - "y\020.\022\024\n\020f_getStaticNodes\020/\022\035\n\031f_getBlockD" + - "etailsByNumber\0200\022\035\n\031f_getBlockDetailsByL" + - "atest\0201\022\027\n\023f_getBlocksByLatest\0202\022$\n f_ge" + - "tAccountDetailsByAddressList\0203\022\024\n\020f_back" + - "upAccounts\0204\022\010\n\004f_NA\0205\022\030\n\024f_getBlockSqlB" + - "yRange\0206\022\034\n\030f_getBlockDetailsByRange\0207\022\016" + - "\n\nf_getNonce\0208*\241\007\n\007Retcode\022\n\n\006r_fail\020\000\022\r" + - "\n\tr_success\020\001\022\023\n\017r_wallet_nullcb\020\002\022\025\n\021r_" + - "heartbeatReturn\020\003\022\025\n\021r_privilegeReturn\020\004" + - "\022\r\n\tr_tx_Init\020d\022\017\n\013r_tx_Recved\020e\022\020\n\014r_tx" + - "_Dropped\020f\022\023\n\017r_tx_NewPending\020g\022\020\n\014r_tx_" + - "Pending\020h\022\021\n\rr_tx_Included\020i\022\020\n\014r_tx_eve" + - "ntCb\020j\022\010\n\004r_NA\020k\022\036\n\021r_fail_header_len\020\377\377" + - "\377\377\377\377\377\377\377\001\022 \n\023r_fail_service_call\020\376\377\377\377\377\377\377\377" + - "\377\001\022!\n\024r_fail_function_call\020\375\377\377\377\377\377\377\377\377\001\022&\n" + - "\031r_fail_function_exception\020\374\377\377\377\377\377\377\377\377\001\022\037\n" + - "\022r_fail_api_version\020\373\377\377\377\377\377\377\377\377\001\022\037\n\022r_fail" + - "_ct_bytecode\020\372\377\377\377\377\377\377\377\377\001\022\034\n\017r_fail_null_r" + - "sp\020\371\377\377\377\377\377\377\377\377\001\022 \n\023r_fail_invalid_addr\020\370\377\377" + - "\377\377\377\377\377\377\001\022\'\n\032r_fail_null_compile_source\020\367\377" + - "\377\377\377\377\377\377\377\001\022$\n\027r_fail_compile_contract\020\366\377\377\377" + - "\377\377\377\377\377\001\022#\n\026r_fail_sendTx_null_rep\020\365\377\377\377\377\377\377" + - "\377\377\001\022\036\n\021r_fail_getcode_to\020\364\377\377\377\377\377\377\377\377\001\022*\n\035r" + - "_fail_getTxReceipt_null_recp\020\363\377\377\377\377\377\377\377\377\001\022" + - "(\n\033r_fail_zmqHandler_exception\020\362\377\377\377\377\377\377\377\377" + - "\001\022(\n\033r_fail_hit_pending_tx_limit\020\361\377\377\377\377\377\377" + - "\377\377\001\022%\n\030r_fail_txqueue_exception\020\360\377\377\377\377\377\377\377" + - "\377\001\022&\n\031r_fail_function_arguments\020\357\377\377\377\377\377\377\377" + - "\377\001\022!\n\024r_fail_unsupport_api\020\356\377\377\377\377\377\377\377\377\001\022\033\n" + - "\016r_fail_unknown\020\355\377\377\377\377\377\377\377\377\001b\006proto3" + "getNonce\022\r\n\005nonce\030\001 \001(\014\"\021\n\017req_getNrgPri" + + "ce\"#\n\017rsp_getNrgPrice\022\020\n\010nrgPrice\030\001 \001(\004*" + + "\204\001\n\005Servs\022\010\n\004s_hb\020\000\022\013\n\007s_admin\020\001\022\013\n\007s_ch" + + "ain\020\002\022\r\n\ts_account\020\003\022\010\n\004s_tx\020\004\022\t\n\005s_net\020" + + "\005\022\n\n\006s_mine\020\006\022\017\n\013s_privilege\020\007\022\014\n\010s_wall" + + "et\020\010\022\010\n\004s_NA\020\t*\310\n\n\005Funcs\022\025\n\021f_protocolVe" + + "rsion\020\000\022\022\n\016f_minerAddress\020\001\022\016\n\nf_account" + + "s\020\002\022\021\n\rf_blockNumber\020\003\022\020\n\014f_getBalance\020\004" + + "\022\022\n\016f_getStorageAt\020\005\022\023\n\017f_unlockAccount\020" + + "\006\022\025\n\021f_sendTransaction\020\007\022\032\n\026f_getTransac" + + "tionByHash\020\010\022\r\n\tf_compile\020\t\022\024\n\020f_contrac" + + "tDeploy\020\n\022\031\n\025f_getTransactionCount\020\013\022$\n " + + "f_getBlockTransactionCountByHash\020\014\022&\n\"f_" + + "getBlockTransactionCountByNumber\020\r\022\r\n\tf_" + + "getCode\020\016\022\n\n\006f_call\020\017\022\024\n\020f_getBlockByHas" + + "h\020\020\022\026\n\022f_getBlockByNumber\020\021\022\'\n#f_getTran" + + "sactionByBlockHashAndIndex\020\022\022)\n%f_getTra" + + "nsactionByBlockNumberAndIndex\020\023\022\033\n\027f_get" + + "TransactionReceipt\020\024\022\022\n\016f_getCompilers\020\025" + + "\022\025\n\021f_compileSolidity\020\026\022\r\n\tf_getWork\020\027\022\020" + + "\n\014f_submitWork\020\030\022\035\n\031f_fetchQueuedTransac" + + "tions\020\031\022\027\n\023f_signedTransaction\020\032\022\024\n\020f_ra" + + "wTransaction\020\033\022\021\n\rf_estimateNrg\020\034\022\014\n\010f_m" + + "ining\020\035\022\016\n\nf_hashrate\020\036\022\024\n\020f_getActiveNo" + + "des\020\037\022\024\n\020f_getSolcVersion\020 \022\017\n\013f_isSynci" + + "ng\020!\022\016\n\nf_syncInfo\020\"\022\023\n\017f_getSystemInfo\020" + + "#\022\023\n\017f_eventRegister\020$\022\025\n\021f_eventDeregis" + + "ter\020%\022\023\n\017f_accountCreate\020&\022\021\n\rf_accountL" + + "ock\020\'\022\023\n\017f_userPrivilege\020(\022\020\n\014f_eventQue" + + "ry\020)\022\024\n\020f_importAccounts\020*\022\024\n\020f_exportAc" + + "counts\020+\022\034\n\030f_getBlockHeaderByNumber\020,\022\032" + + "\n\026f_getBlockHeaderByHash\020-\022\037\n\033f_getCurre" + + "ntTotalDifficulty\020.\022\024\n\020f_getStaticNodes\020" + + "/\022\035\n\031f_getBlockDetailsByNumber\0200\022\035\n\031f_ge" + + "tBlockDetailsByLatest\0201\022\027\n\023f_getBlocksBy" + + "Latest\0202\022$\n f_getAccountDetailsByAddress" + + "List\0203\022\024\n\020f_backupAccounts\0204\022\010\n\004f_NA\0205\022\030" + + "\n\024f_getBlockSqlByRange\0206\022\034\n\030f_getBlockDe" + + "tailsByRange\0207\022\016\n\nf_getNonce\0208\022\021\n\rf_getN" + + "rgPrice\0209*\241\007\n\007Retcode\022\n\n\006r_fail\020\000\022\r\n\tr_s" + + "uccess\020\001\022\023\n\017r_wallet_nullcb\020\002\022\025\n\021r_heart" + + "beatReturn\020\003\022\025\n\021r_privilegeReturn\020\004\022\r\n\tr" + + "_tx_Init\020d\022\017\n\013r_tx_Recved\020e\022\020\n\014r_tx_Drop" + + "ped\020f\022\023\n\017r_tx_NewPending\020g\022\020\n\014r_tx_Pendi" + + "ng\020h\022\021\n\rr_tx_Included\020i\022\020\n\014r_tx_eventCb\020" + + "j\022\010\n\004r_NA\020k\022\036\n\021r_fail_header_len\020\377\377\377\377\377\377\377" + + "\377\377\001\022 \n\023r_fail_service_call\020\376\377\377\377\377\377\377\377\377\001\022!\n" + + "\024r_fail_function_call\020\375\377\377\377\377\377\377\377\377\001\022&\n\031r_fa" + + "il_function_exception\020\374\377\377\377\377\377\377\377\377\001\022\037\n\022r_fa" + + "il_api_version\020\373\377\377\377\377\377\377\377\377\001\022\037\n\022r_fail_ct_b" + + "ytecode\020\372\377\377\377\377\377\377\377\377\001\022\034\n\017r_fail_null_rsp\020\371\377" + + "\377\377\377\377\377\377\377\001\022 \n\023r_fail_invalid_addr\020\370\377\377\377\377\377\377\377" + + "\377\001\022\'\n\032r_fail_null_compile_source\020\367\377\377\377\377\377\377" + + "\377\377\001\022$\n\027r_fail_compile_contract\020\366\377\377\377\377\377\377\377\377" + + "\001\022#\n\026r_fail_sendTx_null_rep\020\365\377\377\377\377\377\377\377\377\001\022\036" + + "\n\021r_fail_getcode_to\020\364\377\377\377\377\377\377\377\377\001\022*\n\035r_fail" + + "_getTxReceipt_null_recp\020\363\377\377\377\377\377\377\377\377\001\022(\n\033r_" + + "fail_zmqHandler_exception\020\362\377\377\377\377\377\377\377\377\001\022(\n\033" + + "r_fail_hit_pending_tx_limit\020\361\377\377\377\377\377\377\377\377\001\022%" + + "\n\030r_fail_txqueue_exception\020\360\377\377\377\377\377\377\377\377\001\022&\n" + + "\031r_fail_function_arguments\020\357\377\377\377\377\377\377\377\377\001\022!\n" + + "\024r_fail_unsupport_api\020\356\377\377\377\377\377\377\377\377\001\022\033\n\016r_fa" + + "il_unknown\020\355\377\377\377\377\377\377\377\377\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -72166,6 +73026,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor, new java.lang.String[] { "Nonce", }); + internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor = + getDescriptor().getMessageTypes().get(103); + internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor, + new java.lang.String[] { }); + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor = + getDescriptor().getMessageTypes().get(104); + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor, + new java.lang.String[] { "NrgPrice", }); } // @@protoc_insertion_point(outer_class_scope) From 629c5a86a55a8f9f3b88b56c150af2e9ef751d81 Mon Sep 17 00:00:00 2001 From: aionick Date: Tue, 22 May 2018 16:00:51 -0400 Subject: [PATCH 048/129] init NrgOracle before get recommended nrg --- .../strategy/NrgBlockPriceAveraging.java | 2 + .../src/org/aion/api/server/pb/ApiAion0.java | 3863 +- .../src/org/aion/api/server/pb/Message.java | 139231 +++++++-------- 3 files changed, 70878 insertions(+), 72218 deletions(-) diff --git a/modApiServer/src/org/aion/api/server/nrgprice/strategy/NrgBlockPriceAveraging.java b/modApiServer/src/org/aion/api/server/nrgprice/strategy/NrgBlockPriceAveraging.java index c6de9c1fb2..2f34be3ddb 100644 --- a/modApiServer/src/org/aion/api/server/nrgprice/strategy/NrgBlockPriceAveraging.java +++ b/modApiServer/src/org/aion/api/server/nrgprice/strategy/NrgBlockPriceAveraging.java @@ -27,6 +27,8 @@ * This class is NOT thread-safe * Policy: holder class (NrgOracle) should provide any concurrency guarantees it needs to * + * NOT TESTED. DON'T USE. + * * @author ali sharif */ public class NrgBlockPriceAveraging extends NrgPriceAdvisor { diff --git a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java index 228ad5562d..d64b4a6bb2 100644 --- a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java +++ b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java @@ -19,7 +19,7 @@ * * Contributors: * Aion foundation. - * + * ******************************************************************************/ package org.aion.api.server.pb; @@ -49,6 +49,7 @@ import org.aion.api.server.ApiAion; import org.aion.api.server.ApiUtil; import org.aion.api.server.IApiAion; +import org.aion.api.server.nrgprice.NrgOracle; import org.aion.api.server.pb.Message.Retcode; import org.aion.api.server.pb.Message.Servs; import org.aion.api.server.types.ArgTxCall; @@ -84,8 +85,10 @@ import org.aion.zero.impl.AionBlockchainImpl; import org.aion.zero.impl.AionHub; import org.aion.zero.impl.Version; +import org.aion.zero.impl.blockchain.AionImpl; import org.aion.zero.impl.blockchain.IAionChain; import org.aion.zero.impl.config.CfgAion; +import org.aion.zero.impl.core.IAionBlockchain; import org.aion.zero.impl.types.AionBlock; import org.aion.zero.impl.types.AionBlockSummary; import org.aion.zero.impl.types.AionTxInfo; @@ -97,16 +100,16 @@ @SuppressWarnings("Duplicates") public class ApiAion0 extends ApiAion implements IApiAion { - public final static byte JAVAAPI_VAR = 2; - private final static int JAVAAPI_REQHEADER_LEN = 4; - private final static int TX_HASH_LEN = 32; - private final static int ACCOUNT_CREATE_LIMIT = 100; + public static final byte JAVAAPI_VAR = 2; + private static final int JAVAAPI_REQHEADER_LEN = 4; + private static final int TX_HASH_LEN = 32; + private static final int ACCOUNT_CREATE_LIMIT = 100; private BlockingQueue pendingStatus; private BlockingQueue txWait; private Map> msgIdMapping; - static public boolean heartBeatMsg(byte[] msg) { + public static boolean heartBeatMsg(byte[] msg) { if (msg == null || msg.length != JAVAAPI_REQHEADER_LEN) { return false; } @@ -135,29 +138,61 @@ protected void onBlock(AionBlockSummary cbs) { for (AionTxReceipt txr : txrs) { AionTransaction tx = txr.getTransaction(); - Address contractAddress = Optional.ofNullable(tx.getTo()) - .orElse(tx.getContractAddress()); + Address contractAddress = + Optional.ofNullable(tx.getTo()).orElse(tx.getContractAddress()); Integer cnt = 0; - txr.getLogInfoList().forEach(bi -> bi.getTopics().forEach(lg -> { - if (_fltr.isFor(contractAddress, ByteUtil.toHexString(lg))) { - IBlock blk = (cbs).getBlock(); - List txList = blk.getTransactionsList(); - int insideCnt = 0; - for (AionTransaction t : txList) { - if (Arrays.equals(t.getHash(), tx.getHash())) { - break; - } - insideCnt++; - } - - EvtContract ec = new EvtContract(bi.getAddress().toBytes(), - bi.getData(), blk.getHash(), blk.getNumber(), cnt, - ByteUtil.toHexString(lg), false, insideCnt, tx.getHash()); - - _fltr.add(ec); - } - })); + txr.getLogInfoList() + .forEach( + bi -> + bi.getTopics() + .forEach( + lg -> { + if (_fltr.isFor( + contractAddress, + ByteUtil.toHexString( + lg))) { + IBlock + blk = + (cbs) + .getBlock(); + List + txList = + blk + .getTransactionsList(); + int insideCnt = 0; + for (AionTransaction t : + txList) { + if (Arrays.equals( + t.getHash(), + tx.getHash())) { + break; + } + insideCnt++; + } + + EvtContract ec = + new EvtContract( + bi.getAddress() + .toBytes(), + bi + .getData(), + blk + .getHash(), + blk + .getNumber(), + cnt, + ByteUtil + .toHexString( + lg), + false, + insideCnt, + tx + .getHash()); + + _fltr.add(ec); + } + })); } } } @@ -165,19 +200,25 @@ protected void onBlock(AionBlockSummary cbs) { } protected void pendingTxReceived(ITransaction _tx) { - installedFilters.values().forEach((f) -> { - if (f.getType() == Fltr.Type.TRANSACTION) { - f.add(new EvtTx(_tx)); - } - }); + installedFilters + .values() + .forEach( + (f) -> { + if (f.getType() == Fltr.Type.TRANSACTION) { + f.add(new EvtTx(_tx)); + } + }); } protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { - ByteArrayWrapper txHashW = ByteArrayWrapper.wrap( - ((AionTxReceipt) _txRcpt).getTransaction().getHash()); + ByteArrayWrapper txHashW = + ByteArrayWrapper.wrap(((AionTxReceipt) _txRcpt).getTransaction().getHash()); if (LOG.isTraceEnabled()) { - LOG.trace("ApiAion0.onPendingTransactionUpdate - txHash: [{}], state: [{}]", txHashW.toString(), _state.getValue()); + LOG.trace( + "ApiAion0.onPendingTransactionUpdate - txHash: [{}], state: [{}]", + txHashW.toString(), + _state.getValue()); } if (getMsgIdMapping().get(txHashW) != null) { @@ -188,17 +229,22 @@ protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { } if (LOG.isTraceEnabled()) { - LOG.trace("ApiAion0.onPendingTransactionUpdate - the pending Tx state : [{}]", _state.getValue()); - } - - pendingStatus.add(new TxPendingStatus(txHashW, - getMsgIdMapping().get(txHashW).getValue(), - getMsgIdMapping().get(txHashW).getKey(), - _state.getValue(), - ByteArrayWrapper.wrap(((AionTxReceipt) _txRcpt).getExecutionResult() == null ? EMPTY_BYTE_ARRAY : ((AionTxReceipt) _txRcpt).getExecutionResult()), - ((AionTxReceipt) _txRcpt).getError())); - - + LOG.trace( + "ApiAion0.onPendingTransactionUpdate - the pending Tx state : [{}]", + _state.getValue()); + } + + pendingStatus.add( + new TxPendingStatus( + txHashW, + getMsgIdMapping().get(txHashW).getValue(), + getMsgIdMapping().get(txHashW).getKey(), + _state.getValue(), + ByteArrayWrapper.wrap( + ((AionTxReceipt) _txRcpt).getExecutionResult() == null + ? EMPTY_BYTE_ARRAY + : ((AionTxReceipt) _txRcpt).getExecutionResult()), + ((AionTxReceipt) _txRcpt).getError())); if (_state.isPending()) { pendingReceipts.put(txHashW, ((AionTxReceipt) _txRcpt)); @@ -210,15 +256,19 @@ protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { if (txWait.remainingCapacity() == 0) { txWait.poll(); if (LOG.isTraceEnabled()) { - LOG.trace("ApiAion0.onPendingTransactionUpdate - txWait queue full, drop the first message."); + LOG.trace( + "ApiAion0.onPendingTransactionUpdate - txWait queue full, drop the first message."); } } // waiting origin Api call status been callback try { - txWait.put(new TxWaitingMappingUpdate(txHashW, _state.getValue(), ((AionTxReceipt) _txRcpt))); + txWait.put( + new TxWaitingMappingUpdate( + txHashW, _state.getValue(), ((AionTxReceipt) _txRcpt))); } catch (InterruptedException e) { - LOG.error("ApiAion0.onPendingTransactionUpdate txWait.put exception", e.getMessage()); + LOG.error( + "ApiAion0.onPendingTransactionUpdate txWait.put exception", e.getMessage()); } } } @@ -238,14 +288,16 @@ private void cacheBlock(AionBlockSummary cbs) { private final class EpBlkCache implements Runnable { boolean go = true; + @Override public void run() { while (go) { try { IEvent e = eesBlkCache.take(); - if (e.getEventType() == IHandler.TYPE.BLOCK0.getValue() && e.getCallbackType() == EventBlock.CALLBACK.ONBLOCK0.getValue()) { - cacheBlock((AionBlockSummary)e.getFuncArgs().get(0)); - } else if (e.getEventType() == IHandler.TYPE.POISONPILL.getValue()){ + if (e.getEventType() == IHandler.TYPE.BLOCK0.getValue() + && e.getCallbackType() == EventBlock.CALLBACK.ONBLOCK0.getValue()) { + cacheBlock((AionBlockSummary) e.getFuncArgs().get(0)); + } else if (e.getEventType() == IHandler.TYPE.POISONPILL.getValue()) { go = false; } } catch (Exception e) { @@ -265,21 +317,24 @@ public ApiAion0(IAionChain ac) { this.txWait = new LinkedBlockingQueue(MAP_SIZE); this.msgIdMapping = Collections.synchronizedMap(new LRUMap<>(MAP_SIZE, 100)); - isFilterEnabled = CfgAion.inst().getApi().getZmq().isFiltersEnabled(); isBlkCacheEnabled = CfgAion.inst().getApi().getZmq().isBlockSummaryCacheEnabled(); if (isBlkCacheEnabled) { - explorerBlockCache = Collections.synchronizedMap(new LRUMap<>(20)); // use the default loadfactor - eesBlkCache = new EventExecuteService(100_000, "explorer-blk-cache", Thread.MIN_PRIORITY, LOG); + explorerBlockCache = + Collections.synchronizedMap(new LRUMap<>(20)); // use the default loadfactor + eesBlkCache = + new EventExecuteService( + 100_000, "explorer-blk-cache", Thread.MIN_PRIORITY, LOG); Set eventSN = new HashSet<>(); int sn = IHandler.TYPE.BLOCK0.getValue() << 8; eventSN.add(sn + EventBlock.CALLBACK.ONBLOCK0.getValue()); eesBlkCache.setFilter(eventSN); eesBlkCache.start(new EpBlkCache()); - IHandler hdrBlk = this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); + IHandler hdrBlk = + this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); if (hdrBlk != null) { hdrBlk.eventCallback(new EventCallback(eesBlkCache, LOG)); } @@ -288,13 +343,14 @@ public ApiAion0(IAionChain ac) { if (isFilterEnabled) { startES("EpApi"); - IHandler hdrTx = this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.TX0.getValue()); + IHandler hdrTx = + this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.TX0.getValue()); if (hdrTx != null) { hdrTx.eventCallback(new EventCallback(ees, LOG)); - } - IHandler hdrBlk = this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); + IHandler hdrBlk = + this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); if (hdrBlk != null) { hdrBlk.eventCallback(new EventCallback(ees, LOG)); } @@ -308,1533 +364,2092 @@ public byte[] process(byte[] request, byte[] socketId) { byte[] msgHash = ApiUtil.getApiMsgHash(request); if (request[0] < this.getApiVersion()) { - return msgHash == null ? ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_api_version_VALUE) - : ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_api_version_VALUE, msgHash); + return msgHash == null + ? ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_api_version_VALUE) + : ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_api_version_VALUE, msgHash); } short service = (short) request[1]; switch ((short) request[2]) { - // General Module - case Message.Funcs.f_protocolVersion_VALUE: { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - // TODO : create query API for every module - Message.rsp_protocolVersion rsp = Message.rsp_protocolVersion.newBuilder() - .setApi(String.valueOf(this.getApiVersion())).setDb(AionHub.getRepoVersion()) - .setKernel(Version.KERNEL_VERSION).setMiner(EquihashMiner.VERSION) - .setNet(this.p2pProtocolVersion()) - .setTxpool(this.ac.getAionHub().getPendingState().getVersion()) - .setVm("0.1.0").build(); + // General Module + case Message.Funcs.f_protocolVersion_VALUE: + { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - case Message.Funcs.f_minerAddress_VALUE: { + // TODO : create query API for every module + Message.rsp_protocolVersion rsp = + Message.rsp_protocolVersion + .newBuilder() + .setApi(String.valueOf(this.getApiVersion())) + .setDb(AionHub.getRepoVersion()) + .setKernel(Version.KERNEL_VERSION) + .setMiner(EquihashMiner.VERSION) + .setNet(this.p2pProtocolVersion()) + .setTxpool(this.ac.getAionHub().getPendingState().getVersion()) + .setVm("0.1.0") + .build(); - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_minerAddress_VALUE: + { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - String cb = this.getCoinbase(); - if (cb == null) { - LOG.debug("ApiAion0.process.coinbase - null coinbase"); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_wallet_nullcb_VALUE); - } + String cb = this.getCoinbase(); + if (cb == null) { + LOG.debug("ApiAion0.process.coinbase - null coinbase"); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_wallet_nullcb_VALUE); + } - Message.rsp_minerAddress rsp = Message.rsp_minerAddress.newBuilder() - .setMinerAddr(ByteString.copyFrom(TypeConverter.StringHexToByteArray(cb))).build(); + Message.rsp_minerAddress rsp = + Message.rsp_minerAddress + .newBuilder() + .setMinerAddr( + ByteString.copyFrom( + TypeConverter.StringHexToByteArray(cb))) + .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - case Message.Funcs.f_contractDeploy_VALUE: { + case Message.Funcs.f_contractDeploy_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); + } - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); - } + Message.req_contractDeploy req; + byte[] data = parseMsgReq(request, msgHash); + ContractCreateResult result; + try { + req = Message.req_contractDeploy.parseFrom(data); + // TODO: the client api should send server binary code directly + // instead of str format like "0xhex".! + byte[] bytes = req.getData().toByteArray(); + if (bytes == null || bytes.length <= 4) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_ct_bytecode_VALUE, msgHash); + } - Message.req_contractDeploy req; - byte[] data = parseMsgReq(request, msgHash); - ContractCreateResult result; - try { - req = Message.req_contractDeploy.parseFrom(data); - // TODO: the client api should send server binary code directly - // instead of str format like "0xhex".! - byte[] bytes = req.getData().toByteArray(); - if (bytes == null || bytes.length <= 4) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_ct_bytecode_VALUE, msgHash); - } + ArgTxCall params = + new ArgTxCall( + Address.wrap(req.getFrom().toByteArray()), + null, + Hex.decode(new String(bytes).substring(2)), + BigInteger.ZERO, + BigInteger.ZERO, + req.getNrgLimit(), + req.getNrgPrice()); + + LOG.debug( + "ApiAion0.process.ContractDeploy - ArgsTxCall: [{}] ", + params.toString()); + + result = this.createContract(params); + + if (result != null) { + getMsgIdMapping() + .put( + ByteArrayWrapper.wrap(result.transId), + new AbstractMap.SimpleEntry<>( + ByteArrayWrapper.wrap(msgHash), + ByteArrayWrapper.wrap(socketId))); + if (LOG.isDebugEnabled()) { + LOG.debug( + "ApiAion0.process.ContractDeploy - msgIdMapping.put: [{}] ", + ByteArrayWrapper.wrap(result.transId).toString()); + } + } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.ContractDeploy exception [{}] ", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); + } - ArgTxCall params = new ArgTxCall(Address.wrap(req.getFrom().toByteArray()), null, - Hex.decode(new String(bytes).substring(2)), BigInteger.ZERO, BigInteger.ZERO, req.getNrgLimit(), - req.getNrgPrice()); + Message.rsp_contractDeploy rsp = + Message.rsp_contractDeploy + .newBuilder() + .setContractAddress( + ByteString.copyFrom( + result != null + ? result.address.toBytes() + : EMPTY_BYTE_ARRAY)) + .setTxHash( + ByteString.copyFrom( + result != null + ? result.transId + : EMPTY_BYTE_ARRAY)) + .build(); - LOG.debug("ApiAion0.process.ContractDeploy - ArgsTxCall: [{}] ", params.toString()); + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - result = this.createContract(params); + // Authenication Module + case Message.Funcs.f_accounts_VALUE: + { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - if (result != null) { - getMsgIdMapping().put(ByteArrayWrapper.wrap(result.transId), new AbstractMap.SimpleEntry<>( - ByteArrayWrapper.wrap(msgHash), ByteArrayWrapper.wrap(socketId))); - if (LOG.isDebugEnabled()) { - LOG.debug("ApiAion0.process.ContractDeploy - msgIdMapping.put: [{}] ", ByteArrayWrapper.wrap(result.transId).toString()); + // noinspection unchecked + List accounts = this.getAccounts(); + ArrayList al = new ArrayList<>(); + for (String s : accounts) { + al.add(ByteString.copyFrom(TypeConverter.StringHexToByteArray(s))); } - } - } catch (Exception e) { - LOG.error("ApiAion0.process.ContractDeploy exception [{}] ", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); - } + Message.rsp_accounts rsp = + Message.rsp_accounts.newBuilder().addAllAccout(al).build(); - Message.rsp_contractDeploy rsp = Message.rsp_contractDeploy.newBuilder() - .setContractAddress(ByteString.copyFrom(result != null ? result.address.toBytes() : EMPTY_BYTE_ARRAY)) - .setTxHash(ByteString.copyFrom(result != null ? result.transId : EMPTY_BYTE_ARRAY)).build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_blockNumber_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } + Message.rsp_blockNumber rsp = + Message.rsp_blockNumber + .newBuilder() + .setBlocknumber(this.getBestBlock().getNumber()) + .build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_unlockAccount_VALUE: + { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - // Authenication Module - case Message.Funcs.f_accounts_VALUE: { + byte[] data = parseMsgReq(request, msgHash); + boolean result; + try { + Message.req_unlockAccount req = Message.req_unlockAccount.parseFrom(data); + result = + this.unlockAccount( + Address.wrap(req.getAccount().toByteArray()), + req.getPassword(), + req.getDuration()); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.unlockAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); + } - // noinspection unchecked - List accounts = this.getAccounts(); - ArrayList al = new ArrayList<>(); - for (String s : accounts) { - al.add(ByteString.copyFrom(TypeConverter.StringHexToByteArray(s))); - } - Message.rsp_accounts rsp = Message.rsp_accounts.newBuilder().addAllAccout(al).build(); + // Transaction Module + case Message.Funcs.f_getBalance_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - case Message.Funcs.f_blockNumber_VALUE: { + byte[] data = parseMsgReq(request, msgHash); + BigInteger balance; + try { + Message.req_getBalance req = Message.req_getBalance.parseFrom(data); - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + Address addr = Address.wrap(req.getAddress().toByteArray()); - Message.rsp_blockNumber rsp = Message.rsp_blockNumber.newBuilder() - .setBlocknumber(this.getBestBlock().getNumber()).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - case Message.Funcs.f_unlockAccount_VALUE: { + balance = this.getBalance(addr); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.getbalance exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + Message.rsp_getBalance rsp = + Message.rsp_getBalance + .newBuilder() + .setBalance(ByteString.copyFrom(balance.toByteArray())) + .build(); - byte[] data = parseMsgReq(request, msgHash); - boolean result; - try { - Message.req_unlockAccount req = Message.req_unlockAccount.parseFrom(data); - result = this.unlockAccount(Address.wrap(req.getAccount().toByteArray()), req.getPassword(), - req.getDuration()); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.unlockAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_getNonce_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); - } + byte[] data = parseMsgReq(request, msgHash); + BigInteger nonce; + try { + Message.req_getNonce req = Message.req_getNonce.parseFrom(data); - // Transaction Module - case Message.Funcs.f_getBalance_VALUE: { + Address addr = Address.wrap(req.getAddress().toByteArray()); - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + nonce = this.getNonce(addr); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAionA0.process.getNonce exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + } - byte[] data = parseMsgReq(request, msgHash); - BigInteger balance; - try { - Message.req_getBalance req = Message.req_getBalance.parseFrom(data); + Message.rsp_getNonce rsp = + Message.rsp_getNonce + .newBuilder() + .setNonce(ByteString.copyFrom(nonce.toByteArray())) + .build(); - Address addr = Address.wrap(req.getAddress().toByteArray()); + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Message.Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_getNrgPrice_VALUE: + { + if (service != Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - balance = this.getBalance(addr); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.getbalance exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + // instantiate nrg price oracle + IAionBlockchain bc = (IAionBlockchain) AionImpl.inst().getBlockchain(); + long nrgPriceDefault = CfgAion.inst().getApi().getNrg().getNrgPriceDefault(); + long nrgPriceMax = CfgAion.inst().getApi().getNrg().getNrgPriceMax(); + NrgOracle.Strategy oracleStrategy = NrgOracle.Strategy.SIMPLE; + + this.nrgOracle = new NrgOracle(bc, nrgPriceDefault, nrgPriceMax, oracleStrategy); + long nrg = this.getRecommendedNrgPrice(); + + try { + Message.rsp_getNrgPrice rsp = + Message.rsp_getNrgPrice.newBuilder().setNrgPrice(nrg).build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error("ApiAion0.process.getNrgPrice exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_compile_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getBalance rsp = Message.rsp_getBalance.newBuilder() - .setBalance(ByteString.copyFrom(balance.toByteArray())).build(); + byte[] data = parseMsgReq(request, msgHash); + try { + Message.req_compileSolidity req = + Message.req_compileSolidity.parseFrom(data); + String source = req.getSource(); + if (source == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_null_compile_source_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - case Message.Funcs.f_getNonce_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); - } + @SuppressWarnings("unchecked") + Map _contrs = this.contract_compileSolidity(source); + if (_contrs != null && !_contrs.isEmpty()) { + Message.rsp_compile.Builder b = Message.rsp_compile.newBuilder(); + + for (Entry entry : _contrs.entrySet()) { + if (entry.getKey().contains("AionCompileError")) { + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), + Retcode.r_fail_compile_contract_VALUE); + Message.t_Contract tc = + Message.t_Contract + .newBuilder() + .setError(entry.getValue().error) + .build(); + return ApiUtil.combineRetMsg( + retHeader, + b.putConstracts(entry.getKey(), tc) + .build() + .toByteArray()); + } - byte[] data = parseMsgReq(request, msgHash); - BigInteger nonce; - try { - Message.req_getNonce req = Message.req_getNonce.parseFrom(data); + CompiledContr _contr = entry.getValue(); + JSONArray abi = new JSONArray(); + for (Abi.Entry f : _contr.info.abiDefinition) { + abi.put(f.toJSON()); + } - Address addr = Address.wrap(req.getAddress().toByteArray()); + Message.t_Contract tc = + Message.t_Contract + .newBuilder() + .setCode(_contr.code) + .setAbiDef( + ByteString.copyFrom( + abi.toString().getBytes())) + .setSource(_contr.info.source) + .build(); + + b.putConstracts(entry.getKey(), tc); + } + Message.rsp_compile rsp = b.build(); + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } else { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - nonce = this.getNonce(addr); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.getNonce exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.compile exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_sendTransaction_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); + } - Message.rsp_getNonce rsp = Message.rsp_getNonce.newBuilder() - .setNonce(ByteString.copyFrom(nonce.toByteArray())).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] data = parseMsgReq(request, msgHash); + Message.req_sendTransaction req; + byte[] result; + try { + req = Message.req_sendTransaction.parseFrom(data); + + ArgTxCall params = + new ArgTxCall( + Address.wrap(req.getFrom().toByteArray()), + Address.wrap(req.getTo().toByteArray()), + req.getData().toByteArray(), + new BigInteger(req.getNonce().toByteArray()), + new BigInteger(req.getValue().toByteArray()), + req.getNrg(), + req.getNrgPrice()); + + result = this.sendTransaction(params); + } catch (InvalidProtocolBufferException e) { + LOG.error( + "ApiAion0.process.sendTransaction exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); + } - } - case Message.Funcs.f_getNrgPrice_VALUE: { - if (service != Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + if (result == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); + } - long nrg = this.getRecommendedNrgPrice(); + getMsgIdMapping() + .put( + ByteArrayWrapper.wrap(result), + new AbstractMap.SimpleEntry<>( + ByteArrayWrapper.wrap(msgHash), + ByteArrayWrapper.wrap(socketId))); + if (LOG.isDebugEnabled()) { + LOG.debug( + "ApiAion0.process.sendTransaction - msgIdMapping.put: [{}]", + ByteArrayWrapper.wrap(result).toString()); + } - try { - Message.rsp_getNrgPrice rsp = Message.rsp_getNrgPrice.newBuilder() - .setNrgPrice(nrg).build(); + Message.rsp_sendTransaction rsp = + Message.rsp_sendTransaction + .newBuilder() + .setTxHash(ByteString.copyFrom(result)) + .build(); - byte[] retHeader = ApiUtil - .toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getNrgPrice exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } - } - case Message.Funcs.f_compile_VALUE: { + case Message.Funcs.f_getCode_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getCode req; + try { + req = Message.req_getCode.parseFrom(data); + Address to = Address.wrap(req.getAddress().toByteArray()); - byte[] data = parseMsgReq(request, msgHash); - try { - Message.req_compileSolidity req = Message.req_compileSolidity.parseFrom(data); - String source = req.getSource(); - if (source == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_null_compile_source_VALUE); + byte[] code = this.getCode(to); + if (code == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_null_rsp_VALUE); + } + + Message.rsp_getCode rsp = + Message.rsp_getCode + .newBuilder() + .setCode(ByteString.copyFrom(code)) + .build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error("ApiAion0.process.getCode exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getTransactionReceipt_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - @SuppressWarnings("unchecked") - Map _contrs = this.contract_compileSolidity(source); - if (_contrs != null && !_contrs.isEmpty()) { - Message.rsp_compile.Builder b = Message.rsp_compile.newBuilder(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionReceipt req; + try { + req = Message.req_getTransactionReceipt.parseFrom(data); - for (Entry entry : _contrs.entrySet()) { - if (entry.getKey().contains("AionCompileError")) { - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), - Retcode.r_fail_compile_contract_VALUE); - Message.t_Contract tc = Message.t_Contract.newBuilder().setError(entry.getValue().error) - .build(); - return ApiUtil.combineRetMsg(retHeader, - b.putConstracts(entry.getKey(), tc).build().toByteArray()); + TxRecpt result = this.getTransactionReceipt(req.getTxHash().toByteArray()); + if (result == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_getTxReceipt_null_recp_VALUE); } - CompiledContr _contr = entry.getValue(); - JSONArray abi = new JSONArray(); - for (Abi.Entry f : _contr.info.abiDefinition) { - abi.put(f.toJSON()); + List logs = new ArrayList<>(); + for (TxRecptLg log : result.logs) { + List al = new ArrayList<>(); + Collections.addAll(al, log.topics); + + Message.t_LgEle msgLog = + Message.t_LgEle + .newBuilder() + .setAddress( + ByteString.copyFrom( + Address.wrap(log.address).toBytes())) + .setData( + ByteString.copyFrom( + ByteUtil.hexStringToBytes(log.data))) + .addAllTopics(al) + .build(); + + logs.add(msgLog); } - Message.t_Contract tc = Message.t_Contract.newBuilder().setCode(_contr.code) - .setAbiDef(ByteString.copyFrom(abi.toString().getBytes())).setSource(_contr.info.source) - .build(); - - b.putConstracts(entry.getKey(), tc); + Message.rsp_getTransactionReceipt rsp = + Message.rsp_getTransactionReceipt + .newBuilder() + .setFrom(ByteString.copyFrom(result.fromAddr.toBytes())) + .setBlockNumber(result.blockNumber) + .setBlockHash( + ByteString.copyFrom( + result.blockHash != null + ? ByteUtil.hexStringToBytes( + result.blockHash) + : EMPTY_BYTE_ARRAY)) + .setContractAddress( + ByteString.copyFrom( + result.contractAddress != null + ? ByteUtil.hexStringToBytes( + result.contractAddress) + : EMPTY_BYTE_ARRAY)) + .setTxIndex(result.transactionIndex) + .setTxHash( + ByteString.copyFrom( + result.transactionHash != null + ? ByteUtil.hexStringToBytes( + result.transactionHash) + : EMPTY_BYTE_ARRAY)) + .setTo( + ByteString.copyFrom( + result.toAddr == null + ? EMPTY_BYTE_ARRAY + : result.toAddr.toBytes())) + .setNrgConsumed(result.nrgUsed) + .setCumulativeNrgUsed(result.cumulativeNrgUsed) + .addAllLogs(logs) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionReceipt exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } - Message.rsp_compile rsp = b.build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } else { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } + case Message.Funcs.f_call_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.compile exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_sendTransaction_VALUE: { + byte[] data = parseMsgReq(request, msgHash); + Message.req_call req; + + try { + req = Message.req_call.parseFrom(data); + + Address from = Address.wrap(req.getFrom().toByteArray()); + Address to = Address.wrap(req.getTo().toByteArray()); + + BigInteger value = new BigInteger(req.getValue().toByteArray()); + byte[] d = req.getData().toByteArray(); + + ArgTxCall params = + new ArgTxCall( + from, + to, + d, + BigInteger.ZERO, + value, + req.getNrg(), + req.getNrgPrice()); + Message.rsp_call rsp = + Message.rsp_call + .newBuilder() + .setResult(ByteString.copyFrom(this.doCall(params))) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error("ApiAion0.process.call exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockByNumber_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockByNumber req; + + try { + req = Message.req_getBlockByNumber.parseFrom(data); + long num = req.getBlockNumber(); + AionBlock blk = this.getBlock(num); + + return createBlockMsg(blk); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockByHash_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] data = parseMsgReq(request, msgHash); - Message.req_sendTransaction req; - byte[] result; - try { - req = Message.req_sendTransaction.parseFrom(data); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockByHash req; - ArgTxCall params = new ArgTxCall(Address.wrap(req.getFrom().toByteArray()), - Address.wrap(req.getTo().toByteArray()), req.getData().toByteArray(), - new BigInteger(req.getNonce().toByteArray()), new BigInteger(req.getValue().toByteArray()), - req.getNrg(), req.getNrgPrice()); + try { + req = Message.req_getBlockByHash.parseFrom(data); + byte[] hash = req.getBlockHash().toByteArray(); - result = this.sendTransaction(params); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.sendTransaction exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); - } + if (hash == null || hash.length != Hash256.BYTES) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - if (result == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); - } + AionBlock blk = this.getBlockByHash(hash); + return createBlockMsg(blk); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockByHash exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getTransactionByBlockHashAndIndex_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - getMsgIdMapping().put(ByteArrayWrapper.wrap(result), new AbstractMap.SimpleEntry<>( - ByteArrayWrapper.wrap(msgHash), ByteArrayWrapper.wrap(socketId))); - if (LOG.isDebugEnabled()) { - LOG.debug("ApiAion0.process.sendTransaction - msgIdMapping.put: [{}]", - ByteArrayWrapper.wrap(result).toString()); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionByBlockHashAndIndex req; - Message.rsp_sendTransaction rsp = Message.rsp_sendTransaction.newBuilder() - .setTxHash(ByteString.copyFrom(result)).build(); + try { + req = Message.req_getTransactionByBlockHashAndIndex.parseFrom(data); + long txIdx = req.getTxIndex(); + byte[] hash = req.getBlockHash().toByteArray(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - case Message.Funcs.f_getCode_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + if (txIdx < -1 || hash == null || hash.length != Hash256.BYTES) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getCode req; - try { - req = Message.req_getCode.parseFrom(data); - Address to = Address.wrap(req.getAddress().toByteArray()); + AionTransaction tx = this.getTransactionByBlockHashAndIndex(hash, txIdx); + if (tx == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_call_VALUE); + } - byte[] code = this.getCode(to); - if (code == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_null_rsp_VALUE); + Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionByBlockHashAndIndex exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getTransactionByBlockNumberAndIndex_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getCode rsp = Message.rsp_getCode.newBuilder().setCode(ByteString.copyFrom(code)).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionByBlockNumberAndIndex req; - } catch (Exception e) { - LOG.error("ApiAion0.process.getCode exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getTransactionReceipt_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + try { + req = Message.req_getTransactionByBlockNumberAndIndex.parseFrom(data); + long blkNr = req.getBlockNumber(); + long txIdx = req.getTxIndex(); - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionReceipt req; - try { - req = Message.req_getTransactionReceipt.parseFrom(data); + if (blkNr < -1 || txIdx < -1) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - TxRecpt result = this.getTransactionReceipt(req.getTxHash().toByteArray()); - if (result == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_getTxReceipt_null_recp_VALUE); - } + AionTransaction tx = this.getTransactionByBlockNumberAndIndex(blkNr, txIdx); + if (tx == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_call_VALUE); + } - List logs = new ArrayList<>(); - for (TxRecptLg log : result.logs) { - List al = new ArrayList<>(); - Collections.addAll(al, log.topics); + Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionByBlockNumberAndIndex exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockTransactionCountByNumber_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.t_LgEle msgLog = Message.t_LgEle.newBuilder() - .setAddress(ByteString.copyFrom(Address.wrap(log.address).toBytes())) - .setData(ByteString.copyFrom(ByteUtil.hexStringToBytes(log.data))).addAllTopics(al).build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockTransactionCountByNumber req; - logs.add(msgLog); - } + try { + req = Message.req_getBlockTransactionCountByNumber.parseFrom(data); + long blkNr = req.getBlockNumber(); - Message.rsp_getTransactionReceipt rsp = Message.rsp_getTransactionReceipt.newBuilder() - .setFrom(ByteString.copyFrom(result.fromAddr.toBytes())).setBlockNumber(result.blockNumber) - .setBlockHash(ByteString - .copyFrom(result.blockHash != null ? ByteUtil.hexStringToBytes(result.blockHash) - : EMPTY_BYTE_ARRAY)) - .setContractAddress(ByteString.copyFrom( - result.contractAddress != null ? ByteUtil.hexStringToBytes(result.contractAddress) - : EMPTY_BYTE_ARRAY)) - .setTxIndex(result.transactionIndex) - .setTxHash(ByteString.copyFrom( - result.transactionHash != null ? ByteUtil.hexStringToBytes(result.transactionHash) - : EMPTY_BYTE_ARRAY)) - .setTo(ByteString - .copyFrom(result.toAddr == null ? EMPTY_BYTE_ARRAY : result.toAddr.toBytes())) - .setNrgConsumed(result.nrgUsed).setCumulativeNrgUsed(result.cumulativeNrgUsed).addAllLogs(logs) - .build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - - } catch (Exception e) { - LOG.error("ApiAion0.process.getTransactionReceipt exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_call_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + if (blkNr < -1) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - byte[] data = parseMsgReq(request, msgHash); - Message.req_call req; + long cnt = this.getBlockTransactionCountByNumber(blkNr); + if (cnt == -1) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_call_VALUE); + } - try { - req = Message.req_call.parseFrom(data); + Message.rsp_getBlockTransactionCount rsp = + Message.rsp_getBlockTransactionCount + .newBuilder() + .setTxCount((int) cnt) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockTransactionCountByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getTransactionCount_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Address from = Address.wrap(req.getFrom().toByteArray()); - Address to = Address.wrap(req.getTo().toByteArray()); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionCount req; - BigInteger value = new BigInteger(req.getValue().toByteArray()); - byte[] d = req.getData().toByteArray(); + try { + req = Message.req_getTransactionCount.parseFrom(data); + long blkNr = req.getBlocknumber(); + Address addr = Address.wrap(req.getAddress().toByteArray()); - ArgTxCall params = new ArgTxCall(from, to, d, BigInteger.ZERO, value, req.getNrg(), req.getNrgPrice()); - Message.rsp_call rsp = Message.rsp_call.newBuilder().setResult(ByteString.copyFrom(this.doCall(params))) - .build(); + if (blkNr < -1) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + long cnt = this.getTransactionCount(addr, blkNr); + if (cnt == -1) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_call_VALUE); + } - } catch (Exception e) { - LOG.error("ApiAion0.process.call exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockByNumber_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + Message.rsp_getTransactionCount rsp = + Message.rsp_getTransactionCount + .newBuilder() + .setTxCount((int) cnt) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionCount exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockTransactionCountByHash_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockByNumber req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionCountByHash req; - try { - req = Message.req_getBlockByNumber.parseFrom(data); - long num = req.getBlockNumber(); - AionBlock blk = this.getBlock(num); - - return createBlockMsg(blk); - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockByHash_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + try { + req = Message.req_getTransactionCountByHash.parseFrom(data); + byte[] hash = req.getTxHash().toByteArray(); - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockByHash req; + if (hash == null || hash.length != Hash256.BYTES) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - try { - req = Message.req_getBlockByHash.parseFrom(data); - byte[] hash = req.getBlockHash().toByteArray(); + long cnt = this.getTransactionCountByHash(hash); + if (cnt == -1) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_call_VALUE); + } - if (hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + Message.rsp_getTransactionCount rsp = + Message.rsp_getTransactionCount + .newBuilder() + .setTxCount((int) cnt) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionCount exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getTransactionByHash_VALUE: + { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - AionBlock blk = this.getBlockByHash(hash); - return createBlockMsg(blk); - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockByHash exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getTransactionByBlockHashAndIndex_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionByHash req; - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionByBlockHashAndIndex req; + try { + req = Message.req_getTransactionByHash.parseFrom(data); + byte[] txHash = req.getTxHash().toByteArray(); - try { - req = Message.req_getTransactionByBlockHashAndIndex.parseFrom(data); - long txIdx = req.getTxIndex(); - byte[] hash = req.getBlockHash().toByteArray(); + if (txHash == null || txHash.length != this.getTxHashLen()) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - if (txIdx < -1 || hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + AionTransaction tx = this.getTransactionByHash(txHash); + if (tx == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_call_VALUE); + } - AionTransaction tx = this.getTransactionByBlockHashAndIndex(hash, txIdx); - if (tx == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getTransactionByBlockHashAndIndex exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getTransactionByBlockNumberAndIndex_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionCount exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionByBlockNumberAndIndex req; + case Message.Funcs.f_getActiveNodes_VALUE: + { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - try { - req = Message.req_getTransactionByBlockNumberAndIndex.parseFrom(data); - long blkNr = req.getBlockNumber(); - long txIdx = req.getTxIndex(); + List nodes = new ArrayList<>(); + nodes.addAll(this.ac.getAionHub().getP2pMgr().getActiveNodes().values()); + List pl = new ArrayList<>(); + try { + for (INode n : nodes) { + Message.t_Node node = + Message.t_Node + .newBuilder() + .setBlockNumber(n.getBestBlockNumber()) + .setNodeId(ByteArrayWrapper.wrap(n.getId()).toString()) + .setRemoteP2PIp( + ByteArrayWrapper.wrap(n.getIp()).toString()) + // TODO : api export latency, totalDiff and the + // blockHash + // .setLatency((float) n.get) + .build(); + + pl.add(node); + } - if (blkNr < -1 || txIdx < -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + Message.rsp_getActiveNodes rsp = + Message.rsp_getActiveNodes.newBuilder().addAllNode(pl).build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getActiveNodes exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } - AionTransaction tx = this.getTransactionByBlockNumberAndIndex(blkNr, txIdx); - if (tx == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + case Message.Funcs.f_getStaticNodes_VALUE: + { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } + List al = Arrays.asList(this.getBootNodes()); + List nl = new ArrayList<>(); + for (String s : al) { + // TODO : get more node info + Message.t_Node n = Message.t_Node.newBuilder().setRemoteP2PIp(s).build(); + nl.add(n); + } - Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); + try { + Message.rsp_getStaticNodes rsp = + Message.rsp_getStaticNodes.newBuilder().addAllNode(nl).build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getStaticNodes exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getSolcVersion_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getTransactionByBlockNumberAndIndex exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockTransactionCountByNumber_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + String ver = this.solcVersion(); - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockTransactionCountByNumber req; + try { + Message.rsp_getSolcVersion rsp = + Message.rsp_getSolcVersion.newBuilder().setVer(ver).build(); - try { - req = Message.req_getBlockTransactionCountByNumber.parseFrom(data); - long blkNr = req.getBlockNumber(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getSolcVersion exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_isSyncing_VALUE: + { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - if (blkNr < -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + try { + Message.rsp_isSyncing rsp = + Message.rsp_isSyncing + .newBuilder() + .setSyncing(!this.getSync().done) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error("ApiAion0.process.syncing exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_syncInfo_VALUE: + { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - long cnt = this.getBlockTransactionCountByNumber(blkNr); - if (cnt == -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); + SyncInfo sync = this.getSync(); + + try { + Message.rsp_syncInfo rsp = + Message.rsp_syncInfo + .newBuilder() + .setChainBestBlock(sync.chainBestBlkNumber) + .setNetworkBestBlock(sync.networkBestBlkNumber) + .setSyncing(!sync.done) + .setMaxImportBlocks(24) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error("ApiAion0.process.syncInfo exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_accountCreate_VALUE: + { + if (service != Message.Servs.s_account_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getBlockTransactionCount rsp = Message.rsp_getBlockTransactionCount.newBuilder() - .setTxCount((int) cnt).build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_accountCreate req; - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockTransactionCountByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getTransactionCount_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + try { + req = Message.req_accountCreate.parseFrom(data); - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionCount req; + List addressList = new ArrayList<>(); + List pKeyList = new ArrayList<>(); + for (int i = 0; + i < req.getPasswordList().size() && i < ACCOUNT_CREATE_LIMIT; + i++) { - try { - req = Message.req_getTransactionCount.parseFrom(data); - long blkNr = req.getBlocknumber(); - Address addr = Address.wrap(req.getAddress().toByteArray()); + String addr = Keystore.create(req.getPassword(i)); + byte[] pKey; + if (req.getPrivateKey()) { + pKey = Keystore.getKey(addr, req.getPassword(i)).getPrivKeyBytes(); + if (pKey == null) { + pKey = ByteArrayWrapper.NULL_BYTE; + } - if (blkNr < -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + pKeyList.add(ByteString.copyFrom(pKey)); + } - long cnt = this.getTransactionCount(addr, blkNr); - if (cnt == -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + addressList.add(ByteString.copyFrom(Address.wrap(addr).toBytes())); + } - Message.rsp_getTransactionCount rsp = Message.rsp_getTransactionCount.newBuilder().setTxCount((int) cnt) - .build(); + Message.rsp_accountCreate rsp = + Message.rsp_accountCreate + .newBuilder() + .addAllAddress(addressList) + .addAllPrivateKey(pKeyList) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error("ApiAion0.process.accountCreate exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + case Message.Funcs.f_accountLock_VALUE: + { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - } catch (Exception e) { - LOG.error("ApiAion0.process.getTransactionCount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockTransactionCountByHash_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionCountByHash req; + if (data == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - try { - req = Message.req_getTransactionCountByHash.parseFrom(data); - byte[] hash = req.getTxHash().toByteArray(); + boolean result; + try { + Message.req_accountlock req = Message.req_accountlock.parseFrom(data); + result = + this.lockAccount( + Address.wrap(req.getAccount().toByteArray()), + req.getPassword()); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.lockAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - if (hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); } - long cnt = this.getTransactionCountByHash(hash); - if (cnt == -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); + case Message.Funcs.f_userPrivilege_VALUE: + { + if (service != Message.Servs.s_privilege_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } + + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_unsupport_api_VALUE); } + case Message.Funcs.f_mining_VALUE: + { + if (service != Message.Servs.s_mine_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getTransactionCount rsp = Message.rsp_getTransactionCount.newBuilder().setTxCount((int) cnt) - .build(); + Message.rsp_mining rsp = + Message.rsp_mining.newBuilder().setMining(this.isMining()).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - } catch (Exception e) { - LOG.error("ApiAion0.process.getTransactionCount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getTransactionByHash_VALUE: { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + case Message.Funcs.f_estimateNrg_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); + } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionByHash req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_estimateNrg req; + long result; + try { + req = Message.req_estimateNrg.parseFrom(data); + + ArgTxCall params = + new ArgTxCall( + Address.wrap(req.getFrom().toByteArray()), + Address.wrap(req.getTo().toByteArray()), + req.getData().toByteArray(), + BigInteger.ZERO, + new BigInteger(req.getValue().toByteArray()), + req.getNrg(), + req.getNrgPrice()); + + result = this.estimateNrg(params); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.estimateNrg exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); + } - try { - req = Message.req_getTransactionByHash.parseFrom(data); - byte[] txHash = req.getTxHash().toByteArray(); + Message.rsp_estimateNrg rsp = + Message.rsp_estimateNrg.newBuilder().setNrg(result).build(); - if (txHash == null || txHash.length != this.getTxHashLen()) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } - AionTransaction tx = this.getTransactionByHash(txHash); - if (tx == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + case Message.Funcs.f_exportAccounts_VALUE: + case Message.Funcs.f_backupAccounts_VALUE: + { + if (service != Message.Servs.s_account_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); + byte[] data = parseMsgReq(request, msgHash); + Message.req_exportAccounts req; - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + try { + req = Message.req_exportAccounts.parseFrom(data); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.exportAccounts exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - } catch (Exception e) { - LOG.error("ApiAion0.process.getTransactionCount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } + Map addrMap = new HashMap<>(); + for (int i = 0; + i < req.getKeyFileList().size() && i < ACCOUNT_CREATE_LIMIT; + i++) { + addrMap.put( + Address.wrap(req.getKeyFile(i).getAddress().toByteArray()), + req.getKeyFile(i).getPassword()); + } - case Message.Funcs.f_getActiveNodes_VALUE: { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + Map res = + ((short) request[2] == Message.Funcs.f_exportAccounts_VALUE) + ? Keystore.exportAccount(addrMap) + : Keystore.backupAccount(addrMap); + + List invalidKey = + addrMap.keySet() + .parallelStream() + .filter( + addr -> + res.keySet() + .parallelStream() + .noneMatch(ad -> ad.equals(addr))) + .map(match -> ByteString.copyFrom(match.toBytes())) + .collect(Collectors.toList()); + + List keyBins = + res.values() + .parallelStream() + .map(key -> ByteString.copyFrom(key.toBytes())) + .collect(Collectors.toList()); + + Message.rsp_exportAccounts rsp = + Message.rsp_exportAccounts + .newBuilder() + .addAllKeyFile(keyBins) + .addAllFailedKey(invalidKey) + .build(); - List nodes = new ArrayList<>(); - nodes.addAll(this.ac.getAionHub().getP2pMgr().getActiveNodes().values()); - List pl = new ArrayList<>(); - try { - for (INode n : nodes) { - Message.t_Node node = Message.t_Node.newBuilder().setBlockNumber(n.getBestBlockNumber()) - .setNodeId(ByteArrayWrapper.wrap(n.getId()).toString()) - .setRemoteP2PIp(ByteArrayWrapper.wrap(n.getIp()).toString()) - // TODO : api export latency, totalDiff and the - // blockHash - // .setLatency((float) n.get) - .build(); - - pl.add(node); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } + case Message.Funcs.f_importAccounts_VALUE: + { + if (service != Message.Servs.s_account_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getActiveNodes rsp = Message.rsp_getActiveNodes.newBuilder().addAllNode(pl).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getActiveNodes exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - - case Message.Funcs.f_getStaticNodes_VALUE: { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - List al = Arrays.asList(this.getBootNodes()); - List nl = new ArrayList<>(); - for (String s : al) { - // TODO : get more node info - Message.t_Node n = Message.t_Node.newBuilder().setRemoteP2PIp(s).build(); - nl.add(n); - } - - try { - Message.rsp_getStaticNodes rsp = Message.rsp_getStaticNodes.newBuilder().addAllNode(nl).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getStaticNodes exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getSolcVersion_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - String ver = this.solcVersion(); - - try { - Message.rsp_getSolcVersion rsp = Message.rsp_getSolcVersion.newBuilder().setVer(ver).build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_importAccounts req; - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getSolcVersion exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_isSyncing_VALUE: { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - try { - Message.rsp_isSyncing rsp = Message.rsp_isSyncing.newBuilder().setSyncing(!this.getSync().done).build(); + try { + req = Message.req_importAccounts.parseFrom(data); + } catch (Exception e) { + LOG.error("ApiAion0.process.importAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.syncing exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_syncInfo_VALUE: { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + Map importKey = + req.getPrivateKeyList() + .parallelStream() + .collect( + Collectors.toMap( + Message.t_PrivateKey::getPrivateKey, + Message.t_PrivateKey::getPassword)); + + if (importKey == null) { + LOG.error("ApiAion0.process.importAccount exception: [null importKey]"); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - SyncInfo sync = this.getSync(); + Set res = Keystore.importAccount(importKey); + if (res == null) { + throw new NullPointerException(); + } - try { - Message.rsp_syncInfo rsp = Message.rsp_syncInfo.newBuilder().setChainBestBlock(sync.chainBestBlkNumber) - .setNetworkBestBlock(sync.networkBestBlkNumber).setSyncing(!sync.done) - .setMaxImportBlocks(24).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.syncInfo exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_accountCreate_VALUE: { - if (service != Message.Servs.s_account_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + Message.rsp_importAccounts rsp = + Message.rsp_importAccounts.newBuilder().addAllInvalidKey(res).build(); - byte[] data = parseMsgReq(request, msgHash); - Message.req_accountCreate req; + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_signedTransaction_VALUE: + case Message.Funcs.f_rawTransaction_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); + } - try { - req = Message.req_accountCreate.parseFrom(data); - - List addressList = new ArrayList<>(); - List pKeyList = new ArrayList<>(); - for (int i = 0; i < req.getPasswordList().size() && i < ACCOUNT_CREATE_LIMIT; i++) { - - String addr = Keystore.create(req.getPassword(i)); - byte[] pKey; - if (req.getPrivateKey()) { - pKey = Keystore.getKey(addr, req.getPassword(i)).getPrivKeyBytes(); - if (pKey == null) { - pKey = ByteArrayWrapper.NULL_BYTE; + byte[] data = parseMsgReq(request, msgHash); + Message.req_rawTransaction req; + byte[] result; + try { + req = Message.req_rawTransaction.parseFrom(data); + byte[] encodedTx = req.getEncodedTx().toByteArray(); + if (encodedTx == null) { + LOG.error( + "ApiAion0.process.rawTransaction exception: [null encodedTx]"); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - pKeyList.add(ByteString.copyFrom(pKey)); + result = this.sendTransaction(encodedTx); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.rawTransaction exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); } - addressList.add(ByteString.copyFrom(Address.wrap(addr).toBytes())); - } - - Message.rsp_accountCreate rsp = Message.rsp_accountCreate.newBuilder().addAllAddress(addressList) - .addAllPrivateKey(pKeyList).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - - } catch (Exception e) { - LOG.error("ApiAion0.process.accountCreate exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - - case Message.Funcs.f_accountLock_VALUE: { - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - - if (data == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } - - boolean result; - try { - Message.req_accountlock req = Message.req_accountlock.parseFrom(data); - result = this.lockAccount(Address.wrap(req.getAccount().toByteArray()), req.getPassword()); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.lockAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); - } - - case Message.Funcs.f_userPrivilege_VALUE: { - - if (service != Message.Servs.s_privilege_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_unsupport_api_VALUE); - } - case Message.Funcs.f_mining_VALUE: { - if (service != Message.Servs.s_mine_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - Message.rsp_mining rsp = Message.rsp_mining.newBuilder().setMining(this.isMining()).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - - case Message.Funcs.f_estimateNrg_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_estimateNrg req; - long result; - try { - req = Message.req_estimateNrg.parseFrom(data); - - ArgTxCall params = new ArgTxCall(Address.wrap(req.getFrom().toByteArray()), - Address.wrap(req.getTo().toByteArray()), req.getData().toByteArray(), BigInteger.ZERO, - new BigInteger(req.getValue().toByteArray()), req.getNrg(), req.getNrgPrice()); - - result = this.estimateNrg(params); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.estimateNrg exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); - } - - Message.rsp_estimateNrg rsp = Message.rsp_estimateNrg.newBuilder().setNrg(result).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - - case Message.Funcs.f_exportAccounts_VALUE: - case Message.Funcs.f_backupAccounts_VALUE: { - if (service != Message.Servs.s_account_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_exportAccounts req; - - try { - req = Message.req_exportAccounts.parseFrom(data); - } catch (Exception e) { - LOG.error("ApiAion0.process.exportAccounts exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - - Map addrMap = new HashMap<>(); - for (int i = 0; i < req.getKeyFileList().size() && i < ACCOUNT_CREATE_LIMIT; i++) { - addrMap.put(Address.wrap(req.getKeyFile(i).getAddress().toByteArray()), - req.getKeyFile(i).getPassword()); - } - - Map res = ((short) request[2] == Message.Funcs.f_exportAccounts_VALUE) - ? Keystore.exportAccount(addrMap) - : Keystore.backupAccount(addrMap); - - List invalidKey = addrMap.keySet().parallelStream() - .filter(addr -> res.keySet().parallelStream().noneMatch(ad -> ad.equals(addr))) - .map(match -> ByteString.copyFrom(match.toBytes())).collect(Collectors.toList()); - - List keyBins = res.values().parallelStream().map(key -> ByteString.copyFrom(key.toBytes())) - .collect(Collectors.toList()); - - Message.rsp_exportAccounts rsp = Message.rsp_exportAccounts.newBuilder().addAllKeyFile(keyBins) - .addAllFailedKey(invalidKey).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - - } - case Message.Funcs.f_importAccounts_VALUE: { - if (service != Message.Servs.s_account_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_importAccounts req; - - try { - req = Message.req_importAccounts.parseFrom(data); - } catch (Exception e) { - LOG.error("ApiAion0.process.importAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - - Map importKey = req.getPrivateKeyList().parallelStream() - .collect(Collectors.toMap(Message.t_PrivateKey::getPrivateKey, Message.t_PrivateKey::getPassword)); - - if (importKey == null) { - LOG.error("ApiAion0.process.importAccount exception: [null importKey]"); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - - Set res = Keystore.importAccount(importKey); - if (res == null) { - throw new NullPointerException(); - } + if (result == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); + } - Message.rsp_importAccounts rsp = Message.rsp_importAccounts.newBuilder().addAllInvalidKey(res).build(); + getMsgIdMapping() + .put( + ByteArrayWrapper.wrap(result), + new AbstractMap.SimpleEntry<>( + ByteArrayWrapper.wrap(msgHash), + ByteArrayWrapper.wrap(socketId))); + if (LOG.isDebugEnabled()) { + LOG.debug( + "ApiAion0.process.rawTransaction - msgIdMapping.put: [{}]", + ByteArrayWrapper.wrap(result).toString()); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - case Message.Funcs.f_signedTransaction_VALUE: - case Message.Funcs.f_rawTransaction_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); - } + Message.rsp_sendTransaction rsp = + Message.rsp_sendTransaction + .newBuilder() + .setTxHash(ByteString.copyFrom(result)) + .build(); - byte[] data = parseMsgReq(request, msgHash); - Message.req_rawTransaction req; - byte[] result; - try { - req = Message.req_rawTransaction.parseFrom(data); - byte[] encodedTx = req.getEncodedTx().toByteArray(); - if (encodedTx == null) { - LOG.error("ApiAion0.process.rawTransaction exception: [null encodedTx]"); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } + case Message.Funcs.f_eventRegister_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - result = this.sendTransaction(encodedTx); - } catch (Exception e) { - LOG.error("ApiAion0.process.rawTransaction exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); - } - - if (result == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); - } - - getMsgIdMapping().put(ByteArrayWrapper.wrap(result), new AbstractMap.SimpleEntry<>( - ByteArrayWrapper.wrap(msgHash), ByteArrayWrapper.wrap(socketId))); - if (LOG.isDebugEnabled()) { - LOG.debug("ApiAion0.process.rawTransaction - msgIdMapping.put: [{}]", ByteArrayWrapper.wrap(result).toString()); - } - - Message.rsp_sendTransaction rsp = Message.rsp_sendTransaction.newBuilder() - .setTxHash(ByteString.copyFrom(result)).build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - case Message.Funcs.f_eventRegister_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_eventRegister req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_eventRegister req; - try { - req = Message.req_eventRegister.parseFrom(data); - - List evtList = new ArrayList<>(req.getEventsList()); - if (evtList.isEmpty()) { - LOG.error("ApiNucoNcp.process.eventRegister : [{}]", "empty event list"); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + try { + req = Message.req_eventRegister.parseFrom(data); - Message.t_FilterCt fltr = req.getFilter(); - List accList = new ArrayList<>(); - fltr.getAddressesList().forEach(a -> accList.add(a.toByteArray())); - - long lv = ByteUtil.byteArrayToLong(socketId); - FltrCt preFc = (FltrCt) installedFilters.get(lv); - if (Optional.ofNullable(preFc).isPresent()) { - preFc.getTopics().forEach(t -> { - if (!fltr.getTopicsList().contains(t)) { - evtList.add(t); + List evtList = new ArrayList<>(req.getEventsList()); + if (evtList.isEmpty()) { + LOG.error( + "ApiNucoNcp.process.eventRegister : [{}]", "empty event list"); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - }); - } - - FltrCt fc = new FltrCt(fltr.getContractAddr().toByteArray(), fltr.getTo(), fltr.getFrom(), evtList, - accList, fltr.getExpireTime()); - - installedFilters.put(lv, fc); - Message.rsp_eventRegister rsp = Message.rsp_eventRegister.newBuilder().setResult(true).build(); + Message.t_FilterCt fltr = req.getFilter(); + List accList = new ArrayList<>(); + fltr.getAddressesList().forEach(a -> accList.add(a.toByteArray())); + + long lv = ByteUtil.byteArrayToLong(socketId); + FltrCt preFc = (FltrCt) installedFilters.get(lv); + if (Optional.ofNullable(preFc).isPresent()) { + preFc.getTopics() + .forEach( + t -> { + if (!fltr.getTopicsList().contains(t)) { + evtList.add(t); + } + }); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + FltrCt fc = + new FltrCt( + fltr.getContractAddr().toByteArray(), + fltr.getTo(), + fltr.getFrom(), + evtList, + accList, + fltr.getExpireTime()); - } catch (Exception e) { - LOG.error("ApiAion0.process.eventRegister exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_eventDeregister_VALUE: { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + installedFilters.put(lv, fc); - byte[] data = parseMsgReq(request, msgHash); - Message.req_eventDeregister req; + Message.rsp_eventRegister rsp = + Message.rsp_eventRegister.newBuilder().setResult(true).build(); - try { - req = Message.req_eventDeregister.parseFrom(data); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - List evtList = new ArrayList<>(req.getEventsList()); - - byte[] conrtactAddr; - if (req.getContractAddr() == null) { - conrtactAddr = null; - } else { - conrtactAddr = req.getContractAddr().toByteArray(); + } catch (Exception e) { + LOG.error("ApiAion0.process.eventRegister exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_eventDeregister_VALUE: + { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - if (evtList.isEmpty()) { - LOG.error("ApiAion0.process.eventRegister : [{}]", "empty event list"); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_eventDeregister req; - long lv = ByteUtil.byteArrayToLong(socketId); - FltrCt preFc = (FltrCt) installedFilters.get(lv); + try { + req = Message.req_eventDeregister.parseFrom(data); - boolean changed = false; - if (Optional.ofNullable(preFc).isPresent() && Arrays.equals(preFc.getContractAddr(), conrtactAddr)) { - evtList.forEach(ev -> { - if (preFc.getTopics().contains(ev)) { - preFc.getTopics().remove(ev); + List evtList = new ArrayList<>(req.getEventsList()); + + byte[] conrtactAddr; + if (req.getContractAddr() == null) { + conrtactAddr = null; + } else { + conrtactAddr = req.getContractAddr().toByteArray(); } - }); - installedFilters.put(lv, preFc); - changed = true; - } + if (evtList.isEmpty()) { + LOG.error("ApiAion0.process.eventRegister : [{}]", "empty event list"); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - Message.rsp_eventRegister rsp = Message.rsp_eventRegister.newBuilder().setResult(changed).build(); + long lv = ByteUtil.byteArrayToLong(socketId); + FltrCt preFc = (FltrCt) installedFilters.get(lv); + + boolean changed = false; + if (Optional.ofNullable(preFc).isPresent() + && Arrays.equals(preFc.getContractAddr(), conrtactAddr)) { + evtList.forEach( + ev -> { + if (preFc.getTopics().contains(ev)) { + preFc.getTopics().remove(ev); + } + }); + + installedFilters.put(lv, preFc); + changed = true; + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + Message.rsp_eventRegister rsp = + Message.rsp_eventRegister.newBuilder().setResult(changed).build(); - } catch (Exception e) { - LOG.error("ApiAion0.process.eventDeregister exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockDetailsByNumber_VALUE: { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockDetailsByNumber req; - - try { - req = Message.req_getBlockDetailsByNumber.parseFrom(data); - long latestBlkNum = this.getBestBlock().getNumber(); - - List blkNum = req.getBlkNumbersList() - .parallelStream() - .filter(n -> n <= latestBlkNum) - .collect(Collectors.toSet()) - .parallelStream() - .sorted() - .collect(Collectors.toList()); - - if (blkNum.size() > 1000) { - blkNum = blkNum.subList(0, 1000); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.eventDeregister exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getBlockDetailsByNumber_VALUE: + { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - List> blks = getBlkAndDifficultyForBlkNumList(blkNum); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockDetailsByNumber req; - if (blks == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } else { + try { + req = Message.req_getBlockDetailsByNumber.parseFrom(data); + long latestBlkNum = this.getBestBlock().getNumber(); + List blkNum = + req.getBlkNumbersList() + .parallelStream() + .filter(n -> n <= latestBlkNum) + .collect(Collectors.toSet()) + .parallelStream() + .sorted() + .collect(Collectors.toList()); - List bds = getRsp_getBlockDetails(blks); - Message.rsp_getBlockDetailsByNumber rsp = Message.rsp_getBlockDetailsByNumber.newBuilder() - .addAllBlkDetails(bds) - .build(); + if (blkNum.size() > 1000) { + blkNum = blkNum.subList(0, 1000); + } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + List> blks = + getBlkAndDifficultyForBlkNumList(blkNum); + + if (blks == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } else { + + List bds = getRsp_getBlockDetails(blks); + Message.rsp_getBlockDetailsByNumber rsp = + Message.rsp_getBlockDetailsByNumber + .newBuilder() + .addAllBlkDetails(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockSqlByRange_VALUE: { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockSqlByRange req; - - try { - if (LOG.isDebugEnabled()) LOG.debug("BlockSqlByRange: start"); + case Message.Funcs.f_getBlockSqlByRange_VALUE: + { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - req = Message.req_getBlockSqlByRange.parseFrom(data); - long latestBlkNum = this.getBestBlock().getNumber(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockSqlByRange req; - Long _blkStart = req.getBlkNumberStart(); - Long _blkEnd = req.getBlkNumberEnd(); + try { + if (LOG.isDebugEnabled()) LOG.debug("BlockSqlByRange: start"); - // no null check here + req = Message.req_getBlockSqlByRange.parseFrom(data); + long latestBlkNum = this.getBestBlock().getNumber(); - long blkStart = -1; - long blkEnd = -1; + Long _blkStart = req.getBlkNumberStart(); + Long _blkEnd = req.getBlkNumberEnd(); - if (_blkStart < 0) - blkStart = 0; - else - blkStart = _blkStart; + // no null check here - if (_blkEnd > latestBlkNum) - blkEnd = latestBlkNum; - else - blkEnd = _blkEnd; + long blkStart = -1; + long blkEnd = -1; - if (blkEnd < blkStart) - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + if (_blkStart < 0) blkStart = 0; + else blkStart = _blkStart; - // truncate the thing - if (blkEnd - blkStart > 1000) { - blkStart = blkEnd - 1000 + 1; + if (_blkEnd > latestBlkNum) blkEnd = latestBlkNum; + else blkEnd = _blkEnd; - if (blkStart < 0) blkStart = 0; - } + if (blkEnd < blkStart) + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - if (LOG.isDebugEnabled()) LOG.debug("BlockSqlByRange: range " + blkStart + "-" + blkEnd); + // truncate the thing + if (blkEnd - blkStart > 1000) { + blkStart = blkEnd - 1000 + 1; - Long lastBlockTimestamp = null; - long listLength = blkEnd - blkStart + 1; - List bds = new ArrayList<>(); + if (blkStart < 0) blkStart = 0; + } - for (int i = 0; i < listLength; i++) { - long blkNum = blkStart + i; - Map.Entry entry = getBlockWithTotalDifficulty(blkNum); - AionBlock b = entry.getKey(); - BigInteger td = entry.getValue(); - long blocktime = 0; - if (blkNum != 0 && lastBlockTimestamp == null) { - lastBlockTimestamp = getBlock(blkNum - 1).getTimestamp(); - } - if (blkNum == 0) - blocktime = 0; - else - blocktime = b.getTimestamp() - lastBlockTimestamp; + if (LOG.isDebugEnabled()) + LOG.debug("BlockSqlByRange: range " + blkStart + "-" + blkEnd); + + Long lastBlockTimestamp = null; + long listLength = blkEnd - blkStart + 1; + List bds = new ArrayList<>(); + + for (int i = 0; i < listLength; i++) { + long blkNum = blkStart + i; + Map.Entry entry = + getBlockWithTotalDifficulty(blkNum); + AionBlock b = entry.getKey(); + BigInteger td = entry.getValue(); + long blocktime = 0; + if (blkNum != 0 && lastBlockTimestamp == null) { + lastBlockTimestamp = getBlock(blkNum - 1).getTimestamp(); + } + if (blkNum == 0) blocktime = 0; + else blocktime = b.getTimestamp() - lastBlockTimestamp; - lastBlockTimestamp = b.getTimestamp(); + lastBlockTimestamp = b.getTimestamp(); - String blockSql = generateBlockSqlStatement(b, td, blocktime); + String blockSql = generateBlockSqlStatement(b, td, blocktime); - List transactionSql = new ArrayList<>(); + List transactionSql = new ArrayList<>(); - AionBlockSummary bs = null; - if (explorerBlockCache != null) { - // remove from cache since after consumed, we're probably not gonna revisit it - bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); - } + AionBlockSummary bs = null; + if (explorerBlockCache != null) { + // remove from cache since after consumed, we're probably not gonna + // revisit it + bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); + } - if (bs != null) { + if (bs != null) { - if (LOG.isDebugEnabled()) LOG.debug("BlockSqlByRange: cache HIT for #: " + b.getNumber()); + if (LOG.isDebugEnabled()) + LOG.debug("BlockSqlByRange: cache HIT for #: " + b.getNumber()); - Map receipts = new HashMap<>(); - for (AionTxReceipt r : bs.getReceipts()) { - receipts.put(new ByteArrayWrapper(r.getTransaction().getHash()), r); - } + Map receipts = new HashMap<>(); + for (AionTxReceipt r : bs.getReceipts()) { + receipts.put( + new ByteArrayWrapper(r.getTransaction().getHash()), r); + } - List txns = b.getTransactionsList(); - for (int j = 0; j < txns.size(); j++) { - AionTransaction tx = txns.get(j); - AionTxReceipt r = receipts.get(new ByteArrayWrapper(tx.getHash())); - if (r == null) { - if (LOG.isDebugEnabled()) LOG.debug("BlockSqlByRange: transaction not in Block Summary: " + b.getNumber() + "." + j); - AionTxInfo ti = ((AionBlockchainImpl) this.ac.getAionHub().getBlockchain()) - .getTransactionInfoLite(tx.getHash(), b.getHash()); - r = ti.getReceipt(); - } - if (r == null) { - LOG.error("BlockSqlByRange: missing DB transaction: " + ByteUtil.toHexString(tx.getHash())); - } - else { - transactionSql.add(generateTransactionSqlStatement(b, tx, r.getLogInfoList(), j, r.getEnergyUsed())); - } - } - } else { - if (LOG.isDebugEnabled()) LOG.debug("BlockSqlByRange: cache MISS for #: " + b.getNumber()); - List txs = b.getTransactionsList(); - - transactionSql = txs.parallelStream() - .filter(Objects::nonNull) - .map((AionTransaction tx) -> { - AionTxInfo ti = ((AionBlockchainImpl) this.ac.getAionHub().getBlockchain()) - .getTransactionInfoLite(tx.getHash(), b.getHash()); - if (ti == null) { - LOG.error("BlockSqlByRange: missing DB transaction: " + ByteUtil.toHexString(tx.getHash())); - return null; + List txns = b.getTransactionsList(); + for (int j = 0; j < txns.size(); j++) { + AionTransaction tx = txns.get(j); + AionTxReceipt r = + receipts.get(new ByteArrayWrapper(tx.getHash())); + if (r == null) { + if (LOG.isDebugEnabled()) + LOG.debug( + "BlockSqlByRange: transaction not in Block Summary: " + + b.getNumber() + + "." + + j); + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), b.getHash()); + r = ti.getReceipt(); + } + if (r == null) { + LOG.error( + "BlockSqlByRange: missing DB transaction: " + + ByteUtil.toHexString(tx.getHash())); } else { - return generateTransactionSqlStatement(b, tx, ti.getReceipt().getLogInfoList(), ti.getIndex(), ti.getReceipt().getEnergyUsed()); + transactionSql.add( + generateTransactionSqlStatement( + b, + tx, + r.getLogInfoList(), + j, + r.getEnergyUsed())); } - }).filter(Objects::nonNull) - .collect(Collectors.toList()); - } + } + } else { + if (LOG.isDebugEnabled()) + LOG.debug( + "BlockSqlByRange: cache MISS for #: " + b.getNumber()); + List txs = b.getTransactionsList(); + + transactionSql = + txs.parallelStream() + .filter(Objects::nonNull) + .map( + (AionTransaction tx) -> { + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), + b.getHash()); + if (ti == null) { + LOG.error( + "BlockSqlByRange: missing DB transaction: " + + ByteUtil + .toHexString( + tx + .getHash())); + return null; + } else { + return generateTransactionSqlStatement( + b, + tx, + ti.getReceipt() + .getLogInfoList(), + ti.getIndex(), + ti.getReceipt() + .getEnergyUsed()); + } + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); + } - Message.t_BlockSql sqlObj = - Message.t_BlockSql.newBuilder() - .setBlockNumber(b.getNumber()) - .setBlockHash(ByteUtil.toHexString(b.getHash())) - .setParentHash(ByteUtil.toHexString(b.getParentHash())) - .setBlock(blockSql) - .addAllTx(transactionSql) - .build(); + Message.t_BlockSql sqlObj = + Message.t_BlockSql + .newBuilder() + .setBlockNumber(b.getNumber()) + .setBlockHash(ByteUtil.toHexString(b.getHash())) + .setParentHash(ByteUtil.toHexString(b.getParentHash())) + .setBlock(blockSql) + .addAllTx(transactionSql) + .build(); + + bds.add(sqlObj); + } - bds.add(sqlObj); + Message.rsp_getBlockSqlByRange rsp = + Message.rsp_getBlockSqlByRange + .newBuilder() + .addAllBlkSql(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getBlockDetailsByRange_VALUE: + { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getBlockSqlByRange rsp = - Message.rsp_getBlockSqlByRange.newBuilder() - .addAllBlkSql(bds) - .build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockDetailsByRange_VALUE: { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockDetailsByRange req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockDetailsByRange req; - try { - if (LOG.isDebugEnabled()) LOG.debug("getBlockDetailsByRange: start"); + try { + if (LOG.isDebugEnabled()) LOG.debug("getBlockDetailsByRange: start"); - req = Message.req_getBlockDetailsByRange.parseFrom(data); - long latestBlkNum = this.getBestBlock().getNumber(); + req = Message.req_getBlockDetailsByRange.parseFrom(data); + long latestBlkNum = this.getBestBlock().getNumber(); - Long _blkStart = req.getBlkNumberStart(); - Long _blkEnd = req.getBlkNumberEnd(); + Long _blkStart = req.getBlkNumberStart(); + Long _blkEnd = req.getBlkNumberEnd(); - // no null check here + // no null check here - long blkStart = -1; - long blkEnd = -1; + long blkStart = -1; + long blkEnd = -1; - if (_blkStart < 0) - blkStart = 0; - else - blkStart = _blkStart; + if (_blkStart < 0) blkStart = 0; + else blkStart = _blkStart; - // blocks requested in the future. return empty result - if (blkStart > latestBlkNum) { - Message.rsp_getBlockDetailsByRange rsp = - Message.rsp_getBlockDetailsByRange.newBuilder() - .addAllBlkDetails(new ArrayList<>()) - .build(); + // blocks requested in the future. return empty result + if (blkStart > latestBlkNum) { + Message.rsp_getBlockDetailsByRange rsp = + Message.rsp_getBlockDetailsByRange + .newBuilder() + .addAllBlkDetails(new ArrayList<>()) + .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - if (_blkEnd > latestBlkNum) - blkEnd = latestBlkNum; - else - blkEnd = _blkEnd; + if (_blkEnd > latestBlkNum) blkEnd = latestBlkNum; + else blkEnd = _blkEnd; - if (blkEnd < blkStart) - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + if (blkEnd < blkStart) + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - // truncate at the beginning of range - if (blkEnd - blkStart > 1000) { - blkStart = blkEnd - 1000 + 1; + // truncate at the beginning of range + if (blkEnd - blkStart > 1000) { + blkStart = blkEnd - 1000 + 1; - if (blkStart < 0) blkStart = 0; - } + if (blkStart < 0) blkStart = 0; + } - if (LOG.isDebugEnabled()) LOG.debug("getBlockDetailsByRange: range " + blkStart + "-" + blkEnd); + if (LOG.isDebugEnabled()) + LOG.debug("getBlockDetailsByRange: range " + blkStart + "-" + blkEnd); - Long lastBlockTimestamp = null; - long listLength = blkEnd - blkStart + 1; - List bds = new ArrayList<>(); + Long lastBlockTimestamp = null; + long listLength = blkEnd - blkStart + 1; + List bds = new ArrayList<>(); - for (int i = 0; i < listLength; i++) { - long blkNum = blkStart + i; - Map.Entry entry = getBlockWithTotalDifficulty(blkNum); - AionBlock b = entry.getKey(); - BigInteger td = entry.getValue(); - long blocktime = 0; - if (b.getNumber() > 0 && lastBlockTimestamp == null) - lastBlockTimestamp = getBlockByHash(b.getParentHash()).getTimestamp(); + for (int i = 0; i < listLength; i++) { + long blkNum = blkStart + i; + Map.Entry entry = + getBlockWithTotalDifficulty(blkNum); + AionBlock b = entry.getKey(); + BigInteger td = entry.getValue(); + long blocktime = 0; + if (b.getNumber() > 0 && lastBlockTimestamp == null) + lastBlockTimestamp = + getBlockByHash(b.getParentHash()).getTimestamp(); - if (lastBlockTimestamp != null) - blocktime = b.getTimestamp() - lastBlockTimestamp; + if (lastBlockTimestamp != null) + blocktime = b.getTimestamp() - lastBlockTimestamp; - lastBlockTimestamp = b.getTimestamp(); + lastBlockTimestamp = b.getTimestamp(); - Message.t_BlockDetail.Builder blockDetails = getBlockDetailsObj(b, td, blocktime); + Message.t_BlockDetail.Builder blockDetails = + getBlockDetailsObj(b, td, blocktime); - List txDetails = new ArrayList<>(); + List txDetails = new ArrayList<>(); - AionBlockSummary bs = null; - if (explorerBlockCache != null) { - // remove from cache since after consumed, we're probably not gonna revisit it - bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); - } + AionBlockSummary bs = null; + if (explorerBlockCache != null) { + // remove from cache since after consumed, we're probably not gonna + // revisit it + bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); + } - if (bs != null) { + if (bs != null) { - if (LOG.isDebugEnabled()) LOG.debug("getBlockDetailsByRange: cache HIT for #: " + b.getNumber()); + if (LOG.isDebugEnabled()) + LOG.debug( + "getBlockDetailsByRange: cache HIT for #: " + + b.getNumber()); - Map receipts = new HashMap<>(); - for (AionTxReceipt r : bs.getReceipts()) { - receipts.put(new ByteArrayWrapper(r.getTransaction().getHash()), r); - } + Map receipts = new HashMap<>(); + for (AionTxReceipt r : bs.getReceipts()) { + receipts.put( + new ByteArrayWrapper(r.getTransaction().getHash()), r); + } - List txns = b.getTransactionsList(); - for (int j = 0; j < txns.size(); j++) { - AionTransaction tx = txns.get(j); - AionTxReceipt r = receipts.get(new ByteArrayWrapper(tx.getHash())); - if (r == null) { - if (LOG.isDebugEnabled()) LOG.debug("getBlockDetailsByRange: transaction not in Block Summary: " + b.getNumber() + "." + j); - AionTxInfo ti = ((AionBlockchainImpl) this.ac.getAionHub().getBlockchain()) - .getTransactionInfoLite(tx.getHash(), b.getHash()); - r = ti.getReceipt(); - } - if (r == null) { - LOG.error("getBlockDetailsByRange: missing DB transaction: " + ByteUtil.toHexString(tx.getHash())); - } - else { - txDetails.add(getTxDetailsObj(tx, r.getLogInfoList(), j, r.getEnergyUsed(), r.getError())); - } - } - } else { - if (LOG.isDebugEnabled()) LOG.debug("getBlockDetailsByRange: cache MISS for #: " + b.getNumber()); - List txs = b.getTransactionsList(); - - txDetails = txs.parallelStream() - .filter(Objects::nonNull) - .map((AionTransaction tx) -> { - AionTxInfo ti = ((AionBlockchainImpl) this.ac.getAionHub().getBlockchain()) - .getTransactionInfoLite(tx.getHash(), b.getHash()); - if (ti == null) { - LOG.error("getBlockDetailsByRange: missing DB transaction: " + ByteUtil.toHexString(tx.getHash())); - return null; + List txns = b.getTransactionsList(); + for (int j = 0; j < txns.size(); j++) { + AionTransaction tx = txns.get(j); + AionTxReceipt r = + receipts.get(new ByteArrayWrapper(tx.getHash())); + if (r == null) { + if (LOG.isDebugEnabled()) + LOG.debug( + "getBlockDetailsByRange: transaction not in Block Summary: " + + b.getNumber() + + "." + + j); + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), b.getHash()); + r = ti.getReceipt(); + } + if (r == null) { + LOG.error( + "getBlockDetailsByRange: missing DB transaction: " + + ByteUtil.toHexString(tx.getHash())); } else { - return getTxDetailsObj(tx, ti.getReceipt().getLogInfoList(), ti.getIndex(), ti.getReceipt().getEnergyUsed(), ti.getReceipt().getError()); + txDetails.add( + getTxDetailsObj( + tx, + r.getLogInfoList(), + j, + r.getEnergyUsed(), + r.getError())); } - }).filter(Objects::nonNull) - .collect(Collectors.toList()); - } - - bds.add(blockDetails.addAllTx(txDetails).build()); - } - - Message.rsp_getBlockDetailsByRange rsp = - Message.rsp_getBlockDetailsByRange.newBuilder() - .addAllBlkDetails(bds) - .build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockDetailsByLatest_VALUE: { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockDetailsByLatest req; + } + } else { + if (LOG.isDebugEnabled()) + LOG.debug( + "getBlockDetailsByRange: cache MISS for #: " + + b.getNumber()); + List txs = b.getTransactionsList(); + + txDetails = + txs.parallelStream() + .filter(Objects::nonNull) + .map( + (AionTransaction tx) -> { + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), + b.getHash()); + if (ti == null) { + LOG.error( + "getBlockDetailsByRange: missing DB transaction: " + + ByteUtil + .toHexString( + tx + .getHash())); + return null; + } else { + return getTxDetailsObj( + tx, + ti.getReceipt() + .getLogInfoList(), + ti.getIndex(), + ti.getReceipt() + .getEnergyUsed(), + ti.getReceipt().getError()); + } + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); + } - try { - req = Message.req_getBlockDetailsByLatest.parseFrom(data); + bds.add(blockDetails.addAllTx(txDetails).build()); + } - // clip the requested count up to 1000 - Long count = req.getCount(); - if (count > 1000) { - count = 1000L; + Message.rsp_getBlockDetailsByRange rsp = + Message.rsp_getBlockDetailsByRange + .newBuilder() + .addAllBlkDetails(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getBlockDetailsByLatest_VALUE: + { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - // clip start block to 0 at the bottom - Long endBlock = this.getBestBlock().getNumber(); - Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; - - List blkNum = LongStream.rangeClosed(startBlock, endBlock) - .boxed().collect(Collectors.toList()); - - List> blks = getBlkAndDifficultyForBlkNumList(blkNum); - - if (blks == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } else { - List bds = getRsp_getBlockDetails(blks); - Message.rsp_getBlockDetailsByLatest rsp = Message.rsp_getBlockDetailsByLatest.newBuilder() - .addAllBlkDetails(bds) - .build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockDetailsByLatest exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlocksByLatest_VALUE: { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockDetailsByLatest req; - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlocksByLatest req; + try { + req = Message.req_getBlockDetailsByLatest.parseFrom(data); - try { - req = Message.req_getBlocksByLatest.parseFrom(data); + // clip the requested count up to 1000 + Long count = req.getCount(); + if (count > 1000) { + count = 1000L; + } - // clip the requested count up to 1000 - Long count = req.getCount(); - if (count > 1000) { - count = 1000L; + // clip start block to 0 at the bottom + Long endBlock = this.getBestBlock().getNumber(); + Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; + + List blkNum = + LongStream.rangeClosed(startBlock, endBlock) + .boxed() + .collect(Collectors.toList()); + + List> blks = + getBlkAndDifficultyForBlkNumList(blkNum); + + if (blks == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } else { + List bds = getRsp_getBlockDetails(blks); + Message.rsp_getBlockDetailsByLatest rsp = + Message.rsp_getBlockDetailsByLatest + .newBuilder() + .addAllBlkDetails(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByLatest exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getBlocksByLatest_VALUE: + { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - // clip start block to 0 at the bottom - Long endBlock = this.getBestBlock().getNumber(); - Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; - - List blkNum = LongStream.rangeClosed(startBlock, endBlock) - .boxed().collect(Collectors.toList()); - - List> blks = getBlkAndDifficultyForBlkNumList(blkNum); - - if (blks == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } else { - List bs = getRsp_getBlocks(blks); - Message.rsp_getBlocksByLatest rsp = Message.rsp_getBlocksByLatest.newBuilder() - .addAllBlks(bs) - .build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlocksByLatest exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getAccountDetailsByAddressList_VALUE: { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlocksByLatest req; - byte[] data = parseMsgReq(request, msgHash); - Message.req_getAccountDetailsByAddressList req; + try { + req = Message.req_getBlocksByLatest.parseFrom(data); - try { - req = Message.req_getAccountDetailsByAddressList.parseFrom(data); - List num = req.getAddressesList(); + // clip the requested count up to 1000 + Long count = req.getCount(); + if (count > 1000) { + count = 1000L; + } - if (num.size() > 1000) { - num = num.subList(0, 1000); + // clip start block to 0 at the bottom + Long endBlock = this.getBestBlock().getNumber(); + Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; + + List blkNum = + LongStream.rangeClosed(startBlock, endBlock) + .boxed() + .collect(Collectors.toList()); + + List> blks = + getBlkAndDifficultyForBlkNumList(blkNum); + + if (blks == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } else { + List bs = getRsp_getBlocks(blks); + Message.rsp_getBlocksByLatest rsp = + Message.rsp_getBlocksByLatest + .newBuilder() + .addAllBlks(bs) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlocksByLatest exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } + case Message.Funcs.f_getAccountDetailsByAddressList_VALUE: + { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - List accounts = num.parallelStream() - .map(a -> { - BigInteger b = this.getBalance(Address.wrap(a.toByteArray())); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getAccountDetailsByAddressList req; - Message.t_AccountDetail.Builder builder = Message.t_AccountDetail.newBuilder(); - if (b != null) - builder.setBalance(ByteString.copyFrom(b.toByteArray())); + try { + req = Message.req_getAccountDetailsByAddressList.parseFrom(data); + List num = req.getAddressesList(); - builder.setAddress(a); + if (num.size() > 1000) { + num = num.subList(0, 1000); + } - return builder.build(); } - ).collect(Collectors.toList()); + List accounts = + num.parallelStream() + .map( + a -> { + BigInteger b = + this.getBalance( + Address.wrap(a.toByteArray())); + + Message.t_AccountDetail.Builder builder = + Message.t_AccountDetail.newBuilder(); + if (b != null) + builder.setBalance( + ByteString.copyFrom( + b.toByteArray())); + + builder.setAddress(a); + + return builder.build(); + }) + .collect(Collectors.toList()); + + if (accounts == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - if (accounts == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + Message.rsp_getAccountDetailsByAddressList rsp = + Message.rsp_getAccountDetailsByAddressList + .newBuilder() + .addAllAccounts(accounts) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } } - Message.rsp_getAccountDetailsByAddressList rsp = Message.rsp_getAccountDetailsByAddressList.newBuilder() - .addAllAccounts(accounts) - .build(); - - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - - } catch (Exception e) { - LOG.error("ApiAion0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - - // case Message.Funcs.f_eventQuery_VALUE: - // case Message.Funcs.f_submitWork_VALUE: - // case Message.Funcs.f_getWork_VALUE: - default: - return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); + // case Message.Funcs.f_eventQuery_VALUE: + // case Message.Funcs.f_submitWork_VALUE: + // case Message.Funcs.f_getWork_VALUE: + default: + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } } @@ -1848,11 +2463,14 @@ public void shutDown() { eesBlkCache.shutdown(); } } - @Override public Map> getMsgIdMapping() { + + @Override + public Map> getMsgIdMapping() { return this.msgIdMapping; } - @Override public TxWaitingMappingUpdate takeTxWait() throws Throwable { + @Override + public TxWaitingMappingUpdate takeTxWait() throws Throwable { return txWait.take(); } @@ -1866,7 +2484,8 @@ private byte[] createBlockMsg(AionBlock blk) { al.add(ByteString.copyFrom(tx.getHash())); } - BigInteger td = this.ac.getBlockchain().getTotalDifficultyByHash(Hash256.wrap(blk.getHash())); + BigInteger td = + this.ac.getBlockchain().getTotalDifficultyByHash(Hash256.wrap(blk.getHash())); Message.rsp_getBlock rsp = getRsp_getBlock(blk, al, td); byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); @@ -1875,24 +2494,30 @@ private byte[] createBlockMsg(AionBlock blk) { } private Message.rsp_getTransaction getRsp_getTransaction(AionTransaction tx) { - return Message.rsp_getTransaction.newBuilder() + return Message.rsp_getTransaction + .newBuilder() .setBlockhash(ByteString.copyFrom(tx.getBlockHash())) .setBlocknumber(tx.getBlockNumber()) .setFrom(ByteString.copyFrom(tx.getFrom().toBytes())) .setNrgConsume(tx.getNrgConsume()) .setNrgPrice(tx.getNrgPrice()) .setTxHash(ByteString.copyFrom(tx.getHash())) - .setData(ByteString.copyFrom(tx.getData() == null ? EMPTY_BYTE_ARRAY : tx.getData())) + .setData( + ByteString.copyFrom(tx.getData() == null ? EMPTY_BYTE_ARRAY : tx.getData())) .setNonce(ByteString.copyFrom(tx.getNonce())) - .setTo(ByteString.copyFrom(tx.getTo() == null ? EMPTY_BYTE_ARRAY : tx.getTo().toBytes())) + .setTo( + ByteString.copyFrom( + tx.getTo() == null ? EMPTY_BYTE_ARRAY : tx.getTo().toBytes())) .setValue(ByteString.copyFrom(tx.getValue())) - .setTxIndex((int)tx.getTxIndexInBlock()) + .setTxIndex((int) tx.getTxIndexInBlock()) .setTimeStamp(ByteUtil.byteArrayToLong(tx.getTimeStamp())) .build(); } - private Message.rsp_getBlock getRsp_getBlock(AionBlock blk, List al, BigInteger td) { - return Message.rsp_getBlock.newBuilder() + private Message.rsp_getBlock getRsp_getBlock( + AionBlock blk, List al, BigInteger td) { + return Message.rsp_getBlock + .newBuilder() .setParentHash(ByteString.copyFrom(blk.getParentHash())) .setMinerAddress(ByteString.copyFrom(blk.getCoinbase().toBytes())) .setStateRoot(ByteString.copyFrom(blk.getStateRoot())) @@ -1905,7 +2530,8 @@ private Message.rsp_getBlock getRsp_getBlock(AionBlock blk, List al, .setLogsBloom(ByteString.copyFrom(blk.getLogBloom())) .setNonce(ByteString.copyFrom(blk.getNonce())) .setReceiptTrieRoot(ByteString.copyFrom(blk.getReceiptsRoot())) - .setTimestamp(blk.getTimestamp()).setBlockNumber(blk.getNumber()) + .setTimestamp(blk.getTimestamp()) + .setBlockNumber(blk.getNumber()) .setSolution(ByteString.copyFrom(blk.getHeader().getSolution())) .addAllTxHash(al) .setSize(blk.size()) @@ -1914,100 +2540,119 @@ private Message.rsp_getBlock getRsp_getBlock(AionBlock blk, List al, } private List getRsp_getBlocks(List> blks) { - List bs = blks.parallelStream() - .filter(Objects::nonNull) - .map(blk -> { - AionBlock b = blk.getKey(); - - return Message.t_Block.newBuilder() - .setBlockNumber(b.getNumber()) - .setDifficulty(ByteString.copyFrom(b.getDifficulty())) - .setExtraData(ByteString.copyFrom(b.getExtraData())) - .setHash(ByteString.copyFrom(b.getHash())) - .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) - .setMinerAddress(ByteString.copyFrom(b.getCoinbase().toBytes())) - .setNonce(ByteString.copyFrom(b.getNonce())) - .setNrgConsumed(b.getNrgConsumed()) - .setNrgLimit(b.getNrgLimit()) - .setParentHash(ByteString.copyFrom(b.getParentHash())) - .setTimestamp(b.getTimestamp()) - .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) - .setReceiptTrieRoot(ByteString.copyFrom(b.getReceiptsRoot())) - .setStateRoot(ByteString.copyFrom(b.getStateRoot())) - .setSize(b.getEncoded().length) - .setSolution(ByteString.copyFrom(b.getHeader().getSolution())) - .setTotalDifficulty(ByteString.copyFrom(blk.getValue().toByteArray())) - .build(); - }).collect(Collectors.toList()); + List bs = + blks.parallelStream() + .filter(Objects::nonNull) + .map( + blk -> { + AionBlock b = blk.getKey(); + + return Message.t_Block + .newBuilder() + .setBlockNumber(b.getNumber()) + .setDifficulty(ByteString.copyFrom(b.getDifficulty())) + .setExtraData(ByteString.copyFrom(b.getExtraData())) + .setHash(ByteString.copyFrom(b.getHash())) + .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) + .setMinerAddress( + ByteString.copyFrom(b.getCoinbase().toBytes())) + .setNonce(ByteString.copyFrom(b.getNonce())) + .setNrgConsumed(b.getNrgConsumed()) + .setNrgLimit(b.getNrgLimit()) + .setParentHash(ByteString.copyFrom(b.getParentHash())) + .setTimestamp(b.getTimestamp()) + .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) + .setReceiptTrieRoot( + ByteString.copyFrom(b.getReceiptsRoot())) + .setStateRoot(ByteString.copyFrom(b.getStateRoot())) + .setSize(b.getEncoded().length) + .setSolution( + ByteString.copyFrom( + b.getHeader().getSolution())) + .setTotalDifficulty( + ByteString.copyFrom( + blk.getValue().toByteArray())) + .build(); + }) + .collect(Collectors.toList()); return bs; } - private Message.t_BlockDetail.Builder getBlockDetailsObj(AionBlock b, BigInteger td, long blocktime) { - - Message.t_BlockDetail.Builder builder = Message.t_BlockDetail.newBuilder() - .setBlockNumber(b.getNumber()) - .setDifficulty(ByteString.copyFrom(b.getDifficulty())) - .setExtraData(ByteString.copyFrom(b.getExtraData())) - .setHash(ByteString.copyFrom(b.getHash())) - .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) - .setMinerAddress(ByteString.copyFrom(b.getCoinbase().toBytes())) - .setNonce(ByteString.copyFrom(b.getNonce())) - .setNrgConsumed(b.getNrgConsumed()) - .setNrgLimit(b.getNrgLimit()) - .setParentHash(ByteString.copyFrom(b.getParentHash())) - .setTimestamp(b.getTimestamp()) - .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) - .setReceiptTrieRoot(ByteString.copyFrom(b.getReceiptsRoot())) - .setStateRoot(ByteString.copyFrom(b.getStateRoot())) - .setSize(b.getEncoded().length) - .setSolution(ByteString.copyFrom(b.getHeader().getSolution())) - .setTotalDifficulty(ByteString.copyFrom(td.toByteArray())) - .setBlockTime(blocktime); + private Message.t_BlockDetail.Builder getBlockDetailsObj( + AionBlock b, BigInteger td, long blocktime) { + + Message.t_BlockDetail.Builder builder = + Message.t_BlockDetail + .newBuilder() + .setBlockNumber(b.getNumber()) + .setDifficulty(ByteString.copyFrom(b.getDifficulty())) + .setExtraData(ByteString.copyFrom(b.getExtraData())) + .setHash(ByteString.copyFrom(b.getHash())) + .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) + .setMinerAddress(ByteString.copyFrom(b.getCoinbase().toBytes())) + .setNonce(ByteString.copyFrom(b.getNonce())) + .setNrgConsumed(b.getNrgConsumed()) + .setNrgLimit(b.getNrgLimit()) + .setParentHash(ByteString.copyFrom(b.getParentHash())) + .setTimestamp(b.getTimestamp()) + .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) + .setReceiptTrieRoot(ByteString.copyFrom(b.getReceiptsRoot())) + .setStateRoot(ByteString.copyFrom(b.getStateRoot())) + .setSize(b.getEncoded().length) + .setSolution(ByteString.copyFrom(b.getHeader().getSolution())) + .setTotalDifficulty(ByteString.copyFrom(td.toByteArray())) + .setBlockTime(blocktime); return builder; } - private Message.t_TxDetail getTxDetailsObj(AionTransaction t, List _logs, int txIndex, long nrgConsumed, String error) { + private Message.t_TxDetail getTxDetailsObj( + AionTransaction t, List _logs, int txIndex, long nrgConsumed, String error) { - List tles = _logs.parallelStream() - .map(log -> { - List topics = new ArrayList<>(); - for (int i = 0; i < log.getTopics().size(); i++) { - topics.add(TypeConverter.toJsonHex(log.getTopics().get(i))); - } + List tles = + _logs.parallelStream() + .map( + log -> { + List topics = new ArrayList<>(); + for (int i = 0; i < log.getTopics().size(); i++) { + topics.add(TypeConverter.toJsonHex(log.getTopics().get(i))); + } - return Message.t_LgEle.newBuilder() - .setData(ByteString.copyFrom(log.getData())) - .setAddress(ByteString.copyFrom(log.getAddress().toBytes())) - .addAllTopics(topics) - .build(); - }).filter(Objects::nonNull).collect(Collectors.toList()); + return Message.t_LgEle + .newBuilder() + .setData(ByteString.copyFrom(log.getData())) + .setAddress( + ByteString.copyFrom(log.getAddress().toBytes())) + .addAllTopics(topics) + .build(); + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); Address contract = t.getContractAddress(); - Message.t_TxDetail.Builder tdBuilder = Message.t_TxDetail.newBuilder() - .setData(ByteString.copyFrom(t.getData())) - .setTo(ByteString.copyFrom(t.getTo().toBytes())) - .setFrom(ByteString.copyFrom(t.getFrom().toBytes())) - .setNonce(ByteString.copyFrom(t.getNonce())) - .setValue(ByteString.copyFrom(t.getValue())) - .setNrgConsumed(nrgConsumed) - .setNrgPrice(t.getNrgPrice()) - .setTxHash(ByteString.copyFrom(t.getHash())) - .setTxIndex(txIndex) - .setTimestamp(ByteUtil.byteArrayToLong(t.getTimeStamp())) - .setError(error) - .addAllLogs(tles); - - if (contract != null) - tdBuilder.setContract(ByteString.copyFrom(contract.toBytes())); + Message.t_TxDetail.Builder tdBuilder = + Message.t_TxDetail + .newBuilder() + .setData(ByteString.copyFrom(t.getData())) + .setTo(ByteString.copyFrom(t.getTo().toBytes())) + .setFrom(ByteString.copyFrom(t.getFrom().toBytes())) + .setNonce(ByteString.copyFrom(t.getNonce())) + .setValue(ByteString.copyFrom(t.getValue())) + .setNrgConsumed(nrgConsumed) + .setNrgPrice(t.getNrgPrice()) + .setTxHash(ByteString.copyFrom(t.getHash())) + .setTxIndex(txIndex) + .setTimestamp(ByteUtil.byteArrayToLong(t.getTimeStamp())) + .setError(error) + .addAllLogs(tles); - return tdBuilder.build(); + if (contract != null) tdBuilder.setContract(ByteString.copyFrom(contract.toBytes())); + return tdBuilder.build(); } - private String generateBlockSqlStatement(AionBlock b, BigInteger td, long blocktime) { /* create table block_cache( @@ -2038,36 +2683,61 @@ num_transactions bigint(64), block_time bigint(64)); */ String stmt = - b.getNumber()+","+ - - "'"+ByteUtil.toHexString(b.getHash())+"',"+ - "'"+ByteUtil.toHexString(b.getCoinbase().toBytes())+"',"+ - "'"+ByteUtil.toHexString(b.getParentHash())+"',"+ - - "'"+ByteUtil.toHexString(b.getReceiptsRoot())+"',"+ - "'"+ByteUtil.toHexString(b.getStateRoot())+"',"+ - "'"+ByteUtil.toHexString(b.getTxTrieRoot())+"',"+ - - "'"+ByteUtil.toHexString(b.getExtraData())+"',"+ - "'"+ByteUtil.toHexString(b.getNonce())+"',"+ - "'"+ByteUtil.toHexString(b.getLogBloom())+"',"+ - "'"+ByteUtil.toHexString(b.getHeader().getSolution())+"',"+ - - "'"+ByteUtil.toHexString(b.getDifficulty())+"',"+ - "'"+ByteUtil.toHexString(td.toByteArray())+"',"+ - - b.getNrgConsumed()+","+ - b.getNrgLimit()+","+ - b.getEncoded().length+","+ - - b.getTimestamp()+","+ - b.getTransactionsList().size()+","+ - blocktime; + b.getNumber() + + "," + + "'" + + ByteUtil.toHexString(b.getHash()) + + "'," + + "'" + + ByteUtil.toHexString(b.getCoinbase().toBytes()) + + "'," + + "'" + + ByteUtil.toHexString(b.getParentHash()) + + "'," + + "'" + + ByteUtil.toHexString(b.getReceiptsRoot()) + + "'," + + "'" + + ByteUtil.toHexString(b.getStateRoot()) + + "'," + + "'" + + ByteUtil.toHexString(b.getTxTrieRoot()) + + "'," + + "'" + + ByteUtil.toHexString(b.getExtraData()) + + "'," + + "'" + + ByteUtil.toHexString(b.getNonce()) + + "'," + + "'" + + ByteUtil.toHexString(b.getLogBloom()) + + "'," + + "'" + + ByteUtil.toHexString(b.getHeader().getSolution()) + + "'," + + "'" + + ByteUtil.toHexString(b.getDifficulty()) + + "'," + + "'" + + ByteUtil.toHexString(td.toByteArray()) + + "'," + + b.getNrgConsumed() + + "," + + b.getNrgLimit() + + "," + + b.getEncoded().length + + "," + + b.getTimestamp() + + "," + + b.getTransactionsList().size() + + "," + + blocktime; return stmt; } - private String generateTransactionSqlStatement(AionBlock b, AionTransaction t, List _logs, int txIndex, long nrgConsumed) { + private String generateTransactionSqlStatement( + AionBlock b, AionTransaction t, List _logs, int txIndex, long nrgConsumed) { JSONArray logs = new JSONArray(); for (Log l : _logs) { JSONArray log = new JSONArray(); @@ -2108,97 +2778,226 @@ block_timestamp bigint(64), */ String stmt = - "'"+ByteUtil.toHexString(t.getHash())+"',"+ - "'"+ByteUtil.toHexString(b.getHash())+"',"+ - - b.getNumber()+","+ - txIndex+","+ - - "'"+ByteUtil.toHexString(t.getFrom().toBytes())+"',"+ - "'"+ByteUtil.toHexString(t.getTo().toBytes())+"',"+ - - nrgConsumed+","+ - t.getNrgPrice()+","+ - - ByteUtil.byteArrayToLong(t.getTimeStamp())+","+ - b.getTimestamp()+","+ - - "'"+ByteUtil.toHexString(t.getValue())+"',"+ - "'"+logs.toString()+"',"+ - - "'"+ByteUtil.toHexString(t.getData())+"',"+ - "'"+ByteUtil.toHexString(t.getNonce())+"'"; + "'" + + ByteUtil.toHexString(t.getHash()) + + "'," + + "'" + + ByteUtil.toHexString(b.getHash()) + + "'," + + b.getNumber() + + "," + + txIndex + + "," + + "'" + + ByteUtil.toHexString(t.getFrom().toBytes()) + + "'," + + "'" + + ByteUtil.toHexString(t.getTo().toBytes()) + + "'," + + nrgConsumed + + "," + + t.getNrgPrice() + + "," + + ByteUtil.byteArrayToLong(t.getTimeStamp()) + + "," + + b.getTimestamp() + + "," + + "'" + + ByteUtil.toHexString(t.getValue()) + + "'," + + "'" + + logs.toString() + + "'," + + "'" + + ByteUtil.toHexString(t.getData()) + + "'," + + "'" + + ByteUtil.toHexString(t.getNonce()) + + "'"; return stmt; } - private List getRsp_getBlockDetails(List> blks) { - List bds = blks.parallelStream().filter(Objects::nonNull).map(blk -> { - AionBlock b = blk.getKey(); - Message.t_BlockDetail.Builder builder = Message.t_BlockDetail.newBuilder() - .setBlockNumber(b.getNumber()) - .setDifficulty(ByteString.copyFrom(b.getDifficulty())) - .setExtraData(ByteString.copyFrom(b.getExtraData())) - .setHash(ByteString.copyFrom(b.getHash())) - .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) - .setMinerAddress(ByteString.copyFrom(b.getCoinbase().toBytes())) - .setNonce(ByteString.copyFrom(b.getNonce())) - .setNrgConsumed(b.getNrgConsumed()) - .setNrgLimit(b.getNrgLimit()) - .setParentHash(ByteString.copyFrom(b.getParentHash())) - .setTimestamp(b.getTimestamp()) - .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) - .setReceiptTrieRoot(ByteString.copyFrom(b.getReceiptsRoot())) - .setStateRoot(ByteString.copyFrom(b.getStateRoot())) - .setSize(b.getEncoded().length) - .setSolution(ByteString.copyFrom(b.getHeader().getSolution())) - .setTotalDifficulty(ByteString.copyFrom(blk.getValue().toByteArray())); - - List txs = b.getTransactionsList(); - - List tds = txs.parallelStream().filter(Objects::nonNull).map((AionTransaction tx) -> { - AionTxInfo ti = ((AionBlockchainImpl) this.ac.getAionHub().getBlockchain()).getTransactionInfoLite(tx.getHash(), b.getHash()); - - List tles = ti.getReceipt().getLogInfoList().parallelStream() - .map(log -> { - List topics = new ArrayList<>(); - for (int i = 0; i < log.getTopics().size(); i++) { - topics.add(TypeConverter.toJsonHex(log.getTopics().get(i))); - } - - return Message.t_LgEle.newBuilder() - .setData(ByteString.copyFrom(log.getData())) - .setAddress(ByteString.copyFrom(log.getAddress().toBytes())) - .addAllTopics(topics) - .build(); - }).filter(Objects::nonNull).collect(Collectors.toList()); - - Message.t_TxDetail.Builder tdBuilder = Message.t_TxDetail.newBuilder() - .setData(ByteString.copyFrom(tx.getData())) - .setTo(ByteString.copyFrom(tx.getTo().toBytes())) - .setFrom(ByteString.copyFrom(tx.getFrom().toBytes())) - .setNonce(ByteString.copyFrom(tx.getNonce())) - .setValue(ByteString.copyFrom(tx.getValue())) - .setNrgConsumed(ti.getReceipt().getEnergyUsed()) - .setNrgPrice(tx.getNrgPrice()) - .setTxHash(ByteString.copyFrom(tx.getHash())) - .setTxIndex(ti.getIndex()) - .addAllLogs(tles); - - return tdBuilder.build(); - }).filter(Objects::nonNull).collect(Collectors.toList()); - - return builder.addAllTx(tds).build(); - }).filter(Objects::nonNull).collect(Collectors.toList()); + private List getRsp_getBlockDetails( + List> blks) { + List bds = + blks.parallelStream() + .filter(Objects::nonNull) + .map( + blk -> { + AionBlock b = blk.getKey(); + Message.t_BlockDetail.Builder builder = + Message.t_BlockDetail + .newBuilder() + .setBlockNumber(b.getNumber()) + .setDifficulty( + ByteString.copyFrom(b.getDifficulty())) + .setExtraData( + ByteString.copyFrom(b.getExtraData())) + .setHash(ByteString.copyFrom(b.getHash())) + .setLogsBloom( + ByteString.copyFrom(b.getLogBloom())) + .setMinerAddress( + ByteString.copyFrom( + b.getCoinbase().toBytes())) + .setNonce(ByteString.copyFrom(b.getNonce())) + .setNrgConsumed(b.getNrgConsumed()) + .setNrgLimit(b.getNrgLimit()) + .setParentHash( + ByteString.copyFrom(b.getParentHash())) + .setTimestamp(b.getTimestamp()) + .setTxTrieRoot( + ByteString.copyFrom(b.getTxTrieRoot())) + .setReceiptTrieRoot( + ByteString.copyFrom( + b.getReceiptsRoot())) + .setStateRoot( + ByteString.copyFrom(b.getStateRoot())) + .setSize(b.getEncoded().length) + .setSolution( + ByteString.copyFrom( + b.getHeader().getSolution())) + .setTotalDifficulty( + ByteString.copyFrom( + blk.getValue().toByteArray())); + + List txs = b.getTransactionsList(); + + List tds = + txs.parallelStream() + .filter(Objects::nonNull) + .map( + (AionTransaction tx) -> { + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx + .getHash(), + b + .getHash()); + + List tles = + ti.getReceipt() + .getLogInfoList() + .parallelStream() + .map( + log -> { + List< + String> + topics = + new ArrayList<>(); + for (int + i = + 0; + i + < log.getTopics() + .size(); + i++) { + topics + .add( + TypeConverter + .toJsonHex( + log.getTopics() + .get( + i))); + } + + return Message + .t_LgEle + .newBuilder() + .setData( + ByteString + .copyFrom( + log + .getData())) + .setAddress( + ByteString + .copyFrom( + log.getAddress() + .toBytes())) + .addAllTopics( + topics) + .build(); + }) + .filter( + Objects + ::nonNull) + .collect( + Collectors + .toList()); + + Message.t_TxDetail.Builder + tdBuilder = + Message.t_TxDetail + .newBuilder() + .setData( + ByteString + .copyFrom( + tx + .getData())) + .setTo( + ByteString + .copyFrom( + tx.getTo() + .toBytes())) + .setFrom( + ByteString + .copyFrom( + tx.getFrom() + .toBytes())) + .setNonce( + ByteString + .copyFrom( + tx + .getNonce())) + .setValue( + ByteString + .copyFrom( + tx + .getValue())) + .setNrgConsumed( + ti.getReceipt() + .getEnergyUsed()) + .setNrgPrice( + tx + .getNrgPrice()) + .setTxHash( + ByteString + .copyFrom( + tx + .getHash())) + .setTxIndex( + ti + .getIndex()) + .addAllLogs( + tles); + + return tdBuilder.build(); + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); + + return builder.addAllTx(tds).build(); + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); return bds; } - // all or nothing. if any block from list is not found, unchecked exception gets thrown by Map.entry() + // all or nothing. if any block from list is not found, unchecked exception gets thrown by + // Map.entry() // causes this function to return in Exception - private List> getBlkAndDifficultyForBlkNumList(List blkNum) { + private List> getBlkAndDifficultyForBlkNumList( + List blkNum) { return blkNum.parallelStream() - .map(n -> { return getBlockWithTotalDifficulty(n); }) + .map( + n -> { + return getBlockWithTotalDifficulty(n); + }) .collect(Collectors.toList()); } @@ -2226,18 +3025,22 @@ public Map getPendingReceipts() { return this.pendingReceipts; } - @Override public BlockingQueue getPendingStatus() { + @Override + public BlockingQueue getPendingStatus() { return this.pendingStatus; } - @Override public BlockingQueue getTxWait() { + @Override + public BlockingQueue getTxWait() { return this.txWait; } @Override public byte[] parseMsgReq(byte[] request, byte[] msgHash) { - int headerLen = msgHash == null ? this.getApiHeaderLen() : this.getApiHeaderLen() + msgHash.length; - return ByteBuffer.allocate(request.length - headerLen).put(request, headerLen, request.length - headerLen) + int headerLen = + msgHash == null ? this.getApiHeaderLen() : this.getApiHeaderLen() + msgHash.length; + return ByteBuffer.allocate(request.length - headerLen) + .put(request, headerLen, request.length - headerLen) .array(); } } diff --git a/modApiServer/src/org/aion/api/server/pb/Message.java b/modApiServer/src/org/aion/api/server/pb/Message.java index d9df38fa08..7b2efb2c31 100644 --- a/modApiServer/src/org/aion/api/server/pb/Message.java +++ b/modApiServer/src/org/aion/api/server/pb/Message.java @@ -4,73041 +4,70896 @@ package org.aion.api.server.pb; public final class Message { - private Message() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code org.aion.api.server.pb.Servs} - */ - public enum Servs - implements com.google.protobuf.ProtocolMessageEnum { - /** - * s_hb = 0; - */ - s_hb(0), - /** - * s_admin = 1; - */ - s_admin(1), - /** - * s_chain = 2; - */ - s_chain(2), - /** - * s_account = 3; - */ - s_account(3), - /** - * s_tx = 4; - */ - s_tx(4), - /** - * s_net = 5; - */ - s_net(5), - /** - * s_mine = 6; - */ - s_mine(6), - /** - * s_privilege = 7; - */ - s_privilege(7), - /** - * s_wallet = 8; - */ - s_wallet(8), - /** - * s_NA = 9; - */ - s_NA(9), - UNRECOGNIZED(-1), - ; - - /** - * s_hb = 0; - */ - public static final int s_hb_VALUE = 0; - /** - * s_admin = 1; - */ - public static final int s_admin_VALUE = 1; - /** - * s_chain = 2; - */ - public static final int s_chain_VALUE = 2; - /** - * s_account = 3; - */ - public static final int s_account_VALUE = 3; - /** - * s_tx = 4; - */ - public static final int s_tx_VALUE = 4; - /** - * s_net = 5; - */ - public static final int s_net_VALUE = 5; - /** - * s_mine = 6; - */ - public static final int s_mine_VALUE = 6; - /** - * s_privilege = 7; - */ - public static final int s_privilege_VALUE = 7; - /** - * s_wallet = 8; - */ - public static final int s_wallet_VALUE = 8; - /** - * s_NA = 9; - */ - public static final int s_NA_VALUE = 9; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } + private Message() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + /** Protobuf enum {@code org.aion.api.server.pb.Servs} */ + public enum Servs implements com.google.protobuf.ProtocolMessageEnum { + /** s_hb = 0; */ + s_hb(0), + /** s_admin = 1; */ + s_admin(1), + /** s_chain = 2; */ + s_chain(2), + /** s_account = 3; */ + s_account(3), + /** s_tx = 4; */ + s_tx(4), + /** s_net = 5; */ + s_net(5), + /** s_mine = 6; */ + s_mine(6), + /** s_privilege = 7; */ + s_privilege(7), + /** s_wallet = 8; */ + s_wallet(8), + /** s_NA = 9; */ + s_NA(9), + UNRECOGNIZED(-1), + ; + + /** s_hb = 0; */ + public static final int s_hb_VALUE = 0; + /** s_admin = 1; */ + public static final int s_admin_VALUE = 1; + /** s_chain = 2; */ + public static final int s_chain_VALUE = 2; + /** s_account = 3; */ + public static final int s_account_VALUE = 3; + /** s_tx = 4; */ + public static final int s_tx_VALUE = 4; + /** s_net = 5; */ + public static final int s_net_VALUE = 5; + /** s_mine = 6; */ + public static final int s_mine_VALUE = 6; + /** s_privilege = 7; */ + public static final int s_privilege_VALUE = 7; + /** s_wallet = 8; */ + public static final int s_wallet_VALUE = 8; + /** s_NA = 9; */ + public static final int s_NA_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Servs valueOf(int value) { + return forNumber(value); + } + + public static Servs forNumber(int value) { + switch (value) { + case 0: + return s_hb; + case 1: + return s_admin; + case 2: + return s_chain; + case 3: + return s_account; + case 4: + return s_tx; + case 5: + return s_net; + case 6: + return s_mine; + case 7: + return s_privilege; + case 8: + return s_wallet; + case 9: + return s_NA; + default: + return null; + } + } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Servs valueOf(int value) { - return forNumber(value); - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - public static Servs forNumber(int value) { - switch (value) { - case 0: return s_hb; - case 1: return s_admin; - case 2: return s_chain; - case 3: return s_account; - case 4: return s_tx; - case 5: return s_net; - case 6: return s_mine; - case 7: return s_privilege; - case 8: return s_wallet; - case 9: return s_NA; - default: return null; - } - } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Servs findValueByNumber(int number) { + return Servs.forNumber(number); + } + }; - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Servs> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Servs findValueByNumber(int number) { - return Servs.forNumber(number); - } - }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(0); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - private static final Servs[] VALUES = values(); - - public static Servs valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(0); + } - private final int value; + private static final Servs[] VALUES = values(); - private Servs(int value) { - this.value = value; - } + public static Servs valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Servs(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Servs) + } + + /** Protobuf enum {@code org.aion.api.server.pb.Funcs} */ + public enum Funcs implements com.google.protobuf.ProtocolMessageEnum { + /** f_protocolVersion = 0; */ + f_protocolVersion(0), + /** f_minerAddress = 1; */ + f_minerAddress(1), + /** f_accounts = 2; */ + f_accounts(2), + /** f_blockNumber = 3; */ + f_blockNumber(3), + /** f_getBalance = 4; */ + f_getBalance(4), + /** f_getStorageAt = 5; */ + f_getStorageAt(5), + /** f_unlockAccount = 6; */ + f_unlockAccount(6), + /** f_sendTransaction = 7; */ + f_sendTransaction(7), + /** f_getTransactionByHash = 8; */ + f_getTransactionByHash(8), + /** f_compile = 9; */ + f_compile(9), + /** f_contractDeploy = 10; */ + f_contractDeploy(10), + /** f_getTransactionCount = 11; */ + f_getTransactionCount(11), + /** f_getBlockTransactionCountByHash = 12; */ + f_getBlockTransactionCountByHash(12), + /** f_getBlockTransactionCountByNumber = 13; */ + f_getBlockTransactionCountByNumber(13), + /** f_getCode = 14; */ + f_getCode(14), + /** f_call = 15; */ + f_call(15), + /** f_getBlockByHash = 16; */ + f_getBlockByHash(16), + /** f_getBlockByNumber = 17; */ + f_getBlockByNumber(17), + /** f_getTransactionByBlockHashAndIndex = 18; */ + f_getTransactionByBlockHashAndIndex(18), + /** f_getTransactionByBlockNumberAndIndex = 19; */ + f_getTransactionByBlockNumberAndIndex(19), + /** f_getTransactionReceipt = 20; */ + f_getTransactionReceipt(20), + /** f_getCompilers = 21; */ + f_getCompilers(21), + /** f_compileSolidity = 22; */ + f_compileSolidity(22), + /** f_getWork = 23; */ + f_getWork(23), + /** f_submitWork = 24; */ + f_submitWork(24), + /** f_fetchQueuedTransactions = 25; */ + f_fetchQueuedTransactions(25), + /** f_signedTransaction = 26; */ + f_signedTransaction(26), + /** f_rawTransaction = 27; */ + f_rawTransaction(27), + /** f_estimateNrg = 28; */ + f_estimateNrg(28), + /** f_mining = 29; */ + f_mining(29), + /** f_hashrate = 30; */ + f_hashrate(30), + /** f_getActiveNodes = 31; */ + f_getActiveNodes(31), + /** f_getSolcVersion = 32; */ + f_getSolcVersion(32), + /** f_isSyncing = 33; */ + f_isSyncing(33), + /** f_syncInfo = 34; */ + f_syncInfo(34), + /** f_getSystemInfo = 35; */ + f_getSystemInfo(35), + /** f_eventRegister = 36; */ + f_eventRegister(36), + /** f_eventDeregister = 37; */ + f_eventDeregister(37), + /** f_accountCreate = 38; */ + f_accountCreate(38), + /** f_accountLock = 39; */ + f_accountLock(39), + /** f_userPrivilege = 40; */ + f_userPrivilege(40), + /** f_eventQuery = 41; */ + f_eventQuery(41), + /** f_importAccounts = 42; */ + f_importAccounts(42), + /** f_exportAccounts = 43; */ + f_exportAccounts(43), + /** f_getBlockHeaderByNumber = 44; */ + f_getBlockHeaderByNumber(44), + /** f_getBlockHeaderByHash = 45; */ + f_getBlockHeaderByHash(45), + /** f_getCurrentTotalDifficulty = 46; */ + f_getCurrentTotalDifficulty(46), + /** f_getStaticNodes = 47; */ + f_getStaticNodes(47), + /** f_getBlockDetailsByNumber = 48; */ + f_getBlockDetailsByNumber(48), + /** f_getBlockDetailsByLatest = 49; */ + f_getBlockDetailsByLatest(49), + /** f_getBlocksByLatest = 50; */ + f_getBlocksByLatest(50), + /** f_getAccountDetailsByAddressList = 51; */ + f_getAccountDetailsByAddressList(51), + /** f_backupAccounts = 52; */ + f_backupAccounts(52), + /** f_NA = 53; */ + f_NA(53), + /** f_getBlockSqlByRange = 54; */ + f_getBlockSqlByRange(54), + /** f_getBlockDetailsByRange = 55; */ + f_getBlockDetailsByRange(55), + /** f_getNonce = 56; */ + f_getNonce(56), + /** f_getNrgPrice = 57; */ + f_getNrgPrice(57), + UNRECOGNIZED(-1), + ; + + /** f_protocolVersion = 0; */ + public static final int f_protocolVersion_VALUE = 0; + /** f_minerAddress = 1; */ + public static final int f_minerAddress_VALUE = 1; + /** f_accounts = 2; */ + public static final int f_accounts_VALUE = 2; + /** f_blockNumber = 3; */ + public static final int f_blockNumber_VALUE = 3; + /** f_getBalance = 4; */ + public static final int f_getBalance_VALUE = 4; + /** f_getStorageAt = 5; */ + public static final int f_getStorageAt_VALUE = 5; + /** f_unlockAccount = 6; */ + public static final int f_unlockAccount_VALUE = 6; + /** f_sendTransaction = 7; */ + public static final int f_sendTransaction_VALUE = 7; + /** f_getTransactionByHash = 8; */ + public static final int f_getTransactionByHash_VALUE = 8; + /** f_compile = 9; */ + public static final int f_compile_VALUE = 9; + /** f_contractDeploy = 10; */ + public static final int f_contractDeploy_VALUE = 10; + /** f_getTransactionCount = 11; */ + public static final int f_getTransactionCount_VALUE = 11; + /** f_getBlockTransactionCountByHash = 12; */ + public static final int f_getBlockTransactionCountByHash_VALUE = 12; + /** f_getBlockTransactionCountByNumber = 13; */ + public static final int f_getBlockTransactionCountByNumber_VALUE = 13; + /** f_getCode = 14; */ + public static final int f_getCode_VALUE = 14; + /** f_call = 15; */ + public static final int f_call_VALUE = 15; + /** f_getBlockByHash = 16; */ + public static final int f_getBlockByHash_VALUE = 16; + /** f_getBlockByNumber = 17; */ + public static final int f_getBlockByNumber_VALUE = 17; + /** f_getTransactionByBlockHashAndIndex = 18; */ + public static final int f_getTransactionByBlockHashAndIndex_VALUE = 18; + /** f_getTransactionByBlockNumberAndIndex = 19; */ + public static final int f_getTransactionByBlockNumberAndIndex_VALUE = 19; + /** f_getTransactionReceipt = 20; */ + public static final int f_getTransactionReceipt_VALUE = 20; + /** f_getCompilers = 21; */ + public static final int f_getCompilers_VALUE = 21; + /** f_compileSolidity = 22; */ + public static final int f_compileSolidity_VALUE = 22; + /** f_getWork = 23; */ + public static final int f_getWork_VALUE = 23; + /** f_submitWork = 24; */ + public static final int f_submitWork_VALUE = 24; + /** f_fetchQueuedTransactions = 25; */ + public static final int f_fetchQueuedTransactions_VALUE = 25; + /** f_signedTransaction = 26; */ + public static final int f_signedTransaction_VALUE = 26; + /** f_rawTransaction = 27; */ + public static final int f_rawTransaction_VALUE = 27; + /** f_estimateNrg = 28; */ + public static final int f_estimateNrg_VALUE = 28; + /** f_mining = 29; */ + public static final int f_mining_VALUE = 29; + /** f_hashrate = 30; */ + public static final int f_hashrate_VALUE = 30; + /** f_getActiveNodes = 31; */ + public static final int f_getActiveNodes_VALUE = 31; + /** f_getSolcVersion = 32; */ + public static final int f_getSolcVersion_VALUE = 32; + /** f_isSyncing = 33; */ + public static final int f_isSyncing_VALUE = 33; + /** f_syncInfo = 34; */ + public static final int f_syncInfo_VALUE = 34; + /** f_getSystemInfo = 35; */ + public static final int f_getSystemInfo_VALUE = 35; + /** f_eventRegister = 36; */ + public static final int f_eventRegister_VALUE = 36; + /** f_eventDeregister = 37; */ + public static final int f_eventDeregister_VALUE = 37; + /** f_accountCreate = 38; */ + public static final int f_accountCreate_VALUE = 38; + /** f_accountLock = 39; */ + public static final int f_accountLock_VALUE = 39; + /** f_userPrivilege = 40; */ + public static final int f_userPrivilege_VALUE = 40; + /** f_eventQuery = 41; */ + public static final int f_eventQuery_VALUE = 41; + /** f_importAccounts = 42; */ + public static final int f_importAccounts_VALUE = 42; + /** f_exportAccounts = 43; */ + public static final int f_exportAccounts_VALUE = 43; + /** f_getBlockHeaderByNumber = 44; */ + public static final int f_getBlockHeaderByNumber_VALUE = 44; + /** f_getBlockHeaderByHash = 45; */ + public static final int f_getBlockHeaderByHash_VALUE = 45; + /** f_getCurrentTotalDifficulty = 46; */ + public static final int f_getCurrentTotalDifficulty_VALUE = 46; + /** f_getStaticNodes = 47; */ + public static final int f_getStaticNodes_VALUE = 47; + /** f_getBlockDetailsByNumber = 48; */ + public static final int f_getBlockDetailsByNumber_VALUE = 48; + /** f_getBlockDetailsByLatest = 49; */ + public static final int f_getBlockDetailsByLatest_VALUE = 49; + /** f_getBlocksByLatest = 50; */ + public static final int f_getBlocksByLatest_VALUE = 50; + /** f_getAccountDetailsByAddressList = 51; */ + public static final int f_getAccountDetailsByAddressList_VALUE = 51; + /** f_backupAccounts = 52; */ + public static final int f_backupAccounts_VALUE = 52; + /** f_NA = 53; */ + public static final int f_NA_VALUE = 53; + /** f_getBlockSqlByRange = 54; */ + public static final int f_getBlockSqlByRange_VALUE = 54; + /** f_getBlockDetailsByRange = 55; */ + public static final int f_getBlockDetailsByRange_VALUE = 55; + /** f_getNonce = 56; */ + public static final int f_getNonce_VALUE = 56; + /** f_getNrgPrice = 57; */ + public static final int f_getNrgPrice_VALUE = 57; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Funcs valueOf(int value) { + return forNumber(value); + } + + public static Funcs forNumber(int value) { + switch (value) { + case 0: + return f_protocolVersion; + case 1: + return f_minerAddress; + case 2: + return f_accounts; + case 3: + return f_blockNumber; + case 4: + return f_getBalance; + case 5: + return f_getStorageAt; + case 6: + return f_unlockAccount; + case 7: + return f_sendTransaction; + case 8: + return f_getTransactionByHash; + case 9: + return f_compile; + case 10: + return f_contractDeploy; + case 11: + return f_getTransactionCount; + case 12: + return f_getBlockTransactionCountByHash; + case 13: + return f_getBlockTransactionCountByNumber; + case 14: + return f_getCode; + case 15: + return f_call; + case 16: + return f_getBlockByHash; + case 17: + return f_getBlockByNumber; + case 18: + return f_getTransactionByBlockHashAndIndex; + case 19: + return f_getTransactionByBlockNumberAndIndex; + case 20: + return f_getTransactionReceipt; + case 21: + return f_getCompilers; + case 22: + return f_compileSolidity; + case 23: + return f_getWork; + case 24: + return f_submitWork; + case 25: + return f_fetchQueuedTransactions; + case 26: + return f_signedTransaction; + case 27: + return f_rawTransaction; + case 28: + return f_estimateNrg; + case 29: + return f_mining; + case 30: + return f_hashrate; + case 31: + return f_getActiveNodes; + case 32: + return f_getSolcVersion; + case 33: + return f_isSyncing; + case 34: + return f_syncInfo; + case 35: + return f_getSystemInfo; + case 36: + return f_eventRegister; + case 37: + return f_eventDeregister; + case 38: + return f_accountCreate; + case 39: + return f_accountLock; + case 40: + return f_userPrivilege; + case 41: + return f_eventQuery; + case 42: + return f_importAccounts; + case 43: + return f_exportAccounts; + case 44: + return f_getBlockHeaderByNumber; + case 45: + return f_getBlockHeaderByHash; + case 46: + return f_getCurrentTotalDifficulty; + case 47: + return f_getStaticNodes; + case 48: + return f_getBlockDetailsByNumber; + case 49: + return f_getBlockDetailsByLatest; + case 50: + return f_getBlocksByLatest; + case 51: + return f_getAccountDetailsByAddressList; + case 52: + return f_backupAccounts; + case 53: + return f_NA; + case 54: + return f_getBlockSqlByRange; + case 55: + return f_getBlockDetailsByRange; + case 56: + return f_getNonce; + case 57: + return f_getNrgPrice; + default: + return null; + } + } - // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Servs) - } - - /** - * Protobuf enum {@code org.aion.api.server.pb.Funcs} - */ - public enum Funcs - implements com.google.protobuf.ProtocolMessageEnum { - /** - * f_protocolVersion = 0; - */ - f_protocolVersion(0), - /** - * f_minerAddress = 1; - */ - f_minerAddress(1), - /** - * f_accounts = 2; - */ - f_accounts(2), - /** - * f_blockNumber = 3; - */ - f_blockNumber(3), - /** - * f_getBalance = 4; - */ - f_getBalance(4), - /** - * f_getStorageAt = 5; - */ - f_getStorageAt(5), - /** - * f_unlockAccount = 6; - */ - f_unlockAccount(6), - /** - * f_sendTransaction = 7; - */ - f_sendTransaction(7), - /** - * f_getTransactionByHash = 8; - */ - f_getTransactionByHash(8), - /** - * f_compile = 9; - */ - f_compile(9), - /** - * f_contractDeploy = 10; - */ - f_contractDeploy(10), - /** - * f_getTransactionCount = 11; - */ - f_getTransactionCount(11), - /** - * f_getBlockTransactionCountByHash = 12; - */ - f_getBlockTransactionCountByHash(12), - /** - * f_getBlockTransactionCountByNumber = 13; - */ - f_getBlockTransactionCountByNumber(13), - /** - * f_getCode = 14; - */ - f_getCode(14), - /** - * f_call = 15; - */ - f_call(15), - /** - * f_getBlockByHash = 16; - */ - f_getBlockByHash(16), - /** - * f_getBlockByNumber = 17; - */ - f_getBlockByNumber(17), - /** - * f_getTransactionByBlockHashAndIndex = 18; - */ - f_getTransactionByBlockHashAndIndex(18), - /** - * f_getTransactionByBlockNumberAndIndex = 19; - */ - f_getTransactionByBlockNumberAndIndex(19), - /** - * f_getTransactionReceipt = 20; - */ - f_getTransactionReceipt(20), - /** - * f_getCompilers = 21; - */ - f_getCompilers(21), - /** - * f_compileSolidity = 22; - */ - f_compileSolidity(22), - /** - * f_getWork = 23; - */ - f_getWork(23), - /** - * f_submitWork = 24; - */ - f_submitWork(24), - /** - * f_fetchQueuedTransactions = 25; - */ - f_fetchQueuedTransactions(25), - /** - * f_signedTransaction = 26; - */ - f_signedTransaction(26), - /** - * f_rawTransaction = 27; - */ - f_rawTransaction(27), - /** - * f_estimateNrg = 28; - */ - f_estimateNrg(28), - /** - * f_mining = 29; - */ - f_mining(29), - /** - * f_hashrate = 30; - */ - f_hashrate(30), - /** - * f_getActiveNodes = 31; - */ - f_getActiveNodes(31), - /** - * f_getSolcVersion = 32; - */ - f_getSolcVersion(32), - /** - * f_isSyncing = 33; - */ - f_isSyncing(33), - /** - * f_syncInfo = 34; - */ - f_syncInfo(34), - /** - * f_getSystemInfo = 35; - */ - f_getSystemInfo(35), - /** - * f_eventRegister = 36; - */ - f_eventRegister(36), - /** - * f_eventDeregister = 37; - */ - f_eventDeregister(37), - /** - * f_accountCreate = 38; - */ - f_accountCreate(38), - /** - * f_accountLock = 39; - */ - f_accountLock(39), - /** - * f_userPrivilege = 40; - */ - f_userPrivilege(40), - /** - * f_eventQuery = 41; - */ - f_eventQuery(41), - /** - * f_importAccounts = 42; - */ - f_importAccounts(42), - /** - * f_exportAccounts = 43; - */ - f_exportAccounts(43), - /** - * f_getBlockHeaderByNumber = 44; - */ - f_getBlockHeaderByNumber(44), - /** - * f_getBlockHeaderByHash = 45; - */ - f_getBlockHeaderByHash(45), - /** - * f_getCurrentTotalDifficulty = 46; - */ - f_getCurrentTotalDifficulty(46), - /** - * f_getStaticNodes = 47; - */ - f_getStaticNodes(47), - /** - * f_getBlockDetailsByNumber = 48; - */ - f_getBlockDetailsByNumber(48), - /** - * f_getBlockDetailsByLatest = 49; - */ - f_getBlockDetailsByLatest(49), - /** - * f_getBlocksByLatest = 50; - */ - f_getBlocksByLatest(50), - /** - * f_getAccountDetailsByAddressList = 51; - */ - f_getAccountDetailsByAddressList(51), - /** - * f_backupAccounts = 52; - */ - f_backupAccounts(52), - /** - * f_NA = 53; - */ - f_NA(53), - /** - * f_getBlockSqlByRange = 54; - */ - f_getBlockSqlByRange(54), - /** - * f_getBlockDetailsByRange = 55; - */ - f_getBlockDetailsByRange(55), - /** - * f_getNonce = 56; - */ - f_getNonce(56), - /** - * f_getNrgPrice = 57; - */ - f_getNrgPrice(57), - UNRECOGNIZED(-1), - ; - - /** - * f_protocolVersion = 0; - */ - public static final int f_protocolVersion_VALUE = 0; - /** - * f_minerAddress = 1; - */ - public static final int f_minerAddress_VALUE = 1; - /** - * f_accounts = 2; - */ - public static final int f_accounts_VALUE = 2; - /** - * f_blockNumber = 3; - */ - public static final int f_blockNumber_VALUE = 3; - /** - * f_getBalance = 4; - */ - public static final int f_getBalance_VALUE = 4; - /** - * f_getStorageAt = 5; - */ - public static final int f_getStorageAt_VALUE = 5; - /** - * f_unlockAccount = 6; - */ - public static final int f_unlockAccount_VALUE = 6; - /** - * f_sendTransaction = 7; - */ - public static final int f_sendTransaction_VALUE = 7; - /** - * f_getTransactionByHash = 8; - */ - public static final int f_getTransactionByHash_VALUE = 8; - /** - * f_compile = 9; - */ - public static final int f_compile_VALUE = 9; - /** - * f_contractDeploy = 10; - */ - public static final int f_contractDeploy_VALUE = 10; - /** - * f_getTransactionCount = 11; - */ - public static final int f_getTransactionCount_VALUE = 11; - /** - * f_getBlockTransactionCountByHash = 12; - */ - public static final int f_getBlockTransactionCountByHash_VALUE = 12; - /** - * f_getBlockTransactionCountByNumber = 13; - */ - public static final int f_getBlockTransactionCountByNumber_VALUE = 13; - /** - * f_getCode = 14; - */ - public static final int f_getCode_VALUE = 14; - /** - * f_call = 15; - */ - public static final int f_call_VALUE = 15; - /** - * f_getBlockByHash = 16; - */ - public static final int f_getBlockByHash_VALUE = 16; - /** - * f_getBlockByNumber = 17; - */ - public static final int f_getBlockByNumber_VALUE = 17; - /** - * f_getTransactionByBlockHashAndIndex = 18; - */ - public static final int f_getTransactionByBlockHashAndIndex_VALUE = 18; - /** - * f_getTransactionByBlockNumberAndIndex = 19; - */ - public static final int f_getTransactionByBlockNumberAndIndex_VALUE = 19; - /** - * f_getTransactionReceipt = 20; - */ - public static final int f_getTransactionReceipt_VALUE = 20; - /** - * f_getCompilers = 21; - */ - public static final int f_getCompilers_VALUE = 21; - /** - * f_compileSolidity = 22; - */ - public static final int f_compileSolidity_VALUE = 22; - /** - * f_getWork = 23; - */ - public static final int f_getWork_VALUE = 23; - /** - * f_submitWork = 24; - */ - public static final int f_submitWork_VALUE = 24; - /** - * f_fetchQueuedTransactions = 25; - */ - public static final int f_fetchQueuedTransactions_VALUE = 25; - /** - * f_signedTransaction = 26; - */ - public static final int f_signedTransaction_VALUE = 26; - /** - * f_rawTransaction = 27; - */ - public static final int f_rawTransaction_VALUE = 27; - /** - * f_estimateNrg = 28; - */ - public static final int f_estimateNrg_VALUE = 28; - /** - * f_mining = 29; - */ - public static final int f_mining_VALUE = 29; - /** - * f_hashrate = 30; - */ - public static final int f_hashrate_VALUE = 30; - /** - * f_getActiveNodes = 31; - */ - public static final int f_getActiveNodes_VALUE = 31; - /** - * f_getSolcVersion = 32; - */ - public static final int f_getSolcVersion_VALUE = 32; - /** - * f_isSyncing = 33; - */ - public static final int f_isSyncing_VALUE = 33; - /** - * f_syncInfo = 34; - */ - public static final int f_syncInfo_VALUE = 34; - /** - * f_getSystemInfo = 35; - */ - public static final int f_getSystemInfo_VALUE = 35; - /** - * f_eventRegister = 36; - */ - public static final int f_eventRegister_VALUE = 36; - /** - * f_eventDeregister = 37; - */ - public static final int f_eventDeregister_VALUE = 37; - /** - * f_accountCreate = 38; - */ - public static final int f_accountCreate_VALUE = 38; - /** - * f_accountLock = 39; - */ - public static final int f_accountLock_VALUE = 39; - /** - * f_userPrivilege = 40; - */ - public static final int f_userPrivilege_VALUE = 40; - /** - * f_eventQuery = 41; - */ - public static final int f_eventQuery_VALUE = 41; - /** - * f_importAccounts = 42; - */ - public static final int f_importAccounts_VALUE = 42; - /** - * f_exportAccounts = 43; - */ - public static final int f_exportAccounts_VALUE = 43; - /** - * f_getBlockHeaderByNumber = 44; - */ - public static final int f_getBlockHeaderByNumber_VALUE = 44; - /** - * f_getBlockHeaderByHash = 45; - */ - public static final int f_getBlockHeaderByHash_VALUE = 45; - /** - * f_getCurrentTotalDifficulty = 46; - */ - public static final int f_getCurrentTotalDifficulty_VALUE = 46; - /** - * f_getStaticNodes = 47; - */ - public static final int f_getStaticNodes_VALUE = 47; - /** - * f_getBlockDetailsByNumber = 48; - */ - public static final int f_getBlockDetailsByNumber_VALUE = 48; - /** - * f_getBlockDetailsByLatest = 49; - */ - public static final int f_getBlockDetailsByLatest_VALUE = 49; - /** - * f_getBlocksByLatest = 50; - */ - public static final int f_getBlocksByLatest_VALUE = 50; - /** - * f_getAccountDetailsByAddressList = 51; - */ - public static final int f_getAccountDetailsByAddressList_VALUE = 51; - /** - * f_backupAccounts = 52; - */ - public static final int f_backupAccounts_VALUE = 52; - /** - * f_NA = 53; - */ - public static final int f_NA_VALUE = 53; - /** - * f_getBlockSqlByRange = 54; - */ - public static final int f_getBlockSqlByRange_VALUE = 54; - /** - * f_getBlockDetailsByRange = 55; - */ - public static final int f_getBlockDetailsByRange_VALUE = 55; - /** - * f_getNonce = 56; - */ - public static final int f_getNonce_VALUE = 56; - /** - * f_getNrgPrice = 57; - */ - public static final int f_getNrgPrice_VALUE = 57; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Funcs valueOf(int value) { - return forNumber(value); - } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Funcs findValueByNumber(int number) { + return Funcs.forNumber(number); + } + }; - public static Funcs forNumber(int value) { - switch (value) { - case 0: return f_protocolVersion; - case 1: return f_minerAddress; - case 2: return f_accounts; - case 3: return f_blockNumber; - case 4: return f_getBalance; - case 5: return f_getStorageAt; - case 6: return f_unlockAccount; - case 7: return f_sendTransaction; - case 8: return f_getTransactionByHash; - case 9: return f_compile; - case 10: return f_contractDeploy; - case 11: return f_getTransactionCount; - case 12: return f_getBlockTransactionCountByHash; - case 13: return f_getBlockTransactionCountByNumber; - case 14: return f_getCode; - case 15: return f_call; - case 16: return f_getBlockByHash; - case 17: return f_getBlockByNumber; - case 18: return f_getTransactionByBlockHashAndIndex; - case 19: return f_getTransactionByBlockNumberAndIndex; - case 20: return f_getTransactionReceipt; - case 21: return f_getCompilers; - case 22: return f_compileSolidity; - case 23: return f_getWork; - case 24: return f_submitWork; - case 25: return f_fetchQueuedTransactions; - case 26: return f_signedTransaction; - case 27: return f_rawTransaction; - case 28: return f_estimateNrg; - case 29: return f_mining; - case 30: return f_hashrate; - case 31: return f_getActiveNodes; - case 32: return f_getSolcVersion; - case 33: return f_isSyncing; - case 34: return f_syncInfo; - case 35: return f_getSystemInfo; - case 36: return f_eventRegister; - case 37: return f_eventDeregister; - case 38: return f_accountCreate; - case 39: return f_accountLock; - case 40: return f_userPrivilege; - case 41: return f_eventQuery; - case 42: return f_importAccounts; - case 43: return f_exportAccounts; - case 44: return f_getBlockHeaderByNumber; - case 45: return f_getBlockHeaderByHash; - case 46: return f_getCurrentTotalDifficulty; - case 47: return f_getStaticNodes; - case 48: return f_getBlockDetailsByNumber; - case 49: return f_getBlockDetailsByLatest; - case 50: return f_getBlocksByLatest; - case 51: return f_getAccountDetailsByAddressList; - case 52: return f_backupAccounts; - case 53: return f_NA; - case 54: return f_getBlockSqlByRange; - case 55: return f_getBlockDetailsByRange; - case 56: return f_getNonce; - case 57: return f_getNrgPrice; - default: return null; - } - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Funcs> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Funcs findValueByNumber(int number) { - return Funcs.forNumber(number); - } - }; + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(1); - } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(1); + } - private static final Funcs[] VALUES = values(); - - public static Funcs valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } + private static final Funcs[] VALUES = values(); - private final int value; + public static Funcs valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Funcs(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Funcs) + } + + /** Protobuf enum {@code org.aion.api.server.pb.Retcode} */ + public enum Retcode implements com.google.protobuf.ProtocolMessageEnum { + /** r_fail = 0; */ + r_fail(0), + /** r_success = 1; */ + r_success(1), + /** r_wallet_nullcb = 2; */ + r_wallet_nullcb(2), + /** r_heartbeatReturn = 3; */ + r_heartbeatReturn(3), + /** r_privilegeReturn = 4; */ + r_privilegeReturn(4), + /** r_tx_Init = 100; */ + r_tx_Init(100), + /** r_tx_Recved = 101; */ + r_tx_Recved(101), + /** r_tx_Dropped = 102; */ + r_tx_Dropped(102), + /** r_tx_NewPending = 103; */ + r_tx_NewPending(103), + /** r_tx_Pending = 104; */ + r_tx_Pending(104), + /** r_tx_Included = 105; */ + r_tx_Included(105), + /** r_tx_eventCb = 106; */ + r_tx_eventCb(106), + /** r_NA = 107; */ + r_NA(107), + /** r_fail_header_len = -1; */ + r_fail_header_len(-1), + /** r_fail_service_call = -2; */ + r_fail_service_call(-2), + /** r_fail_function_call = -3; */ + r_fail_function_call(-3), + /** r_fail_function_exception = -4; */ + r_fail_function_exception(-4), + /** r_fail_api_version = -5; */ + r_fail_api_version(-5), + /** r_fail_ct_bytecode = -6; */ + r_fail_ct_bytecode(-6), + /** r_fail_null_rsp = -7; */ + r_fail_null_rsp(-7), + /** r_fail_invalid_addr = -8; */ + r_fail_invalid_addr(-8), + /** r_fail_null_compile_source = -9; */ + r_fail_null_compile_source(-9), + /** r_fail_compile_contract = -10; */ + r_fail_compile_contract(-10), + /** r_fail_sendTx_null_rep = -11; */ + r_fail_sendTx_null_rep(-11), + /** r_fail_getcode_to = -12; */ + r_fail_getcode_to(-12), + /** r_fail_getTxReceipt_null_recp = -13; */ + r_fail_getTxReceipt_null_recp(-13), + /** r_fail_zmqHandler_exception = -14; */ + r_fail_zmqHandler_exception(-14), + /** r_fail_hit_pending_tx_limit = -15; */ + r_fail_hit_pending_tx_limit(-15), + /** r_fail_txqueue_exception = -16; */ + r_fail_txqueue_exception(-16), + /** r_fail_function_arguments = -17; */ + r_fail_function_arguments(-17), + /** r_fail_unsupport_api = -18; */ + r_fail_unsupport_api(-18), + /** r_fail_unknown = -19; */ + r_fail_unknown(-19), + UNRECOGNIZED(-1), + ; + + /** r_fail = 0; */ + public static final int r_fail_VALUE = 0; + /** r_success = 1; */ + public static final int r_success_VALUE = 1; + /** r_wallet_nullcb = 2; */ + public static final int r_wallet_nullcb_VALUE = 2; + /** r_heartbeatReturn = 3; */ + public static final int r_heartbeatReturn_VALUE = 3; + /** r_privilegeReturn = 4; */ + public static final int r_privilegeReturn_VALUE = 4; + /** r_tx_Init = 100; */ + public static final int r_tx_Init_VALUE = 100; + /** r_tx_Recved = 101; */ + public static final int r_tx_Recved_VALUE = 101; + /** r_tx_Dropped = 102; */ + public static final int r_tx_Dropped_VALUE = 102; + /** r_tx_NewPending = 103; */ + public static final int r_tx_NewPending_VALUE = 103; + /** r_tx_Pending = 104; */ + public static final int r_tx_Pending_VALUE = 104; + /** r_tx_Included = 105; */ + public static final int r_tx_Included_VALUE = 105; + /** r_tx_eventCb = 106; */ + public static final int r_tx_eventCb_VALUE = 106; + /** r_NA = 107; */ + public static final int r_NA_VALUE = 107; + /** r_fail_header_len = -1; */ + public static final int r_fail_header_len_VALUE = -1; + /** r_fail_service_call = -2; */ + public static final int r_fail_service_call_VALUE = -2; + /** r_fail_function_call = -3; */ + public static final int r_fail_function_call_VALUE = -3; + /** r_fail_function_exception = -4; */ + public static final int r_fail_function_exception_VALUE = -4; + /** r_fail_api_version = -5; */ + public static final int r_fail_api_version_VALUE = -5; + /** r_fail_ct_bytecode = -6; */ + public static final int r_fail_ct_bytecode_VALUE = -6; + /** r_fail_null_rsp = -7; */ + public static final int r_fail_null_rsp_VALUE = -7; + /** r_fail_invalid_addr = -8; */ + public static final int r_fail_invalid_addr_VALUE = -8; + /** r_fail_null_compile_source = -9; */ + public static final int r_fail_null_compile_source_VALUE = -9; + /** r_fail_compile_contract = -10; */ + public static final int r_fail_compile_contract_VALUE = -10; + /** r_fail_sendTx_null_rep = -11; */ + public static final int r_fail_sendTx_null_rep_VALUE = -11; + /** r_fail_getcode_to = -12; */ + public static final int r_fail_getcode_to_VALUE = -12; + /** r_fail_getTxReceipt_null_recp = -13; */ + public static final int r_fail_getTxReceipt_null_recp_VALUE = -13; + /** r_fail_zmqHandler_exception = -14; */ + public static final int r_fail_zmqHandler_exception_VALUE = -14; + /** r_fail_hit_pending_tx_limit = -15; */ + public static final int r_fail_hit_pending_tx_limit_VALUE = -15; + /** r_fail_txqueue_exception = -16; */ + public static final int r_fail_txqueue_exception_VALUE = -16; + /** r_fail_function_arguments = -17; */ + public static final int r_fail_function_arguments_VALUE = -17; + /** r_fail_unsupport_api = -18; */ + public static final int r_fail_unsupport_api_VALUE = -18; + /** r_fail_unknown = -19; */ + public static final int r_fail_unknown_VALUE = -19; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Retcode valueOf(int value) { + return forNumber(value); + } + + public static Retcode forNumber(int value) { + switch (value) { + case 0: + return r_fail; + case 1: + return r_success; + case 2: + return r_wallet_nullcb; + case 3: + return r_heartbeatReturn; + case 4: + return r_privilegeReturn; + case 100: + return r_tx_Init; + case 101: + return r_tx_Recved; + case 102: + return r_tx_Dropped; + case 103: + return r_tx_NewPending; + case 104: + return r_tx_Pending; + case 105: + return r_tx_Included; + case 106: + return r_tx_eventCb; + case 107: + return r_NA; + case -1: + return r_fail_header_len; + case -2: + return r_fail_service_call; + case -3: + return r_fail_function_call; + case -4: + return r_fail_function_exception; + case -5: + return r_fail_api_version; + case -6: + return r_fail_ct_bytecode; + case -7: + return r_fail_null_rsp; + case -8: + return r_fail_invalid_addr; + case -9: + return r_fail_null_compile_source; + case -10: + return r_fail_compile_contract; + case -11: + return r_fail_sendTx_null_rep; + case -12: + return r_fail_getcode_to; + case -13: + return r_fail_getTxReceipt_null_recp; + case -14: + return r_fail_zmqHandler_exception; + case -15: + return r_fail_hit_pending_tx_limit; + case -16: + return r_fail_txqueue_exception; + case -17: + return r_fail_function_arguments; + case -18: + return r_fail_unsupport_api; + case -19: + return r_fail_unknown; + default: + return null; + } + } - private Funcs(int value) { - this.value = value; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Funcs) - } - - /** - * Protobuf enum {@code org.aion.api.server.pb.Retcode} - */ - public enum Retcode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * r_fail = 0; - */ - r_fail(0), - /** - * r_success = 1; - */ - r_success(1), - /** - * r_wallet_nullcb = 2; - */ - r_wallet_nullcb(2), - /** - * r_heartbeatReturn = 3; - */ - r_heartbeatReturn(3), - /** - * r_privilegeReturn = 4; - */ - r_privilegeReturn(4), - /** - * r_tx_Init = 100; - */ - r_tx_Init(100), - /** - * r_tx_Recved = 101; - */ - r_tx_Recved(101), - /** - * r_tx_Dropped = 102; - */ - r_tx_Dropped(102), - /** - * r_tx_NewPending = 103; - */ - r_tx_NewPending(103), - /** - * r_tx_Pending = 104; - */ - r_tx_Pending(104), - /** - * r_tx_Included = 105; - */ - r_tx_Included(105), - /** - * r_tx_eventCb = 106; - */ - r_tx_eventCb(106), - /** - * r_NA = 107; - */ - r_NA(107), - /** - * r_fail_header_len = -1; - */ - r_fail_header_len(-1), - /** - * r_fail_service_call = -2; - */ - r_fail_service_call(-2), - /** - * r_fail_function_call = -3; - */ - r_fail_function_call(-3), - /** - * r_fail_function_exception = -4; - */ - r_fail_function_exception(-4), - /** - * r_fail_api_version = -5; - */ - r_fail_api_version(-5), - /** - * r_fail_ct_bytecode = -6; - */ - r_fail_ct_bytecode(-6), - /** - * r_fail_null_rsp = -7; - */ - r_fail_null_rsp(-7), - /** - * r_fail_invalid_addr = -8; - */ - r_fail_invalid_addr(-8), - /** - * r_fail_null_compile_source = -9; - */ - r_fail_null_compile_source(-9), - /** - * r_fail_compile_contract = -10; - */ - r_fail_compile_contract(-10), - /** - * r_fail_sendTx_null_rep = -11; - */ - r_fail_sendTx_null_rep(-11), - /** - * r_fail_getcode_to = -12; - */ - r_fail_getcode_to(-12), - /** - * r_fail_getTxReceipt_null_recp = -13; - */ - r_fail_getTxReceipt_null_recp(-13), - /** - * r_fail_zmqHandler_exception = -14; - */ - r_fail_zmqHandler_exception(-14), - /** - * r_fail_hit_pending_tx_limit = -15; - */ - r_fail_hit_pending_tx_limit(-15), - /** - * r_fail_txqueue_exception = -16; - */ - r_fail_txqueue_exception(-16), - /** - * r_fail_function_arguments = -17; - */ - r_fail_function_arguments(-17), - /** - * r_fail_unsupport_api = -18; - */ - r_fail_unsupport_api(-18), - /** - * r_fail_unknown = -19; - */ - r_fail_unknown(-19), - UNRECOGNIZED(-1), - ; - - /** - * r_fail = 0; - */ - public static final int r_fail_VALUE = 0; - /** - * r_success = 1; - */ - public static final int r_success_VALUE = 1; - /** - * r_wallet_nullcb = 2; - */ - public static final int r_wallet_nullcb_VALUE = 2; - /** - * r_heartbeatReturn = 3; - */ - public static final int r_heartbeatReturn_VALUE = 3; - /** - * r_privilegeReturn = 4; - */ - public static final int r_privilegeReturn_VALUE = 4; - /** - * r_tx_Init = 100; - */ - public static final int r_tx_Init_VALUE = 100; - /** - * r_tx_Recved = 101; - */ - public static final int r_tx_Recved_VALUE = 101; - /** - * r_tx_Dropped = 102; - */ - public static final int r_tx_Dropped_VALUE = 102; - /** - * r_tx_NewPending = 103; - */ - public static final int r_tx_NewPending_VALUE = 103; - /** - * r_tx_Pending = 104; - */ - public static final int r_tx_Pending_VALUE = 104; - /** - * r_tx_Included = 105; - */ - public static final int r_tx_Included_VALUE = 105; - /** - * r_tx_eventCb = 106; - */ - public static final int r_tx_eventCb_VALUE = 106; - /** - * r_NA = 107; - */ - public static final int r_NA_VALUE = 107; - /** - * r_fail_header_len = -1; - */ - public static final int r_fail_header_len_VALUE = -1; - /** - * r_fail_service_call = -2; - */ - public static final int r_fail_service_call_VALUE = -2; - /** - * r_fail_function_call = -3; - */ - public static final int r_fail_function_call_VALUE = -3; - /** - * r_fail_function_exception = -4; - */ - public static final int r_fail_function_exception_VALUE = -4; - /** - * r_fail_api_version = -5; - */ - public static final int r_fail_api_version_VALUE = -5; - /** - * r_fail_ct_bytecode = -6; - */ - public static final int r_fail_ct_bytecode_VALUE = -6; - /** - * r_fail_null_rsp = -7; - */ - public static final int r_fail_null_rsp_VALUE = -7; - /** - * r_fail_invalid_addr = -8; - */ - public static final int r_fail_invalid_addr_VALUE = -8; - /** - * r_fail_null_compile_source = -9; - */ - public static final int r_fail_null_compile_source_VALUE = -9; - /** - * r_fail_compile_contract = -10; - */ - public static final int r_fail_compile_contract_VALUE = -10; - /** - * r_fail_sendTx_null_rep = -11; - */ - public static final int r_fail_sendTx_null_rep_VALUE = -11; - /** - * r_fail_getcode_to = -12; - */ - public static final int r_fail_getcode_to_VALUE = -12; - /** - * r_fail_getTxReceipt_null_recp = -13; - */ - public static final int r_fail_getTxReceipt_null_recp_VALUE = -13; - /** - * r_fail_zmqHandler_exception = -14; - */ - public static final int r_fail_zmqHandler_exception_VALUE = -14; - /** - * r_fail_hit_pending_tx_limit = -15; - */ - public static final int r_fail_hit_pending_tx_limit_VALUE = -15; - /** - * r_fail_txqueue_exception = -16; - */ - public static final int r_fail_txqueue_exception_VALUE = -16; - /** - * r_fail_function_arguments = -17; - */ - public static final int r_fail_function_arguments_VALUE = -17; - /** - * r_fail_unsupport_api = -18; - */ - public static final int r_fail_unsupport_api_VALUE = -18; - /** - * r_fail_unknown = -19; - */ - public static final int r_fail_unknown_VALUE = -19; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Retcode findValueByNumber(int number) { + return Retcode.forNumber(number); + } + }; - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Retcode valueOf(int value) { - return forNumber(value); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } - public static Retcode forNumber(int value) { - switch (value) { - case 0: return r_fail; - case 1: return r_success; - case 2: return r_wallet_nullcb; - case 3: return r_heartbeatReturn; - case 4: return r_privilegeReturn; - case 100: return r_tx_Init; - case 101: return r_tx_Recved; - case 102: return r_tx_Dropped; - case 103: return r_tx_NewPending; - case 104: return r_tx_Pending; - case 105: return r_tx_Included; - case 106: return r_tx_eventCb; - case 107: return r_NA; - case -1: return r_fail_header_len; - case -2: return r_fail_service_call; - case -3: return r_fail_function_call; - case -4: return r_fail_function_exception; - case -5: return r_fail_api_version; - case -6: return r_fail_ct_bytecode; - case -7: return r_fail_null_rsp; - case -8: return r_fail_invalid_addr; - case -9: return r_fail_null_compile_source; - case -10: return r_fail_compile_contract; - case -11: return r_fail_sendTx_null_rep; - case -12: return r_fail_getcode_to; - case -13: return r_fail_getTxReceipt_null_recp; - case -14: return r_fail_zmqHandler_exception; - case -15: return r_fail_hit_pending_tx_limit; - case -16: return r_fail_txqueue_exception; - case -17: return r_fail_function_arguments; - case -18: return r_fail_unsupport_api; - case -19: return r_fail_unknown; - default: return null; - } - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Retcode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Retcode findValueByNumber(int number) { - return Retcode.forNumber(number); - } - }; + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(2); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(2); - } + private static final Retcode[] VALUES = values(); - private static final Retcode[] VALUES = values(); - - public static Retcode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } + public static Retcode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } - private final int value; + private final int value; - private Retcode(int value) { - this.value = value; - } + private Retcode(int value) { + this.value = value; + } - // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Retcode) - } - - public interface t_ContractOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Contract) - com.google.protobuf.MessageOrBuilder { - - /** - * string code = 1; - */ - java.lang.String getCode(); - /** - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - * string error = 2; - */ - java.lang.String getError(); - /** - * string error = 2; - */ - com.google.protobuf.ByteString - getErrorBytes(); - - /** - * string source = 3; - */ - java.lang.String getSource(); - /** - * string source = 3; - */ - com.google.protobuf.ByteString - getSourceBytes(); - - /** - * string compilerVersion = 4; - */ - java.lang.String getCompilerVersion(); - /** - * string compilerVersion = 4; - */ - com.google.protobuf.ByteString - getCompilerVersionBytes(); - - /** - * string compilerOptions = 5; - */ - java.lang.String getCompilerOptions(); - /** - * string compilerOptions = 5; - */ - com.google.protobuf.ByteString - getCompilerOptionsBytes(); - - /** - * bytes abiDef = 6; - */ - com.google.protobuf.ByteString getAbiDef(); - - /** - * bytes userDoc = 7; - */ - com.google.protobuf.ByteString getUserDoc(); - - /** - * bytes devDoc = 8; - */ - com.google.protobuf.ByteString getDevDoc(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Contract} - */ - public static final class t_Contract extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Contract) - t_ContractOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Contract.newBuilder() to construct. - private t_Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_Contract() { - code_ = ""; - error_ = ""; - source_ = ""; - compilerVersion_ = ""; - compilerOptions_ = ""; - abiDef_ = com.google.protobuf.ByteString.EMPTY; - userDoc_ = com.google.protobuf.ByteString.EMPTY; - devDoc_ = com.google.protobuf.ByteString.EMPTY; + // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Retcode) } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_Contract( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - compilerVersion_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - compilerOptions_ = s; - break; - } - case 50: { - - abiDef_ = input.readBytes(); - break; - } - case 58: { - - userDoc_ = input.readBytes(); - break; - } - case 66: { - - devDoc_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_descriptor; - } + public interface t_ContractOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Contract) + com.google.protobuf.MessageOrBuilder { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Contract.class, org.aion.api.server.pb.Message.t_Contract.Builder.class); - } + /** string code = 1; */ + java.lang.String getCode(); + /** string code = 1; */ + com.google.protobuf.ByteString getCodeBytes(); - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** string error = 2; */ + java.lang.String getError(); + /** string error = 2; */ + com.google.protobuf.ByteString getErrorBytes(); - public static final int ERROR_FIELD_NUMBER = 2; - private volatile java.lang.Object error_; - /** - * string error = 2; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * string error = 2; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** string source = 3; */ + java.lang.String getSource(); + /** string source = 3; */ + com.google.protobuf.ByteString getSourceBytes(); - public static final int SOURCE_FIELD_NUMBER = 3; - private volatile java.lang.Object source_; - /** - * string source = 3; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } - } - /** - * string source = 3; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** string compilerVersion = 4; */ + java.lang.String getCompilerVersion(); + /** string compilerVersion = 4; */ + com.google.protobuf.ByteString getCompilerVersionBytes(); - public static final int COMPILERVERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object compilerVersion_; - /** - * string compilerVersion = 4; - */ - public java.lang.String getCompilerVersion() { - java.lang.Object ref = compilerVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerVersion_ = s; - return s; - } - } - /** - * string compilerVersion = 4; - */ - public com.google.protobuf.ByteString - getCompilerVersionBytes() { - java.lang.Object ref = compilerVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - compilerVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** string compilerOptions = 5; */ + java.lang.String getCompilerOptions(); + /** string compilerOptions = 5; */ + com.google.protobuf.ByteString getCompilerOptionsBytes(); - public static final int COMPILEROPTIONS_FIELD_NUMBER = 5; - private volatile java.lang.Object compilerOptions_; - /** - * string compilerOptions = 5; - */ - public java.lang.String getCompilerOptions() { - java.lang.Object ref = compilerOptions_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerOptions_ = s; - return s; - } - } - /** - * string compilerOptions = 5; - */ - public com.google.protobuf.ByteString - getCompilerOptionsBytes() { - java.lang.Object ref = compilerOptions_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - compilerOptions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** bytes abiDef = 6; */ + com.google.protobuf.ByteString getAbiDef(); - public static final int ABIDEF_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString abiDef_; - /** - * bytes abiDef = 6; - */ - public com.google.protobuf.ByteString getAbiDef() { - return abiDef_; - } + /** bytes userDoc = 7; */ + com.google.protobuf.ByteString getUserDoc(); - public static final int USERDOC_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString userDoc_; - /** - * bytes userDoc = 7; - */ - public com.google.protobuf.ByteString getUserDoc() { - return userDoc_; + /** bytes devDoc = 8; */ + com.google.protobuf.ByteString getDevDoc(); } + /** Protobuf type {@code org.aion.api.server.pb.t_Contract} */ + public static final class t_Contract extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Contract) + t_ContractOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Contract.newBuilder() to construct. + private t_Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int DEVDOC_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString devDoc_; - /** - * bytes devDoc = 8; - */ - public com.google.protobuf.ByteString getDevDoc() { - return devDoc_; - } + private t_Contract() { + code_ = ""; + error_ = ""; + source_ = ""; + compilerVersion_ = ""; + compilerOptions_ = ""; + abiDef_ = com.google.protobuf.ByteString.EMPTY; + userDoc_ = com.google.protobuf.ByteString.EMPTY; + devDoc_ = com.google.protobuf.ByteString.EMPTY; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - memoizedIsInitialized = 1; - return true; - } + private t_Contract( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + compilerVersion_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + compilerOptions_ = s; + break; + } + case 50: + { + abiDef_ = input.readBytes(); + break; + } + case 58: + { + userDoc_ = input.readBytes(); + break; + } + case 66: + { + devDoc_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); - } - if (!getSourceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); - } - if (!getCompilerVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, compilerVersion_); - } - if (!getCompilerOptionsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, compilerOptions_); - } - if (!abiDef_.isEmpty()) { - output.writeBytes(6, abiDef_); - } - if (!userDoc_.isEmpty()) { - output.writeBytes(7, userDoc_); - } - if (!devDoc_.isEmpty()) { - output.writeBytes(8, devDoc_); - } - unknownFields.writeTo(output); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Contract_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); - } - if (!getSourceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); - } - if (!getCompilerVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, compilerVersion_); - } - if (!getCompilerOptionsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, compilerOptions_); - } - if (!abiDef_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, abiDef_); - } - if (!userDoc_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, userDoc_); - } - if (!devDoc_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, devDoc_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Contract.class, + org.aion.api.server.pb.Message.t_Contract.Builder.class); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Contract)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_Contract other = (org.aion.api.server.pb.Message.t_Contract) obj; - - boolean result = true; - result = result && getCode() - .equals(other.getCode()); - result = result && getError() - .equals(other.getError()); - result = result && getSource() - .equals(other.getSource()); - result = result && getCompilerVersion() - .equals(other.getCompilerVersion()); - result = result && getCompilerOptions() - .equals(other.getCompilerOptions()); - result = result && getAbiDef() - .equals(other.getAbiDef()); - result = result && getUserDoc() - .equals(other.getUserDoc()); - result = result && getDevDoc() - .equals(other.getDevDoc()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** string code = 1; */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** string code = 1; */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - hash = (37 * hash) + COMPILERVERSION_FIELD_NUMBER; - hash = (53 * hash) + getCompilerVersion().hashCode(); - hash = (37 * hash) + COMPILEROPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getCompilerOptions().hashCode(); - hash = (37 * hash) + ABIDEF_FIELD_NUMBER; - hash = (53 * hash) + getAbiDef().hashCode(); - hash = (37 * hash) + USERDOC_FIELD_NUMBER; - hash = (53 * hash) + getUserDoc().hashCode(); - hash = (37 * hash) + DEVDOC_FIELD_NUMBER; - hash = (53 * hash) + getDevDoc().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int ERROR_FIELD_NUMBER = 2; + private volatile java.lang.Object error_; + /** string error = 2; */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** string error = 2; */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final int SOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object source_; + /** string source = 3; */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** string source = 3; */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Contract prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int COMPILERVERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object compilerVersion_; + /** string compilerVersion = 4; */ + public java.lang.String getCompilerVersion() { + java.lang.Object ref = compilerVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerVersion_ = s; + return s; + } + } + /** string compilerVersion = 4; */ + public com.google.protobuf.ByteString getCompilerVersionBytes() { + java.lang.Object ref = compilerVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compilerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Contract} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Contract) - org.aion.api.server.pb.Message.t_ContractOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Contract.class, org.aion.api.server.pb.Message.t_Contract.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_Contract.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - code_ = ""; - - error_ = ""; - - source_ = ""; - - compilerVersion_ = ""; - - compilerOptions_ = ""; - - abiDef_ = com.google.protobuf.ByteString.EMPTY; - - userDoc_ = com.google.protobuf.ByteString.EMPTY; - - devDoc_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_descriptor; - } - - public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Contract.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_Contract build() { - org.aion.api.server.pb.Message.t_Contract result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_Contract buildPartial() { - org.aion.api.server.pb.Message.t_Contract result = new org.aion.api.server.pb.Message.t_Contract(this); - result.code_ = code_; - result.error_ = error_; - result.source_ = source_; - result.compilerVersion_ = compilerVersion_; - result.compilerOptions_ = compilerOptions_; - result.abiDef_ = abiDef_; - result.userDoc_ = userDoc_; - result.devDoc_ = devDoc_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Contract) { - return mergeFrom((org.aion.api.server.pb.Message.t_Contract)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Contract other) { - if (other == org.aion.api.server.pb.Message.t_Contract.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - if (!other.getSource().isEmpty()) { - source_ = other.source_; - onChanged(); - } - if (!other.getCompilerVersion().isEmpty()) { - compilerVersion_ = other.compilerVersion_; - onChanged(); - } - if (!other.getCompilerOptions().isEmpty()) { - compilerOptions_ = other.compilerOptions_; - onChanged(); - } - if (other.getAbiDef() != com.google.protobuf.ByteString.EMPTY) { - setAbiDef(other.getAbiDef()); - } - if (other.getUserDoc() != com.google.protobuf.ByteString.EMPTY) { - setUserDoc(other.getUserDoc()); - } - if (other.getDevDoc() != com.google.protobuf.ByteString.EMPTY) { - setDevDoc(other.getDevDoc()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Contract parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_Contract) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * string error = 2; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string error = 2; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string error = 2; - */ - public Builder setError( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * string error = 2; - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * string error = 2; - */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } - - private java.lang.Object source_ = ""; - /** - * string source = 3; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string source = 3; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string source = 3; - */ - public Builder setSource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - source_ = value; - onChanged(); - return this; - } - /** - * string source = 3; - */ - public Builder clearSource() { - - source_ = getDefaultInstance().getSource(); - onChanged(); - return this; - } - /** - * string source = 3; - */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - source_ = value; - onChanged(); - return this; - } - - private java.lang.Object compilerVersion_ = ""; - /** - * string compilerVersion = 4; - */ - public java.lang.String getCompilerVersion() { - java.lang.Object ref = compilerVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string compilerVersion = 4; - */ - public com.google.protobuf.ByteString - getCompilerVersionBytes() { - java.lang.Object ref = compilerVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - compilerVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string compilerVersion = 4; - */ - public Builder setCompilerVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - compilerVersion_ = value; - onChanged(); - return this; - } - /** - * string compilerVersion = 4; - */ - public Builder clearCompilerVersion() { - - compilerVersion_ = getDefaultInstance().getCompilerVersion(); - onChanged(); - return this; - } - /** - * string compilerVersion = 4; - */ - public Builder setCompilerVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - compilerVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object compilerOptions_ = ""; - /** - * string compilerOptions = 5; - */ - public java.lang.String getCompilerOptions() { - java.lang.Object ref = compilerOptions_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerOptions_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string compilerOptions = 5; - */ - public com.google.protobuf.ByteString - getCompilerOptionsBytes() { - java.lang.Object ref = compilerOptions_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - compilerOptions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string compilerOptions = 5; - */ - public Builder setCompilerOptions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - compilerOptions_ = value; - onChanged(); - return this; - } - /** - * string compilerOptions = 5; - */ - public Builder clearCompilerOptions() { - - compilerOptions_ = getDefaultInstance().getCompilerOptions(); - onChanged(); - return this; - } - /** - * string compilerOptions = 5; - */ - public Builder setCompilerOptionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - compilerOptions_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString abiDef_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes abiDef = 6; - */ - public com.google.protobuf.ByteString getAbiDef() { - return abiDef_; - } - /** - * bytes abiDef = 6; - */ - public Builder setAbiDef(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - abiDef_ = value; - onChanged(); - return this; - } - /** - * bytes abiDef = 6; - */ - public Builder clearAbiDef() { - - abiDef_ = getDefaultInstance().getAbiDef(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString userDoc_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes userDoc = 7; - */ - public com.google.protobuf.ByteString getUserDoc() { - return userDoc_; - } - /** - * bytes userDoc = 7; - */ - public Builder setUserDoc(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - userDoc_ = value; - onChanged(); - return this; - } - /** - * bytes userDoc = 7; - */ - public Builder clearUserDoc() { - - userDoc_ = getDefaultInstance().getUserDoc(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString devDoc_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes devDoc = 8; - */ - public com.google.protobuf.ByteString getDevDoc() { - return devDoc_; - } - /** - * bytes devDoc = 8; - */ - public Builder setDevDoc(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - devDoc_ = value; - onChanged(); - return this; - } - /** - * bytes devDoc = 8; - */ - public Builder clearDevDoc() { - - devDoc_ = getDefaultInstance().getDevDoc(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Contract) - } + public static final int COMPILEROPTIONS_FIELD_NUMBER = 5; + private volatile java.lang.Object compilerOptions_; + /** string compilerOptions = 5; */ + public java.lang.String getCompilerOptions() { + java.lang.Object ref = compilerOptions_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerOptions_ = s; + return s; + } + } + /** string compilerOptions = 5; */ + public com.google.protobuf.ByteString getCompilerOptionsBytes() { + java.lang.Object ref = compilerOptions_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compilerOptions_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Contract) - private static final org.aion.api.server.pb.Message.t_Contract DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Contract(); - } + public static final int ABIDEF_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString abiDef_; + /** bytes abiDef = 6; */ + public com.google.protobuf.ByteString getAbiDef() { + return abiDef_; + } - public static org.aion.api.server.pb.Message.t_Contract getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int USERDOC_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString userDoc_; + /** bytes userDoc = 7; */ + public com.google.protobuf.ByteString getUserDoc() { + return userDoc_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_Contract parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Contract(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int DEVDOC_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString devDoc_; + /** bytes devDoc = 8; */ + public com.google.protobuf.ByteString getDevDoc() { + return devDoc_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - } - - public interface t_AionTxOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AionTx) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes txHash = 1; - */ - com.google.protobuf.ByteString getTxHash(); - - /** - * bytes from = 2; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes to = 3; - */ - com.google.protobuf.ByteString getTo(); - - /** - * bytes value = 4; - */ - com.google.protobuf.ByteString getValue(); - - /** - * bytes data = 5; - */ - com.google.protobuf.ByteString getData(); - - /** - * bytes nonce = 6; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * uint64 nrgConsumed = 7; - */ - long getNrgConsumed(); - - /** - * uint64 nrgPrice = 8; - */ - long getNrgPrice(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_AionTx} - */ - public static final class t_AionTx extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AionTx) - t_AionTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_AionTx.newBuilder() to construct. - private t_AionTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_AionTx() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - nrgConsumed_ = 0L; - nrgPrice_ = 0L; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_AionTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - txHash_ = input.readBytes(); - break; - } - case 18: { - - from_ = input.readBytes(); - break; - } - case 26: { - - to_ = input.readBytes(); - break; - } - case 34: { - - value_ = input.readBytes(); - break; - } - case 42: { - - data_ = input.readBytes(); - break; - } - case 50: { - - nonce_ = input.readBytes(); - break; - } - case 56: { - - nrgConsumed_ = input.readUInt64(); - break; - } - case 64: { - - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getErrorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); + } + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + if (!getCompilerVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, compilerVersion_); + } + if (!getCompilerOptionsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, compilerOptions_); + } + if (!abiDef_.isEmpty()) { + output.writeBytes(6, abiDef_); + } + if (!userDoc_.isEmpty()) { + output.writeBytes(7, userDoc_); + } + if (!devDoc_.isEmpty()) { + output.writeBytes(8, devDoc_); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AionTx.class, org.aion.api.server.pb.Message.t_AionTx.Builder.class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getErrorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); + } + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + if (!getCompilerVersionBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 4, compilerVersion_); + } + if (!getCompilerOptionsBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 5, compilerOptions_); + } + if (!abiDef_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, abiDef_); + } + if (!userDoc_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, userDoc_); + } + if (!devDoc_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, devDoc_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int FROM_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 2; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Contract)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_Contract other = + (org.aion.api.server.pb.Message.t_Contract) obj; + + boolean result = true; + result = result && getCode().equals(other.getCode()); + result = result && getError().equals(other.getError()); + result = result && getSource().equals(other.getSource()); + result = result && getCompilerVersion().equals(other.getCompilerVersion()); + result = result && getCompilerOptions().equals(other.getCompilerOptions()); + result = result && getAbiDef().equals(other.getAbiDef()); + result = result && getUserDoc().equals(other.getUserDoc()); + result = result && getDevDoc().equals(other.getDevDoc()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + COMPILERVERSION_FIELD_NUMBER; + hash = (53 * hash) + getCompilerVersion().hashCode(); + hash = (37 * hash) + COMPILEROPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCompilerOptions().hashCode(); + hash = (37 * hash) + ABIDEF_FIELD_NUMBER; + hash = (53 * hash) + getAbiDef().hashCode(); + hash = (37 * hash) + USERDOC_FIELD_NUMBER; + hash = (53 * hash) + getUserDoc().hashCode(); + hash = (37 * hash) + DEVDOC_FIELD_NUMBER; + hash = (53 * hash) + getDevDoc().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int TO_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString to_; - /** - * bytes to = 3; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int VALUE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 4; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int DATA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 5; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int NONCE_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 6; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int NRGCONSUMED_FIELD_NUMBER = 7; - private long nrgConsumed_; - /** - * uint64 nrgConsumed = 7; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int NRGPRICE_FIELD_NUMBER = 8; - private long nrgPrice_; - /** - * uint64 nrgPrice = 8; - */ - public long getNrgPrice() { - return nrgPrice_; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.t_Contract parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - if (!from_.isEmpty()) { - output.writeBytes(2, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(3, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(4, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(5, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(6, nonce_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(7, nrgConsumed_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(8, nrgPrice_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, nonce_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, nrgConsumed_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_AionTx)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_AionTx other = (org.aion.api.server.pb.Message.t_AionTx) obj; - - boolean result = true; - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTo() - .equals(other.getTo()); - result = result && getValue() - .equals(other.getValue()); - result = result && getData() - .equals(other.getData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && (getNrgConsumed() - == other.getNrgConsumed()); - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsumed()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder newBuilderForType() { + return newBuilder(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_AionTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_AionTx} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AionTx) - org.aion.api.server.pb.Message.t_AionTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AionTx.class, org.aion.api.server.pb.Message.t_AionTx.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_AionTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - nrgConsumed_ = 0L; - - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_descriptor; - } - - public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_AionTx build() { - org.aion.api.server.pb.Message.t_AionTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_AionTx buildPartial() { - org.aion.api.server.pb.Message.t_AionTx result = new org.aion.api.server.pb.Message.t_AionTx(this); - result.txHash_ = txHash_; - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nonce_ = nonce_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_AionTx) { - return mergeFrom((org.aion.api.server.pb.Message.t_AionTx)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_AionTx other) { - if (other == org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_AionTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_AionTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 2; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 2; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 2; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to = 3; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** - * bytes to = 3; - */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * bytes to = 3; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 4; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 4; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 4; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 5; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 5; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 5; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 6; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 6; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 6; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private long nrgConsumed_ ; - /** - * uint64 nrgConsumed = 7; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** - * uint64 nrgConsumed = 7; - */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsumed = 7; - */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 8; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 8; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 8; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AionTx) - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Contract prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AionTx) - private static final org.aion.api.server.pb.Message.t_AionTx DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AionTx(); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_AionTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_Contract} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Contract) + org.aion.api.server.pb.Message.t_ContractOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Contract_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_AionTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_AionTx(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Contract.class, + org.aion.api.server.pb.Message.t_Contract.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using org.aion.api.server.pb.Message.t_Contract.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - } - - public interface t_NodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Node) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - - /** - * string nodeId = 2; - */ - java.lang.String getNodeId(); - /** - * string nodeId = 2; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - * string remote_p2p_ip = 3; - */ - java.lang.String getRemoteP2PIp(); - /** - * string remote_p2p_ip = 3; - */ - com.google.protobuf.ByteString - getRemoteP2PIpBytes(); - - /** - * uint32 remote_p2p_port = 4; - */ - int getRemoteP2PPort(); - - /** - * uint32 latency = 5; - */ - int getLatency(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Node} - */ - public static final class t_Node extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Node) - t_NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Node.newBuilder() to construct. - private t_Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_Node() { - blockNumber_ = 0L; - nodeId_ = ""; - remoteP2PIp_ = ""; - remoteP2PPort_ = 0; - latency_ = 0; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_Node( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blockNumber_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nodeId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - remoteP2PIp_ = s; - break; - } - case 32: { - - remoteP2PPort_ = input.readUInt32(); - break; - } - case 40: { - - latency_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_descriptor; - } + public Builder clear() { + super.clear(); + code_ = ""; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Node.class, org.aion.api.server.pb.Message.t_Node.Builder.class); - } + error_ = ""; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + source_ = ""; - public static final int NODEID_FIELD_NUMBER = 2; - private volatile java.lang.Object nodeId_; - /** - * string nodeId = 2; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } - } - /** - * string nodeId = 2; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + compilerVersion_ = ""; - public static final int REMOTE_P2P_IP_FIELD_NUMBER = 3; - private volatile java.lang.Object remoteP2PIp_; - /** - * string remote_p2p_ip = 3; - */ - public java.lang.String getRemoteP2PIp() { - java.lang.Object ref = remoteP2PIp_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteP2PIp_ = s; - return s; - } - } - /** - * string remote_p2p_ip = 3; - */ - public com.google.protobuf.ByteString - getRemoteP2PIpBytes() { - java.lang.Object ref = remoteP2PIp_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remoteP2PIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + compilerOptions_ = ""; - public static final int REMOTE_P2P_PORT_FIELD_NUMBER = 4; - private int remoteP2PPort_; - /** - * uint32 remote_p2p_port = 4; - */ - public int getRemoteP2PPort() { - return remoteP2PPort_; - } + abiDef_ = com.google.protobuf.ByteString.EMPTY; - public static final int LATENCY_FIELD_NUMBER = 5; - private int latency_; - /** - * uint32 latency = 5; - */ - public int getLatency() { - return latency_; - } + userDoc_ = com.google.protobuf.ByteString.EMPTY; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + devDoc_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + return this; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); - } - if (!getRemoteP2PIpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, remoteP2PIp_); - } - if (remoteP2PPort_ != 0) { - output.writeUInt32(4, remoteP2PPort_); - } - if (latency_ != 0) { - output.writeUInt32(5, latency_); - } - unknownFields.writeTo(output); - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Contract_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); - } - if (!getRemoteP2PIpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, remoteP2PIp_); - } - if (remoteP2PPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, remoteP2PPort_); - } - if (latency_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, latency_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Contract.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Node)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_Node other = (org.aion.api.server.pb.Message.t_Node) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && getNodeId() - .equals(other.getNodeId()); - result = result && getRemoteP2PIp() - .equals(other.getRemoteP2PIp()); - result = result && (getRemoteP2PPort() - == other.getRemoteP2PPort()); - result = result && (getLatency() - == other.getLatency()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.t_Contract build() { + org.aion.api.server.pb.Message.t_Contract result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + NODEID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - hash = (37 * hash) + REMOTE_P2P_IP_FIELD_NUMBER; - hash = (53 * hash) + getRemoteP2PIp().hashCode(); - hash = (37 * hash) + REMOTE_P2P_PORT_FIELD_NUMBER; - hash = (53 * hash) + getRemoteP2PPort(); - hash = (37 * hash) + LATENCY_FIELD_NUMBER; - hash = (53 * hash) + getLatency(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public org.aion.api.server.pb.Message.t_Contract buildPartial() { + org.aion.api.server.pb.Message.t_Contract result = + new org.aion.api.server.pb.Message.t_Contract(this); + result.code_ = code_; + result.error_ = error_; + result.source_ = source_; + result.compilerVersion_ = compilerVersion_; + result.compilerOptions_ = compilerOptions_; + result.abiDef_ = abiDef_; + result.userDoc_ = userDoc_; + result.devDoc_ = devDoc_; + onBuilt(); + return result; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder clone() { + return (Builder) super.clone(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Node prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Node) - org.aion.api.server.pb.Message.t_NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Node.class, org.aion.api.server.pb.Message.t_Node.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - nodeId_ = ""; - - remoteP2PIp_ = ""; - - remoteP2PPort_ = 0; - - latency_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_descriptor; - } - - public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Node.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_Node build() { - org.aion.api.server.pb.Message.t_Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_Node buildPartial() { - org.aion.api.server.pb.Message.t_Node result = new org.aion.api.server.pb.Message.t_Node(this); - result.blockNumber_ = blockNumber_; - result.nodeId_ = nodeId_; - result.remoteP2PIp_ = remoteP2PIp_; - result.remoteP2PPort_ = remoteP2PPort_; - result.latency_ = latency_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Node) { - return mergeFrom((org.aion.api.server.pb.Message.t_Node)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Node other) { - if (other == org.aion.api.server.pb.Message.t_Node.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (!other.getRemoteP2PIp().isEmpty()) { - remoteP2PIp_ = other.remoteP2PIp_; - onChanged(); - } - if (other.getRemoteP2PPort() != 0) { - setRemoteP2PPort(other.getRemoteP2PPort()); - } - if (other.getLatency() != 0) { - setLatency(other.getLatency()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Node parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_Node) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object nodeId_ = ""; - /** - * string nodeId = 2; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string nodeId = 2; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string nodeId = 2; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - * string nodeId = 2; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - * string nodeId = 2; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object remoteP2PIp_ = ""; - /** - * string remote_p2p_ip = 3; - */ - public java.lang.String getRemoteP2PIp() { - java.lang.Object ref = remoteP2PIp_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteP2PIp_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string remote_p2p_ip = 3; - */ - public com.google.protobuf.ByteString - getRemoteP2PIpBytes() { - java.lang.Object ref = remoteP2PIp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remoteP2PIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string remote_p2p_ip = 3; - */ - public Builder setRemoteP2PIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - remoteP2PIp_ = value; - onChanged(); - return this; - } - /** - * string remote_p2p_ip = 3; - */ - public Builder clearRemoteP2PIp() { - - remoteP2PIp_ = getDefaultInstance().getRemoteP2PIp(); - onChanged(); - return this; - } - /** - * string remote_p2p_ip = 3; - */ - public Builder setRemoteP2PIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - remoteP2PIp_ = value; - onChanged(); - return this; - } - - private int remoteP2PPort_ ; - /** - * uint32 remote_p2p_port = 4; - */ - public int getRemoteP2PPort() { - return remoteP2PPort_; - } - /** - * uint32 remote_p2p_port = 4; - */ - public Builder setRemoteP2PPort(int value) { - - remoteP2PPort_ = value; - onChanged(); - return this; - } - /** - * uint32 remote_p2p_port = 4; - */ - public Builder clearRemoteP2PPort() { - - remoteP2PPort_ = 0; - onChanged(); - return this; - } - - private int latency_ ; - /** - * uint32 latency = 5; - */ - public int getLatency() { - return latency_; - } - /** - * uint32 latency = 5; - */ - public Builder setLatency(int value) { - - latency_ = value; - onChanged(); - return this; - } - /** - * uint32 latency = 5; - */ - public Builder clearLatency() { - - latency_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Node) - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Node) - private static final org.aion.api.server.pb.Message.t_Node DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Node(); - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public static org.aion.api.server.pb.Message.t_Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Node(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Contract) { + return mergeFrom((org.aion.api.server.pb.Message.t_Contract) other); + } else { + super.mergeFrom(other); + return this; + } + } - public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Contract other) { + if (other == org.aion.api.server.pb.Message.t_Contract.getDefaultInstance()) + return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + if (!other.getCompilerVersion().isEmpty()) { + compilerVersion_ = other.compilerVersion_; + onChanged(); + } + if (!other.getCompilerOptions().isEmpty()) { + compilerOptions_ = other.compilerOptions_; + onChanged(); + } + if (other.getAbiDef() != com.google.protobuf.ByteString.EMPTY) { + setAbiDef(other.getAbiDef()); + } + if (other.getUserDoc() != com.google.protobuf.ByteString.EMPTY) { + setUserDoc(other.getUserDoc()); + } + if (other.getDevDoc() != com.google.protobuf.ByteString.EMPTY) { + setDevDoc(other.getDevDoc()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - } - - public interface t_LgEleOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_LgEle) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - * repeated string topics = 3; - */ - java.util.List - getTopicsList(); - /** - * repeated string topics = 3; - */ - int getTopicsCount(); - /** - * repeated string topics = 3; - */ - java.lang.String getTopics(int index); - /** - * repeated string topics = 3; - */ - com.google.protobuf.ByteString - getTopicsBytes(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_LgEle} - */ - public static final class t_LgEle extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_LgEle) - t_LgEleOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_LgEle.newBuilder() to construct. - private t_LgEle(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_LgEle() { - address_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_LgEle( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - case 18: { - - data_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - topics_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = topics_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Contract parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_Contract) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_LgEle.class, org.aion.api.server.pb.Message.t_LgEle.Builder.class); - } + private java.lang.Object code_ = ""; + /** string code = 1; */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string code = 1; */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string code = 1; */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** string code = 1; */ + public Builder clearCode() { - private int bitField0_; - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** string code = 1; */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + private java.lang.Object error_ = ""; + /** string error = 2; */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string error = 2; */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string error = 2; */ + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** string error = 2; */ + public Builder clearError() { - public static final int TOPICS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList topics_; - /** - * repeated string topics = 3; - */ - public com.google.protobuf.ProtocolStringList - getTopicsList() { - return topics_; - } - /** - * repeated string topics = 3; - */ - public int getTopicsCount() { - return topics_.size(); - } - /** - * repeated string topics = 3; - */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** - * repeated string topics = 3; - */ - public com.google.protobuf.ByteString - getTopicsBytes(int index) { - return topics_.getByteString(index); - } + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** string error = 2; */ + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private java.lang.Object source_ = ""; + /** string source = 3; */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string source = 3; */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string source = 3; */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** string source = 3; */ + public Builder clearSource() { - memoizedIsInitialized = 1; - return true; - } + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** string source = 3; */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - for (int i = 0; i < topics_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topics_.getRaw(i)); - } - unknownFields.writeTo(output); - } + private java.lang.Object compilerVersion_ = ""; + /** string compilerVersion = 4; */ + public java.lang.String getCompilerVersion() { + java.lang.Object ref = compilerVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string compilerVersion = 4; */ + public com.google.protobuf.ByteString getCompilerVersionBytes() { + java.lang.Object ref = compilerVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compilerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string compilerVersion = 4; */ + public Builder setCompilerVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + compilerVersion_ = value; + onChanged(); + return this; + } + /** string compilerVersion = 4; */ + public Builder clearCompilerVersion() { - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - { - int dataSize = 0; - for (int i = 0; i < topics_.size(); i++) { - dataSize += computeStringSizeNoTag(topics_.getRaw(i)); - } - size += dataSize; - size += 1 * getTopicsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + compilerVersion_ = getDefaultInstance().getCompilerVersion(); + onChanged(); + return this; + } + /** string compilerVersion = 4; */ + public Builder setCompilerVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + compilerVersion_ = value; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_LgEle)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_LgEle other = (org.aion.api.server.pb.Message.t_LgEle) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && getData() - .equals(other.getData()); - result = result && getTopicsList() - .equals(other.getTopicsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private java.lang.Object compilerOptions_ = ""; + /** string compilerOptions = 5; */ + public java.lang.String getCompilerOptions() { + java.lang.Object ref = compilerOptions_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerOptions_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string compilerOptions = 5; */ + public com.google.protobuf.ByteString getCompilerOptionsBytes() { + java.lang.Object ref = compilerOptions_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + compilerOptions_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string compilerOptions = 5; */ + public Builder setCompilerOptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + compilerOptions_ = value; + onChanged(); + return this; + } + /** string compilerOptions = 5; */ + public Builder clearCompilerOptions() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - if (getTopicsCount() > 0) { - hash = (37 * hash) + TOPICS_FIELD_NUMBER; - hash = (53 * hash) + getTopicsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + compilerOptions_ = getDefaultInstance().getCompilerOptions(); + onChanged(); + return this; + } + /** string compilerOptions = 5; */ + public Builder setCompilerOptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + compilerOptions_ = value; + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private com.google.protobuf.ByteString abiDef_ = com.google.protobuf.ByteString.EMPTY; + /** bytes abiDef = 6; */ + public com.google.protobuf.ByteString getAbiDef() { + return abiDef_; + } + /** bytes abiDef = 6; */ + public Builder setAbiDef(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + abiDef_ = value; + onChanged(); + return this; + } + /** bytes abiDef = 6; */ + public Builder clearAbiDef() { - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_LgEle prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + abiDef_ = getDefaultInstance().getAbiDef(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_LgEle} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_LgEle) - org.aion.api.server.pb.Message.t_LgEleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_LgEle.class, org.aion.api.server.pb.Message.t_LgEle.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_LgEle.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - } - - public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_LgEle build() { - org.aion.api.server.pb.Message.t_LgEle result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_LgEle buildPartial() { - org.aion.api.server.pb.Message.t_LgEle result = new org.aion.api.server.pb.Message.t_LgEle(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.address_ = address_; - result.data_ = data_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = topics_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.topics_ = topics_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_LgEle) { - return mergeFrom((org.aion.api.server.pb.Message.t_LgEle)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_LgEle other) { - if (other == org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (!other.topics_.isEmpty()) { - if (topics_.isEmpty()) { - topics_ = other.topics_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTopicsIsMutable(); - topics_.addAll(other.topics_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_LgEle parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_LgEle) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTopicsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = new com.google.protobuf.LazyStringArrayList(topics_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string topics = 3; - */ - public com.google.protobuf.ProtocolStringList - getTopicsList() { - return topics_.getUnmodifiableView(); - } - /** - * repeated string topics = 3; - */ - public int getTopicsCount() { - return topics_.size(); - } - /** - * repeated string topics = 3; - */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** - * repeated string topics = 3; - */ - public com.google.protobuf.ByteString - getTopicsBytes(int index) { - return topics_.getByteString(index); - } - /** - * repeated string topics = 3; - */ - public Builder setTopics( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string topics = 3; - */ - public Builder addTopics( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } - /** - * repeated string topics = 3; - */ - public Builder addAllTopics( - java.lang.Iterable values) { - ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topics_); - onChanged(); - return this; - } - /** - * repeated string topics = 3; - */ - public Builder clearTopics() { - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string topics = 3; - */ - public Builder addTopicsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_LgEle) - } + private com.google.protobuf.ByteString userDoc_ = com.google.protobuf.ByteString.EMPTY; + /** bytes userDoc = 7; */ + public com.google.protobuf.ByteString getUserDoc() { + return userDoc_; + } + /** bytes userDoc = 7; */ + public Builder setUserDoc(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + userDoc_ = value; + onChanged(); + return this; + } + /** bytes userDoc = 7; */ + public Builder clearUserDoc() { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_LgEle) - private static final org.aion.api.server.pb.Message.t_LgEle DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_LgEle(); - } + userDoc_ = getDefaultInstance().getUserDoc(); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.t_LgEle getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString devDoc_ = com.google.protobuf.ByteString.EMPTY; + /** bytes devDoc = 8; */ + public com.google.protobuf.ByteString getDevDoc() { + return devDoc_; + } + /** bytes devDoc = 8; */ + public Builder setDevDoc(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + devDoc_ = value; + onChanged(); + return this; + } + /** bytes devDoc = 8; */ + public Builder clearDevDoc() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_LgEle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_LgEle(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + devDoc_ = getDefaultInstance().getDevDoc(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - } - - public interface t_FilterCtOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_FilterCt) - com.google.protobuf.MessageOrBuilder { - - /** - * string from = 1; - */ - java.lang.String getFrom(); - /** - * string from = 1; - */ - com.google.protobuf.ByteString - getFromBytes(); - - /** - * string to = 2; - */ - java.lang.String getTo(); - /** - * string to = 2; - */ - com.google.protobuf.ByteString - getToBytes(); - - /** - * bytes contractAddr = 3; - */ - com.google.protobuf.ByteString getContractAddr(); - - /** - * repeated bytes addresses = 4; - */ - java.util.List getAddressesList(); - /** - * repeated bytes addresses = 4; - */ - int getAddressesCount(); - /** - * repeated bytes addresses = 4; - */ - com.google.protobuf.ByteString getAddresses(int index); - - /** - * repeated string topics = 5; - */ - java.util.List - getTopicsList(); - /** - * repeated string topics = 5; - */ - int getTopicsCount(); - /** - * repeated string topics = 5; - */ - java.lang.String getTopics(int index); - /** - * repeated string topics = 5; - */ - com.google.protobuf.ByteString - getTopicsBytes(int index); - - /** - * uint64 expireTime = 6; - */ - long getExpireTime(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_FilterCt} - */ - public static final class t_FilterCt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_FilterCt) - t_FilterCtOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_FilterCt.newBuilder() to construct. - private t_FilterCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_FilterCt() { - from_ = ""; - to_ = ""; - contractAddr_ = com.google.protobuf.ByteString.EMPTY; - addresses_ = java.util.Collections.emptyList(); - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - expireTime_ = 0L; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Contract) + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_FilterCt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - from_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 26: { - - contractAddr_ = input.readBytes(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - addresses_.add(input.readBytes()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - topics_.add(s); - break; - } - case 48: { - - expireTime_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = topics_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Contract) + private static final org.aion.api.server.pb.Message.t_Contract DEFAULT_INSTANCE; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_FilterCt.class, org.aion.api.server.pb.Message.t_FilterCt.Builder.class); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Contract(); + } - private int bitField0_; - public static final int FROM_FIELD_NUMBER = 1; - private volatile java.lang.Object from_; - /** - * string from = 1; - */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } - } - /** - * string from = 1; - */ - public com.google.protobuf.ByteString - getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.t_Contract getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int TO_FIELD_NUMBER = 2; - private volatile java.lang.Object to_; - /** - * string to = 2; - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** - * string to = 2; - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_Contract parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Contract(input, extensionRegistry); + } + }; - public static final int CONTRACTADDR_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString contractAddr_; - /** - * bytes contractAddr = 3; - */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int ADDRESSES_FIELD_NUMBER = 4; - private java.util.List addresses_; - /** - * repeated bytes addresses = 4; - */ - public java.util.List - getAddressesList() { - return addresses_; - } - /** - * repeated bytes addresses = 4; - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - * repeated bytes addresses = 4; - */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int TOPICS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList topics_; - /** - * repeated string topics = 5; - */ - public com.google.protobuf.ProtocolStringList - getTopicsList() { - return topics_; - } - /** - * repeated string topics = 5; - */ - public int getTopicsCount() { - return topics_.size(); - } - /** - * repeated string topics = 5; - */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** - * repeated string topics = 5; - */ - public com.google.protobuf.ByteString - getTopicsBytes(int index) { - return topics_.getByteString(index); + public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static final int EXPIRETIME_FIELD_NUMBER = 6; - private long expireTime_; - /** - * uint64 expireTime = 6; - */ - public long getExpireTime() { - return expireTime_; - } + public interface t_AionTxOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AionTx) + com.google.protobuf.MessageOrBuilder { - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** bytes txHash = 1; */ + com.google.protobuf.ByteString getTxHash(); - memoizedIsInitialized = 1; - return true; - } + /** bytes from = 2; */ + com.google.protobuf.ByteString getFrom(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFromBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, from_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, to_); - } - if (!contractAddr_.isEmpty()) { - output.writeBytes(3, contractAddr_); - } - for (int i = 0; i < addresses_.size(); i++) { - output.writeBytes(4, addresses_.get(i)); - } - for (int i = 0; i < topics_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, topics_.getRaw(i)); - } - if (expireTime_ != 0L) { - output.writeUInt64(6, expireTime_); - } - unknownFields.writeTo(output); - } + /** bytes to = 3; */ + com.google.protobuf.ByteString getTo(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFromBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, from_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, to_); - } - if (!contractAddr_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, contractAddr_); - } - { - int dataSize = 0; - for (int i = 0; i < addresses_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(addresses_.get(i)); - } - size += dataSize; - size += 1 * getAddressesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < topics_.size(); i++) { - dataSize += computeStringSizeNoTag(topics_.getRaw(i)); - } - size += dataSize; - size += 1 * getTopicsList().size(); - } - if (expireTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, expireTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** bytes value = 4; */ + com.google.protobuf.ByteString getValue(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_FilterCt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_FilterCt other = (org.aion.api.server.pb.Message.t_FilterCt) obj; - - boolean result = true; - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTo() - .equals(other.getTo()); - result = result && getContractAddr() - .equals(other.getContractAddr()); - result = result && getAddressesList() - .equals(other.getAddressesList()); - result = result && getTopicsList() - .equals(other.getTopicsList()); - result = result && (getExpireTime() - == other.getExpireTime()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + /** bytes data = 5; */ + com.google.protobuf.ByteString getData(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - if (getAddressesCount() > 0) { - hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getAddressesList().hashCode(); - } - if (getTopicsCount() > 0) { - hash = (37 * hash) + TOPICS_FIELD_NUMBER; - hash = (53 * hash) + getTopicsList().hashCode(); - } - hash = (37 * hash) + EXPIRETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExpireTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** bytes nonce = 6; */ + com.google.protobuf.ByteString getNonce(); - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** uint64 nrgConsumed = 7; */ + long getNrgConsumed(); - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_FilterCt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + /** uint64 nrgPrice = 8; */ + long getNrgPrice(); } + /** Protobuf type {@code org.aion.api.server.pb.t_AionTx} */ + public static final class t_AionTx extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AionTx) + t_AionTxOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_AionTx.newBuilder() to construct. + private t_AionTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_FilterCt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_FilterCt) - org.aion.api.server.pb.Message.t_FilterCtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_FilterCt.class, org.aion.api.server.pb.Message.t_FilterCt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_FilterCt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - from_ = ""; - - to_ = ""; - - contractAddr_ = com.google.protobuf.ByteString.EMPTY; - - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - expireTime_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; - } - - public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_FilterCt build() { - org.aion.api.server.pb.Message.t_FilterCt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_FilterCt buildPartial() { - org.aion.api.server.pb.Message.t_FilterCt result = new org.aion.api.server.pb.Message.t_FilterCt(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.from_ = from_; - result.to_ = to_; - result.contractAddr_ = contractAddr_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.addresses_ = addresses_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = topics_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.topics_ = topics_; - result.expireTime_ = expireTime_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_FilterCt) { - return mergeFrom((org.aion.api.server.pb.Message.t_FilterCt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_FilterCt other) { - if (other == org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance()) return this; - if (!other.getFrom().isEmpty()) { - from_ = other.from_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { - setContractAddr(other.getContractAddr()); - } - if (!other.addresses_.isEmpty()) { - if (addresses_.isEmpty()) { - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAddressesIsMutable(); - addresses_.addAll(other.addresses_); - } - onChanged(); - } - if (!other.topics_.isEmpty()) { - if (topics_.isEmpty()) { - topics_ = other.topics_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTopicsIsMutable(); - topics_.addAll(other.topics_); - } - onChanged(); - } - if (other.getExpireTime() != 0L) { - setExpireTime(other.getExpireTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_FilterCt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_FilterCt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object from_ = ""; - /** - * string from = 1; - */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string from = 1; - */ - public com.google.protobuf.ByteString - getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string from = 1; - */ - public Builder setFrom( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * string from = 1; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - /** - * string from = 1; - */ - public Builder setFromBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - from_ = value; - onChanged(); - return this; - } - - private java.lang.Object to_ = ""; - /** - * string to = 2; - */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string to = 2; - */ - public com.google.protobuf.ByteString - getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string to = 2; - */ - public Builder setTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * string to = 2; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - /** - * string to = 2; - */ - public Builder setToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contractAddr_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes contractAddr = 3; - */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } - /** - * bytes contractAddr = 3; - */ - public Builder setContractAddr(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** - * bytes contractAddr = 3; - */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - - private java.util.List addresses_ = java.util.Collections.emptyList(); - private void ensureAddressesIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = new java.util.ArrayList(addresses_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated bytes addresses = 4; - */ - public java.util.List - getAddressesList() { - return java.util.Collections.unmodifiableList(addresses_); - } - /** - * repeated bytes addresses = 4; - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - * repeated bytes addresses = 4; - */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } - /** - * repeated bytes addresses = 4; - */ - public Builder setAddresses( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes addresses = 4; - */ - public Builder addAddresses(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes addresses = 4; - */ - public Builder addAllAddresses( - java.lang.Iterable values) { - ensureAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addresses_); - onChanged(); - return this; - } - /** - * repeated bytes addresses = 4; - */ - public Builder clearAddresses() { - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTopicsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = new com.google.protobuf.LazyStringArrayList(topics_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated string topics = 5; - */ - public com.google.protobuf.ProtocolStringList - getTopicsList() { - return topics_.getUnmodifiableView(); - } - /** - * repeated string topics = 5; - */ - public int getTopicsCount() { - return topics_.size(); - } - /** - * repeated string topics = 5; - */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** - * repeated string topics = 5; - */ - public com.google.protobuf.ByteString - getTopicsBytes(int index) { - return topics_.getByteString(index); - } - /** - * repeated string topics = 5; - */ - public Builder setTopics( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string topics = 5; - */ - public Builder addTopics( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } - /** - * repeated string topics = 5; - */ - public Builder addAllTopics( - java.lang.Iterable values) { - ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topics_); - onChanged(); - return this; - } - /** - * repeated string topics = 5; - */ - public Builder clearTopics() { - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * repeated string topics = 5; - */ - public Builder addTopicsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } - - private long expireTime_ ; - /** - * uint64 expireTime = 6; - */ - public long getExpireTime() { - return expireTime_; - } - /** - * uint64 expireTime = 6; - */ - public Builder setExpireTime(long value) { - - expireTime_ = value; - onChanged(); - return this; - } - /** - * uint64 expireTime = 6; - */ - public Builder clearExpireTime() { - - expireTime_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_FilterCt) - } + private t_AionTx() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + nrgConsumed_ = 0L; + nrgPrice_ = 0L; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_FilterCt) - private static final org.aion.api.server.pb.Message.t_FilterCt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_FilterCt(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static org.aion.api.server.pb.Message.t_FilterCt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private t_AionTx( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + txHash_ = input.readBytes(); + break; + } + case 18: + { + from_ = input.readBytes(); + break; + } + case 26: + { + to_ = input.readBytes(); + break; + } + case 34: + { + value_ = input.readBytes(); + break; + } + case 42: + { + data_ = input.readBytes(); + break; + } + case 50: + { + nonce_ = input.readBytes(); + break; + } + case 56: + { + nrgConsumed_ = input.readUInt64(); + break; + } + case 64: + { + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_FilterCt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_FilterCt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AionTx.class, + org.aion.api.server.pb.Message.t_AionTx.Builder.class); + } - public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - } - - public interface t_EventCtOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_EventCt) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * bytes data = 2; - */ - com.google.protobuf.ByteString getData(); - - /** - * bytes blockHash = 3; - */ - com.google.protobuf.ByteString getBlockHash(); - - /** - * uint64 blockNumber = 4; - */ - long getBlockNumber(); - - /** - * uint32 logIndex = 5; - */ - int getLogIndex(); - - /** - * string eventName = 6; - */ - java.lang.String getEventName(); - /** - * string eventName = 6; - */ - com.google.protobuf.ByteString - getEventNameBytes(); - - /** - * bool removed = 7; - */ - boolean getRemoved(); - - /** - * uint32 txIndex = 8; - */ - int getTxIndex(); - - /** - * bytes txHash = 9; - */ - com.google.protobuf.ByteString getTxHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_EventCt} - */ - public static final class t_EventCt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_EventCt) - t_EventCtOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_EventCt.newBuilder() to construct. - private t_EventCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_EventCt() { - address_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - blockHash_ = com.google.protobuf.ByteString.EMPTY; - blockNumber_ = 0L; - logIndex_ = 0; - eventName_ = ""; - removed_ = false; - txIndex_ = 0; - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int FROM_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString from_; + /** bytes from = 2; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_EventCt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { + public static final int TO_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString to_; + /** bytes to = 3; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - address_ = input.readBytes(); - break; - } - case 18: { + public static final int VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString value_; + /** bytes value = 4; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - data_ = input.readBytes(); - break; - } - case 26: { + public static final int DATA_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString data_; + /** bytes data = 5; */ + public com.google.protobuf.ByteString getData() { + return data_; + } - blockHash_ = input.readBytes(); - break; - } - case 32: { + public static final int NONCE_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 6; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - blockNumber_ = input.readUInt64(); - break; - } - case 40: { + public static final int NRGCONSUMED_FIELD_NUMBER = 7; + private long nrgConsumed_; + /** uint64 nrgConsumed = 7; */ + public long getNrgConsumed() { + return nrgConsumed_; + } - logIndex_ = input.readUInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + public static final int NRGPRICE_FIELD_NUMBER = 8; + private long nrgPrice_; + /** uint64 nrgPrice = 8; */ + public long getNrgPrice() { + return nrgPrice_; + } - eventName_ = s; - break; - } - case 56: { + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } - removed_ = input.readBool(); - break; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + if (!from_.isEmpty()) { + output.writeBytes(2, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(3, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(4, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(5, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(6, nonce_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(7, nrgConsumed_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(8, nrgPrice_); } - case 64: { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - txIndex_ = input.readUInt32(); - break; + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, nonce_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(7, nrgConsumed_); } - case 74: { + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(8, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - txHash_ = input.readBytes(); - break; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_AionTx)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_AionTx other = + (org.aion.api.server.pb.Message.t_AionTx) obj; + + boolean result = true; + result = result && getTxHash().equals(other.getTxHash()); + result = result && getFrom().equals(other.getFrom()); + result = result && getTo().equals(other.getTo()); + result = result && getValue().equals(other.getValue()); + result = result && getData().equals(other.getData()); + result = result && getNonce().equals(other.getNonce()); + result = result && (getNrgConsumed() == other.getNrgConsumed()); + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_descriptor; - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_EventCt.class, org.aion.api.server.pb.Message.t_EventCt.Builder.class); - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int BLOCKHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString blockHash_; - /** - * bytes blockHash = 3; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 4; - private long blockNumber_; - /** - * uint64 blockNumber = 4; - */ - public long getBlockNumber() { - return blockNumber_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int LOGINDEX_FIELD_NUMBER = 5; - private int logIndex_; - /** - * uint32 logIndex = 5; - */ - public int getLogIndex() { - return logIndex_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int EVENTNAME_FIELD_NUMBER = 6; - private volatile java.lang.Object eventName_; - /** - * string eventName = 6; - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } - } - /** - * string eventName = 6; - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int REMOVED_FIELD_NUMBER = 7; - private boolean removed_; - /** - * bool removed = 7; - */ - public boolean getRemoved() { - return removed_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int TXINDEX_FIELD_NUMBER = 8; - private int txIndex_; - /** - * uint32 txIndex = 8; - */ - public int getTxIndex() { - return txIndex_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public static final int TXHASH_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 9; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - if (!blockHash_.isEmpty()) { - output.writeBytes(3, blockHash_); - } - if (blockNumber_ != 0L) { - output.writeUInt64(4, blockNumber_); - } - if (logIndex_ != 0) { - output.writeUInt32(5, logIndex_); - } - if (!getEventNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, eventName_); - } - if (removed_ != false) { - output.writeBool(7, removed_); - } - if (txIndex_ != 0) { - output.writeUInt32(8, txIndex_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(9, txHash_); - } - unknownFields.writeTo(output); - } + public Builder newBuilderForType() { + return newBuilder(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, data_); - } - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, blockHash_); - } - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, blockNumber_); - } - if (logIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, logIndex_); - } - if (!getEventNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, eventName_); - } - if (removed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, removed_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, txIndex_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_EventCt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_EventCt other = (org.aion.api.server.pb.Message.t_EventCt) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && getData() - .equals(other.getData()); - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && (getLogIndex() - == other.getLogIndex()); - result = result && getEventName() - .equals(other.getEventName()); - result = result && (getRemoved() - == other.getRemoved()); - result = result && (getTxIndex() - == other.getTxIndex()); - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_AionTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + LOGINDEX_FIELD_NUMBER; - hash = (53 * hash) + getLogIndex(); - hash = (37 * hash) + EVENTNAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - hash = (37 * hash) + REMOVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRemoved()); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_AionTx} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AionTx) + org.aion.api.server.pb.Message.t_AionTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_EventCt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AionTx.class, + org.aion.api.server.pb.Message.t_AionTx.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_EventCt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_EventCt) - org.aion.api.server.pb.Message.t_EventCtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_EventCt.class, org.aion.api.server.pb.Message.t_EventCt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_EventCt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - blockNumber_ = 0L; - - logIndex_ = 0; - - eventName_ = ""; - - removed_ = false; - - txIndex_ = 0; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_descriptor; - } - - public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_EventCt build() { - org.aion.api.server.pb.Message.t_EventCt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_EventCt buildPartial() { - org.aion.api.server.pb.Message.t_EventCt result = new org.aion.api.server.pb.Message.t_EventCt(this); - result.address_ = address_; - result.data_ = data_; - result.blockHash_ = blockHash_; - result.blockNumber_ = blockNumber_; - result.logIndex_ = logIndex_; - result.eventName_ = eventName_; - result.removed_ = removed_; - result.txIndex_ = txIndex_; - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_EventCt) { - return mergeFrom((org.aion.api.server.pb.Message.t_EventCt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_EventCt other) { - if (other == org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getLogIndex() != 0) { - setLogIndex(other.getLogIndex()); - } - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - onChanged(); - } - if (other.getRemoved() != false) { - setRemoved(other.getRemoved()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_EventCt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_EventCt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 2; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 2; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 2; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockHash = 3; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** - * bytes blockHash = 3; - */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * bytes blockHash = 3; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 4; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 4; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 4; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private int logIndex_ ; - /** - * uint32 logIndex = 5; - */ - public int getLogIndex() { - return logIndex_; - } - /** - * uint32 logIndex = 5; - */ - public Builder setLogIndex(int value) { - - logIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 logIndex = 5; - */ - public Builder clearLogIndex() { - - logIndex_ = 0; - onChanged(); - return this; - } - - private java.lang.Object eventName_ = ""; - /** - * string eventName = 6; - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string eventName = 6; - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string eventName = 6; - */ - public Builder setEventName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - eventName_ = value; - onChanged(); - return this; - } - /** - * string eventName = 6; - */ - public Builder clearEventName() { - - eventName_ = getDefaultInstance().getEventName(); - onChanged(); - return this; - } - /** - * string eventName = 6; - */ - public Builder setEventNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - eventName_ = value; - onChanged(); - return this; - } - - private boolean removed_ ; - /** - * bool removed = 7; - */ - public boolean getRemoved() { - return removed_; - } - /** - * bool removed = 7; - */ - public Builder setRemoved(boolean value) { - - removed_ = value; - onChanged(); - return this; - } - /** - * bool removed = 7; - */ - public Builder clearRemoved() { - - removed_ = false; - onChanged(); - return this; - } - - private int txIndex_ ; - /** - * uint32 txIndex = 8; - */ - public int getTxIndex() { - return txIndex_; - } - /** - * uint32 txIndex = 8; - */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 txIndex = 8; - */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 9; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 9; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 9; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_EventCt) - } + // Construct using org.aion.api.server.pb.Message.t_AionTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_EventCt) - private static final org.aion.api.server.pb.Message.t_EventCt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_EventCt(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static org.aion.api.server.pb.Message.t_EventCt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_EventCt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_EventCt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + from_ = com.google.protobuf.ByteString.EMPTY; - public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + to_ = com.google.protobuf.ByteString.EMPTY; - } - - public interface t_BlockDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - - /** - * uint64 timestamp = 2; - */ - long getTimestamp(); - - /** - * uint64 nrgConsumed = 3; - */ - long getNrgConsumed(); - - /** - * uint64 nrgLimit = 4; - */ - long getNrgLimit(); - - /** - * bytes parentHash = 5; - */ - com.google.protobuf.ByteString getParentHash(); - - /** - * bytes minerAddress = 6; - */ - com.google.protobuf.ByteString getMinerAddress(); - - /** - * bytes stateRoot = 7; - */ - com.google.protobuf.ByteString getStateRoot(); - - /** - * bytes txTrieRoot = 8; - */ - com.google.protobuf.ByteString getTxTrieRoot(); - - /** - * bytes receiptTrieRoot = 9; - */ - com.google.protobuf.ByteString getReceiptTrieRoot(); - - /** - * bytes logsBloom = 10; - */ - com.google.protobuf.ByteString getLogsBloom(); - - /** - * bytes difficulty = 11; - */ - com.google.protobuf.ByteString getDifficulty(); - - /** - * bytes totalDifficulty = 12; - */ - com.google.protobuf.ByteString getTotalDifficulty(); - - /** - * bytes extraData = 13; - */ - com.google.protobuf.ByteString getExtraData(); - - /** - * bytes nonce = 14; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * bytes solution = 15; - */ - com.google.protobuf.ByteString getSolution(); - - /** - * bytes hash = 16; - */ - com.google.protobuf.ByteString getHash(); - - /** - * uint32 size = 17; - */ - int getSize(); - - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - java.util.List - getTxList(); - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - org.aion.api.server.pb.Message.t_TxDetail getTx(int index); - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - int getTxCount(); - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - java.util.List - getTxOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( - int index); - - /** - * uint64 blockTime = 19; - */ - long getBlockTime(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} - */ - public static final class t_BlockDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockDetail) - t_BlockDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_BlockDetail.newBuilder() to construct. - private t_BlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_BlockDetail() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - tx_ = java.util.Collections.emptyList(); - blockTime_ = 0L; - } + value_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_BlockDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + data_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + nrgConsumed_ = 0L; + + nrgPrice_ = 0L; + + return this; } - case 8: { - blockNumber_ = input.readUInt64(); - break; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AionTx_descriptor; } - case 16: { - timestamp_ = input.readUInt64(); - break; + public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance(); } - case 24: { - nrgConsumed_ = input.readUInt64(); - break; + public org.aion.api.server.pb.Message.t_AionTx build() { + org.aion.api.server.pb.Message.t_AionTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - case 32: { - nrgLimit_ = input.readUInt64(); - break; + public org.aion.api.server.pb.Message.t_AionTx buildPartial() { + org.aion.api.server.pb.Message.t_AionTx result = + new org.aion.api.server.pb.Message.t_AionTx(this); + result.txHash_ = txHash_; + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nonce_ = nonce_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; } - case 42: { - parentHash_ = input.readBytes(); - break; + public Builder clone() { + return (Builder) super.clone(); } - case 50: { - minerAddress_ = input.readBytes(); - break; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); } - case 58: { - stateRoot_ = input.readBytes(); - break; + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); } - case 66: { - txTrieRoot_ = input.readBytes(); - break; + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); } - case 74: { - receiptTrieRoot_ = input.readBytes(); - break; + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - case 82: { - logsBloom_ = input.readBytes(); - break; + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); } - case 90: { - difficulty_ = input.readBytes(); - break; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_AionTx) { + return mergeFrom((org.aion.api.server.pb.Message.t_AionTx) other); + } else { + super.mergeFrom(other); + return this; + } } - case 98: { - totalDifficulty_ = input.readBytes(); - break; + public Builder mergeFrom(org.aion.api.server.pb.Message.t_AionTx other) { + if (other == org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()) + return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - case 106: { - extraData_ = input.readBytes(); - break; + public final boolean isInitialized() { + return true; } - case 114: { - nonce_ = input.readBytes(); - break; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_AionTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_AionTx) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - case 122: { - solution_ = input.readBytes(); - break; + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 1; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; } - case 130: { + /** bytes txHash = 1; */ + public Builder clearTxHash() { - hash_ = input.readBytes(); - break; + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; } - case 136: { - size_ = input.readUInt32(); - break; + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 2; */ + public com.google.protobuf.ByteString getFrom() { + return from_; } - case 146: { - if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00020000; - } - tx_.add( - input.readMessage(org.aion.api.server.pb.Message.t_TxDetail.parser(), extensionRegistry)); - break; + /** bytes from = 2; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; } - case 152: { + /** bytes from = 2; */ + public Builder clearFrom() { - blockTime_ = input.readUInt64(); - break; + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockDetail.class, org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); - } + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** bytes to = 3; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** bytes to = 3; */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** bytes to = 3; */ + public Builder clearTo() { - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** bytes value = 4; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** bytes value = 4; */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** bytes value = 4; */ + public Builder clearValue() { - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 5; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 5; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 5; */ + public Builder clearData() { - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 6; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 6; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 6; */ + public Builder clearNonce() { - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } + private long nrgConsumed_; + /** uint64 nrgConsumed = 7; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** uint64 nrgConsumed = 7; */ + public Builder setNrgConsumed(long value) { - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } + nrgConsumed_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsumed = 7; */ + public Builder clearNrgConsumed() { - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } + nrgConsumed_ = 0L; + onChanged(); + return this; + } - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } + private long nrgPrice_; + /** uint64 nrgPrice = 8; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 8; */ + public Builder setNrgPrice(long value) { - public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString totalDifficulty_; - /** - * bytes totalDifficulty = 12; - */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 8; */ + public Builder clearNrgPrice() { - public static final int EXTRADATA_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString extraData_; - /** - * bytes extraData = 13; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } + nrgPrice_ = 0L; + onChanged(); + return this; + } - public static final int NONCE_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 14; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public static final int SOLUTION_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString solution_; - /** - * bytes solution = 15; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int HASH_FIELD_NUMBER = 16; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 16; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AionTx) + } - public static final int SIZE_FIELD_NUMBER = 17; - private int size_; - /** - * uint32 size = 17; - */ - public int getSize() { - return size_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AionTx) + private static final org.aion.api.server.pb.Message.t_AionTx DEFAULT_INSTANCE; - public static final int TX_FIELD_NUMBER = 18; - private java.util.List tx_; - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public java.util.List getTxList() { - return tx_; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public java.util.List - getTxOrBuilderList() { - return tx_; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public int getTxCount() { - return tx_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { - return tx_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( - int index) { - return tx_.get(index); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AionTx(); + } - public static final int BLOCKTIME_FIELD_NUMBER = 19; - private long blockTime_; - /** - * uint64 blockTime = 19; - */ - public long getBlockTime() { - return blockTime_; - } + public static org.aion.api.server.pb.Message.t_AionTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_AionTx parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_AionTx(input, extensionRegistry); + } + }; - memoizedIsInitialized = 1; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - output.writeBytes(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(13, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(14, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(15, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(16, hash_); - } - if (size_ != 0) { - output.writeUInt32(17, size_); - } - for (int i = 0; i < tx_.size(); i++) { - output.writeMessage(18, tx_.get(i)); - } - if (blockTime_ != 0L) { - output.writeUInt64(19, blockTime_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, size_); - } - for (int i = 0; i < tx_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, tx_.get(i)); - } - if (blockTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(19, blockTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockDetail)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_BlockDetail other = (org.aion.api.server.pb.Message.t_BlockDetail) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && (getTimestamp() - == other.getTimestamp()); - result = result && (getNrgConsumed() - == other.getNrgConsumed()); - result = result && (getNrgLimit() - == other.getNrgLimit()); - result = result && getParentHash() - .equals(other.getParentHash()); - result = result && getMinerAddress() - .equals(other.getMinerAddress()); - result = result && getStateRoot() - .equals(other.getStateRoot()); - result = result && getTxTrieRoot() - .equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot() - .equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom() - .equals(other.getLogsBloom()); - result = result && getDifficulty() - .equals(other.getDifficulty()); - result = result && getTotalDifficulty() - .equals(other.getTotalDifficulty()); - result = result && getExtraData() - .equals(other.getExtraData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && getSolution() - .equals(other.getSolution()); - result = result && getHash() - .equals(other.getHash()); - result = result && (getSize() - == other.getSize()); - result = result && getTxList() - .equals(other.getTxList()); - result = result && (getBlockTime() - == other.getBlockTime()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public interface t_NodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Node) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getTotalDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - if (getTxCount() > 0) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTxList().hashCode(); - } - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** uint64 blockNumber = 1; */ + long getBlockNumber(); - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** string nodeId = 2; */ + java.lang.String getNodeId(); + /** string nodeId = 2; */ + com.google.protobuf.ByteString getNodeIdBytes(); - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** string remote_p2p_ip = 3; */ + java.lang.String getRemoteP2PIp(); + /** string remote_p2p_ip = 3; */ + com.google.protobuf.ByteString getRemoteP2PIpBytes(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockDetail) - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; - } + /** uint32 remote_p2p_port = 4; */ + int getRemoteP2PPort(); - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockDetail.class, org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_BlockDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - timestamp_ = 0L; - - nrgConsumed_ = 0L; - - nrgLimit_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - - difficulty_ = com.google.protobuf.ByteString.EMPTY; - - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - - extraData_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - size_ = 0; - - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - } else { - txBuilder_.clear(); - } - blockTime_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; - } - - public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_BlockDetail build() { - org.aion.api.server.pb.Message.t_BlockDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_BlockDetail buildPartial() { - org.aion.api.server.pb.Message.t_BlockDetail result = new org.aion.api.server.pb.Message.t_BlockDetail(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.totalDifficulty_ = totalDifficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - if (txBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - result.blockTime_ = blockTime_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_BlockDetail) { - return mergeFrom((org.aion.api.server.pb.Message.t_BlockDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockDetail other) { - if (other == org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setTotalDifficulty(other.getTotalDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (txBuilder_ == null) { - if (!other.tx_.isEmpty()) { - if (tx_.isEmpty()) { - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureTxIsMutable(); - tx_.addAll(other.tx_); - } - onChanged(); - } - } else { - if (!other.tx_.isEmpty()) { - if (txBuilder_.isEmpty()) { - txBuilder_.dispose(); - txBuilder_ = null; - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00020000); - txBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxFieldBuilder() : null; - } else { - txBuilder_.addAllMessages(other.tx_); - } - } - } - if (other.getBlockTime() != 0L) { - setBlockTime(other.getBlockTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_BlockDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_BlockDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_ ; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgLimit_ ; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** - * bytes parentHash = 5; - */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * bytes parentHash = 5; - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** - * bytes minerAddress = 6; - */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** - * bytes minerAddress = 6; - */ - public Builder clearMinerAddress() { - - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** - * bytes stateRoot = 7; - */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** - * bytes stateRoot = 7; - */ - public Builder clearStateRoot() { - - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder clearTxTrieRoot() { - - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder clearReceiptTrieRoot() { - - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** - * bytes logsBloom = 10; - */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** - * bytes logsBloom = 10; - */ - public Builder clearLogsBloom() { - - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** - * bytes difficulty = 11; - */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** - * bytes difficulty = 11; - */ - public Builder clearDifficulty() { - - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes totalDifficulty = 12; - */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } - /** - * bytes totalDifficulty = 12; - */ - public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDifficulty_ = value; - onChanged(); - return this; - } - /** - * bytes totalDifficulty = 12; - */ - public Builder clearTotalDifficulty() { - - totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes extraData = 13; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** - * bytes extraData = 13; - */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** - * bytes extraData = 13; - */ - public Builder clearExtraData() { - - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 14; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 14; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 14; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes solution = 15; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** - * bytes solution = 15; - */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** - * bytes solution = 15; - */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 16; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 16; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 16; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private int size_ ; - /** - * uint32 size = 17; - */ - public int getSize() { - return size_; - } - /** - * uint32 size = 17; - */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** - * uint32 size = 17; - */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - private java.util.List tx_ = - java.util.Collections.emptyList(); - private void ensureTxIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = new java.util.ArrayList(tx_); - bitField0_ |= 0x00020000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_TxDetail, org.aion.api.server.pb.Message.t_TxDetail.Builder, org.aion.api.server.pb.Message.t_TxDetailOrBuilder> txBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public java.util.List getTxList() { - if (txBuilder_ == null) { - return java.util.Collections.unmodifiableList(tx_); - } else { - return txBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public int getTxCount() { - if (txBuilder_ == null) { - return tx_.size(); - } else { - return txBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { - if (txBuilder_ == null) { - return tx_.get(index); - } else { - return txBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder setTx( - int index, org.aion.api.server.pb.Message.t_TxDetail value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.set(index, value); - onChanged(); - } else { - txBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder setTx( - int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.set(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder addTx(org.aion.api.server.pb.Message.t_TxDetail value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - } else { - txBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder addTx( - int index, org.aion.api.server.pb.Message.t_TxDetail value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(index, value); - onChanged(); - } else { - txBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder addTx( - org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder addTx( - int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder addAllTx( - java.lang.Iterable values) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tx_); - onChanged(); - } else { - txBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - } else { - txBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public Builder removeTx(int index) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.remove(index); - onChanged(); - } else { - txBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public org.aion.api.server.pb.Message.t_TxDetail.Builder getTxBuilder( - int index) { - return getTxFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( - int index) { - if (txBuilder_ == null) { - return tx_.get(index); } else { - return txBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public java.util.List - getTxOrBuilderList() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tx_); - } - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder() { - return getTxFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder( - int index) { - return getTxFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; - */ - public java.util.List - getTxBuilderList() { - return getTxFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_TxDetail, org.aion.api.server.pb.Message.t_TxDetail.Builder, org.aion.api.server.pb.Message.t_TxDetailOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_TxDetail, org.aion.api.server.pb.Message.t_TxDetail.Builder, org.aion.api.server.pb.Message.t_TxDetailOrBuilder>( - tx_, - ((bitField0_ & 0x00020000) == 0x00020000), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - private long blockTime_ ; - /** - * uint64 blockTime = 19; - */ - public long getBlockTime() { - return blockTime_; - } - /** - * uint64 blockTime = 19; - */ - public Builder setBlockTime(long value) { - - blockTime_ = value; - onChanged(); - return this; - } - /** - * uint64 blockTime = 19; - */ - public Builder clearBlockTime() { - - blockTime_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockDetail) + /** uint32 latency = 5; */ + int getLatency(); } + /** Protobuf type {@code org.aion.api.server.pb.t_Node} */ + public static final class t_Node extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Node) + t_NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Node.newBuilder() to construct. + private t_Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockDetail) - private static final org.aion.api.server.pb.Message.t_BlockDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockDetail(); - } + private t_Node() { + blockNumber_ = 0L; + nodeId_ = ""; + remoteP2PIp_ = ""; + remoteP2PPort_ = 0; + latency_ = 0; + } - public static org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_BlockDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_BlockDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private t_Node( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + remoteP2PIp_ = s; + break; + } + case 32: + { + remoteP2PPort_ = input.readUInt32(); + break; + } + case 40: + { + latency_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Node_descriptor; + } - public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Node.class, + org.aion.api.server.pb.Message.t_Node.Builder.class); + } - } - - public interface t_TxDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_TxDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes txHash = 1; - */ - com.google.protobuf.ByteString getTxHash(); - - /** - * bytes from = 2; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes to = 3; - */ - com.google.protobuf.ByteString getTo(); - - /** - * bytes value = 4; - */ - com.google.protobuf.ByteString getValue(); - - /** - * bytes data = 5; - */ - com.google.protobuf.ByteString getData(); - - /** - * bytes nonce = 6; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * uint64 nrgConsumed = 7; - */ - long getNrgConsumed(); - - /** - * uint64 nrgPrice = 8; - */ - long getNrgPrice(); - - /** - * uint32 txIndex = 9; - */ - int getTxIndex(); - - /** - * bytes contract = 10; - */ - com.google.protobuf.ByteString getContract(); - - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - java.util.List - getLogsList(); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - org.aion.api.server.pb.Message.t_LgEle getLogs(int index); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - int getLogsCount(); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - java.util.List - getLogsOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( - int index); - - /** - * uint64 timestamp = 12; - */ - long getTimestamp(); - - /** - * string error = 13; - */ - java.lang.String getError(); - /** - * string error = 13; - */ - com.google.protobuf.ByteString - getErrorBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_TxDetail} - */ - public static final class t_TxDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_TxDetail) - t_TxDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_TxDetail.newBuilder() to construct. - private t_TxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_TxDetail() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - nrgConsumed_ = 0L; - nrgPrice_ = 0L; - txIndex_ = 0; - contract_ = com.google.protobuf.ByteString.EMPTY; - logs_ = java.util.Collections.emptyList(); - timestamp_ = 0L; - error_ = ""; - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_TxDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + public static final int NODEID_FIELD_NUMBER = 2; + private volatile java.lang.Object nodeId_; + /** string nodeId = 2; */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; } - case 10: { - - txHash_ = input.readBytes(); - break; + } + /** string nodeId = 2; */ + public com.google.protobuf.ByteString getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 18: { + } - from_ = input.readBytes(); - break; + public static final int REMOTE_P2P_IP_FIELD_NUMBER = 3; + private volatile java.lang.Object remoteP2PIp_; + /** string remote_p2p_ip = 3; */ + public java.lang.String getRemoteP2PIp() { + java.lang.Object ref = remoteP2PIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteP2PIp_ = s; + return s; } - case 26: { - - to_ = input.readBytes(); - break; + } + /** string remote_p2p_ip = 3; */ + public com.google.protobuf.ByteString getRemoteP2PIpBytes() { + java.lang.Object ref = remoteP2PIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remoteP2PIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - case 34: { + } - value_ = input.readBytes(); - break; - } - case 42: { + public static final int REMOTE_P2P_PORT_FIELD_NUMBER = 4; + private int remoteP2PPort_; + /** uint32 remote_p2p_port = 4; */ + public int getRemoteP2PPort() { + return remoteP2PPort_; + } - data_ = input.readBytes(); - break; - } - case 50: { + public static final int LATENCY_FIELD_NUMBER = 5; + private int latency_; + /** uint32 latency = 5; */ + public int getLatency() { + return latency_; + } - nonce_ = input.readBytes(); - break; - } - case 56: { + private byte memoizedIsInitialized = -1; - nrgConsumed_ = input.readUInt64(); - break; - } - case 64: { + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - nrgPrice_ = input.readUInt64(); - break; - } - case 72: { + memoizedIsInitialized = 1; + return true; + } - txIndex_ = input.readUInt32(); - break; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); } - case 82: { - - contract_ = input.readBytes(); - break; + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); + } + if (!getRemoteP2PIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, remoteP2PIp_); + } + if (remoteP2PPort_ != 0) { + output.writeUInt32(4, remoteP2PPort_); } - case 90: { - if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; - } - logs_.add( - input.readMessage(org.aion.api.server.pb.Message.t_LgEle.parser(), extensionRegistry)); - break; + if (latency_ != 0) { + output.writeUInt32(5, latency_); } - case 96: { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - timestamp_ = input.readUInt64(); - break; + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); + } + if (!getRemoteP2PIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, remoteP2PIp_); } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); + if (remoteP2PPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, remoteP2PPort_); + } + if (latency_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, latency_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - error_ = s; - break; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Node)) { + return super.equals(obj); } - } + org.aion.api.server.pb.Message.t_Node other = + (org.aion.api.server.pb.Message.t_Node) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && getNodeId().equals(other.getNodeId()); + result = result && getRemoteP2PIp().equals(other.getRemoteP2PIp()); + result = result && (getRemoteP2PPort() == other.getRemoteP2PPort()); + result = result && (getLatency() == other.getLatency()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + NODEID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + REMOTE_P2P_IP_FIELD_NUMBER; + hash = (53 * hash) + getRemoteP2PIp().hashCode(); + hash = (37 * hash) + REMOTE_P2P_PORT_FIELD_NUMBER; + hash = (53 * hash) + getRemoteP2PPort(); + hash = (37 * hash) + LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getLatency(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = java.util.Collections.unmodifiableList(logs_); + + public static org.aion.api.server.pb.Message.t_Node parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_TxDetail.class, org.aion.api.server.pb.Message.t_TxDetail.Builder.class); - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private int bitField0_; - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int FROM_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 2; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int TO_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString to_; - /** - * bytes to = 3; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int VALUE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 4; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int DATA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 5; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int NONCE_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 6; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int NRGCONSUMED_FIELD_NUMBER = 7; - private long nrgConsumed_; - /** - * uint64 nrgConsumed = 7; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } + public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public static final int NRGPRICE_FIELD_NUMBER = 8; - private long nrgPrice_; - /** - * uint64 nrgPrice = 8; - */ - public long getNrgPrice() { - return nrgPrice_; - } + public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static final int TXINDEX_FIELD_NUMBER = 9; - private int txIndex_; - /** - * uint32 txIndex = 9; - */ - public int getTxIndex() { - return txIndex_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int CONTRACT_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString contract_; - /** - * bytes contract = 10; - */ - public com.google.protobuf.ByteString getContract() { - return contract_; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int LOGS_FIELD_NUMBER = 11; - private java.util.List logs_; - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - return logs_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int TIMESTAMP_FIELD_NUMBER = 12; - private long timestamp_; - /** - * uint64 timestamp = 12; - */ - public long getTimestamp() { - return timestamp_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int ERROR_FIELD_NUMBER = 13; - private volatile java.lang.Object error_; - /** - * string error = 13; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * string error = 13; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Node prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_Node} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Node) + org.aion.api.server.pb.Message.t_NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Node_descriptor; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - if (!from_.isEmpty()) { - output.writeBytes(2, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(3, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(4, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(5, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(6, nonce_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(7, nrgConsumed_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(8, nrgPrice_); - } - if (txIndex_ != 0) { - output.writeUInt32(9, txIndex_); - } - if (!contract_.isEmpty()) { - output.writeBytes(10, contract_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(11, logs_.get(i)); - } - if (timestamp_ != 0L) { - output.writeUInt64(12, timestamp_); - } - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, error_); - } - unknownFields.writeTo(output); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Node.class, + org.aion.api.server.pb.Message.t_Node.Builder.class); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, nonce_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, nrgConsumed_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, nrgPrice_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, txIndex_); - } - if (!contract_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, contract_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, logs_.get(i)); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(12, timestamp_); - } - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, error_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // Construct using org.aion.api.server.pb.Message.t_Node.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_TxDetail)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_TxDetail other = (org.aion.api.server.pb.Message.t_TxDetail) obj; - - boolean result = true; - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTo() - .equals(other.getTo()); - result = result && getValue() - .equals(other.getValue()); - result = result && getData() - .equals(other.getData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && (getNrgConsumed() - == other.getNrgConsumed()); - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && (getTxIndex() - == other.getTxIndex()); - result = result && getContract() - .equals(other.getContract()); - result = result && getLogsList() - .equals(other.getLogsList()); - result = result && (getTimestamp() - == other.getTimestamp()); - result = result && getError() - .equals(other.getError()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsumed()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + getContract().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_TxDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + nodeId_ = ""; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_TxDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_TxDetail) - org.aion.api.server.pb.Message.t_TxDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_TxDetail.class, org.aion.api.server.pb.Message.t_TxDetail.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_TxDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - nrgConsumed_ = 0L; - - nrgPrice_ = 0L; - - txIndex_ = 0; - - contract_ = com.google.protobuf.ByteString.EMPTY; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - } else { - logsBuilder_.clear(); - } - timestamp_ = 0L; - - error_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - } - - public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_TxDetail build() { - org.aion.api.server.pb.Message.t_TxDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_TxDetail buildPartial() { - org.aion.api.server.pb.Message.t_TxDetail result = new org.aion.api.server.pb.Message.t_TxDetail(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.txHash_ = txHash_; - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nonce_ = nonce_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgPrice_ = nrgPrice_; - result.txIndex_ = txIndex_; - result.contract_ = contract_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - result.timestamp_ = timestamp_; - result.error_ = error_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_TxDetail) { - return mergeFrom((org.aion.api.server.pb.Message.t_TxDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_TxDetail other) { - if (other == org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getContract() != com.google.protobuf.ByteString.EMPTY) { - setContract(other.getContract()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000400); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_TxDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_TxDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 2; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 2; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 2; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to = 3; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** - * bytes to = 3; - */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * bytes to = 3; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 4; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 4; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 4; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 5; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 5; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 5; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 6; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 6; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 6; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private long nrgConsumed_ ; - /** - * uint64 nrgConsumed = 7; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** - * uint64 nrgConsumed = 7; - */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsumed = 7; - */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 8; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 8; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 8; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - private int txIndex_ ; - /** - * uint32 txIndex = 9; - */ - public int getTxIndex() { - return txIndex_; - } - /** - * uint32 txIndex = 9; - */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 txIndex = 9; - */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contract_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes contract = 10; - */ - public com.google.protobuf.ByteString getContract() { - return contract_; - } - /** - * bytes contract = 10; - */ - public Builder setContract(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contract_ = value; - onChanged(); - return this; - } - /** - * bytes contract = 10; - */ - public Builder clearContract() { - - contract_ = getDefaultInstance().getContract(); - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> logsBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder setLogs( - int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder setLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder addLogs( - int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder addLogs( - org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder addLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 11; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder>( - logs_, - ((bitField0_ & 0x00000400) == 0x00000400), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 12; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 12; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 12; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * string error = 13; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string error = 13; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string error = 13; - */ - public Builder setError( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * string error = 13; - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * string error = 13; - */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_TxDetail) - } + remoteP2PIp_ = ""; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_TxDetail) - private static final org.aion.api.server.pb.Message.t_TxDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_TxDetail(); - } + remoteP2PPort_ = 0; - public static org.aion.api.server.pb.Message.t_TxDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + latency_ = 0; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_TxDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_TxDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Node_descriptor; + } - public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Node.getDefaultInstance(); + } - } - - public interface t_AccountDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AccountDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * bytes balance = 2; - */ - com.google.protobuf.ByteString getBalance(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} - */ - public static final class t_AccountDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AccountDetail) - t_AccountDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_AccountDetail.newBuilder() to construct. - private t_AccountDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_AccountDetail() { - address_ = com.google.protobuf.ByteString.EMPTY; - balance_ = com.google.protobuf.ByteString.EMPTY; - } + public org.aion.api.server.pb.Message.t_Node build() { + org.aion.api.server.pb.Message.t_Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_AccountDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - case 18: { - - balance_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - } + public org.aion.api.server.pb.Message.t_Node buildPartial() { + org.aion.api.server.pb.Message.t_Node result = + new org.aion.api.server.pb.Message.t_Node(this); + result.blockNumber_ = blockNumber_; + result.nodeId_ = nodeId_; + result.remoteP2PIp_ = remoteP2PIp_; + result.remoteP2PPort_ = remoteP2PPort_; + result.latency_ = latency_; + onBuilt(); + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AccountDetail.class, org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); - } + public Builder clone() { + return (Builder) super.clone(); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - public static final int BALANCE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString balance_; - /** - * bytes balance = 2; - */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - memoizedIsInitialized = 1; - return true; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!balance_.isEmpty()) { - output.writeBytes(2, balance_); - } - unknownFields.writeTo(output); - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (!balance_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, balance_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Node) { + return mergeFrom((org.aion.api.server.pb.Message.t_Node) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_AccountDetail)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_AccountDetail other = (org.aion.api.server.pb.Message.t_AccountDetail) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && getBalance() - .equals(other.getBalance()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Node other) { + if (other == org.aion.api.server.pb.Message.t_Node.getDefaultInstance()) + return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getRemoteP2PIp().isEmpty()) { + remoteP2PIp_ = other.remoteP2PIp_; + onChanged(); + } + if (other.getRemoteP2PPort() != 0) { + setRemoteP2PPort(other.getRemoteP2PPort()); + } + if (other.getLatency() != 0) { + setLatency(other.getLatency()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public final boolean isInitialized() { + return true; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_AccountDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AccountDetail) - org.aion.api.server.pb.Message.t_AccountDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AccountDetail.class, org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_AccountDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - balance_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - } - - public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_AccountDetail build() { - org.aion.api.server.pb.Message.t_AccountDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_AccountDetail buildPartial() { - org.aion.api.server.pb.Message.t_AccountDetail result = new org.aion.api.server.pb.Message.t_AccountDetail(this); - result.address_ = address_; - result.balance_ = balance_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_AccountDetail) { - return mergeFrom((org.aion.api.server.pb.Message.t_AccountDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_AccountDetail other) { - if (other == org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { - setBalance(other.getBalance()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_AccountDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_AccountDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes balance = 2; - */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } - /** - * bytes balance = 2; - */ - public Builder setBalance(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - balance_ = value; - onChanged(); - return this; - } - /** - * bytes balance = 2; - */ - public Builder clearBalance() { - - balance_ = getDefaultInstance().getBalance(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AccountDetail) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AccountDetail) - private static final org.aion.api.server.pb.Message.t_AccountDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AccountDetail(); - } - - public static org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_AccountDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_AccountDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface t_BlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Block) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - - /** - * uint64 timestamp = 2; - */ - long getTimestamp(); - - /** - * uint64 nrgConsumed = 3; - */ - long getNrgConsumed(); - - /** - * uint64 nrgLimit = 4; - */ - long getNrgLimit(); - - /** - * bytes parentHash = 5; - */ - com.google.protobuf.ByteString getParentHash(); - - /** - * bytes minerAddress = 6; - */ - com.google.protobuf.ByteString getMinerAddress(); - - /** - * bytes stateRoot = 7; - */ - com.google.protobuf.ByteString getStateRoot(); - - /** - * bytes txTrieRoot = 8; - */ - com.google.protobuf.ByteString getTxTrieRoot(); - - /** - * bytes receiptTrieRoot = 9; - */ - com.google.protobuf.ByteString getReceiptTrieRoot(); - - /** - * bytes logsBloom = 10; - */ - com.google.protobuf.ByteString getLogsBloom(); - - /** - * bytes difficulty = 11; - */ - com.google.protobuf.ByteString getDifficulty(); - - /** - * bytes totalDifficulty = 12; - */ - com.google.protobuf.ByteString getTotalDifficulty(); - - /** - * bytes extraData = 13; - */ - com.google.protobuf.ByteString getExtraData(); - - /** - * bytes nonce = 14; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * bytes solution = 15; - */ - com.google.protobuf.ByteString getSolution(); - - /** - * bytes hash = 16; - */ - com.google.protobuf.ByteString getHash(); - - /** - * uint32 size = 17; - */ - int getSize(); - - /** - * repeated bytes txHash = 18; - */ - java.util.List getTxHashList(); - /** - * repeated bytes txHash = 18; - */ - int getTxHashCount(); - /** - * repeated bytes txHash = 18; - */ - com.google.protobuf.ByteString getTxHash(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Block} - */ - public static final class t_Block extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Block) - t_BlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Block.newBuilder() to construct. - private t_Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_Block() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - txHash_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_Block( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Node parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_Node) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - case 8: { - blockNumber_ = input.readUInt64(); - break; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; } - case 16: { + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { - timestamp_ = input.readUInt64(); - break; + blockNumber_ = value; + onChanged(); + return this; } - case 24: { + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { - nrgConsumed_ = input.readUInt64(); - break; + blockNumber_ = 0L; + onChanged(); + return this; } - case 32: { - nrgLimit_ = input.readUInt64(); - break; + private java.lang.Object nodeId_ = ""; + /** string nodeId = 2; */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - case 42: { - - parentHash_ = input.readBytes(); - break; + /** string nodeId = 2; */ + public com.google.protobuf.ByteString getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - case 50: { - - minerAddress_ = input.readBytes(); - break; + /** string nodeId = 2; */ + public Builder setNodeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; } - case 58: { + /** string nodeId = 2; */ + public Builder clearNodeId() { - stateRoot_ = input.readBytes(); - break; + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; } - case 66: { - - txTrieRoot_ = input.readBytes(); - break; + /** string nodeId = 2; */ + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; } - case 74: { - receiptTrieRoot_ = input.readBytes(); - break; + private java.lang.Object remoteP2PIp_ = ""; + /** string remote_p2p_ip = 3; */ + public java.lang.String getRemoteP2PIp() { + java.lang.Object ref = remoteP2PIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteP2PIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string remote_p2p_ip = 3; */ + public com.google.protobuf.ByteString getRemoteP2PIpBytes() { + java.lang.Object ref = remoteP2PIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remoteP2PIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - case 82: { + /** string remote_p2p_ip = 3; */ + public Builder setRemoteP2PIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteP2PIp_ = value; + onChanged(); + return this; + } + /** string remote_p2p_ip = 3; */ + public Builder clearRemoteP2PIp() { - logsBloom_ = input.readBytes(); - break; + remoteP2PIp_ = getDefaultInstance().getRemoteP2PIp(); + onChanged(); + return this; + } + /** string remote_p2p_ip = 3; */ + public Builder setRemoteP2PIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteP2PIp_ = value; + onChanged(); + return this; } - case 90: { - difficulty_ = input.readBytes(); - break; + private int remoteP2PPort_; + /** uint32 remote_p2p_port = 4; */ + public int getRemoteP2PPort() { + return remoteP2PPort_; } - case 98: { + /** uint32 remote_p2p_port = 4; */ + public Builder setRemoteP2PPort(int value) { - totalDifficulty_ = input.readBytes(); - break; + remoteP2PPort_ = value; + onChanged(); + return this; } - case 106: { + /** uint32 remote_p2p_port = 4; */ + public Builder clearRemoteP2PPort() { - extraData_ = input.readBytes(); - break; + remoteP2PPort_ = 0; + onChanged(); + return this; } - case 114: { - nonce_ = input.readBytes(); - break; + private int latency_; + /** uint32 latency = 5; */ + public int getLatency() { + return latency_; } - case 122: { + /** uint32 latency = 5; */ + public Builder setLatency(int value) { - solution_ = input.readBytes(); - break; + latency_ = value; + onChanged(); + return this; } - case 130: { + /** uint32 latency = 5; */ + public Builder clearLatency() { - hash_ = input.readBytes(); - break; + latency_ = 0; + onChanged(); + return this; } - case 136: { - size_ = input.readUInt32(); - break; + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); } - case 146: { - if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00020000; - } - txHash_.add(input.readBytes()); - break; + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_descriptor; - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Block.class, org.aion.api.server.pb.Message.t_Block.Builder.class); - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Node) + } - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Node) + private static final org.aion.api.server.pb.Message.t_Node DEFAULT_INSTANCE; - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Node(); + } - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } + public static org.aion.api.server.pb.Message.t_Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Node(input, extensionRegistry); + } + }; - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; + public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } + public interface t_LgEleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_LgEle) + com.google.protobuf.MessageOrBuilder { - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } + /** bytes data = 2; */ + com.google.protobuf.ByteString getData(); - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; + /** repeated string topics = 3; */ + java.util.List getTopicsList(); + /** repeated string topics = 3; */ + int getTopicsCount(); + /** repeated string topics = 3; */ + java.lang.String getTopics(int index); + /** repeated string topics = 3; */ + com.google.protobuf.ByteString getTopicsBytes(int index); } + /** Protobuf type {@code org.aion.api.server.pb.t_LgEle} */ + public static final class t_LgEle extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_LgEle) + t_LgEleOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_LgEle.newBuilder() to construct. + private t_LgEle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString totalDifficulty_; - /** - * bytes totalDifficulty = 12; - */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } + private t_LgEle() { + address_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - public static final int EXTRADATA_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString extraData_; - /** - * bytes extraData = 13; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int NONCE_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 14; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + private t_LgEle( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 18: + { + data_ = input.readBytes(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + topics_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = topics_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int SOLUTION_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString solution_; - /** - * bytes solution = 15; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + } - public static final int HASH_FIELD_NUMBER = 16; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 16; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_LgEle.class, + org.aion.api.server.pb.Message.t_LgEle.Builder.class); + } - public static final int SIZE_FIELD_NUMBER = 17; - private int size_; - /** - * uint32 size = 17; - */ - public int getSize() { - return size_; - } + private int bitField0_; + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - public static final int TXHASH_FIELD_NUMBER = 18; - private java.util.List txHash_; - /** - * repeated bytes txHash = 18; - */ - public java.util.List - getTxHashList() { - return txHash_; - } - /** - * repeated bytes txHash = 18; - */ - public int getTxHashCount() { - return txHash_.size(); - } - /** - * repeated bytes txHash = 18; - */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); - } + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** bytes data = 2; */ + public com.google.protobuf.ByteString getData() { + return data_; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int TOPICS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList topics_; + /** repeated string topics = 3; */ + public com.google.protobuf.ProtocolStringList getTopicsList() { + return topics_; + } + /** repeated string topics = 3; */ + public int getTopicsCount() { + return topics_.size(); + } + /** repeated string topics = 3; */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** repeated string topics = 3; */ + public com.google.protobuf.ByteString getTopicsBytes(int index) { + return topics_.getByteString(index); + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - output.writeBytes(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(13, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(14, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(15, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(16, hash_); - } - if (size_ != 0) { - output.writeUInt32(17, size_); - } - for (int i = 0; i < txHash_.size(); i++) { - output.writeBytes(18, txHash_.get(i)); - } - unknownFields.writeTo(output); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, size_); - } - { - int dataSize = 0; - for (int i = 0; i < txHash_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(txHash_.get(i)); - } - size += dataSize; - size += 2 * getTxHashList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Block)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_Block other = (org.aion.api.server.pb.Message.t_Block) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && (getTimestamp() - == other.getTimestamp()); - result = result && (getNrgConsumed() - == other.getNrgConsumed()); - result = result && (getNrgLimit() - == other.getNrgLimit()); - result = result && getParentHash() - .equals(other.getParentHash()); - result = result && getMinerAddress() - .equals(other.getMinerAddress()); - result = result && getStateRoot() - .equals(other.getStateRoot()); - result = result && getTxTrieRoot() - .equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot() - .equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom() - .equals(other.getLogsBloom()); - result = result && getDifficulty() - .equals(other.getDifficulty()); - result = result && getTotalDifficulty() - .equals(other.getTotalDifficulty()); - result = result && getExtraData() - .equals(other.getExtraData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && getSolution() - .equals(other.getSolution()); - result = result && getHash() - .equals(other.getHash()); - result = result && (getSize() - == other.getSize()); - result = result && getTxHashList() - .equals(other.getTxHashList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + for (int i = 0; i < topics_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topics_.getRaw(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getTotalDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - if (getTxHashCount() > 0) { - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHashList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.aion.api.server.pb.Message.t_Block parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + } + { + int dataSize = 0; + for (int i = 0; i < topics_.size(); i++) { + dataSize += computeStringSizeNoTag(topics_.getRaw(i)); + } + size += dataSize; + size += 1 * getTopicsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Block prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_LgEle)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_LgEle other = + (org.aion.api.server.pb.Message.t_LgEle) obj; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Block} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Block) - org.aion.api.server.pb.Message.t_BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Block.class, org.aion.api.server.pb.Message.t_Block.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_Block.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - timestamp_ = 0L; - - nrgConsumed_ = 0L; - - nrgLimit_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - - difficulty_ = com.google.protobuf.ByteString.EMPTY; - - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - - extraData_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - size_ = 0; - - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_descriptor; - } - - public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Block.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_Block build() { - org.aion.api.server.pb.Message.t_Block result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_Block buildPartial() { - org.aion.api.server.pb.Message.t_Block result = new org.aion.api.server.pb.Message.t_Block(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.totalDifficulty_ = totalDifficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - if (((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.txHash_ = txHash_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Block) { - return mergeFrom((org.aion.api.server.pb.Message.t_Block)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Block other) { - if (other == org.aion.api.server.pb.Message.t_Block.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setTotalDifficulty(other.getTotalDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (!other.txHash_.isEmpty()) { - if (txHash_.isEmpty()) { - txHash_ = other.txHash_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureTxHashIsMutable(); - txHash_.addAll(other.txHash_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Block parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_Block) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_ ; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgLimit_ ; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** - * bytes parentHash = 5; - */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * bytes parentHash = 5; - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** - * bytes minerAddress = 6; - */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** - * bytes minerAddress = 6; - */ - public Builder clearMinerAddress() { - - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** - * bytes stateRoot = 7; - */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** - * bytes stateRoot = 7; - */ - public Builder clearStateRoot() { - - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder clearTxTrieRoot() { - - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder clearReceiptTrieRoot() { - - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** - * bytes logsBloom = 10; - */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** - * bytes logsBloom = 10; - */ - public Builder clearLogsBloom() { - - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** - * bytes difficulty = 11; - */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** - * bytes difficulty = 11; - */ - public Builder clearDifficulty() { - - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes totalDifficulty = 12; - */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } - /** - * bytes totalDifficulty = 12; - */ - public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDifficulty_ = value; - onChanged(); - return this; - } - /** - * bytes totalDifficulty = 12; - */ - public Builder clearTotalDifficulty() { - - totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes extraData = 13; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** - * bytes extraData = 13; - */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** - * bytes extraData = 13; - */ - public Builder clearExtraData() { - - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 14; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 14; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 14; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes solution = 15; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** - * bytes solution = 15; - */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** - * bytes solution = 15; - */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 16; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 16; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 16; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private int size_ ; - /** - * uint32 size = 17; - */ - public int getSize() { - return size_; - } - /** - * uint32 size = 17; - */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** - * uint32 size = 17; - */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - private java.util.List txHash_ = java.util.Collections.emptyList(); - private void ensureTxHashIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = new java.util.ArrayList(txHash_); - bitField0_ |= 0x00020000; - } - } - /** - * repeated bytes txHash = 18; - */ - public java.util.List - getTxHashList() { - return java.util.Collections.unmodifiableList(txHash_); - } - /** - * repeated bytes txHash = 18; - */ - public int getTxHashCount() { - return txHash_.size(); - } - /** - * repeated bytes txHash = 18; - */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); - } - /** - * repeated bytes txHash = 18; - */ - public Builder setTxHash( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes txHash = 18; - */ - public Builder addTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes txHash = 18; - */ - public Builder addAllTxHash( - java.lang.Iterable values) { - ensureTxHashIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txHash_); - onChanged(); - return this; - } - /** - * repeated bytes txHash = 18; - */ - public Builder clearTxHash() { - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Block) - } + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getData().equals(other.getData()); + result = result && getTopicsList().equals(other.getTopicsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Block) - private static final org.aion.api.server.pb.Message.t_Block DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Block(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + if (getTopicsCount() > 0) { + hash = (37 * hash) + TOPICS_FIELD_NUMBER; + hash = (53 * hash) + getTopicsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.t_Block getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Block(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } - - public interface t_BlockSqlOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockSql) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - - /** - * string blockHash = 2; - */ - java.lang.String getBlockHash(); - /** - * string blockHash = 2; - */ - com.google.protobuf.ByteString - getBlockHashBytes(); - - /** - * string parentHash = 3; - */ - java.lang.String getParentHash(); - /** - * string parentHash = 3; - */ - com.google.protobuf.ByteString - getParentHashBytes(); - - /** - * string block = 4; - */ - java.lang.String getBlock(); - /** - * string block = 4; - */ - com.google.protobuf.ByteString - getBlockBytes(); - - /** - * repeated string tx = 5; - */ - java.util.List - getTxList(); - /** - * repeated string tx = 5; - */ - int getTxCount(); - /** - * repeated string tx = 5; - */ - java.lang.String getTx(int index); - /** - * repeated string tx = 5; - */ - com.google.protobuf.ByteString - getTxBytes(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_BlockSql} - */ - public static final class t_BlockSql extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockSql) - t_BlockSqlOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_BlockSql.newBuilder() to construct. - private t_BlockSql(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_BlockSql() { - blockNumber_ = 0L; - blockHash_ = ""; - parentHash_ = ""; - block_ = ""; - tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_BlockSql( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blockNumber_ = input.readUInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - blockHash_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - parentHash_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - block_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - tx_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = tx_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockSql.class, org.aion.api.server.pb.Message.t_BlockSql.Builder.class); - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int BLOCKHASH_FIELD_NUMBER = 2; - private volatile java.lang.Object blockHash_; - /** - * string blockHash = 2; - */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } - } - /** - * string blockHash = 2; - */ - public com.google.protobuf.ByteString - getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public static final int PARENTHASH_FIELD_NUMBER = 3; - private volatile java.lang.Object parentHash_; - /** - * string parentHash = 3; - */ - public java.lang.String getParentHash() { - java.lang.Object ref = parentHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentHash_ = s; - return s; - } - } - /** - * string parentHash = 3; - */ - public com.google.protobuf.ByteString - getParentHashBytes() { - java.lang.Object ref = parentHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static final int BLOCK_FIELD_NUMBER = 4; - private volatile java.lang.Object block_; - /** - * string block = 4; - */ - public java.lang.String getBlock() { - java.lang.Object ref = block_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - block_ = s; - return s; - } - } - /** - * string block = 4; - */ - public com.google.protobuf.ByteString - getBlockBytes() { - java.lang.Object ref = block_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - block_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int TX_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList tx_; - /** - * repeated string tx = 5; - */ - public com.google.protobuf.ProtocolStringList - getTxList() { - return tx_; - } - /** - * repeated string tx = 5; - */ - public int getTxCount() { - return tx_.size(); - } - /** - * repeated string tx = 5; - */ - public java.lang.String getTx(int index) { - return tx_.get(index); - } - /** - * repeated string tx = 5; - */ - public com.google.protobuf.ByteString - getTxBytes(int index) { - return tx_.getByteString(index); - } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder newBuilderForType() { + return newBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (!getBlockHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blockHash_); - } - if (!getParentHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentHash_); - } - if (!getBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, block_); - } - for (int i = 0; i < tx_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tx_.getRaw(i)); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_LgEle prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - if (!getBlockHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blockHash_); - } - if (!getParentHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentHash_); - } - if (!getBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, block_); - } - { - int dataSize = 0; - for (int i = 0; i < tx_.size(); i++) { - dataSize += computeStringSizeNoTag(tx_.getRaw(i)); - } - size += dataSize; - size += 1 * getTxList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockSql)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_BlockSql other = (org.aion.api.server.pb.Message.t_BlockSql) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && getParentHash() - .equals(other.getParentHash()); - result = result && getBlock() - .equals(other.getBlock()); - result = result && getTxList() - .equals(other.getTxList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_LgEle} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_LgEle) + org.aion.api.server.pb.Message.t_LgEleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - if (getTxCount() > 0) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTxList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_LgEle.class, + org.aion.api.server.pb.Message.t_LgEle.Builder.class); + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + // Construct using org.aion.api.server.pb.Message.t_LgEle.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockSql prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_BlockSql} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockSql) - org.aion.api.server.pb.Message.t_BlockSqlOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockSql.class, org.aion.api.server.pb.Message.t_BlockSql.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_BlockSql.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - blockHash_ = ""; - - parentHash_ = ""; - - block_ = ""; - - tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - } - - public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_BlockSql build() { - org.aion.api.server.pb.Message.t_BlockSql result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_BlockSql buildPartial() { - org.aion.api.server.pb.Message.t_BlockSql result = new org.aion.api.server.pb.Message.t_BlockSql(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.blockHash_ = blockHash_; - result.parentHash_ = parentHash_; - result.block_ = block_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = tx_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.tx_ = tx_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_BlockSql) { - return mergeFrom((org.aion.api.server.pb.Message.t_BlockSql)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockSql other) { - if (other == org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (!other.getBlockHash().isEmpty()) { - blockHash_ = other.blockHash_; - onChanged(); - } - if (!other.getParentHash().isEmpty()) { - parentHash_ = other.parentHash_; - onChanged(); - } - if (!other.getBlock().isEmpty()) { - block_ = other.block_; - onChanged(); - } - if (!other.tx_.isEmpty()) { - if (tx_.isEmpty()) { - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTxIsMutable(); - tx_.addAll(other.tx_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_BlockSql parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_BlockSql) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object blockHash_ = ""; - /** - * string blockHash = 2; - */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string blockHash = 2; - */ - public com.google.protobuf.ByteString - getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string blockHash = 2; - */ - public Builder setBlockHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * string blockHash = 2; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - /** - * string blockHash = 2; - */ - public Builder setBlockHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - blockHash_ = value; - onChanged(); - return this; - } - - private java.lang.Object parentHash_ = ""; - /** - * string parentHash = 3; - */ - public java.lang.String getParentHash() { - java.lang.Object ref = parentHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string parentHash = 3; - */ - public com.google.protobuf.ByteString - getParentHashBytes() { - java.lang.Object ref = parentHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string parentHash = 3; - */ - public Builder setParentHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * string parentHash = 3; - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - /** - * string parentHash = 3; - */ - public Builder setParentHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parentHash_ = value; - onChanged(); - return this; - } - - private java.lang.Object block_ = ""; - /** - * string block = 4; - */ - public java.lang.String getBlock() { - java.lang.Object ref = block_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - block_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string block = 4; - */ - public com.google.protobuf.ByteString - getBlockBytes() { - java.lang.Object ref = block_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - block_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string block = 4; - */ - public Builder setBlock( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - block_ = value; - onChanged(); - return this; - } - /** - * string block = 4; - */ - public Builder clearBlock() { - - block_ = getDefaultInstance().getBlock(); - onChanged(); - return this; - } - /** - * string block = 4; - */ - public Builder setBlockBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - block_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTxIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = new com.google.protobuf.LazyStringArrayList(tx_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated string tx = 5; - */ - public com.google.protobuf.ProtocolStringList - getTxList() { - return tx_.getUnmodifiableView(); - } - /** - * repeated string tx = 5; - */ - public int getTxCount() { - return tx_.size(); - } - /** - * repeated string tx = 5; - */ - public java.lang.String getTx(int index) { - return tx_.get(index); - } - /** - * repeated string tx = 5; - */ - public com.google.protobuf.ByteString - getTxBytes(int index) { - return tx_.getByteString(index); - } - /** - * repeated string tx = 5; - */ - public Builder setTx( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tx = 5; - */ - public Builder addTx( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - return this; - } - /** - * repeated string tx = 5; - */ - public Builder addAllTx( - java.lang.Iterable values) { - ensureTxIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tx_); - onChanged(); - return this; - } - /** - * repeated string tx = 5; - */ - public Builder clearTx() { - tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * repeated string tx = 5; - */ - public Builder addTxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockSql) - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockSql) - private static final org.aion.api.server.pb.Message.t_BlockSql DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockSql(); - } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; - public static org.aion.api.server.pb.Message.t_BlockSql getDefaultInstance() { - return DEFAULT_INSTANCE; - } + data_ = com.google.protobuf.ByteString.EMPTY; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_BlockSql parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_BlockSql(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + } - public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance(); + } - } - - public interface rsp_errormsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_errormsg) - com.google.protobuf.MessageOrBuilder { - - /** - * string errormsg = 1; - */ - java.lang.String getErrormsg(); - /** - * string errormsg = 1; - */ - com.google.protobuf.ByteString - getErrormsgBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} - */ - public static final class rsp_errormsg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_errormsg) - rsp_errormsgOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_errormsg.newBuilder() to construct. - private rsp_errormsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_errormsg() { - errormsg_ = ""; - } + public org.aion.api.server.pb.Message.t_LgEle build() { + org.aion.api.server.pb.Message.t_LgEle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_errormsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - errormsg_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - } + public org.aion.api.server.pb.Message.t_LgEle buildPartial() { + org.aion.api.server.pb.Message.t_LgEle result = + new org.aion.api.server.pb.Message.t_LgEle(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.address_ = address_; + result.data_ = data_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = topics_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.topics_ = topics_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_errormsg.class, org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); - } + public Builder clone() { + return (Builder) super.clone(); + } - public static final int ERRORMSG_FIELD_NUMBER = 1; - private volatile java.lang.Object errormsg_; - /** - * string errormsg = 1; - */ - public java.lang.String getErrormsg() { - java.lang.Object ref = errormsg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errormsg_ = s; - return s; - } - } - /** - * string errormsg = 1; - */ - public com.google.protobuf.ByteString - getErrormsgBytes() { - java.lang.Object ref = errormsg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errormsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - memoizedIsInitialized = 1; - return true; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getErrormsgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errormsg_); - } - unknownFields.writeTo(output); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getErrormsgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errormsg_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_errormsg)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_errormsg other = (org.aion.api.server.pb.Message.rsp_errormsg) obj; - - boolean result = true; - result = result && getErrormsg() - .equals(other.getErrormsg()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_LgEle) { + return mergeFrom((org.aion.api.server.pb.Message.t_LgEle) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ERRORMSG_FIELD_NUMBER; - hash = (53 * hash) + getErrormsg().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_LgEle other) { + if (other == org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()) + return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (!other.topics_.isEmpty()) { + if (topics_.isEmpty()) { + topics_ = other.topics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTopicsIsMutable(); + topics_.addAll(other.topics_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final boolean isInitialized() { + return true; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_errormsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_LgEle parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_LgEle) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_errormsg) - org.aion.api.server.pb.Message.rsp_errormsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_errormsg.class, org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_errormsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - errormsg_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_errormsg build() { - org.aion.api.server.pb.Message.rsp_errormsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_errormsg buildPartial() { - org.aion.api.server.pb.Message.rsp_errormsg result = new org.aion.api.server.pb.Message.rsp_errormsg(this); - result.errormsg_ = errormsg_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_errormsg) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_errormsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_errormsg other) { - if (other == org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance()) return this; - if (!other.getErrormsg().isEmpty()) { - errormsg_ = other.errormsg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_errormsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_errormsg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object errormsg_ = ""; - /** - * string errormsg = 1; - */ - public java.lang.String getErrormsg() { - java.lang.Object ref = errormsg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errormsg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string errormsg = 1; - */ - public com.google.protobuf.ByteString - getErrormsgBytes() { - java.lang.Object ref = errormsg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errormsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string errormsg = 1; - */ - public Builder setErrormsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - errormsg_ = value; - onChanged(); - return this; - } - /** - * string errormsg = 1; - */ - public Builder clearErrormsg() { - - errormsg_ = getDefaultInstance().getErrormsg(); - onChanged(); - return this; - } - /** - * string errormsg = 1; - */ - public Builder setErrormsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - errormsg_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_errormsg) - } + private int bitField0_; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_errormsg) - private static final org.aion.api.server.pb.Message.rsp_errormsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_errormsg(); - } + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { - public static org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_errormsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_errormsg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 2; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 2; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 2; */ + public Builder clearData() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } - public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.LazyStringList topics_ = + com.google.protobuf.LazyStringArrayList.EMPTY; - } - - public interface rsp_protocolVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_protocolVersion) - com.google.protobuf.MessageOrBuilder { - - /** - * string kernel = 1; - */ - java.lang.String getKernel(); - /** - * string kernel = 1; - */ - com.google.protobuf.ByteString - getKernelBytes(); - - /** - * string net = 2; - */ - java.lang.String getNet(); - /** - * string net = 2; - */ - com.google.protobuf.ByteString - getNetBytes(); - - /** - * string api = 3; - */ - java.lang.String getApi(); - /** - * string api = 3; - */ - com.google.protobuf.ByteString - getApiBytes(); - - /** - * string vm = 4; - */ - java.lang.String getVm(); - /** - * string vm = 4; - */ - com.google.protobuf.ByteString - getVmBytes(); - - /** - * string db = 5; - */ - java.lang.String getDb(); - /** - * string db = 5; - */ - com.google.protobuf.ByteString - getDbBytes(); - - /** - * string miner = 6; - */ - java.lang.String getMiner(); - /** - * string miner = 6; - */ - com.google.protobuf.ByteString - getMinerBytes(); - - /** - * string txpool = 7; - */ - java.lang.String getTxpool(); - /** - * string txpool = 7; - */ - com.google.protobuf.ByteString - getTxpoolBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} - */ - public static final class rsp_protocolVersion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_protocolVersion) - rsp_protocolVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_protocolVersion.newBuilder() to construct. - private rsp_protocolVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_protocolVersion() { - kernel_ = ""; - net_ = ""; - api_ = ""; - vm_ = ""; - db_ = ""; - miner_ = ""; - txpool_ = ""; - } + private void ensureTopicsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = new com.google.protobuf.LazyStringArrayList(topics_); + bitField0_ |= 0x00000004; + } + } + /** repeated string topics = 3; */ + public com.google.protobuf.ProtocolStringList getTopicsList() { + return topics_.getUnmodifiableView(); + } + /** repeated string topics = 3; */ + public int getTopicsCount() { + return topics_.size(); + } + /** repeated string topics = 3; */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** repeated string topics = 3; */ + public com.google.protobuf.ByteString getTopicsBytes(int index) { + return topics_.getByteString(index); + } + /** repeated string topics = 3; */ + public Builder setTopics(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.set(index, value); + onChanged(); + return this; + } + /** repeated string topics = 3; */ + public Builder addTopics(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } + /** repeated string topics = 3; */ + public Builder addAllTopics(java.lang.Iterable values) { + ensureTopicsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); + onChanged(); + return this; + } + /** repeated string topics = 3; */ + public Builder clearTopics() { + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** repeated string topics = 3; */ + public Builder addTopicsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_protocolVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - kernel_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - net_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - api_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - vm_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - db_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - miner_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - txpool_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_protocolVersion.class, org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int KERNEL_FIELD_NUMBER = 1; - private volatile java.lang.Object kernel_; - /** - * string kernel = 1; - */ - public java.lang.String getKernel() { - java.lang.Object ref = kernel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernel_ = s; - return s; - } - } - /** - * string kernel = 1; - */ - public com.google.protobuf.ByteString - getKernelBytes() { - java.lang.Object ref = kernel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_LgEle) + } - public static final int NET_FIELD_NUMBER = 2; - private volatile java.lang.Object net_; - /** - * string net = 2; - */ - public java.lang.String getNet() { - java.lang.Object ref = net_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - net_ = s; - return s; - } - } - /** - * string net = 2; - */ - public com.google.protobuf.ByteString - getNetBytes() { - java.lang.Object ref = net_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - net_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_LgEle) + private static final org.aion.api.server.pb.Message.t_LgEle DEFAULT_INSTANCE; - public static final int API_FIELD_NUMBER = 3; - private volatile java.lang.Object api_; - /** - * string api = 3; - */ - public java.lang.String getApi() { - java.lang.Object ref = api_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - api_ = s; - return s; - } - } - /** - * string api = 3; - */ - public com.google.protobuf.ByteString - getApiBytes() { - java.lang.Object ref = api_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - api_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_LgEle(); + } - public static final int VM_FIELD_NUMBER = 4; - private volatile java.lang.Object vm_; - /** - * string vm = 4; - */ - public java.lang.String getVm() { - java.lang.Object ref = vm_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vm_ = s; - return s; - } - } - /** - * string vm = 4; - */ - public com.google.protobuf.ByteString - getVmBytes() { - java.lang.Object ref = vm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - vm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.t_LgEle getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int DB_FIELD_NUMBER = 5; - private volatile java.lang.Object db_; - /** - * string db = 5; - */ - public java.lang.String getDb() { - java.lang.Object ref = db_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - db_ = s; - return s; - } - } - /** - * string db = 5; - */ - public com.google.protobuf.ByteString - getDbBytes() { - java.lang.Object ref = db_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - db_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_LgEle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_LgEle(input, extensionRegistry); + } + }; - public static final int MINER_FIELD_NUMBER = 6; - private volatile java.lang.Object miner_; - /** - * string miner = 6; - */ - public java.lang.String getMiner() { - java.lang.Object ref = miner_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - miner_ = s; - return s; - } - } - /** - * string miner = 6; - */ - public com.google.protobuf.ByteString - getMinerBytes() { - java.lang.Object ref = miner_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - miner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int TXPOOL_FIELD_NUMBER = 7; - private volatile java.lang.Object txpool_; - /** - * string txpool = 7; - */ - public java.lang.String getTxpool() { - java.lang.Object ref = txpool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txpool_ = s; - return s; - } - } - /** - * string txpool = 7; - */ - public com.google.protobuf.ByteString - getTxpoolBytes() { - java.lang.Object ref = txpool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txpool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public interface t_FilterCtOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_FilterCt) + com.google.protobuf.MessageOrBuilder { - memoizedIsInitialized = 1; - return true; - } + /** string from = 1; */ + java.lang.String getFrom(); + /** string from = 1; */ + com.google.protobuf.ByteString getFromBytes(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKernelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kernel_); - } - if (!getNetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, net_); - } - if (!getApiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, api_); - } - if (!getVmBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vm_); - } - if (!getDbBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, db_); - } - if (!getMinerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, miner_); - } - if (!getTxpoolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, txpool_); - } - unknownFields.writeTo(output); - } + /** string to = 2; */ + java.lang.String getTo(); + /** string to = 2; */ + com.google.protobuf.ByteString getToBytes(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKernelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kernel_); - } - if (!getNetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, net_); - } - if (!getApiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, api_); - } - if (!getVmBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vm_); - } - if (!getDbBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, db_); - } - if (!getMinerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, miner_); - } - if (!getTxpoolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, txpool_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** bytes contractAddr = 3; */ + com.google.protobuf.ByteString getContractAddr(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_protocolVersion)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_protocolVersion other = (org.aion.api.server.pb.Message.rsp_protocolVersion) obj; - - boolean result = true; - result = result && getKernel() - .equals(other.getKernel()); - result = result && getNet() - .equals(other.getNet()); - result = result && getApi() - .equals(other.getApi()); - result = result && getVm() - .equals(other.getVm()); - result = result && getDb() - .equals(other.getDb()); - result = result && getMiner() - .equals(other.getMiner()); - result = result && getTxpool() - .equals(other.getTxpool()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + /** repeated bytes addresses = 4; */ + java.util.List getAddressesList(); + /** repeated bytes addresses = 4; */ + int getAddressesCount(); + /** repeated bytes addresses = 4; */ + com.google.protobuf.ByteString getAddresses(int index); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KERNEL_FIELD_NUMBER; - hash = (53 * hash) + getKernel().hashCode(); - hash = (37 * hash) + NET_FIELD_NUMBER; - hash = (53 * hash) + getNet().hashCode(); - hash = (37 * hash) + API_FIELD_NUMBER; - hash = (53 * hash) + getApi().hashCode(); - hash = (37 * hash) + VM_FIELD_NUMBER; - hash = (53 * hash) + getVm().hashCode(); - hash = (37 * hash) + DB_FIELD_NUMBER; - hash = (53 * hash) + getDb().hashCode(); - hash = (37 * hash) + MINER_FIELD_NUMBER; - hash = (53 * hash) + getMiner().hashCode(); - hash = (37 * hash) + TXPOOL_FIELD_NUMBER; - hash = (53 * hash) + getTxpool().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** repeated string topics = 5; */ + java.util.List getTopicsList(); + /** repeated string topics = 5; */ + int getTopicsCount(); + /** repeated string topics = 5; */ + java.lang.String getTopics(int index); + /** repeated string topics = 5; */ + com.google.protobuf.ByteString getTopicsBytes(int index); - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + /** uint64 expireTime = 6; */ + long getExpireTime(); } + /** Protobuf type {@code org.aion.api.server.pb.t_FilterCt} */ + public static final class t_FilterCt extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_FilterCt) + t_FilterCtOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_FilterCt.newBuilder() to construct. + private t_FilterCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_protocolVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private t_FilterCt() { + from_ = ""; + to_ = ""; + contractAddr_ = com.google.protobuf.ByteString.EMPTY; + addresses_ = java.util.Collections.emptyList(); + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + expireTime_ = 0L; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_protocolVersion) - org.aion.api.server.pb.Message.rsp_protocolVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_protocolVersion.class, org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_protocolVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - kernel_ = ""; - - net_ = ""; - - api_ = ""; - - vm_ = ""; - - db_ = ""; - - miner_ = ""; - - txpool_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_protocolVersion build() { - org.aion.api.server.pb.Message.rsp_protocolVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_protocolVersion buildPartial() { - org.aion.api.server.pb.Message.rsp_protocolVersion result = new org.aion.api.server.pb.Message.rsp_protocolVersion(this); - result.kernel_ = kernel_; - result.net_ = net_; - result.api_ = api_; - result.vm_ = vm_; - result.db_ = db_; - result.miner_ = miner_; - result.txpool_ = txpool_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_protocolVersion) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_protocolVersion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_protocolVersion other) { - if (other == org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance()) return this; - if (!other.getKernel().isEmpty()) { - kernel_ = other.kernel_; - onChanged(); - } - if (!other.getNet().isEmpty()) { - net_ = other.net_; - onChanged(); - } - if (!other.getApi().isEmpty()) { - api_ = other.api_; - onChanged(); - } - if (!other.getVm().isEmpty()) { - vm_ = other.vm_; - onChanged(); - } - if (!other.getDb().isEmpty()) { - db_ = other.db_; - onChanged(); - } - if (!other.getMiner().isEmpty()) { - miner_ = other.miner_; - onChanged(); - } - if (!other.getTxpool().isEmpty()) { - txpool_ = other.txpool_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_protocolVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_protocolVersion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object kernel_ = ""; - /** - * string kernel = 1; - */ - public java.lang.String getKernel() { - java.lang.Object ref = kernel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string kernel = 1; - */ - public com.google.protobuf.ByteString - getKernelBytes() { - java.lang.Object ref = kernel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string kernel = 1; - */ - public Builder setKernel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kernel_ = value; - onChanged(); - return this; - } - /** - * string kernel = 1; - */ - public Builder clearKernel() { - - kernel_ = getDefaultInstance().getKernel(); - onChanged(); - return this; - } - /** - * string kernel = 1; - */ - public Builder setKernelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kernel_ = value; - onChanged(); - return this; - } - - private java.lang.Object net_ = ""; - /** - * string net = 2; - */ - public java.lang.String getNet() { - java.lang.Object ref = net_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - net_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string net = 2; - */ - public com.google.protobuf.ByteString - getNetBytes() { - java.lang.Object ref = net_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - net_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string net = 2; - */ - public Builder setNet( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - net_ = value; - onChanged(); - return this; - } - /** - * string net = 2; - */ - public Builder clearNet() { - - net_ = getDefaultInstance().getNet(); - onChanged(); - return this; - } - /** - * string net = 2; - */ - public Builder setNetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - net_ = value; - onChanged(); - return this; - } - - private java.lang.Object api_ = ""; - /** - * string api = 3; - */ - public java.lang.String getApi() { - java.lang.Object ref = api_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - api_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string api = 3; - */ - public com.google.protobuf.ByteString - getApiBytes() { - java.lang.Object ref = api_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - api_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string api = 3; - */ - public Builder setApi( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - api_ = value; - onChanged(); - return this; - } - /** - * string api = 3; - */ - public Builder clearApi() { - - api_ = getDefaultInstance().getApi(); - onChanged(); - return this; - } - /** - * string api = 3; - */ - public Builder setApiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - api_ = value; - onChanged(); - return this; - } - - private java.lang.Object vm_ = ""; - /** - * string vm = 4; - */ - public java.lang.String getVm() { - java.lang.Object ref = vm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string vm = 4; - */ - public com.google.protobuf.ByteString - getVmBytes() { - java.lang.Object ref = vm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - vm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string vm = 4; - */ - public Builder setVm( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - vm_ = value; - onChanged(); - return this; - } - /** - * string vm = 4; - */ - public Builder clearVm() { - - vm_ = getDefaultInstance().getVm(); - onChanged(); - return this; - } - /** - * string vm = 4; - */ - public Builder setVmBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - vm_ = value; - onChanged(); - return this; - } - - private java.lang.Object db_ = ""; - /** - * string db = 5; - */ - public java.lang.String getDb() { - java.lang.Object ref = db_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - db_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string db = 5; - */ - public com.google.protobuf.ByteString - getDbBytes() { - java.lang.Object ref = db_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - db_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string db = 5; - */ - public Builder setDb( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - db_ = value; - onChanged(); - return this; - } - /** - * string db = 5; - */ - public Builder clearDb() { - - db_ = getDefaultInstance().getDb(); - onChanged(); - return this; - } - /** - * string db = 5; - */ - public Builder setDbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - db_ = value; - onChanged(); - return this; - } - - private java.lang.Object miner_ = ""; - /** - * string miner = 6; - */ - public java.lang.String getMiner() { - java.lang.Object ref = miner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - miner_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string miner = 6; - */ - public com.google.protobuf.ByteString - getMinerBytes() { - java.lang.Object ref = miner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - miner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string miner = 6; - */ - public Builder setMiner( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - miner_ = value; - onChanged(); - return this; - } - /** - * string miner = 6; - */ - public Builder clearMiner() { - - miner_ = getDefaultInstance().getMiner(); - onChanged(); - return this; - } - /** - * string miner = 6; - */ - public Builder setMinerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - miner_ = value; - onChanged(); - return this; - } - - private java.lang.Object txpool_ = ""; - /** - * string txpool = 7; - */ - public java.lang.String getTxpool() { - java.lang.Object ref = txpool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txpool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string txpool = 7; - */ - public com.google.protobuf.ByteString - getTxpoolBytes() { - java.lang.Object ref = txpool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - txpool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string txpool = 7; - */ - public Builder setTxpool( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txpool_ = value; - onChanged(); - return this; - } - /** - * string txpool = 7; - */ - public Builder clearTxpool() { - - txpool_ = getDefaultInstance().getTxpool(); - onChanged(); - return this; - } - /** - * string txpool = 7; - */ - public Builder setTxpoolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txpool_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_protocolVersion) - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_protocolVersion) - private static final org.aion.api.server.pb.Message.rsp_protocolVersion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_protocolVersion(); - } + private t_FilterCt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + from_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 26: + { + contractAddr_ = input.readBytes(); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00000008; + } + addresses_.add(input.readBytes()); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + topics_.add(s); + break; + } + case 48: + { + expireTime_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = topics_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_protocolVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_protocolVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_FilterCt.class, + org.aion.api.server.pb.Message.t_FilterCt.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private int bitField0_; + public static final int FROM_FIELD_NUMBER = 1; + private volatile java.lang.Object from_; + /** string from = 1; */ + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } + } + /** string from = 1; */ + public com.google.protobuf.ByteString getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int TO_FIELD_NUMBER = 2; + private volatile java.lang.Object to_; + /** string to = 2; */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + /** string to = 2; */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } - - public interface rsp_minerAddressOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_minerAddress) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes minerAddr = 1; - */ - com.google.protobuf.ByteString getMinerAddr(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} - */ - public static final class rsp_minerAddress extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_minerAddress) - rsp_minerAddressOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_minerAddress.newBuilder() to construct. - private rsp_minerAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_minerAddress() { - minerAddr_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int CONTRACTADDR_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString contractAddr_; + /** bytes contractAddr = 3; */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_minerAddress( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - minerAddr_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - } + public static final int ADDRESSES_FIELD_NUMBER = 4; + private java.util.List addresses_; + /** repeated bytes addresses = 4; */ + public java.util.List getAddressesList() { + return addresses_; + } + /** repeated bytes addresses = 4; */ + public int getAddressesCount() { + return addresses_.size(); + } + /** repeated bytes addresses = 4; */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_minerAddress.class, org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); - } + public static final int TOPICS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList topics_; + /** repeated string topics = 5; */ + public com.google.protobuf.ProtocolStringList getTopicsList() { + return topics_; + } + /** repeated string topics = 5; */ + public int getTopicsCount() { + return topics_.size(); + } + /** repeated string topics = 5; */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** repeated string topics = 5; */ + public com.google.protobuf.ByteString getTopicsBytes(int index) { + return topics_.getByteString(index); + } - public static final int MINERADDR_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString minerAddr_; - /** - * bytes minerAddr = 1; - */ - public com.google.protobuf.ByteString getMinerAddr() { - return minerAddr_; - } + public static final int EXPIRETIME_FIELD_NUMBER = 6; + private long expireTime_; + /** uint64 expireTime = 6; */ + public long getExpireTime() { + return expireTime_; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!minerAddr_.isEmpty()) { - output.writeBytes(1, minerAddr_); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!minerAddr_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, minerAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFromBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, from_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, to_); + } + if (!contractAddr_.isEmpty()) { + output.writeBytes(3, contractAddr_); + } + for (int i = 0; i < addresses_.size(); i++) { + output.writeBytes(4, addresses_.get(i)); + } + for (int i = 0; i < topics_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, topics_.getRaw(i)); + } + if (expireTime_ != 0L) { + output.writeUInt64(6, expireTime_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_minerAddress)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_minerAddress other = (org.aion.api.server.pb.Message.rsp_minerAddress) obj; - - boolean result = true; - result = result && getMinerAddr() - .equals(other.getMinerAddr()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MINERADDR_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (!getFromBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, from_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, to_); + } + if (!contractAddr_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, contractAddr_); + } + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + addresses_.get(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < topics_.size(); i++) { + dataSize += computeStringSizeNoTag(topics_.getRaw(i)); + } + size += dataSize; + size += 1 * getTopicsList().size(); + } + if (expireTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, expireTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_FilterCt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_FilterCt other = + (org.aion.api.server.pb.Message.t_FilterCt) obj; + + boolean result = true; + result = result && getFrom().equals(other.getFrom()); + result = result && getTo().equals(other.getTo()); + result = result && getContractAddr().equals(other.getContractAddr()); + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && getTopicsList().equals(other.getTopicsList()); + result = result && (getExpireTime() == other.getExpireTime()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (getTopicsCount() > 0) { + hash = (37 * hash) + TOPICS_FIELD_NUMBER; + hash = (53 * hash) + getTopicsList().hashCode(); + } + hash = (37 * hash) + EXPIRETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpireTime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_minerAddress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_minerAddress) - org.aion.api.server.pb.Message.rsp_minerAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_minerAddress.class, org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_minerAddress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - minerAddr_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_minerAddress build() { - org.aion.api.server.pb.Message.rsp_minerAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_minerAddress buildPartial() { - org.aion.api.server.pb.Message.rsp_minerAddress result = new org.aion.api.server.pb.Message.rsp_minerAddress(this); - result.minerAddr_ = minerAddr_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_minerAddress) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_minerAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_minerAddress other) { - if (other == org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance()) return this; - if (other.getMinerAddr() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddr(other.getMinerAddr()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_minerAddress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_minerAddress) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString minerAddr_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes minerAddr = 1; - */ - public com.google.protobuf.ByteString getMinerAddr() { - return minerAddr_; - } - /** - * bytes minerAddr = 1; - */ - public Builder setMinerAddr(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddr_ = value; - onChanged(); - return this; - } - /** - * bytes minerAddr = 1; - */ - public Builder clearMinerAddr() { - - minerAddr_ = getDefaultInstance().getMinerAddr(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_minerAddress) - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_minerAddress) - private static final org.aion.api.server.pb.Message.rsp_minerAddress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_minerAddress(); - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_minerAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_minerAddress(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } - - public interface req_getBlockByNumberOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByNumber) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} - */ - public static final class req_getBlockByNumber extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByNumber) - req_getBlockByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockByNumber.newBuilder() to construct. - private req_getBlockByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockByNumber() { - blockNumber_ = 0L; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByNumber.class, org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); - } + public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public Builder newBuilderForType() { + return newBuilder(); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - unknownFields.writeTo(output); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_FilterCt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockByNumber other = (org.aion.api.server.pb.Message.req_getBlockByNumber) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_FilterCt} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_FilterCt) + org.aion.api.server.pb.Message.t_FilterCtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_FilterCt.class, + org.aion.api.server.pb.Message.t_FilterCt.Builder.class); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using org.aion.api.server.pb.Message.t_FilterCt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByNumber) - org.aion.api.server.pb.Message.req_getBlockByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByNumber.class, org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockByNumber build() { - org.aion.api.server.pb.Message.req_getBlockByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockByNumber buildPartial() { - org.aion.api.server.pb.Message.req_getBlockByNumber result = new org.aion.api.server.pb.Message.req_getBlockByNumber(this); - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockByNumber) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByNumber)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByNumber other) { - if (other == org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockByNumber) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByNumber) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockByNumber DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByNumber(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public static org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clear() { + super.clear(); + from_ = ""; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + to_ = ""; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + contractAddr_ = com.google.protobuf.ByteString.EMPTY; - public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + expireTime_ = 0L; - } - - public interface rsp_getBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - - /** - * uint64 timestamp = 2; - */ - long getTimestamp(); - - /** - * uint64 nrgConsumed = 3; - */ - long getNrgConsumed(); - - /** - * uint64 nrgLimit = 4; - */ - long getNrgLimit(); - - /** - * bytes parentHash = 5; - */ - com.google.protobuf.ByteString getParentHash(); - - /** - * bytes minerAddress = 6; - */ - com.google.protobuf.ByteString getMinerAddress(); - - /** - * bytes stateRoot = 7; - */ - com.google.protobuf.ByteString getStateRoot(); - - /** - * bytes txTrieRoot = 8; - */ - com.google.protobuf.ByteString getTxTrieRoot(); - - /** - * bytes receiptTrieRoot = 9; - */ - com.google.protobuf.ByteString getReceiptTrieRoot(); - - /** - * bytes logsBloom = 10; - */ - com.google.protobuf.ByteString getLogsBloom(); - - /** - * bytes difficulty = 11; - */ - com.google.protobuf.ByteString getDifficulty(); - - /** - * bytes totalDifficulty = 12; - */ - com.google.protobuf.ByteString getTotalDifficulty(); - - /** - * bytes extraData = 13; - */ - com.google.protobuf.ByteString getExtraData(); - - /** - * bytes nonce = 14; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * bytes solution = 15; - */ - com.google.protobuf.ByteString getSolution(); - - /** - * bytes hash = 16; - */ - com.google.protobuf.ByteString getHash(); - - /** - * uint32 size = 17; - */ - int getSize(); - - /** - * repeated bytes txHash = 18; - */ - java.util.List getTxHashList(); - /** - * repeated bytes txHash = 18; - */ - int getTxHashCount(); - /** - * repeated bytes txHash = 18; - */ - com.google.protobuf.ByteString getTxHash(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} - */ - public static final class rsp_getBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlock) - rsp_getBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlock.newBuilder() to construct. - private rsp_getBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlock() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - txHash_ = java.util.Collections.emptyList(); - } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; } - case 8: { - blockNumber_ = input.readUInt64(); - break; + public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance(); } - case 16: { - timestamp_ = input.readUInt64(); - break; + public org.aion.api.server.pb.Message.t_FilterCt build() { + org.aion.api.server.pb.Message.t_FilterCt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - case 24: { - nrgConsumed_ = input.readUInt64(); - break; + public org.aion.api.server.pb.Message.t_FilterCt buildPartial() { + org.aion.api.server.pb.Message.t_FilterCt result = + new org.aion.api.server.pb.Message.t_FilterCt(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.from_ = from_; + result.to_ = to_; + result.contractAddr_ = contractAddr_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.addresses_ = addresses_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = topics_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.topics_ = topics_; + result.expireTime_ = expireTime_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } - case 32: { - nrgLimit_ = input.readUInt64(); - break; + public Builder clone() { + return (Builder) super.clone(); } - case 42: { - parentHash_ = input.readBytes(); - break; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); } - case 50: { - minerAddress_ = input.readBytes(); - break; + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); } - case 58: { - stateRoot_ = input.readBytes(); - break; + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); } - case 66: { - txTrieRoot_ = input.readBytes(); - break; + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - case 74: { - receiptTrieRoot_ = input.readBytes(); - break; + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); } - case 82: { - logsBloom_ = input.readBytes(); - break; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_FilterCt) { + return mergeFrom((org.aion.api.server.pb.Message.t_FilterCt) other); + } else { + super.mergeFrom(other); + return this; + } } - case 90: { - difficulty_ = input.readBytes(); - break; + public Builder mergeFrom(org.aion.api.server.pb.Message.t_FilterCt other) { + if (other == org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance()) + return this; + if (!other.getFrom().isEmpty()) { + from_ = other.from_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { + setContractAddr(other.getContractAddr()); + } + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + if (!other.topics_.isEmpty()) { + if (topics_.isEmpty()) { + topics_ = other.topics_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTopicsIsMutable(); + topics_.addAll(other.topics_); + } + onChanged(); + } + if (other.getExpireTime() != 0L) { + setExpireTime(other.getExpireTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - case 98: { - totalDifficulty_ = input.readBytes(); - break; + public final boolean isInitialized() { + return true; } - case 106: { - extraData_ = input.readBytes(); - break; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_FilterCt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_FilterCt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - case 114: { - nonce_ = input.readBytes(); - break; + private int bitField0_; + + private java.lang.Object from_ = ""; + /** string from = 1; */ + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - case 122: { + /** string from = 1; */ + public com.google.protobuf.ByteString getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string from = 1; */ + public Builder setFrom(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** string from = 1; */ + public Builder clearFrom() { - solution_ = input.readBytes(); - break; + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + /** string from = 1; */ + public Builder setFromBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + from_ = value; + onChanged(); + return this; } - case 130: { - hash_ = input.readBytes(); - break; + private java.lang.Object to_ = ""; + /** string to = 2; */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string to = 2; */ + public com.google.protobuf.ByteString getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - case 136: { + /** string to = 2; */ + public Builder setTo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** string to = 2; */ + public Builder clearTo() { - size_ = input.readUInt32(); - break; + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; } - case 146: { - if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00020000; - } - txHash_.add(input.readBytes()); - break; + /** string to = 2; */ + public Builder setToBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlock.class, org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); - } + private com.google.protobuf.ByteString contractAddr_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes contractAddr = 3; */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } + /** bytes contractAddr = 3; */ + public Builder setContractAddr(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + /** bytes contractAddr = 3; */ + public Builder clearContractAddr() { - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } + private java.util.List addresses_ = + java.util.Collections.emptyList(); - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = + new java.util.ArrayList(addresses_); + bitField0_ |= 0x00000008; + } + } + /** repeated bytes addresses = 4; */ + public java.util.List getAddressesList() { + return java.util.Collections.unmodifiableList(addresses_); + } + /** repeated bytes addresses = 4; */ + public int getAddressesCount() { + return addresses_.size(); + } + /** repeated bytes addresses = 4; */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } + /** repeated bytes addresses = 4; */ + public Builder setAddresses(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes addresses = 4; */ + public Builder addAddresses(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** repeated bytes addresses = 4; */ + public Builder addAllAddresses( + java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + return this; + } + /** repeated bytes addresses = 4; */ + public Builder clearAddresses() { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } + private com.google.protobuf.LazyStringList topics_ = + com.google.protobuf.LazyStringArrayList.EMPTY; - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + private void ensureTopicsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = new com.google.protobuf.LazyStringArrayList(topics_); + bitField0_ |= 0x00000010; + } + } + /** repeated string topics = 5; */ + public com.google.protobuf.ProtocolStringList getTopicsList() { + return topics_.getUnmodifiableView(); + } + /** repeated string topics = 5; */ + public int getTopicsCount() { + return topics_.size(); + } + /** repeated string topics = 5; */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** repeated string topics = 5; */ + public com.google.protobuf.ByteString getTopicsBytes(int index) { + return topics_.getByteString(index); + } + /** repeated string topics = 5; */ + public Builder setTopics(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.set(index, value); + onChanged(); + return this; + } + /** repeated string topics = 5; */ + public Builder addTopics(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } + /** repeated string topics = 5; */ + public Builder addAllTopics(java.lang.Iterable values) { + ensureTopicsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); + onChanged(); + return this; + } + /** repeated string topics = 5; */ + public Builder clearTopics() { + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** repeated string topics = 5; */ + public Builder addTopicsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } + private long expireTime_; + /** uint64 expireTime = 6; */ + public long getExpireTime() { + return expireTime_; + } + /** uint64 expireTime = 6; */ + public Builder setExpireTime(long value) { - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } + expireTime_ = value; + onChanged(); + return this; + } + /** uint64 expireTime = 6; */ + public Builder clearExpireTime() { - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } + expireTime_ = 0L; + onChanged(); + return this; + } - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_FilterCt) + } - public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString totalDifficulty_; - /** - * bytes totalDifficulty = 12; - */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_FilterCt) + private static final org.aion.api.server.pb.Message.t_FilterCt DEFAULT_INSTANCE; - public static final int EXTRADATA_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString extraData_; - /** - * bytes extraData = 13; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_FilterCt(); + } - public static final int NONCE_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 14; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + public static org.aion.api.server.pb.Message.t_FilterCt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int SOLUTION_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString solution_; - /** - * bytes solution = 15; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_FilterCt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_FilterCt(input, extensionRegistry); + } + }; - public static final int HASH_FIELD_NUMBER = 16; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 16; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int SIZE_FIELD_NUMBER = 17; - private int size_; - /** - * uint32 size = 17; - */ - public int getSize() { - return size_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int TXHASH_FIELD_NUMBER = 18; - private java.util.List txHash_; - /** - * repeated bytes txHash = 18; - */ - public java.util.List - getTxHashList() { - return txHash_; - } - /** - * repeated bytes txHash = 18; - */ - public int getTxHashCount() { - return txHash_.size(); - } - /** - * repeated bytes txHash = 18; - */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); + public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public interface t_EventCtOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_EventCt) + com.google.protobuf.MessageOrBuilder { - memoizedIsInitialized = 1; - return true; - } + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - output.writeBytes(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(13, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(14, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(15, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(16, hash_); - } - if (size_ != 0) { - output.writeUInt32(17, size_); - } - for (int i = 0; i < txHash_.size(); i++) { - output.writeBytes(18, txHash_.get(i)); - } - unknownFields.writeTo(output); - } + /** bytes data = 2; */ + com.google.protobuf.ByteString getData(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(17, size_); - } - { - int dataSize = 0; - for (int i = 0; i < txHash_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(txHash_.get(i)); - } - size += dataSize; - size += 2 * getTxHashList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** bytes blockHash = 3; */ + com.google.protobuf.ByteString getBlockHash(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlock)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlock other = (org.aion.api.server.pb.Message.rsp_getBlock) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && (getTimestamp() - == other.getTimestamp()); - result = result && (getNrgConsumed() - == other.getNrgConsumed()); - result = result && (getNrgLimit() - == other.getNrgLimit()); - result = result && getParentHash() - .equals(other.getParentHash()); - result = result && getMinerAddress() - .equals(other.getMinerAddress()); - result = result && getStateRoot() - .equals(other.getStateRoot()); - result = result && getTxTrieRoot() - .equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot() - .equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom() - .equals(other.getLogsBloom()); - result = result && getDifficulty() - .equals(other.getDifficulty()); - result = result && getTotalDifficulty() - .equals(other.getTotalDifficulty()); - result = result && getExtraData() - .equals(other.getExtraData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && getSolution() - .equals(other.getSolution()); - result = result && getHash() - .equals(other.getHash()); - result = result && (getSize() - == other.getSize()); - result = result && getTxHashList() - .equals(other.getTxHashList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + /** uint64 blockNumber = 4; */ + long getBlockNumber(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getTotalDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - if (getTxHashCount() > 0) { - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHashList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** uint32 logIndex = 5; */ + int getLogIndex(); - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** string eventName = 6; */ + java.lang.String getEventName(); + /** string eventName = 6; */ + com.google.protobuf.ByteString getEventNameBytes(); - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** bool removed = 7; */ + boolean getRemoved(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlock) - org.aion.api.server.pb.Message.rsp_getBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlock.class, org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - timestamp_ = 0L; - - nrgConsumed_ = 0L; - - nrgLimit_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - - difficulty_ = com.google.protobuf.ByteString.EMPTY; - - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - - extraData_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - size_ = 0; - - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlock build() { - org.aion.api.server.pb.Message.rsp_getBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlock buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlock result = new org.aion.api.server.pb.Message.rsp_getBlock(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.totalDifficulty_ = totalDifficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - if (((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.txHash_ = txHash_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlock) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlock other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setTotalDifficulty(other.getTotalDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (!other.txHash_.isEmpty()) { - if (txHash_.isEmpty()) { - txHash_ = other.txHash_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureTxHashIsMutable(); - txHash_.addAll(other.txHash_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_ ; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgLimit_ ; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** - * bytes parentHash = 5; - */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * bytes parentHash = 5; - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** - * bytes minerAddress = 6; - */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** - * bytes minerAddress = 6; - */ - public Builder clearMinerAddress() { - - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** - * bytes stateRoot = 7; - */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** - * bytes stateRoot = 7; - */ - public Builder clearStateRoot() { - - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder clearTxTrieRoot() { - - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder clearReceiptTrieRoot() { - - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** - * bytes logsBloom = 10; - */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** - * bytes logsBloom = 10; - */ - public Builder clearLogsBloom() { - - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** - * bytes difficulty = 11; - */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** - * bytes difficulty = 11; - */ - public Builder clearDifficulty() { - - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes totalDifficulty = 12; - */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } - /** - * bytes totalDifficulty = 12; - */ - public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDifficulty_ = value; - onChanged(); - return this; - } - /** - * bytes totalDifficulty = 12; - */ - public Builder clearTotalDifficulty() { - - totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes extraData = 13; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** - * bytes extraData = 13; - */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** - * bytes extraData = 13; - */ - public Builder clearExtraData() { - - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 14; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 14; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 14; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes solution = 15; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** - * bytes solution = 15; - */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** - * bytes solution = 15; - */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 16; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 16; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 16; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private int size_ ; - /** - * uint32 size = 17; - */ - public int getSize() { - return size_; - } - /** - * uint32 size = 17; - */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** - * uint32 size = 17; - */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - private java.util.List txHash_ = java.util.Collections.emptyList(); - private void ensureTxHashIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = new java.util.ArrayList(txHash_); - bitField0_ |= 0x00020000; - } - } - /** - * repeated bytes txHash = 18; - */ - public java.util.List - getTxHashList() { - return java.util.Collections.unmodifiableList(txHash_); - } - /** - * repeated bytes txHash = 18; - */ - public int getTxHashCount() { - return txHash_.size(); - } - /** - * repeated bytes txHash = 18; - */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); - } - /** - * repeated bytes txHash = 18; - */ - public Builder setTxHash( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes txHash = 18; - */ - public Builder addTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes txHash = 18; - */ - public Builder addAllTxHash( - java.lang.Iterable values) { - ensureTxHashIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, txHash_); - onChanged(); - return this; - } - /** - * repeated bytes txHash = 18; - */ - public Builder clearTxHash() { - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlock) - } + /** uint32 txIndex = 8; */ + int getTxIndex(); - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlock) - private static final org.aion.api.server.pb.Message.rsp_getBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlock(); + /** bytes txHash = 9; */ + com.google.protobuf.ByteString getTxHash(); } + /** Protobuf type {@code org.aion.api.server.pb.t_EventCt} */ + public static final class t_EventCt extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_EventCt) + t_EventCtOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_EventCt.newBuilder() to construct. + private t_EventCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private t_EventCt() { + address_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + blockHash_ = com.google.protobuf.ByteString.EMPTY; + blockNumber_ = 0L; + logIndex_ = 0; + eventName_ = ""; + removed_ = false; + txIndex_ = 0; + txHash_ = com.google.protobuf.ByteString.EMPTY; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private t_EventCt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 18: + { + data_ = input.readBytes(); + break; + } + case 26: + { + blockHash_ = input.readBytes(); + break; + } + case 32: + { + blockNumber_ = input.readUInt64(); + break; + } + case 40: + { + logIndex_ = input.readUInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + eventName_ = s; + break; + } + case 56: + { + removed_ = input.readBool(); + break; + } + case 64: + { + txIndex_ = input.readUInt32(); + break; + } + case 74: + { + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_EventCt_descriptor; + } - } - - public interface req_getBlockHeaderByNumberOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByNumber) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} - */ - public static final class req_getBlockHeaderByNumber extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) - req_getBlockHeaderByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockHeaderByNumber.newBuilder() to construct. - private req_getBlockHeaderByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockHeaderByNumber() { - blockNumber_ = 0L; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_EventCt.class, + org.aion.api.server.pb.Message.t_EventCt.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockHeaderByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.Builder.class); - } + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** bytes data = 2; */ + public com.google.protobuf.ByteString getData() { + return data_; + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + public static final int BLOCKHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString blockHash_; + /** bytes blockHash = 3; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int BLOCKNUMBER_FIELD_NUMBER = 4; + private long blockNumber_; + /** uint64 blockNumber = 4; */ + public long getBlockNumber() { + return blockNumber_; + } - memoizedIsInitialized = 1; - return true; - } + public static final int LOGINDEX_FIELD_NUMBER = 5; + private int logIndex_; + /** uint32 logIndex = 5; */ + public int getLogIndex() { + return logIndex_; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - unknownFields.writeTo(output); - } + public static final int EVENTNAME_FIELD_NUMBER = 6; + private volatile java.lang.Object eventName_; + /** string eventName = 6; */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } + } + /** string eventName = 6; */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int REMOVED_FIELD_NUMBER = 7; + private boolean removed_; + /** bool removed = 7; */ + public boolean getRemoved() { + return removed_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other = (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int TXINDEX_FIELD_NUMBER = 8; + private int txIndex_; + /** uint32 txIndex = 8; */ + public int getTxIndex() { + return txIndex_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int TXHASH_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 9; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockHeaderByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) - org.aion.api.server.pb.Message.req_getBlockHeaderByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber build() { - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber buildPartial() { - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(this); - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockHeaderByNumber)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other) { - if (other == org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) - } + memoizedIsInitialized = 1; + return true; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockHeaderByNumber DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + if (!blockHash_.isEmpty()) { + output.writeBytes(3, blockHash_); + } + if (blockNumber_ != 0L) { + output.writeUInt64(4, blockNumber_); + } + if (logIndex_ != 0) { + output.writeUInt32(5, logIndex_); + } + if (!getEventNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, eventName_); + } + if (removed_ != false) { + output.writeBool(7, removed_); + } + if (txIndex_ != 0) { + output.writeUInt32(8, txIndex_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(9, txHash_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockHeaderByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockHeaderByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + } + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, blockHash_); + } + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, blockNumber_); + } + if (logIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, logIndex_); + } + if (!getEventNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, eventName_); + } + if (removed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, removed_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(8, txIndex_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_EventCt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_EventCt other = + (org.aion.api.server.pb.Message.t_EventCt) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getData().equals(other.getData()); + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && (getLogIndex() == other.getLogIndex()); + result = result && getEventName().equals(other.getEventName()); + result = result && (getRemoved() == other.getRemoved()); + result = result && (getTxIndex() == other.getTxIndex()); + result = result && getTxHash().equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + LOGINDEX_FIELD_NUMBER; + hash = (53 * hash) + getLogIndex(); + hash = (37 * hash) + EVENTNAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + hash = (37 * hash) + REMOVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRemoved()); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } - - public interface rsp_getBlockHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - - /** - * uint64 timestamp = 2; - */ - long getTimestamp(); - - /** - * uint64 nrgConsumed = 3; - */ - long getNrgConsumed(); - - /** - * uint64 nrgLimit = 4; - */ - long getNrgLimit(); - - /** - * bytes parentHash = 5; - */ - com.google.protobuf.ByteString getParentHash(); - - /** - * bytes minerAddress = 6; - */ - com.google.protobuf.ByteString getMinerAddress(); - - /** - * bytes stateRoot = 7; - */ - com.google.protobuf.ByteString getStateRoot(); - - /** - * bytes txTrieRoot = 8; - */ - com.google.protobuf.ByteString getTxTrieRoot(); - - /** - * bytes receiptTrieRoot = 9; - */ - com.google.protobuf.ByteString getReceiptTrieRoot(); - - /** - * bytes logsBloom = 10; - */ - com.google.protobuf.ByteString getLogsBloom(); - - /** - * bytes difficulty = 11; - */ - com.google.protobuf.ByteString getDifficulty(); - - /** - * bytes extraData = 12; - */ - com.google.protobuf.ByteString getExtraData(); - - /** - * bytes nonce = 13; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * bytes solution = 14; - */ - com.google.protobuf.ByteString getSolution(); - - /** - * bytes hash = 15; - */ - com.google.protobuf.ByteString getHash(); - - /** - * uint32 size = 16; - */ - int getSize(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} - */ - public static final class rsp_getBlockHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockHeader) - rsp_getBlockHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockHeader.newBuilder() to construct. - private rsp_getBlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockHeader() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlockHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.t_EventCt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_EventCt} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_EventCt) + org.aion.api.server.pb.Message.t_EventCtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_EventCt_descriptor; } - case 8: { - blockNumber_ = input.readUInt64(); - break; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_EventCt.class, + org.aion.api.server.pb.Message.t_EventCt.Builder.class); } - case 16: { - timestamp_ = input.readUInt64(); - break; + // Construct using org.aion.api.server.pb.Message.t_EventCt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - case 24: { - nrgConsumed_ = input.readUInt64(); - break; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - case 32: { - nrgLimit_ = input.readUInt64(); - break; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - case 42: { - parentHash_ = input.readBytes(); - break; + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + blockNumber_ = 0L; + + logIndex_ = 0; + + eventName_ = ""; + + removed_ = false; + + txIndex_ = 0; + + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; } - case 50: { - minerAddress_ = input.readBytes(); - break; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_EventCt_descriptor; } - case 58: { - stateRoot_ = input.readBytes(); - break; + public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance(); } - case 66: { - txTrieRoot_ = input.readBytes(); - break; + public org.aion.api.server.pb.Message.t_EventCt build() { + org.aion.api.server.pb.Message.t_EventCt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - case 74: { - receiptTrieRoot_ = input.readBytes(); - break; + public org.aion.api.server.pb.Message.t_EventCt buildPartial() { + org.aion.api.server.pb.Message.t_EventCt result = + new org.aion.api.server.pb.Message.t_EventCt(this); + result.address_ = address_; + result.data_ = data_; + result.blockHash_ = blockHash_; + result.blockNumber_ = blockNumber_; + result.logIndex_ = logIndex_; + result.eventName_ = eventName_; + result.removed_ = removed_; + result.txIndex_ = txIndex_; + result.txHash_ = txHash_; + onBuilt(); + return result; } - case 82: { - logsBloom_ = input.readBytes(); - break; + public Builder clone() { + return (Builder) super.clone(); } - case 90: { - difficulty_ = input.readBytes(); - break; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); } - case 98: { - extraData_ = input.readBytes(); - break; + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); } - case 106: { - nonce_ = input.readBytes(); - break; + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); } - case 114: { - solution_ = input.readBytes(); - break; + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - case 122: { - hash_ = input.readBytes(); - break; + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); } - case 128: { - size_ = input.readUInt32(); - break; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_EventCt) { + return mergeFrom((org.aion.api.server.pb.Message.t_EventCt) other); + } else { + super.mergeFrom(other); + return this; + } } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockHeader.class, org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_EventCt other) { + if (other == org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()) + return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getLogIndex() != 0) { + setLogIndex(other.getLogIndex()); + } + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + onChanged(); + } + if (other.getRemoved() != false) { + setRemoved(other.getRemoved()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + public final boolean isInitialized() { + return true; + } - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_EventCt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_EventCt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 2; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 2; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 2; */ + public Builder clearData() { - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } + private com.google.protobuf.ByteString blockHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockHash = 3; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** bytes blockHash = 3; */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** bytes blockHash = 3; */ + public Builder clearBlockHash() { - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } + private long blockNumber_; + /** uint64 blockNumber = 4; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 4; */ + public Builder setBlockNumber(long value) { - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 4; */ + public Builder clearBlockNumber() { - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } + blockNumber_ = 0L; + onChanged(); + return this; + } - public static final int EXTRADATA_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString extraData_; - /** - * bytes extraData = 12; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } + private int logIndex_; + /** uint32 logIndex = 5; */ + public int getLogIndex() { + return logIndex_; + } + /** uint32 logIndex = 5; */ + public Builder setLogIndex(int value) { - public static final int NONCE_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 13; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + logIndex_ = value; + onChanged(); + return this; + } + /** uint32 logIndex = 5; */ + public Builder clearLogIndex() { - public static final int SOLUTION_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString solution_; - /** - * bytes solution = 14; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } + logIndex_ = 0; + onChanged(); + return this; + } - public static final int HASH_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString hash_; - /** - * bytes hash = 15; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + private java.lang.Object eventName_ = ""; + /** string eventName = 6; */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string eventName = 6; */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string eventName = 6; */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventName_ = value; + onChanged(); + return this; + } + /** string eventName = 6; */ + public Builder clearEventName() { - public static final int SIZE_FIELD_NUMBER = 16; - private int size_; - /** - * uint32 size = 16; - */ - public int getSize() { - return size_; - } + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** string eventName = 6; */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventName_ = value; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private boolean removed_; + /** bool removed = 7; */ + public boolean getRemoved() { + return removed_; + } + /** bool removed = 7; */ + public Builder setRemoved(boolean value) { - memoizedIsInitialized = 1; - return true; - } + removed_ = value; + onChanged(); + return this; + } + /** bool removed = 7; */ + public Builder clearRemoved() { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(12, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(13, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(14, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(15, hash_); - } - if (size_ != 0) { - output.writeUInt32(16, size_); - } - unknownFields.writeTo(output); - } + removed_ = false; + onChanged(); + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, difficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(16, size_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private int txIndex_; + /** uint32 txIndex = 8; */ + public int getTxIndex() { + return txIndex_; + } + /** uint32 txIndex = 8; */ + public Builder setTxIndex(int value) { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockHeader other = (org.aion.api.server.pb.Message.rsp_getBlockHeader) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && (getTimestamp() - == other.getTimestamp()); - result = result && (getNrgConsumed() - == other.getNrgConsumed()); - result = result && (getNrgLimit() - == other.getNrgLimit()); - result = result && getParentHash() - .equals(other.getParentHash()); - result = result && getMinerAddress() - .equals(other.getMinerAddress()); - result = result && getStateRoot() - .equals(other.getStateRoot()); - result = result && getTxTrieRoot() - .equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot() - .equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom() - .equals(other.getLogsBloom()); - result = result && getDifficulty() - .equals(other.getDifficulty()); - result = result && getExtraData() - .equals(other.getExtraData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && getSolution() - .equals(other.getSolution()); - result = result && getHash() - .equals(other.getHash()); - result = result && (getSize() - == other.getSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + txIndex_ = value; + onChanged(); + return this; + } + /** uint32 txIndex = 8; */ + public Builder clearTxIndex() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + txIndex_ = 0; + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 9; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 9; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 9; */ + public Builder clearTxHash() { - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockHeader) - org.aion.api.server.pb.Message.rsp_getBlockHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockHeader.class, org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlockHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - timestamp_ = 0L; - - nrgConsumed_ = 0L; - - nrgLimit_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - - difficulty_ = com.google.protobuf.ByteString.EMPTY; - - extraData_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - size_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockHeader build() { - org.aion.api.server.pb.Message.rsp_getBlockHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockHeader buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockHeader result = new org.aion.api.server.pb.Message.rsp_getBlockHeader(this); - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockHeader other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockHeader) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_ ; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgLimit_ ; - /** - * uint64 nrgLimit = 4; - */ - public long getNrgLimit() { - return nrgLimit_; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgLimit = 4; - */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes parentHash = 5; - */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** - * bytes parentHash = 5; - */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** - * bytes parentHash = 5; - */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes minerAddress = 6; - */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** - * bytes minerAddress = 6; - */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** - * bytes minerAddress = 6; - */ - public Builder clearMinerAddress() { - - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes stateRoot = 7; - */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** - * bytes stateRoot = 7; - */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** - * bytes stateRoot = 7; - */ - public Builder clearStateRoot() { - - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txTrieRoot = 8; - */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes txTrieRoot = 8; - */ - public Builder clearTxTrieRoot() { - - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes receiptTrieRoot = 9; - */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** - * bytes receiptTrieRoot = 9; - */ - public Builder clearReceiptTrieRoot() { - - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes logsBloom = 10; - */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** - * bytes logsBloom = 10; - */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** - * bytes logsBloom = 10; - */ - public Builder clearLogsBloom() { - - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes difficulty = 11; - */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** - * bytes difficulty = 11; - */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** - * bytes difficulty = 11; - */ - public Builder clearDifficulty() { - - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes extraData = 12; - */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** - * bytes extraData = 12; - */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** - * bytes extraData = 12; - */ - public Builder clearExtraData() { - - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 13; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 13; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 13; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes solution = 14; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** - * bytes solution = 14; - */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** - * bytes solution = 14; - */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes hash = 15; - */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** - * bytes hash = 15; - */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - * bytes hash = 15; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private int size_ ; - /** - * uint32 size = 16; - */ - public int getSize() { - return size_; - } - /** - * uint32 size = 16; - */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** - * uint32 size = 16; - */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockHeader) - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockHeader) - private static final org.aion.api.server.pb.Message.rsp_getBlockHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockHeader(); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_EventCt) + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlockHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_EventCt) + private static final org.aion.api.server.pb.Message.t_EventCt DEFAULT_INSTANCE; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_EventCt(); + } - public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_EventCt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - } - - public interface req_sendTransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_sendTransaction) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes from = 1; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes to = 2; - */ - com.google.protobuf.ByteString getTo(); - - /** - * bytes value = 3; - */ - com.google.protobuf.ByteString getValue(); - - /** - * bytes data = 4; - */ - com.google.protobuf.ByteString getData(); - - /** - * bytes nonce = 5; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * uint64 nrg = 6; - */ - long getNrg(); - - /** - * uint64 nrgPrice = 7; - */ - long getNrgPrice(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} - */ - public static final class req_sendTransaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_sendTransaction) - req_sendTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_sendTransaction.newBuilder() to construct. - private req_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_sendTransaction() { - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - nrg_ = 0L; - nrgPrice_ = 0L; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_EventCt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_EventCt(input, extensionRegistry); + } + }; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_sendTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - from_ = input.readBytes(); - break; - } - case 18: { - - to_ = input.readBytes(); - break; - } - case 26: { - - value_ = input.readBytes(); - break; - } - case 34: { - - data_ = input.readBytes(); - break; - } - case 42: { - - nonce_ = input.readBytes(); - break; - } - case 48: { - - nrg_ = input.readUInt64(); - break; - } - case 56: { - - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_sendTransaction.class, org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int FROM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 1; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; + public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static final int TO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString to_; - /** - * bytes to = 2; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + public interface t_BlockDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockDetail) + com.google.protobuf.MessageOrBuilder { - public static final int VALUE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 3; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + /** uint64 blockNumber = 1; */ + long getBlockNumber(); - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + /** uint64 timestamp = 2; */ + long getTimestamp(); - public static final int NONCE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 5; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + /** uint64 nrgConsumed = 3; */ + long getNrgConsumed(); - public static final int NRG_FIELD_NUMBER = 6; - private long nrg_; - /** - * uint64 nrg = 6; - */ - public long getNrg() { - return nrg_; - } + /** uint64 nrgLimit = 4; */ + long getNrgLimit(); - public static final int NRGPRICE_FIELD_NUMBER = 7; - private long nrgPrice_; - /** - * uint64 nrgPrice = 7; - */ - public long getNrgPrice() { - return nrgPrice_; - } + /** bytes parentHash = 5; */ + com.google.protobuf.ByteString getParentHash(); - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** bytes minerAddress = 6; */ + com.google.protobuf.ByteString getMinerAddress(); - memoizedIsInitialized = 1; - return true; - } + /** bytes stateRoot = 7; */ + com.google.protobuf.ByteString getStateRoot(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!from_.isEmpty()) { - output.writeBytes(1, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(2, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(3, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(5, nonce_); - } - if (nrg_ != 0L) { - output.writeUInt64(6, nrg_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(7, nrgPrice_); - } - unknownFields.writeTo(output); - } + /** bytes txTrieRoot = 8; */ + com.google.protobuf.ByteString getTxTrieRoot(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, nonce_); - } - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, nrg_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** bytes receiptTrieRoot = 9; */ + com.google.protobuf.ByteString getReceiptTrieRoot(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_sendTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_sendTransaction other = (org.aion.api.server.pb.Message.req_sendTransaction) obj; - - boolean result = true; - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTo() - .equals(other.getTo()); - result = result && getValue() - .equals(other.getValue()); - result = result && getData() - .equals(other.getData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && (getNrg() - == other.getNrg()); - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + /** bytes logsBloom = 10; */ + com.google.protobuf.ByteString getLogsBloom(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrg()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** bytes difficulty = 11; */ + com.google.protobuf.ByteString getDifficulty(); - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** bytes totalDifficulty = 12; */ + com.google.protobuf.ByteString getTotalDifficulty(); - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_sendTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** bytes extraData = 13; */ + com.google.protobuf.ByteString getExtraData(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_sendTransaction) - org.aion.api.server.pb.Message.req_sendTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_sendTransaction.class, org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_sendTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - nrg_ = 0L; - - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_sendTransaction build() { - org.aion.api.server.pb.Message.req_sendTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_sendTransaction buildPartial() { - org.aion.api.server.pb.Message.req_sendTransaction result = new org.aion.api.server.pb.Message.req_sendTransaction(this); - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nonce_ = nonce_; - result.nrg_ = nrg_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_sendTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.req_sendTransaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_sendTransaction other) { - if (other == org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance()) return this; - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_sendTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_sendTransaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 1; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 1; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 1; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to = 2; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** - * bytes to = 2; - */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * bytes to = 2; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 3; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 3; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 3; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 4; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 4; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 5; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 5; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 5; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private long nrg_ ; - /** - * uint64 nrg = 6; - */ - public long getNrg() { - return nrg_; - } - /** - * uint64 nrg = 6; - */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** - * uint64 nrg = 6; - */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 7; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 7; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 7; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_sendTransaction) - } + /** bytes nonce = 14; */ + com.google.protobuf.ByteString getNonce(); - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_sendTransaction) - private static final org.aion.api.server.pb.Message.req_sendTransaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_sendTransaction(); - } + /** bytes solution = 15; */ + com.google.protobuf.ByteString getSolution(); - public static org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** bytes hash = 16; */ + com.google.protobuf.ByteString getHash(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_sendTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_sendTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** uint32 size = 17; */ + int getSize(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + java.util.List getTxList(); + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + org.aion.api.server.pb.Message.t_TxDetail getTx(int index); + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + int getTxCount(); + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + java.util.List + getTxOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder(int index); - public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** uint64 blockTime = 19; */ + long getBlockTime(); } + /** Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} */ + public static final class t_BlockDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockDetail) + t_BlockDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_BlockDetail.newBuilder() to construct. + private t_BlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - } - - public interface rsp_sendTransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_sendTransaction) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes txHash = 1; - */ - com.google.protobuf.ByteString getTxHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} - */ - public static final class rsp_sendTransaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_sendTransaction) - rsp_sendTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_sendTransaction.newBuilder() to construct. - private rsp_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_sendTransaction() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + private t_BlockDetail() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + tx_ = java.util.Collections.emptyList(); + blockTime_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private t_BlockDetail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + case 16: + { + timestamp_ = input.readUInt64(); + break; + } + case 24: + { + nrgConsumed_ = input.readUInt64(); + break; + } + case 32: + { + nrgLimit_ = input.readUInt64(); + break; + } + case 42: + { + parentHash_ = input.readBytes(); + break; + } + case 50: + { + minerAddress_ = input.readBytes(); + break; + } + case 58: + { + stateRoot_ = input.readBytes(); + break; + } + case 66: + { + txTrieRoot_ = input.readBytes(); + break; + } + case 74: + { + receiptTrieRoot_ = input.readBytes(); + break; + } + case 82: + { + logsBloom_ = input.readBytes(); + break; + } + case 90: + { + difficulty_ = input.readBytes(); + break; + } + case 98: + { + totalDifficulty_ = input.readBytes(); + break; + } + case 106: + { + extraData_ = input.readBytes(); + break; + } + case 114: + { + nonce_ = input.readBytes(); + break; + } + case 122: + { + solution_ = input.readBytes(); + break; + } + case 130: + { + hash_ = input.readBytes(); + break; + } + case 136: + { + size_ = input.readUInt32(); + break; + } + case 146: + { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_TxDetail>(); + mutable_bitField0_ |= 0x00020000; + } + tx_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_TxDetail.parser(), + extensionRegistry)); + break; + } + case 152: + { + blockTime_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_sendTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_sendTransaction.class, org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockDetail.class, + org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); + } - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } - memoizedIsInitialized = 1; - return true; - } + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_sendTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_sendTransaction other = (org.aion.api.server.pb.Message.rsp_sendTransaction) obj; - - boolean result = true; - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_sendTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_sendTransaction) - org.aion.api.server.pb.Message.rsp_sendTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_sendTransaction.class, org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_sendTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_sendTransaction build() { - org.aion.api.server.pb.Message.rsp_sendTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_sendTransaction buildPartial() { - org.aion.api.server.pb.Message.rsp_sendTransaction result = new org.aion.api.server.pb.Message.rsp_sendTransaction(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_sendTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_sendTransaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_sendTransaction other) { - if (other == org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_sendTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_sendTransaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_sendTransaction) - } + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_sendTransaction) - private static final org.aion.api.server.pb.Message.rsp_sendTransaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_sendTransaction(); - } + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } - public static org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString totalDifficulty_; + /** bytes totalDifficulty = 12; */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_sendTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_sendTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int EXTRADATA_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString extraData_; + /** bytes extraData = 13; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int NONCE_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 14; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int SOLUTION_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString solution_; + /** bytes solution = 15; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } - } - - public interface req_getTransactionByHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByHash) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes txHash = 1; - */ - com.google.protobuf.ByteString getTxHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} - */ - public static final class req_getTransactionByHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByHash) - req_getTransactionByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionByHash.newBuilder() to construct. - private req_getTransactionByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getTransactionByHash() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int HASH_FIELD_NUMBER = 16; + private com.google.protobuf.ByteString hash_; + /** bytes hash = 16; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getTransactionByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - } + public static final int SIZE_FIELD_NUMBER = 17; + private int size_; + /** uint32 size = 17; */ + public int getSize() { + return size_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByHash.class, org.aion.api.server.pb.Message.req_getTransactionByHash.Builder.class); - } + public static final int TX_FIELD_NUMBER = 18; + private java.util.List tx_; + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public java.util.List getTxList() { + return tx_; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public java.util.List + getTxOrBuilderList() { + return tx_; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public int getTxCount() { + return tx_.size(); + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { + return tx_.get(index); + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder(int index) { + return tx_.get(index); + } - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public static final int BLOCKTIME_FIELD_NUMBER = 19; + private long blockTime_; + /** uint64 blockTime = 19; */ + public long getBlockTime() { + return blockTime_; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + output.writeBytes(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(13, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(14, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(15, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(16, hash_); + } + if (size_ != 0) { + output.writeUInt32(17, size_); + } + for (int i = 0; i < tx_.size(); i++) { + output.writeMessage(18, tx_.get(i)); + } + if (blockTime_ != 0L) { + output.writeUInt64(19, blockTime_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionByHash other = (org.aion.api.server.pb.Message.req_getTransactionByHash) obj; - - boolean result = true; - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(16, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(17, size_); + } + for (int i = 0; i < tx_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, tx_.get(i)); + } + if (blockTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(19, blockTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockDetail)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_BlockDetail other = + (org.aion.api.server.pb.Message.t_BlockDetail) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && (getTimestamp() == other.getTimestamp()); + result = result && (getNrgConsumed() == other.getNrgConsumed()); + result = result && (getNrgLimit() == other.getNrgLimit()); + result = result && getParentHash().equals(other.getParentHash()); + result = result && getMinerAddress().equals(other.getMinerAddress()); + result = result && getStateRoot().equals(other.getStateRoot()); + result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom().equals(other.getLogsBloom()); + result = result && getDifficulty().equals(other.getDifficulty()); + result = result && getTotalDifficulty().equals(other.getTotalDifficulty()); + result = result && getExtraData().equals(other.getExtraData()); + result = result && getNonce().equals(other.getNonce()); + result = result && getSolution().equals(other.getSolution()); + result = result && getHash().equals(other.getHash()); + result = result && (getSize() == other.getSize()); + result = result && getTxList().equals(other.getTxList()); + result = result && (getBlockTime() == other.getBlockTime()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getTotalDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + if (getTxCount() > 0) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTxList().hashCode(); + } + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockTime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByHash) - org.aion.api.server.pb.Message.req_getTransactionByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByHash.class, org.aion.api.server.pb.Message.req_getTransactionByHash.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionByHash build() { - org.aion.api.server.pb.Message.req_getTransactionByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionByHash buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionByHash result = new org.aion.api.server.pb.Message.req_getTransactionByHash(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByHash) { - return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionByHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByHash other) { - if (other == org.aion.api.server.pb.Message.req_getTransactionByHash.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionByHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByHash) - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByHash) - private static final org.aion.api.server.pb.Message.req_getTransactionByHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByHash(); - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getTransactionByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } - - public interface rsp_getTransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransaction) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 txIndex = 1; - */ - int getTxIndex(); - - /** - * uint64 blocknumber = 2; - */ - long getBlocknumber(); - - /** - * uint64 timeStamp = 3; - */ - long getTimeStamp(); - - /** - * uint64 nrgConsume = 4; - */ - long getNrgConsume(); - - /** - * uint64 nrgPrice = 5; - */ - long getNrgPrice(); - - /** - * bytes blockhash = 6; - */ - com.google.protobuf.ByteString getBlockhash(); - - /** - * bytes from = 7; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes txHash = 8; - */ - com.google.protobuf.ByteString getTxHash(); - - /** - * bytes data = 9; - */ - com.google.protobuf.ByteString getData(); - - /** - * bytes nonce = 10; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * bytes to = 11; - */ - com.google.protobuf.ByteString getTo(); - - /** - * bytes value = 12; - */ - com.google.protobuf.ByteString getValue(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} - */ - public static final class rsp_getTransaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransaction) - rsp_getTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getTransaction.newBuilder() to construct. - private rsp_getTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getTransaction() { - txIndex_ = 0; - blocknumber_ = 0L; - timeStamp_ = 0L; - nrgConsume_ = 0L; - nrgPrice_ = 0L; - blockhash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - txHash_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { + public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - txIndex_ = input.readUInt32(); - break; - } - case 16: { + public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - blocknumber_ = input.readUInt64(); - break; - } - case 24: { + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - timeStamp_ = input.readUInt64(); - break; - } - case 32: { + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - nrgConsume_ = input.readUInt64(); - break; - } - case 40: { + public Builder newBuilderForType() { + return newBuilder(); + } - nrgPrice_ = input.readUInt64(); - break; - } - case 50: { + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - blockhash_ = input.readBytes(); - break; - } - case 58: { + public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - from_ = input.readBytes(); - break; - } - case 66: { + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - txHash_ = input.readBytes(); - break; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockDetail) + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; } - case 74: { - data_ = input.readBytes(); - break; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockDetail.class, + org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); } - case 82: { - nonce_ = input.readBytes(); - break; + // Construct using org.aion.api.server.pb.Message.t_BlockDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - case 90: { - to_ = input.readBytes(); - break; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - case 98: { - value_ = input.readBytes(); - break; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxFieldBuilder(); + } } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransaction.class, org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); - } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; - public static final int TXINDEX_FIELD_NUMBER = 1; - private int txIndex_; - /** - * uint32 txIndex = 1; - */ - public int getTxIndex() { - return txIndex_; - } + timestamp_ = 0L; - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blocknumber_; - /** - * uint64 blocknumber = 2; - */ - public long getBlocknumber() { - return blocknumber_; - } + nrgConsumed_ = 0L; - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timeStamp_; - /** - * uint64 timeStamp = 3; - */ - public long getTimeStamp() { - return timeStamp_; - } + nrgLimit_ = 0L; - public static final int NRGCONSUME_FIELD_NUMBER = 4; - private long nrgConsume_; - /** - * uint64 nrgConsume = 4; - */ - public long getNrgConsume() { - return nrgConsume_; - } + parentHash_ = com.google.protobuf.ByteString.EMPTY; - public static final int NRGPRICE_FIELD_NUMBER = 5; - private long nrgPrice_; - /** - * uint64 nrgPrice = 5; - */ - public long getNrgPrice() { - return nrgPrice_; - } + minerAddress_ = com.google.protobuf.ByteString.EMPTY; - public static final int BLOCKHASH_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString blockhash_; - /** - * bytes blockhash = 6; - */ - public com.google.protobuf.ByteString getBlockhash() { - return blockhash_; - } + stateRoot_ = com.google.protobuf.ByteString.EMPTY; - public static final int FROM_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 7; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - public static final int TXHASH_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 8; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - public static final int DATA_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 9; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + logsBloom_ = com.google.protobuf.ByteString.EMPTY; - public static final int NONCE_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 10; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + difficulty_ = com.google.protobuf.ByteString.EMPTY; - public static final int TO_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString to_; - /** - * bytes to = 11; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - public static final int VALUE_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 12; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + extraData_ = com.google.protobuf.ByteString.EMPTY; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + nonce_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + solution_ = com.google.protobuf.ByteString.EMPTY; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txIndex_ != 0) { - output.writeUInt32(1, txIndex_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(2, blocknumber_); - } - if (timeStamp_ != 0L) { - output.writeUInt64(3, timeStamp_); - } - if (nrgConsume_ != 0L) { - output.writeUInt64(4, nrgConsume_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(5, nrgPrice_); - } - if (!blockhash_.isEmpty()) { - output.writeBytes(6, blockhash_); - } - if (!from_.isEmpty()) { - output.writeBytes(7, from_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(8, txHash_); - } - if (!data_.isEmpty()) { - output.writeBytes(9, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(10, nonce_); - } - if (!to_.isEmpty()) { - output.writeBytes(11, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(12, value_); - } - unknownFields.writeTo(output); - } + hash_ = com.google.protobuf.ByteString.EMPTY; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, txIndex_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blocknumber_); - } - if (timeStamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, timeStamp_); - } - if (nrgConsume_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, nrgConsume_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, nrgPrice_); - } - if (!blockhash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, blockhash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, from_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, txHash_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, nonce_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + size_ = 0; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getTransaction other = (org.aion.api.server.pb.Message.rsp_getTransaction) obj; - - boolean result = true; - result = result && (getTxIndex() - == other.getTxIndex()); - result = result && (getBlocknumber() - == other.getBlocknumber()); - result = result && (getTimeStamp() - == other.getTimeStamp()); - result = result && (getNrgConsume() - == other.getNrgConsume()); - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && getBlockhash() - .equals(other.getBlockhash()); - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && getData() - .equals(other.getData()); - result = result && getNonce() - .equals(other.getNonce()); - result = result && getTo() - .equals(other.getTo()); - result = result && getValue() - .equals(other.getValue()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + } else { + txBuilder_.clear(); + } + blockTime_ = 0L; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocknumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeStamp()); - hash = (37 * hash) + NRGCONSUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsume()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockhash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + return this; + } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransaction) - org.aion.api.server.pb.Message.rsp_getTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransaction.class, org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txIndex_ = 0; - - blocknumber_ = 0L; - - timeStamp_ = 0L; - - nrgConsume_ = 0L; - - nrgPrice_ = 0L; - - blockhash_ = com.google.protobuf.ByteString.EMPTY; - - from_ = com.google.protobuf.ByteString.EMPTY; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getTransaction build() { - org.aion.api.server.pb.Message.rsp_getTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getTransaction buildPartial() { - org.aion.api.server.pb.Message.rsp_getTransaction result = new org.aion.api.server.pb.Message.rsp_getTransaction(this); - result.txIndex_ = txIndex_; - result.blocknumber_ = blocknumber_; - result.timeStamp_ = timeStamp_; - result.nrgConsume_ = nrgConsume_; - result.nrgPrice_ = nrgPrice_; - result.blockhash_ = blockhash_; - result.from_ = from_; - result.txHash_ = txHash_; - result.data_ = data_; - result.nonce_ = nonce_; - result.to_ = to_; - result.value_ = value_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransaction other) { - if (other == org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance()) return this; - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - if (other.getTimeStamp() != 0L) { - setTimeStamp(other.getTimeStamp()); - } - if (other.getNrgConsume() != 0L) { - setNrgConsume(other.getNrgConsume()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - if (other.getBlockhash() != com.google.protobuf.ByteString.EMPTY) { - setBlockhash(other.getBlockhash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getTransaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int txIndex_ ; - /** - * uint32 txIndex = 1; - */ - public int getTxIndex() { - return txIndex_; - } - /** - * uint32 txIndex = 1; - */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 txIndex = 1; - */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - private long blocknumber_ ; - /** - * uint64 blocknumber = 2; - */ - public long getBlocknumber() { - return blocknumber_; - } - /** - * uint64 blocknumber = 2; - */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blocknumber = 2; - */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - - private long timeStamp_ ; - /** - * uint64 timeStamp = 3; - */ - public long getTimeStamp() { - return timeStamp_; - } - /** - * uint64 timeStamp = 3; - */ - public Builder setTimeStamp(long value) { - - timeStamp_ = value; - onChanged(); - return this; - } - /** - * uint64 timeStamp = 3; - */ - public Builder clearTimeStamp() { - - timeStamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsume_ ; - /** - * uint64 nrgConsume = 4; - */ - public long getNrgConsume() { - return nrgConsume_; - } - /** - * uint64 nrgConsume = 4; - */ - public Builder setNrgConsume(long value) { - - nrgConsume_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsume = 4; - */ - public Builder clearNrgConsume() { - - nrgConsume_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 5; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 5; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 5; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString blockhash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockhash = 6; - */ - public com.google.protobuf.ByteString getBlockhash() { - return blockhash_; - } - /** - * bytes blockhash = 6; - */ - public Builder setBlockhash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockhash_ = value; - onChanged(); - return this; - } - /** - * bytes blockhash = 6; - */ - public Builder clearBlockhash() { - - blockhash_ = getDefaultInstance().getBlockhash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 7; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 7; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 7; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 8; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 8; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 8; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 9; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 9; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 9; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 10; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 10; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 10; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to = 11; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** - * bytes to = 11; - */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * bytes to = 11; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 12; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 12; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 12; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransaction) - } + public org.aion.api.server.pb.Message.t_BlockDetail build() { + org.aion.api.server.pb.Message.t_BlockDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransaction) - private static final org.aion.api.server.pb.Message.rsp_getTransaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransaction(); - } + public org.aion.api.server.pb.Message.t_BlockDetail buildPartial() { + org.aion.api.server.pb.Message.t_BlockDetail result = + new org.aion.api.server.pb.Message.t_BlockDetail(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.totalDifficulty_ = totalDifficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + if (txBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + result.blockTime_ = blockTime_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - public static org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clone() { + return (Builder) super.clone(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - } - - public interface req_unlockAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_unlockAccount) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes account = 1; - */ - com.google.protobuf.ByteString getAccount(); - - /** - * string password = 2; - */ - java.lang.String getPassword(); - /** - * string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - - /** - * uint32 duration = 3; - */ - int getDuration(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} - */ - public static final class req_unlockAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_unlockAccount) - req_unlockAccountOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_unlockAccount.newBuilder() to construct. - private req_unlockAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_unlockAccount() { - account_ = com.google.protobuf.ByteString.EMPTY; - password_ = ""; - duration_ = 0; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_unlockAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - account_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 24: { - - duration_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_unlockAccount.class, org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_BlockDetail) { + return mergeFrom((org.aion.api.server.pb.Message.t_BlockDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString account_; - /** - * bytes account = 1; - */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockDetail other) { + if (other == org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()) + return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setTotalDifficulty(other.getTotalDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (txBuilder_ == null) { + if (!other.tx_.isEmpty()) { + if (tx_.isEmpty()) { + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureTxIsMutable(); + tx_.addAll(other.tx_); + } + onChanged(); + } + } else { + if (!other.tx_.isEmpty()) { + if (txBuilder_.isEmpty()) { + txBuilder_.dispose(); + txBuilder_ = null; + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00020000); + txBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxFieldBuilder() + : null; + } else { + txBuilder_.addAllMessages(other.tx_); + } + } + } + if (other.getBlockTime() != 0L) { + setBlockTime(other.getBlockTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public final boolean isInitialized() { + return true; + } - public static final int DURATION_FIELD_NUMBER = 3; - private int duration_; - /** - * uint32 duration = 3; - */ - public int getDuration() { - return duration_; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_BlockDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_BlockDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int bitField0_; - memoizedIsInitialized = 1; - return true; - } + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!account_.isEmpty()) { - output.writeBytes(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - if (duration_ != 0) { - output.writeUInt32(3, duration_); - } - unknownFields.writeTo(output); - } + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!account_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - if (duration_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, duration_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + blockNumber_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_unlockAccount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_unlockAccount other = (org.aion.api.server.pb.Message.req_unlockAccount) obj; - - boolean result = true; - result = result && getAccount() - .equals(other.getAccount()); - result = result && getPassword() - .equals(other.getPassword()); - result = result && (getDuration() - == other.getDuration()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } + /** uint64 timestamp = 2; */ + public Builder setTimestamp(long value) { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + timestamp_ = value; + onChanged(); + return this; + } + /** uint64 timestamp = 2; */ + public Builder clearTimestamp() { - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + timestamp_ = 0L; + onChanged(); + return this; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_unlockAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** uint64 nrgConsumed = 3; */ + public Builder setNrgConsumed(long value) { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_unlockAccount) - org.aion.api.server.pb.Message.req_unlockAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_unlockAccount.class, org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_unlockAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - account_ = com.google.protobuf.ByteString.EMPTY; - - password_ = ""; - - duration_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - } - - public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_unlockAccount build() { - org.aion.api.server.pb.Message.req_unlockAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_unlockAccount buildPartial() { - org.aion.api.server.pb.Message.req_unlockAccount result = new org.aion.api.server.pb.Message.req_unlockAccount(this); - result.account_ = account_; - result.password_ = password_; - result.duration_ = duration_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_unlockAccount) { - return mergeFrom((org.aion.api.server.pb.Message.req_unlockAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_unlockAccount other) { - if (other == org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance()) return this; - if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { - setAccount(other.getAccount()); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - if (other.getDuration() != 0) { - setDuration(other.getDuration()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_unlockAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_unlockAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes account = 1; - */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } - /** - * bytes account = 1; - */ - public Builder setAccount(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - account_ = value; - onChanged(); - return this; - } - /** - * bytes account = 1; - */ - public Builder clearAccount() { - - account_ = getDefaultInstance().getAccount(); - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - private int duration_ ; - /** - * uint32 duration = 3; - */ - public int getDuration() { - return duration_; - } - /** - * uint32 duration = 3; - */ - public Builder setDuration(int value) { - - duration_ = value; - onChanged(); - return this; - } - /** - * uint32 duration = 3; - */ - public Builder clearDuration() { - - duration_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_unlockAccount) - } + nrgConsumed_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsumed = 3; */ + public Builder clearNrgConsumed() { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_unlockAccount) - private static final org.aion.api.server.pb.Message.req_unlockAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_unlockAccount(); - } + nrgConsumed_ = 0L; + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } + /** uint64 nrgLimit = 4; */ + public Builder setNrgLimit(long value) { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_unlockAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_unlockAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + nrgLimit_ = value; + onChanged(); + return this; + } + /** uint64 nrgLimit = 4; */ + public Builder clearNrgLimit() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + nrgLimit_ = 0L; + onChanged(); + return this; + } - public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString parentHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** bytes parentHash = 5; */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** bytes parentHash = 5; */ + public Builder clearParentHash() { - } - - public interface rsp_accountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accounts) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes accout = 1; - */ - java.util.List getAccoutList(); - /** - * repeated bytes accout = 1; - */ - int getAccoutCount(); - /** - * repeated bytes accout = 1; - */ - com.google.protobuf.ByteString getAccout(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_accounts} - */ - public static final class rsp_accounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accounts) - rsp_accountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_accounts.newBuilder() to construct. - private rsp_accounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_accounts() { - accout_ = java.util.Collections.emptyList(); - } + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_accounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - accout_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = java.util.Collections.unmodifiableList(accout_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - } + private com.google.protobuf.ByteString minerAddress_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** bytes minerAddress = 6; */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** bytes minerAddress = 6; */ + public Builder clearMinerAddress() { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accounts.class, org.aion.api.server.pb.Message.rsp_accounts.Builder.class); - } + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } - public static final int ACCOUT_FIELD_NUMBER = 1; - private java.util.List accout_; - /** - * repeated bytes accout = 1; - */ - public java.util.List - getAccoutList() { - return accout_; - } - /** - * repeated bytes accout = 1; - */ - public int getAccoutCount() { - return accout_.size(); - } - /** - * repeated bytes accout = 1; - */ - public com.google.protobuf.ByteString getAccout(int index) { - return accout_.get(index); - } + private com.google.protobuf.ByteString stateRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** bytes stateRoot = 7; */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** bytes stateRoot = 7; */ + public Builder clearStateRoot() { - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private com.google.protobuf.ByteString txTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** bytes txTrieRoot = 8; */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes txTrieRoot = 8; */ + public Builder clearTxTrieRoot() { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accout_.size(); i++) { - output.writeBytes(1, accout_.get(i)); - } - unknownFields.writeTo(output); - } + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < accout_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(accout_.get(i)); - } - size += dataSize; - size += 1 * getAccoutList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private com.google.protobuf.ByteString receiptTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** bytes receiptTrieRoot = 9; */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes receiptTrieRoot = 9; */ + public Builder clearReceiptTrieRoot() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_accounts other = (org.aion.api.server.pb.Message.rsp_accounts) obj; - - boolean result = true; - result = result && getAccoutList() - .equals(other.getAccoutList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccoutCount() > 0) { - hash = (37 * hash) + ACCOUT_FIELD_NUMBER; - hash = (53 * hash) + getAccoutList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private com.google.protobuf.ByteString logsBloom_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** bytes logsBloom = 10; */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** bytes logsBloom = 10; */ + public Builder clearLogsBloom() { - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.ByteString difficulty_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** bytes difficulty = 11; */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** bytes difficulty = 11; */ + public Builder clearDifficulty() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_accounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accounts) - org.aion.api.server.pb.Message.rsp_accountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accounts.class, org.aion.api.server.pb.Message.rsp_accounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_accounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - accout_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_accounts build() { - org.aion.api.server.pb.Message.rsp_accounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_accounts buildPartial() { - org.aion.api.server.pb.Message.rsp_accounts result = new org.aion.api.server.pb.Message.rsp_accounts(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = java.util.Collections.unmodifiableList(accout_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accout_ = accout_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_accounts) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_accounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accounts other) { - if (other == org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance()) return this; - if (!other.accout_.isEmpty()) { - if (accout_.isEmpty()) { - accout_ = other.accout_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccoutIsMutable(); - accout_.addAll(other.accout_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_accounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_accounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List accout_ = java.util.Collections.emptyList(); - private void ensureAccoutIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = new java.util.ArrayList(accout_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes accout = 1; - */ - public java.util.List - getAccoutList() { - return java.util.Collections.unmodifiableList(accout_); - } - /** - * repeated bytes accout = 1; - */ - public int getAccoutCount() { - return accout_.size(); - } - /** - * repeated bytes accout = 1; - */ - public com.google.protobuf.ByteString getAccout(int index) { - return accout_.get(index); - } - /** - * repeated bytes accout = 1; - */ - public Builder setAccout( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccoutIsMutable(); - accout_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes accout = 1; - */ - public Builder addAccout(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccoutIsMutable(); - accout_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes accout = 1; - */ - public Builder addAllAccout( - java.lang.Iterable values) { - ensureAccoutIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accout_); - onChanged(); - return this; - } - /** - * repeated bytes accout = 1; - */ - public Builder clearAccout() { - accout_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accounts) - } + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accounts) - private static final org.aion.api.server.pb.Message.rsp_accounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accounts(); - } + private com.google.protobuf.ByteString totalDifficulty_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes totalDifficulty = 12; */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } + /** bytes totalDifficulty = 12; */ + public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDifficulty_ = value; + onChanged(); + return this; + } + /** bytes totalDifficulty = 12; */ + public Builder clearTotalDifficulty() { - public static org.aion.api.server.pb.Message.rsp_accounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_accounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_accounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.ByteString extraData_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes extraData = 13; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** bytes extraData = 13; */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** bytes extraData = 13; */ + public Builder clearExtraData() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } - public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 14; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 14; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 14; */ + public Builder clearNonce() { - } - - public interface req_compileOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compile) - com.google.protobuf.MessageOrBuilder { - - /** - * string code = 1; - */ - java.lang.String getCode(); - /** - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_compile} - */ - public static final class req_compile extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compile) - req_compileOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_compile.newBuilder() to construct. - private req_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_compile() { - code_ = ""; - } + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_compile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_descriptor; - } + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** bytes solution = 15; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** bytes solution = 15; */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** bytes solution = 15; */ + public Builder clearSolution() { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compile.class, org.aion.api.server.pb.Message.req_compile.Builder.class); - } + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes hash = 16; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** bytes hash = 16; */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** bytes hash = 16; */ + public Builder clearHash() { - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private int size_; + /** uint32 size = 17; */ + public int getSize() { + return size_; + } + /** uint32 size = 17; */ + public Builder setSize(int value) { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - unknownFields.writeTo(output); - } + size_ = value; + onChanged(); + return this; + } + /** uint32 size = 17; */ + public Builder clearSize() { - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + size_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_compile)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_compile other = (org.aion.api.server.pb.Message.req_compile) obj; - - boolean result = true; - result = result && getCode() - .equals(other.getCode()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private java.util.List tx_ = + java.util.Collections.emptyList(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void ensureTxIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = new java.util.ArrayList(tx_); + bitField0_ |= 0x00020000; + } + } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_TxDetail, + org.aion.api.server.pb.Message.t_TxDetail.Builder, + org.aion.api.server.pb.Message.t_TxDetailOrBuilder> + txBuilder_; + + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public java.util.List getTxList() { + if (txBuilder_ == null) { + return java.util.Collections.unmodifiableList(tx_); + } else { + return txBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public int getTxCount() { + if (txBuilder_ == null) { + return tx_.size(); + } else { + return txBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { + if (txBuilder_ == null) { + return tx_.get(index); + } else { + return txBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder setTx(int index, org.aion.api.server.pb.Message.t_TxDetail value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.set(index, value); + onChanged(); + } else { + txBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder setTx( + int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.set(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder addTx(org.aion.api.server.pb.Message.t_TxDetail value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + } else { + txBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder addTx(int index, org.aion.api.server.pb.Message.t_TxDetail value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(index, value); + onChanged(); + } else { + txBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder addTx( + org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder addTx( + int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder addAllTx( + java.lang.Iterable + values) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tx_); + onChanged(); + } else { + txBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + txBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public Builder removeTx(int index) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.remove(index); + onChanged(); + } else { + txBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public org.aion.api.server.pb.Message.t_TxDetail.Builder getTxBuilder(int index) { + return getTxFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder(int index) { + if (txBuilder_ == null) { + return tx_.get(index); + } else { + return txBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public java.util.List + getTxOrBuilderList() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tx_); + } + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder() { + return getTxFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder(int index) { + return getTxFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ + public java.util.List + getTxBuilderList() { + return getTxFieldBuilder().getBuilderList(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_compile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_TxDetail, + org.aion.api.server.pb.Message.t_TxDetail.Builder, + org.aion.api.server.pb.Message.t_TxDetailOrBuilder> + getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_TxDetail, + org.aion.api.server.pb.Message.t_TxDetail.Builder, + org.aion.api.server.pb.Message.t_TxDetailOrBuilder>( + tx_, + ((bitField0_ & 0x00020000) == 0x00020000), + getParentForChildren(), + isClean()); + tx_ = null; + } + return txBuilder_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_compile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compile) - org.aion.api.server.pb.Message.req_compileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compile.class, org.aion.api.server.pb.Message.req_compile.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_compile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - code_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_descriptor; - } - - public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_compile.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_compile build() { - org.aion.api.server.pb.Message.req_compile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_compile buildPartial() { - org.aion.api.server.pb.Message.req_compile result = new org.aion.api.server.pb.Message.req_compile(this); - result.code_ = code_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_compile) { - return mergeFrom((org.aion.api.server.pb.Message.req_compile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_compile other) { - if (other == org.aion.api.server.pb.Message.req_compile.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_compile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_compile) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compile) - } + private long blockTime_; + /** uint64 blockTime = 19; */ + public long getBlockTime() { + return blockTime_; + } + /** uint64 blockTime = 19; */ + public Builder setBlockTime(long value) { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compile) - private static final org.aion.api.server.pb.Message.req_compile DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compile(); - } + blockTime_ = value; + onChanged(); + return this; + } + /** uint64 blockTime = 19; */ + public Builder clearBlockTime() { - public static org.aion.api.server.pb.Message.req_compile getDefaultInstance() { - return DEFAULT_INSTANCE; - } + blockTime_ = 0L; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_compile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_compile(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockDetail) + } - } - - public interface rsp_compileOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compile) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - int getConstractsCount(); - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - boolean containsConstracts( - java.lang.String key); - /** - * Use {@link #getConstractsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getConstracts(); - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - java.util.Map - getConstractsMap(); - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( - java.lang.String key, - org.aion.api.server.pb.Message.t_Contract defaultValue); - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_compile} - */ - public static final class rsp_compile extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compile) - rsp_compileOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_compile.newBuilder() to construct. - private rsp_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_compile() { - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockDetail) + private static final org.aion.api.server.pb.Message.t_BlockDetail DEFAULT_INSTANCE; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_compile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - constracts_ = com.google.protobuf.MapField.newMapField( - ConstractsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - constracts__ = input.readMessage( - ConstractsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - constracts_.getMutableMap().put( - constracts__.getKey(), constracts__.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockDetail(); + } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetConstracts(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compile.class, org.aion.api.server.pb.Message.rsp_compile.Builder.class); - } + public static org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int CONSTRACTS_FIELD_NUMBER = 1; - private static final class ConstractsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.aion.api.server.pb.Message.t_Contract.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> constracts_; - private com.google.protobuf.MapField - internalGetConstracts() { - if (constracts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConstractsDefaultEntryHolder.defaultEntry); - } - return constracts_; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_BlockDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_BlockDetail(input, extensionRegistry); + } + }; - public int getConstractsCount() { - return internalGetConstracts().getMap().size(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public boolean containsConstracts( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetConstracts().getMap().containsKey(key); - } - /** - * Use {@link #getConstractsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getConstracts() { - return getConstractsMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public java.util.Map getConstractsMap() { - return internalGetConstracts().getMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( - java.lang.String key, - org.aion.api.server.pb.Message.t_Contract defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConstracts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConstracts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public interface t_TxDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_TxDetail) + com.google.protobuf.MessageOrBuilder { - memoizedIsInitialized = 1; - return true; - } + /** bytes txHash = 1; */ + com.google.protobuf.ByteString getTxHash(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetConstracts(), - ConstractsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } + /** bytes from = 2; */ + com.google.protobuf.ByteString getFrom(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetConstracts().getMap().entrySet()) { - com.google.protobuf.MapEntry - constracts__ = ConstractsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, constracts__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** bytes to = 3; */ + com.google.protobuf.ByteString getTo(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compile)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_compile other = (org.aion.api.server.pb.Message.rsp_compile) obj; - - boolean result = true; - result = result && internalGetConstracts().equals( - other.internalGetConstracts()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + /** bytes value = 4; */ + com.google.protobuf.ByteString getValue(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetConstracts().getMap().isEmpty()) { - hash = (37 * hash) + CONSTRACTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetConstracts().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** bytes data = 5; */ + com.google.protobuf.ByteString getData(); - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** bytes nonce = 6; */ + com.google.protobuf.ByteString getNonce(); - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_compile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** uint64 nrgConsumed = 7; */ + long getNrgConsumed(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_compile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compile) - org.aion.api.server.pb.Message.rsp_compileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetConstracts(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableConstracts(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compile.class, org.aion.api.server.pb.Message.rsp_compile.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_compile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableConstracts().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_compile build() { - org.aion.api.server.pb.Message.rsp_compile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_compile buildPartial() { - org.aion.api.server.pb.Message.rsp_compile result = new org.aion.api.server.pb.Message.rsp_compile(this); - int from_bitField0_ = bitField0_; - result.constracts_ = internalGetConstracts(); - result.constracts_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_compile) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_compile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compile other) { - if (other == org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance()) return this; - internalGetMutableConstracts().mergeFrom( - other.internalGetConstracts()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_compile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_compile) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> constracts_; - private com.google.protobuf.MapField - internalGetConstracts() { - if (constracts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConstractsDefaultEntryHolder.defaultEntry); - } - return constracts_; - } - private com.google.protobuf.MapField - internalGetMutableConstracts() { - onChanged();; - if (constracts_ == null) { - constracts_ = com.google.protobuf.MapField.newMapField( - ConstractsDefaultEntryHolder.defaultEntry); - } - if (!constracts_.isMutable()) { - constracts_ = constracts_.copy(); - } - return constracts_; - } - - public int getConstractsCount() { - return internalGetConstracts().getMap().size(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public boolean containsConstracts( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetConstracts().getMap().containsKey(key); - } - /** - * Use {@link #getConstractsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getConstracts() { - return getConstractsMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public java.util.Map getConstractsMap() { - return internalGetConstracts().getMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( - java.lang.String key, - org.aion.api.server.pb.Message.t_Contract defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConstracts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConstracts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearConstracts() { - internalGetMutableConstracts().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public Builder removeConstracts( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConstracts().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableConstracts() { - return internalGetMutableConstracts().getMutableMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public Builder putConstracts( - java.lang.String key, - org.aion.api.server.pb.Message.t_Contract value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConstracts().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - - public Builder putAllConstracts( - java.util.Map values) { - internalGetMutableConstracts().getMutableMap() - .putAll(values); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compile) - } + /** uint64 nrgPrice = 8; */ + long getNrgPrice(); - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compile) - private static final org.aion.api.server.pb.Message.rsp_compile DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compile(); - } + /** uint32 txIndex = 9; */ + int getTxIndex(); - public static org.aion.api.server.pb.Message.rsp_compile getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** bytes contract = 10; */ + com.google.protobuf.ByteString getContract(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_compile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_compile(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + java.util.List getLogsList(); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + org.aion.api.server.pb.Message.t_LgEle getLogs(int index); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + int getLogsCount(); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + java.util.List + getLogsOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** uint64 timestamp = 12; */ + long getTimestamp(); - public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** string error = 13; */ + java.lang.String getError(); + /** string error = 13; */ + com.google.protobuf.ByteString getErrorBytes(); } + /** Protobuf type {@code org.aion.api.server.pb.t_TxDetail} */ + public static final class t_TxDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_TxDetail) + t_TxDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_TxDetail.newBuilder() to construct. + private t_TxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - } - - public interface req_getCodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getCode) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * uint64 blocknumber = 2; - */ - long getBlocknumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getCode} - */ - public static final class req_getCode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getCode) - req_getCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getCode.newBuilder() to construct. - private req_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getCode() { - address_ = com.google.protobuf.ByteString.EMPTY; - blocknumber_ = 0L; - } + private t_TxDetail() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + nrgConsumed_ = 0L; + nrgPrice_ = 0L; + txIndex_ = 0; + contract_ = com.google.protobuf.ByteString.EMPTY; + logs_ = java.util.Collections.emptyList(); + timestamp_ = 0L; + error_ = ""; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getCode( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - case 16: { - - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_descriptor; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getCode.class, org.aion.api.server.pb.Message.req_getCode.Builder.class); - } + private t_TxDetail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + txHash_ = input.readBytes(); + break; + } + case 18: + { + from_ = input.readBytes(); + break; + } + case 26: + { + to_ = input.readBytes(); + break; + } + case 34: + { + value_ = input.readBytes(); + break; + } + case 42: + { + data_ = input.readBytes(); + break; + } + case 50: + { + nonce_ = input.readBytes(); + break; + } + case 56: + { + nrgConsumed_ = input.readUInt64(); + break; + } + case 64: + { + nrgPrice_ = input.readUInt64(); + break; + } + case 72: + { + txIndex_ = input.readUInt32(); + break; + } + case 82: + { + contract_ = input.readBytes(); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_LgEle>(); + mutable_bitField0_ |= 0x00000400; + } + logs_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_LgEle.parser(), + extensionRegistry)); + break; + } + case 96: + { + timestamp_ = input.readUInt64(); + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blocknumber_; - /** - * uint64 blocknumber = 2; - */ - public long getBlocknumber() { - return blocknumber_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_TxDetail.class, + org.aion.api.server.pb.Message.t_TxDetail.Builder.class); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int bitField0_; + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - memoizedIsInitialized = 1; - return true; - } + public static final int FROM_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString from_; + /** bytes from = 2; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(2, blocknumber_); - } - unknownFields.writeTo(output); - } + public static final int TO_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString to_; + /** bytes to = 3; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString value_; + /** bytes value = 4; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getCode)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getCode other = (org.aion.api.server.pb.Message.req_getCode) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && (getBlocknumber() - == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int DATA_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString data_; + /** bytes data = 5; */ + public com.google.protobuf.ByteString getData() { + return data_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int NONCE_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 6; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final int NRGCONSUMED_FIELD_NUMBER = 7; + private long nrgConsumed_; + /** uint64 nrgConsumed = 7; */ + public long getNrgConsumed() { + return nrgConsumed_; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getCode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int NRGPRICE_FIELD_NUMBER = 8; + private long nrgPrice_; + /** uint64 nrgPrice = 8; */ + public long getNrgPrice() { + return nrgPrice_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getCode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getCode) - org.aion.api.server.pb.Message.req_getCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getCode.class, org.aion.api.server.pb.Message.req_getCode.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getCode.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_descriptor; - } - - public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getCode.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getCode build() { - org.aion.api.server.pb.Message.req_getCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getCode buildPartial() { - org.aion.api.server.pb.Message.req_getCode result = new org.aion.api.server.pb.Message.req_getCode(this); - result.address_ = address_; - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getCode) { - return mergeFrom((org.aion.api.server.pb.Message.req_getCode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getCode other) { - if (other == org.aion.api.server.pb.Message.req_getCode.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getCode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getCode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private long blocknumber_ ; - /** - * uint64 blocknumber = 2; - */ - public long getBlocknumber() { - return blocknumber_; - } - /** - * uint64 blocknumber = 2; - */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blocknumber = 2; - */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getCode) - } + public static final int TXINDEX_FIELD_NUMBER = 9; + private int txIndex_; + /** uint32 txIndex = 9; */ + public int getTxIndex() { + return txIndex_; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getCode) - private static final org.aion.api.server.pb.Message.req_getCode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getCode(); - } + public static final int CONTRACT_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString contract_; + /** bytes contract = 10; */ + public com.google.protobuf.ByteString getContract() { + return contract_; + } - public static org.aion.api.server.pb.Message.req_getCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int LOGS_FIELD_NUMBER = 11; + private java.util.List logs_; + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public java.util.List getLogsList() { + return logs_; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public int getLogsCount() { + return logs_.size(); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + return logs_.get(index); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { + return logs_.get(index); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getCode(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int TIMESTAMP_FIELD_NUMBER = 12; + private long timestamp_; + /** uint64 timestamp = 12; */ + public long getTimestamp() { + return timestamp_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int ERROR_FIELD_NUMBER = 13; + private volatile java.lang.Object error_; + /** string error = 13; */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** string error = 13; */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } - - public interface rsp_getCodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCode) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes code = 1; - */ - com.google.protobuf.ByteString getCode(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getCode} - */ - public static final class rsp_getCode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCode) - rsp_getCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getCode.newBuilder() to construct. - private rsp_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getCode() { - code_ = com.google.protobuf.ByteString.EMPTY; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getCode( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - code_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCode.class, org.aion.api.server.pb.Message.rsp_getCode.Builder.class); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + if (!from_.isEmpty()) { + output.writeBytes(2, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(3, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(4, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(5, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(6, nonce_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(7, nrgConsumed_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(8, nrgPrice_); + } + if (txIndex_ != 0) { + output.writeUInt32(9, txIndex_); + } + if (!contract_.isEmpty()) { + output.writeBytes(10, contract_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(11, logs_.get(i)); + } + if (timestamp_ != 0L) { + output.writeUInt64(12, timestamp_); + } + if (!getErrorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, error_); + } + unknownFields.writeTo(output); + } - public static final int CODE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString code_; - /** - * bytes code = 1; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, nonce_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(7, nrgConsumed_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(8, nrgPrice_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(9, txIndex_); + } + if (!contract_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, contract_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, logs_.get(i)); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(12, timestamp_); + } + if (!getErrorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, error_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_TxDetail)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_TxDetail other = + (org.aion.api.server.pb.Message.t_TxDetail) obj; + + boolean result = true; + result = result && getTxHash().equals(other.getTxHash()); + result = result && getFrom().equals(other.getFrom()); + result = result && getTo().equals(other.getTo()); + result = result && getValue().equals(other.getValue()); + result = result && getData().equals(other.getData()); + result = result && getNonce().equals(other.getNonce()); + result = result && (getNrgConsumed() == other.getNrgConsumed()); + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && (getTxIndex() == other.getTxIndex()); + result = result && getContract().equals(other.getContract()); + result = result && getLogsList().equals(other.getLogsList()); + result = result && (getTimestamp() == other.getTimestamp()); + result = result && getError().equals(other.getError()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + CONTRACT_FIELD_NUMBER; + hash = (53 * hash) + getContract().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!code_.isEmpty()) { - output.writeBytes(1, code_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!code_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCode)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getCode other = (org.aion.api.server.pb.Message.rsp_getCode) obj; - - boolean result = true; - result = result && getCode() - .equals(other.getCode()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getCode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCode) - org.aion.api.server.pb.Message.rsp_getCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCode.class, org.aion.api.server.pb.Message.rsp_getCode.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getCode.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - code_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getCode build() { - org.aion.api.server.pb.Message.rsp_getCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getCode buildPartial() { - org.aion.api.server.pb.Message.rsp_getCode result = new org.aion.api.server.pb.Message.rsp_getCode(this); - result.code_ = code_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getCode) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getCode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCode other) { - if (other == org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance()) return this; - if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { - setCode(other.getCode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getCode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getCode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes code = 1; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - /** - * bytes code = 1; - */ - public Builder setCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * bytes code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCode) - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCode) - private static final org.aion.api.server.pb.Message.rsp_getCode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCode(); - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_getCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getCode(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - } - - public interface req_contractDeployOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_contractDeploy) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 nrgLimit = 1; - */ - long getNrgLimit(); - - /** - * uint64 nrgPrice = 2; - */ - long getNrgPrice(); - - /** - * bytes from = 3; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes data = 4; - */ - com.google.protobuf.ByteString getData(); - - /** - * bytes value = 5; - */ - com.google.protobuf.ByteString getValue(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} - */ - public static final class req_contractDeploy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_contractDeploy) - req_contractDeployOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_contractDeploy.newBuilder() to construct. - private req_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_contractDeploy() { - nrgLimit_ = 0L; - nrgPrice_ = 0L; - from_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_contractDeploy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - nrgLimit_ = input.readUInt64(); - break; - } - case 16: { - - nrgPrice_ = input.readUInt64(); - break; - } - case 26: { - - from_ = input.readBytes(); - break; - } - case 34: { - - data_ = input.readBytes(); - break; - } - case 42: { - - value_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_contractDeploy.class, org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_TxDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int NRGLIMIT_FIELD_NUMBER = 1; - private long nrgLimit_; - /** - * uint64 nrgLimit = 1; - */ - public long getNrgLimit() { - return nrgLimit_; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int NRGPRICE_FIELD_NUMBER = 2; - private long nrgPrice_; - /** - * uint64 nrgPrice = 2; - */ - public long getNrgPrice() { - return nrgPrice_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_TxDetail} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_TxDetail) + org.aion.api.server.pb.Message.t_TxDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + } - public static final int FROM_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 3; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_TxDetail.class, + org.aion.api.server.pb.Message.t_TxDetail.Builder.class); + } - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + // Construct using org.aion.api.server.pb.Message.t_TxDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int VALUE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 5; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } - memoizedIsInitialized = 1; - return true; - } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nrgLimit_ != 0L) { - output.writeUInt64(1, nrgLimit_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(2, nrgPrice_); - } - if (!from_.isEmpty()) { - output.writeBytes(3, from_); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - if (!value_.isEmpty()) { - output.writeBytes(5, value_); - } - unknownFields.writeTo(output); - } + from_ = com.google.protobuf.ByteString.EMPTY; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, nrgLimit_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, nrgPrice_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, from_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, data_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + to_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_contractDeploy)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_contractDeploy other = (org.aion.api.server.pb.Message.req_contractDeploy) obj; - - boolean result = true; - result = result && (getNrgLimit() - == other.getNrgLimit()); - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && getFrom() - .equals(other.getFrom()); - result = result && getData() - .equals(other.getData()); - result = result && getValue() - .equals(other.getValue()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + value_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgLimit()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + data_ = com.google.protobuf.ByteString.EMPTY; - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + nonce_ = com.google.protobuf.ByteString.EMPTY; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_contractDeploy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + nrgConsumed_ = 0L; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_contractDeploy) - org.aion.api.server.pb.Message.req_contractDeployOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_contractDeploy.class, org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_contractDeploy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - nrgLimit_ = 0L; - - nrgPrice_ = 0L; - - from_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - } - - public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_contractDeploy build() { - org.aion.api.server.pb.Message.req_contractDeploy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_contractDeploy buildPartial() { - org.aion.api.server.pb.Message.req_contractDeploy result = new org.aion.api.server.pb.Message.req_contractDeploy(this); - result.nrgLimit_ = nrgLimit_; - result.nrgPrice_ = nrgPrice_; - result.from_ = from_; - result.data_ = data_; - result.value_ = value_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_contractDeploy) { - return mergeFrom((org.aion.api.server.pb.Message.req_contractDeploy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_contractDeploy other) { - if (other == org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance()) return this; - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_contractDeploy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_contractDeploy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nrgLimit_ ; - /** - * uint64 nrgLimit = 1; - */ - public long getNrgLimit() { - return nrgLimit_; - } - /** - * uint64 nrgLimit = 1; - */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgLimit = 1; - */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 2; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 2; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 2; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 3; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 3; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 3; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 4; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 4; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 5; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 5; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 5; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_contractDeploy) - } + nrgPrice_ = 0L; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_contractDeploy) - private static final org.aion.api.server.pb.Message.req_contractDeploy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_contractDeploy(); - } + txIndex_ = 0; - public static org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstance() { - return DEFAULT_INSTANCE; - } + contract_ = com.google.protobuf.ByteString.EMPTY; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_contractDeploy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_contractDeploy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + logsBuilder_.clear(); + } + timestamp_ = 0L; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + error_ = ""; - public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + return this; + } - } - - public interface rsp_contractDeployOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_contractDeploy) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes txHash = 1; - */ - com.google.protobuf.ByteString getTxHash(); - - /** - * bytes contractAddress = 2; - */ - com.google.protobuf.ByteString getContractAddress(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} - */ - public static final class rsp_contractDeploy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_contractDeploy) - rsp_contractDeployOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_contractDeploy.newBuilder() to construct. - private rsp_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_contractDeploy() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_contractDeploy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - txHash_ = input.readBytes(); - break; - } - case 18: { - - contractAddress_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - } + public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_contractDeploy.class, org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); - } + public org.aion.api.server.pb.Message.t_TxDetail build() { + org.aion.api.server.pb.Message.t_TxDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public org.aion.api.server.pb.Message.t_TxDetail buildPartial() { + org.aion.api.server.pb.Message.t_TxDetail result = + new org.aion.api.server.pb.Message.t_TxDetail(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.txHash_ = txHash_; + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nonce_ = nonce_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgPrice_ = nrgPrice_; + result.txIndex_ = txIndex_; + result.contract_ = contract_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + result.timestamp_ = timestamp_; + result.error_ = error_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - public static final int CONTRACTADDRESS_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString contractAddress_; - /** - * bytes contractAddress = 2; - */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } + public Builder clone() { + return (Builder) super.clone(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - if (!contractAddress_.isEmpty()) { - output.writeBytes(2, contractAddress_); - } - unknownFields.writeTo(output); - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - if (!contractAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, contractAddress_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_contractDeploy)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_contractDeploy other = (org.aion.api.server.pb.Message.rsp_contractDeploy) obj; - - boolean result = true; - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && getContractAddress() - .equals(other.getContractAddress()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getContractAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_TxDetail) { + return mergeFrom((org.aion.api.server.pb.Message.t_TxDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_TxDetail other) { + if (other == org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()) + return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getContract() != com.google.protobuf.ByteString.EMPTY) { + setContract(other.getContract()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000400); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogsFieldBuilder() + : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_contractDeploy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_contractDeploy) - org.aion.api.server.pb.Message.rsp_contractDeployOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_contractDeploy.class, org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_contractDeploy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_contractDeploy build() { - org.aion.api.server.pb.Message.rsp_contractDeploy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_contractDeploy buildPartial() { - org.aion.api.server.pb.Message.rsp_contractDeploy result = new org.aion.api.server.pb.Message.rsp_contractDeploy(this); - result.txHash_ = txHash_; - result.contractAddress_ = contractAddress_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_contractDeploy) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_contractDeploy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_contractDeploy other) { - if (other == org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { - setContractAddress(other.getContractAddress()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_contractDeploy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_contractDeploy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes contractAddress = 2; - */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } - /** - * bytes contractAddress = 2; - */ - public Builder setContractAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddress_ = value; - onChanged(); - return this; - } - /** - * bytes contractAddress = 2; - */ - public Builder clearContractAddress() { - - contractAddress_ = getDefaultInstance().getContractAddress(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_contractDeploy) - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_TxDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_TxDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_contractDeploy) - private static final org.aion.api.server.pb.Message.rsp_contractDeploy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_contractDeploy(); - } + private int bitField0_; - public static org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 1; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 1; */ + public Builder clearTxHash() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_contractDeploy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_contractDeploy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 2; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** bytes from = 2; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** bytes from = 2; */ + public Builder clearFrom() { - public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } - } - - public interface req_callOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_call) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes from = 1; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes to = 2; - */ - com.google.protobuf.ByteString getTo(); - - /** - * bytes data = 3; - */ - com.google.protobuf.ByteString getData(); - - /** - * bytes value = 4; - */ - com.google.protobuf.ByteString getValue(); - - /** - * uint64 nrg = 5; - */ - long getNrg(); - - /** - * uint64 nrgPrice = 6; - */ - long getNrgPrice(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_call} - */ - public static final class req_call extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_call) - req_callOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_call.newBuilder() to construct. - private req_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_call() { - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - nrg_ = 0L; - nrgPrice_ = 0L; - } + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** bytes to = 3; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** bytes to = 3; */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** bytes to = 3; */ + public Builder clearTo() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_call( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - from_ = input.readBytes(); - break; - } - case 18: { - - to_ = input.readBytes(); - break; - } - case 26: { - - data_ = input.readBytes(); - break; - } - case 34: { - - value_ = input.readBytes(); - break; - } - case 40: { - - nrg_ = input.readUInt64(); - break; - } - case 48: { - - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_descriptor; - } + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_call.class, org.aion.api.server.pb.Message.req_call.Builder.class); - } + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** bytes value = 4; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** bytes value = 4; */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** bytes value = 4; */ + public Builder clearValue() { - public static final int FROM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 1; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } - public static final int TO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString to_; - /** - * bytes to = 2; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 5; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 5; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 5; */ + public Builder clearData() { - public static final int DATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } - public static final int VALUE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 4; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 6; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 6; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 6; */ + public Builder clearNonce() { - public static final int NRG_FIELD_NUMBER = 5; - private long nrg_; - /** - * uint64 nrg = 5; - */ - public long getNrg() { - return nrg_; - } + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } - public static final int NRGPRICE_FIELD_NUMBER = 6; - private long nrgPrice_; - /** - * uint64 nrgPrice = 6; - */ - public long getNrgPrice() { - return nrgPrice_; - } + private long nrgConsumed_; + /** uint64 nrgConsumed = 7; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** uint64 nrgConsumed = 7; */ + public Builder setNrgConsumed(long value) { - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + nrgConsumed_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsumed = 7; */ + public Builder clearNrgConsumed() { - memoizedIsInitialized = 1; - return true; - } + nrgConsumed_ = 0L; + onChanged(); + return this; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!from_.isEmpty()) { - output.writeBytes(1, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(2, to_); - } - if (!data_.isEmpty()) { - output.writeBytes(3, data_); - } - if (!value_.isEmpty()) { - output.writeBytes(4, value_); - } - if (nrg_ != 0L) { - output.writeUInt64(5, nrg_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(6, nrgPrice_); - } - unknownFields.writeTo(output); - } + private long nrgPrice_; + /** uint64 nrgPrice = 8; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 8; */ + public Builder setNrgPrice(long value) { - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, to_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, data_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, value_); - } - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, nrg_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 8; */ + public Builder clearNrgPrice() { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_call)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_call other = (org.aion.api.server.pb.Message.req_call) obj; - - boolean result = true; - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTo() - .equals(other.getTo()); - result = result && getData() - .equals(other.getData()); - result = result && getValue() - .equals(other.getValue()); - result = result && (getNrg() - == other.getNrg()); - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + nrgPrice_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrg()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private int txIndex_; + /** uint32 txIndex = 9; */ + public int getTxIndex() { + return txIndex_; + } + /** uint32 txIndex = 9; */ + public Builder setTxIndex(int value) { - public static org.aion.api.server.pb.Message.req_call parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_call parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_call parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_call parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_call parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_call parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + txIndex_ = value; + onChanged(); + return this; + } + /** uint32 txIndex = 9; */ + public Builder clearTxIndex() { - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_call prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + txIndex_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_call} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_call) - org.aion.api.server.pb.Message.req_callOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_call.class, org.aion.api.server.pb.Message.req_call.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_call.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - nrg_ = 0L; - - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_descriptor; - } - - public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_call.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_call build() { - org.aion.api.server.pb.Message.req_call result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_call buildPartial() { - org.aion.api.server.pb.Message.req_call result = new org.aion.api.server.pb.Message.req_call(this); - result.from_ = from_; - result.to_ = to_; - result.data_ = data_; - result.value_ = value_; - result.nrg_ = nrg_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_call) { - return mergeFrom((org.aion.api.server.pb.Message.req_call)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_call other) { - if (other == org.aion.api.server.pb.Message.req_call.getDefaultInstance()) return this; - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_call parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_call) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 1; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 1; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 1; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to = 2; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** - * bytes to = 2; - */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * bytes to = 2; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 3; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 3; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 3; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 4; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 4; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 4; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private long nrg_ ; - /** - * uint64 nrg = 5; - */ - public long getNrg() { - return nrg_; - } - /** - * uint64 nrg = 5; - */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** - * uint64 nrg = 5; - */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 6; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 6; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 6; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_call) - } + private com.google.protobuf.ByteString contract_ = com.google.protobuf.ByteString.EMPTY; + /** bytes contract = 10; */ + public com.google.protobuf.ByteString getContract() { + return contract_; + } + /** bytes contract = 10; */ + public Builder setContract(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contract_ = value; + onChanged(); + return this; + } + /** bytes contract = 10; */ + public Builder clearContract() { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_call) - private static final org.aion.api.server.pb.Message.req_call DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_call(); - } + contract_ = getDefaultInstance().getContract(); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_call getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.util.List logs_ = + java.util.Collections.emptyList(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_call parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_call(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000400; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, + org.aion.api.server.pb.Message.t_LgEle.Builder, + org.aion.api.server.pb.Message.t_LgEleOrBuilder> + logsBuilder_; + + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder setLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder setLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder addLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder addLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder(int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { + return getLogsFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder(int index) { + return getLogsFieldBuilder() + .addBuilder( + index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } - public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, + org.aion.api.server.pb.Message.t_LgEle.Builder, + org.aion.api.server.pb.Message.t_LgEleOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, + org.aion.api.server.pb.Message.t_LgEle.Builder, + org.aion.api.server.pb.Message.t_LgEleOrBuilder>( + logs_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } - } - - public interface rsp_callOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_call) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes result = 1; - */ - com.google.protobuf.ByteString getResult(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_call} - */ - public static final class rsp_call extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_call) - rsp_callOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_call.newBuilder() to construct. - private rsp_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_call() { - result_ = com.google.protobuf.ByteString.EMPTY; - } + private long timestamp_; + /** uint64 timestamp = 12; */ + public long getTimestamp() { + return timestamp_; + } + /** uint64 timestamp = 12; */ + public Builder setTimestamp(long value) { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_call( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - result_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_descriptor; - } + timestamp_ = value; + onChanged(); + return this; + } + /** uint64 timestamp = 12; */ + public Builder clearTimestamp() { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_call.class, org.aion.api.server.pb.Message.rsp_call.Builder.class); - } + timestamp_ = 0L; + onChanged(); + return this; + } - public static final int RESULT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString result_; - /** - * bytes result = 1; - */ - public com.google.protobuf.ByteString getResult() { - return result_; - } + private java.lang.Object error_ = ""; + /** string error = 13; */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string error = 13; */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string error = 13; */ + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** string error = 13; */ + public Builder clearError() { - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** string error = 13; */ + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!result_.isEmpty()) { - output.writeBytes(1, result_); - } - unknownFields.writeTo(output); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!result_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, result_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_TxDetail) + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_call)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_call other = (org.aion.api.server.pb.Message.rsp_call) obj; - - boolean result = true; - result = result && getResult() - .equals(other.getResult()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_TxDetail) + private static final org.aion.api.server.pb.Message.t_TxDetail DEFAULT_INSTANCE; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_TxDetail(); + } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.t_TxDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_call prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_TxDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_TxDetail(input, extensionRegistry); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_call} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_call) - org.aion.api.server.pb.Message.rsp_callOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_call.class, org.aion.api.server.pb.Message.rsp_call.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_call.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - result_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_call.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_call build() { - org.aion.api.server.pb.Message.rsp_call result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_call buildPartial() { - org.aion.api.server.pb.Message.rsp_call result = new org.aion.api.server.pb.Message.rsp_call(this); - result.result_ = result_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_call) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_call)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_call other) { - if (other == org.aion.api.server.pb.Message.rsp_call.getDefaultInstance()) return this; - if (other.getResult() != com.google.protobuf.ByteString.EMPTY) { - setResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_call parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_call) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes result = 1; - */ - public com.google.protobuf.ByteString getResult() { - return result_; - } - /** - * bytes result = 1; - */ - public Builder setResult(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - result_ = value; - onChanged(); - return this; - } - /** - * bytes result = 1; - */ - public Builder clearResult() { - - result_ = getDefaultInstance().getResult(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_call) - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_call) - private static final org.aion.api.server.pb.Message.rsp_call DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_call(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_call getDefaultInstance() { - return DEFAULT_INSTANCE; + public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_call parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_call(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public interface t_AccountDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AccountDetail) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); - public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** bytes balance = 2; */ + com.google.protobuf.ByteString getBalance(); } + /** Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} */ + public static final class t_AccountDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AccountDetail) + t_AccountDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_AccountDetail.newBuilder() to construct. + private t_AccountDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - } - - public interface req_getBlockByHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByHash) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes blockHash = 1; - */ - com.google.protobuf.ByteString getBlockHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} - */ - public static final class req_getBlockByHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByHash) - req_getBlockByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockByHash.newBuilder() to construct. - private req_getBlockByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockByHash() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - } + private t_AccountDetail() { + address_ = com.google.protobuf.ByteString.EMPTY; + balance_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - blockHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByHash.class, org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); - } + private t_AccountDetail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 18: + { + balance_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AccountDetail.class, + org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - unknownFields.writeTo(output); - } + public static final int BALANCE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString balance_; + /** bytes balance = 2; */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blockHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockByHash other = (org.aion.api.server.pb.Message.req_getBlockByHash) obj; - - boolean result = true; - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!balance_.isEmpty()) { + output.writeBytes(2, balance_); + } + unknownFields.writeTo(output); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByHash) - org.aion.api.server.pb.Message.req_getBlockByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByHash.class, org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockByHash build() { - org.aion.api.server.pb.Message.req_getBlockByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockByHash buildPartial() { - org.aion.api.server.pb.Message.req_getBlockByHash result = new org.aion.api.server.pb.Message.req_getBlockByHash(this); - result.blockHash_ = blockHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockByHash) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByHash other) { - if (other == org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockByHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** - * bytes blockHash = 1; - */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * bytes blockHash = 1; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByHash) - } + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (!balance_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, balance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByHash) - private static final org.aion.api.server.pb.Message.req_getBlockByHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByHash(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_AccountDetail)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_AccountDetail other = + (org.aion.api.server.pb.Message.t_AccountDetail) obj; - public static org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getBalance().equals(other.getBalance()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + getBalance().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } - - public interface req_getBlockHeaderByHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByHash) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes blockHash = 1; - */ - com.google.protobuf.ByteString getBlockHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} - */ - public static final class req_getBlockHeaderByHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) - req_getBlockHeaderByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockHeaderByHash.newBuilder() to construct. - private req_getBlockHeaderByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockHeaderByHash() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockHeaderByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - blockHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, org.aion.api.server.pb.Message.req_getBlockHeaderByHash.Builder.class); - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blockHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockHeaderByHash other = (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) obj; - - boolean result = true; - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder newBuilderForType() { + return newBuilder(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockHeaderByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) - org.aion.api.server.pb.Message.req_getBlockHeaderByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, org.aion.api.server.pb.Message.req_getBlockHeaderByHash.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockHeaderByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockHeaderByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash build() { - org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash buildPartial() { - org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(this); - result.blockHash_ = blockHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockHeaderByHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockHeaderByHash other) { - if (other == org.aion.api.server.pb.Message.req_getBlockHeaderByHash.getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockHeaderByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** - * bytes blockHash = 1; - */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * bytes blockHash = 1; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_AccountDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) - private static final org.aion.api.server.pb.Message.req_getBlockHeaderByHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AccountDetail) + org.aion.api.server.pb.Message.t_AccountDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockHeaderByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockHeaderByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AccountDetail.class, + org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using org.aion.api.server.pb.Message.t_AccountDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - } - - public interface req_getTransactionCountOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCount) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * uint64 blocknumber = 2; - */ - long getBlocknumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} - */ - public static final class req_getTransactionCount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCount) - req_getTransactionCountOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionCount.newBuilder() to construct. - private req_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getTransactionCount() { - address_ = com.google.protobuf.ByteString.EMPTY; - blocknumber_ = 0L; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getTransactionCount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - case 16: { - - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCount.class, org.aion.api.server.pb.Message.req_getTransactionCount.Builder.class); - } + balance_ = com.google.protobuf.ByteString.EMPTY; - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + return this; + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blocknumber_; - /** - * uint64 blocknumber = 2; - */ - public long getBlocknumber() { - return blocknumber_; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + public org.aion.api.server.pb.Message.t_AccountDetail build() { + org.aion.api.server.pb.Message.t_AccountDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(2, blocknumber_); - } - unknownFields.writeTo(output); - } + public org.aion.api.server.pb.Message.t_AccountDetail buildPartial() { + org.aion.api.server.pb.Message.t_AccountDetail result = + new org.aion.api.server.pb.Message.t_AccountDetail(this); + result.address_ = address_; + result.balance_ = balance_; + onBuilt(); + return result; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder clone() { + return (Builder) super.clone(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionCount other = (org.aion.api.server.pb.Message.req_getTransactionCount) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && (getBlocknumber() - == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCount) - org.aion.api.server.pb.Message.req_getTransactionCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCount.class, org.aion.api.server.pb.Message.req_getTransactionCount.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionCount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionCount.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionCount build() { - org.aion.api.server.pb.Message.req_getTransactionCount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionCount buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionCount result = new org.aion.api.server.pb.Message.req_getTransactionCount(this); - result.address_ = address_; - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCount) { - return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionCount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCount other) { - if (other == org.aion.api.server.pb.Message.req_getTransactionCount.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionCount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionCount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private long blocknumber_ ; - /** - * uint64 blocknumber = 2; - */ - public long getBlocknumber() { - return blocknumber_; - } - /** - * uint64 blocknumber = 2; - */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blocknumber = 2; - */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCount) - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCount) - private static final org.aion.api.server.pb.Message.req_getTransactionCount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCount(); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_AccountDetail) { + return mergeFrom((org.aion.api.server.pb.Message.t_AccountDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_AccountDetail other) { + if (other == org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()) + return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { + setBalance(other.getBalance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getTransactionCount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionCount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_AccountDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_AccountDetail) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { - } - - public interface rsp_getTransactionCountOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionCount) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 txCount = 1; - */ - long getTxCount(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} - */ - public static final class rsp_getTransactionCount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionCount) - rsp_getTransactionCountOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getTransactionCount.newBuilder() to construct. - private rsp_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getTransactionCount() { - txCount_ = 0L; - } + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getTransactionCount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - txCount_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - } + private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; + /** bytes balance = 2; */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } + /** bytes balance = 2; */ + public Builder setBalance(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + balance_ = value; + onChanged(); + return this; + } + /** bytes balance = 2; */ + public Builder clearBalance() { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionCount.class, org.aion.api.server.pb.Message.rsp_getTransactionCount.Builder.class); - } + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } - public static final int TXCOUNT_FIELD_NUMBER = 1; - private long txCount_; - /** - * uint64 txCount = 1; - */ - public long getTxCount() { - return txCount_; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AccountDetail) + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txCount_ != 0L) { - output.writeUInt64(1, txCount_); - } - unknownFields.writeTo(output); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AccountDetail) + private static final org.aion.api.server.pb.Message.t_AccountDetail DEFAULT_INSTANCE; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, txCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AccountDetail(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getTransactionCount other = (org.aion.api.server.pb.Message.rsp_getTransactionCount) obj; - - boolean result = true; - result = result && (getTxCount() - == other.getTxCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTxCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_AccountDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_AccountDetail(input, extensionRegistry); + } + }; - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getTransactionCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionCount) - org.aion.api.server.pb.Message.rsp_getTransactionCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionCount.class, org.aion.api.server.pb.Message.rsp_getTransactionCount.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getTransactionCount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txCount_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getTransactionCount.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getTransactionCount build() { - org.aion.api.server.pb.Message.rsp_getTransactionCount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionCount buildPartial() { - org.aion.api.server.pb.Message.rsp_getTransactionCount result = new org.aion.api.server.pb.Message.rsp_getTransactionCount(this); - result.txCount_ = txCount_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransactionCount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionCount other) { - if (other == org.aion.api.server.pb.Message.rsp_getTransactionCount.getDefaultInstance()) return this; - if (other.getTxCount() != 0L) { - setTxCount(other.getTxCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getTransactionCount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getTransactionCount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long txCount_ ; - /** - * uint64 txCount = 1; - */ - public long getTxCount() { - return txCount_; - } - /** - * uint64 txCount = 1; - */ - public Builder setTxCount(long value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * uint64 txCount = 1; - */ - public Builder clearTxCount() { - - txCount_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionCount) + public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionCount) - private static final org.aion.api.server.pb.Message.rsp_getTransactionCount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionCount(); - } + public interface t_BlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Block) + com.google.protobuf.MessageOrBuilder { - public static org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** uint64 blockNumber = 1; */ + long getBlockNumber(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getTransactionCount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getTransactionCount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** uint64 timestamp = 2; */ + long getTimestamp(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** uint64 nrgConsumed = 3; */ + long getNrgConsumed(); - public org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** uint64 nrgLimit = 4; */ + long getNrgLimit(); - } - - public interface req_getTransactionCountByHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCountByHash) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes txHash = 1; - */ - com.google.protobuf.ByteString getTxHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} - */ - public static final class req_getTransactionCountByHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCountByHash) - req_getTransactionCountByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionCountByHash.newBuilder() to construct. - private req_getTransactionCountByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getTransactionCountByHash() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + /** bytes parentHash = 5; */ + com.google.protobuf.ByteString getParentHash(); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getTransactionCountByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - } + /** bytes minerAddress = 6; */ + com.google.protobuf.ByteString getMinerAddress(); - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getTransactionCountByHash.Builder.class); - } + /** bytes stateRoot = 7; */ + com.google.protobuf.ByteString getStateRoot(); - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + /** bytes txTrieRoot = 8; */ + com.google.protobuf.ByteString getTxTrieRoot(); - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** bytes receiptTrieRoot = 9; */ + com.google.protobuf.ByteString getReceiptTrieRoot(); - memoizedIsInitialized = 1; - return true; - } + /** bytes logsBloom = 10; */ + com.google.protobuf.ByteString getLogsBloom(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } + /** bytes difficulty = 11; */ + com.google.protobuf.ByteString getDifficulty(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + /** bytes totalDifficulty = 12; */ + com.google.protobuf.ByteString getTotalDifficulty(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionCountByHash other = (org.aion.api.server.pb.Message.req_getTransactionCountByHash) obj; - - boolean result = true; - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + /** bytes extraData = 13; */ + com.google.protobuf.ByteString getExtraData(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** bytes nonce = 14; */ + com.google.protobuf.ByteString getNonce(); - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** bytes solution = 15; */ + com.google.protobuf.ByteString getSolution(); - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionCountByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** bytes hash = 16; */ + com.google.protobuf.ByteString getHash(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCountByHash) - org.aion.api.server.pb.Message.req_getTransactionCountByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getTransactionCountByHash.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionCountByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionCountByHash getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionCountByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionCountByHash build() { - org.aion.api.server.pb.Message.req_getTransactionCountByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionCountByHash buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionCountByHash result = new org.aion.api.server.pb.Message.req_getTransactionCountByHash(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash) { - return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionCountByHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCountByHash other) { - if (other == org.aion.api.server.pb.Message.req_getTransactionCountByHash.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionCountByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionCountByHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCountByHash) - } + /** uint32 size = 17; */ + int getSize(); - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCountByHash) - private static final org.aion.api.server.pb.Message.req_getTransactionCountByHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCountByHash(); + /** repeated bytes txHash = 18; */ + java.util.List getTxHashList(); + /** repeated bytes txHash = 18; */ + int getTxHashCount(); + /** repeated bytes txHash = 18; */ + com.google.protobuf.ByteString getTxHash(int index); } + /** Protobuf type {@code org.aion.api.server.pb.t_Block} */ + public static final class t_Block extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Block) + t_BlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Block.newBuilder() to construct. + private t_Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private t_Block() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + txHash_ = java.util.Collections.emptyList(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getTransactionCountByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionCountByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private t_Block( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + case 16: + { + timestamp_ = input.readUInt64(); + break; + } + case 24: + { + nrgConsumed_ = input.readUInt64(); + break; + } + case 32: + { + nrgLimit_ = input.readUInt64(); + break; + } + case 42: + { + parentHash_ = input.readBytes(); + break; + } + case 50: + { + minerAddress_ = input.readBytes(); + break; + } + case 58: + { + stateRoot_ = input.readBytes(); + break; + } + case 66: + { + txTrieRoot_ = input.readBytes(); + break; + } + case 74: + { + receiptTrieRoot_ = input.readBytes(); + break; + } + case 82: + { + logsBloom_ = input.readBytes(); + break; + } + case 90: + { + difficulty_ = input.readBytes(); + break; + } + case 98: + { + totalDifficulty_ = input.readBytes(); + break; + } + case 106: + { + extraData_ = input.readBytes(); + break; + } + case 114: + { + nonce_ = input.readBytes(); + break; + } + case 122: + { + solution_ = input.readBytes(); + break; + } + case 130: + { + hash_ = input.readBytes(); + break; + } + case 136: + { + size_ = input.readUInt32(); + break; + } + case 146: + { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00020000; + } + txHash_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Block_descriptor; + } - public org.aion.api.server.pb.Message.req_getTransactionCountByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Block.class, + org.aion.api.server.pb.Message.t_Block.Builder.class); + } - } - - public interface rsp_blockNumberOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_blockNumber) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blocknumber = 1; - */ - long getBlocknumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} - */ - public static final class rsp_blockNumber extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_blockNumber) - rsp_blockNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_blockNumber.newBuilder() to construct. - private rsp_blockNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_blockNumber() { - blocknumber_ = 0L; - } + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_blockNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - } + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_blockNumber.class, org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); - } + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blocknumber_; - /** - * uint64 blocknumber = 1; - */ - public long getBlocknumber() { - return blocknumber_; - } + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - memoizedIsInitialized = 1; - return true; - } + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blocknumber_ != 0L) { - output.writeUInt64(1, blocknumber_); - } - unknownFields.writeTo(output); - } + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_blockNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_blockNumber other = (org.aion.api.server.pb.Message.rsp_blockNumber) obj; - - boolean result = true; - result = result && (getBlocknumber() - == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_blockNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString totalDifficulty_; + /** bytes totalDifficulty = 12; */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_blockNumber) - org.aion.api.server.pb.Message.rsp_blockNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_blockNumber.class, org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_blockNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_blockNumber build() { - org.aion.api.server.pb.Message.rsp_blockNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_blockNumber buildPartial() { - org.aion.api.server.pb.Message.rsp_blockNumber result = new org.aion.api.server.pb.Message.rsp_blockNumber(this); - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_blockNumber) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_blockNumber)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_blockNumber other) { - if (other == org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance()) return this; - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_blockNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_blockNumber) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blocknumber_ ; - /** - * uint64 blocknumber = 1; - */ - public long getBlocknumber() { - return blocknumber_; - } - /** - * uint64 blocknumber = 1; - */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blocknumber = 1; - */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_blockNumber) - } + public static final int EXTRADATA_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString extraData_; + /** bytes extraData = 13; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_blockNumber) - private static final org.aion.api.server.pb.Message.rsp_blockNumber DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_blockNumber(); - } + public static final int NONCE_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 14; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public static org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int SOLUTION_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString solution_; + /** bytes solution = 15; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_blockNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_blockNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int HASH_FIELD_NUMBER = 16; + private com.google.protobuf.ByteString hash_; + /** bytes hash = 16; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int SIZE_FIELD_NUMBER = 17; + private int size_; + /** uint32 size = 17; */ + public int getSize() { + return size_; + } - public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int TXHASH_FIELD_NUMBER = 18; + private java.util.List txHash_; + /** repeated bytes txHash = 18; */ + public java.util.List getTxHashList() { + return txHash_; + } + /** repeated bytes txHash = 18; */ + public int getTxHashCount() { + return txHash_.size(); + } + /** repeated bytes txHash = 18; */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } - } - - public interface req_getBalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBalance) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * uint64 blockNumber = 2; - */ - long getBlockNumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBalance} - */ - public static final class req_getBalance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBalance) - req_getBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBalance.newBuilder() to construct. - private req_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBalance() { - address_ = com.google.protobuf.ByteString.EMPTY; - blockNumber_ = 0L; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - case 16: { - - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBalance.class, org.aion.api.server.pb.Message.req_getBalance.Builder.class); - } + memoizedIsInitialized = 1; + return true; + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + output.writeBytes(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(13, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(14, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(15, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(16, hash_); + } + if (size_ != 0) { + output.writeUInt32(17, size_); + } + for (int i = 0; i < txHash_.size(); i++) { + output.writeBytes(18, txHash_.get(i)); + } + unknownFields.writeTo(output); + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blockNumber_; - /** - * uint64 blockNumber = 2; - */ - public long getBlockNumber() { - return blockNumber_; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(16, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(17, size_); + } + { + int dataSize = 0; + for (int i = 0; i < txHash_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + txHash_.get(i)); + } + size += dataSize; + size += 2 * getTxHashList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Block)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_Block other = + (org.aion.api.server.pb.Message.t_Block) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && (getTimestamp() == other.getTimestamp()); + result = result && (getNrgConsumed() == other.getNrgConsumed()); + result = result && (getNrgLimit() == other.getNrgLimit()); + result = result && getParentHash().equals(other.getParentHash()); + result = result && getMinerAddress().equals(other.getMinerAddress()); + result = result && getStateRoot().equals(other.getStateRoot()); + result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom().equals(other.getLogsBloom()); + result = result && getDifficulty().equals(other.getDifficulty()); + result = result && getTotalDifficulty().equals(other.getTotalDifficulty()); + result = result && getExtraData().equals(other.getExtraData()); + result = result && getNonce().equals(other.getNonce()); + result = result && getSolution().equals(other.getSolution()); + result = result && getHash().equals(other.getHash()); + result = result && (getSize() == other.getSize()); + result = result && getTxHashList().equals(other.getTxHashList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getTotalDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + if (getTxHashCount() > 0) { + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHashList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (blockNumber_ != 0L) { - output.writeUInt64(2, blockNumber_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.t_Block parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBalance)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBalance other = (org.aion.api.server.pb.Message.req_getBalance) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.t_Block parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBalance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBalance) - org.aion.api.server.pb.Message.req_getBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBalance.class, org.aion.api.server.pb.Message.req_getBalance.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBalance build() { - org.aion.api.server.pb.Message.req_getBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBalance buildPartial() { - org.aion.api.server.pb.Message.req_getBalance result = new org.aion.api.server.pb.Message.req_getBalance(this); - result.address_ = address_; - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBalance) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBalance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBalance other) { - if (other == org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBalance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 2; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 2; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 2; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBalance) - } + public static org.aion.api.server.pb.Message.t_Block parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBalance) - private static final org.aion.api.server.pb.Message.req_getBalance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBalance(); - } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - } - - public interface rsp_getBalanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBalance) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes balance = 1; - */ - com.google.protobuf.ByteString getBalance(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} - */ - public static final class rsp_getBalance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBalance) - rsp_getBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBalance.newBuilder() to construct. - private rsp_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBalance() { - balance_ = com.google.protobuf.ByteString.EMPTY; - } + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - balance_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBalance.class, org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Block prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int BALANCE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString balance_; - /** - * bytes balance = 1; - */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_Block} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Block) + org.aion.api.server.pb.Message.t_BlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Block_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Block.class, + org.aion.api.server.pb.Message.t_Block.Builder.class); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!balance_.isEmpty()) { - output.writeBytes(1, balance_); - } - unknownFields.writeTo(output); - } + // Construct using org.aion.api.server.pb.Message.t_Block.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!balance_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, balance_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBalance)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBalance other = (org.aion.api.server.pb.Message.rsp_getBalance) obj; - - boolean result = true; - result = result && getBalance() - .equals(other.getBalance()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + timestamp_ = 0L; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + nrgConsumed_ = 0L; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBalance) - org.aion.api.server.pb.Message.rsp_getBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBalance.class, org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - balance_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBalance build() { - org.aion.api.server.pb.Message.rsp_getBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBalance buildPartial() { - org.aion.api.server.pb.Message.rsp_getBalance result = new org.aion.api.server.pb.Message.rsp_getBalance(this); - result.balance_ = balance_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBalance) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBalance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBalance other) { - if (other == org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance()) return this; - if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { - setBalance(other.getBalance()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBalance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes balance = 1; - */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } - /** - * bytes balance = 1; - */ - public Builder setBalance(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - balance_ = value; - onChanged(); - return this; - } - /** - * bytes balance = 1; - */ - public Builder clearBalance() { - - balance_ = getDefaultInstance().getBalance(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBalance) - } + nrgLimit_ = 0L; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBalance) - private static final org.aion.api.server.pb.Message.rsp_getBalance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBalance(); - } + parentHash_ = com.google.protobuf.ByteString.EMPTY; - public static org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } + minerAddress_ = com.google.protobuf.ByteString.EMPTY; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + stateRoot_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - } - - public interface req_getStorageAtOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getStorageAt) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * string key = 2; - */ - java.lang.String getKey(); - /** - * string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * uint64 blocknumber = 3; - */ - long getBlocknumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} - */ - public static final class req_getStorageAt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getStorageAt) - req_getStorageAtOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getStorageAt.newBuilder() to construct. - private req_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getStorageAt() { - address_ = com.google.protobuf.ByteString.EMPTY; - key_ = ""; - blocknumber_ = 0L; - } + logsBloom_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getStorageAt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 24: { - - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - } + difficulty_ = com.google.protobuf.ByteString.EMPTY; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getStorageAt.class, org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); - } + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + extraData_ = com.google.protobuf.ByteString.EMPTY; - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + nonce_ = com.google.protobuf.ByteString.EMPTY; - public static final int BLOCKNUMBER_FIELD_NUMBER = 3; - private long blocknumber_; - /** - * uint64 blocknumber = 3; - */ - public long getBlocknumber() { - return blocknumber_; - } + solution_ = com.google.protobuf.ByteString.EMPTY; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + hash_ = com.google.protobuf.ByteString.EMPTY; - memoizedIsInitialized = 1; - return true; - } + size_ = 0; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(3, blocknumber_); - } - unknownFields.writeTo(output); - } + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Block_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getStorageAt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getStorageAt other = (org.aion.api.server.pb.Message.req_getStorageAt) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && getKey() - .equals(other.getKey()); - result = result && (getBlocknumber() - == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Block.getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public org.aion.api.server.pb.Message.t_Block build() { + org.aion.api.server.pb.Message.t_Block result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public org.aion.api.server.pb.Message.t_Block buildPartial() { + org.aion.api.server.pb.Message.t_Block result = + new org.aion.api.server.pb.Message.t_Block(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.totalDifficulty_ = totalDifficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + if (((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.txHash_ = txHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getStorageAt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder clone() { + return (Builder) super.clone(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getStorageAt) - org.aion.api.server.pb.Message.req_getStorageAtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getStorageAt.class, org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getStorageAt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - key_ = ""; - - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - } - - public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getStorageAt build() { - org.aion.api.server.pb.Message.req_getStorageAt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getStorageAt buildPartial() { - org.aion.api.server.pb.Message.req_getStorageAt result = new org.aion.api.server.pb.Message.req_getStorageAt(this); - result.address_ = address_; - result.key_ = key_; - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getStorageAt) { - return mergeFrom((org.aion.api.server.pb.Message.req_getStorageAt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getStorageAt other) { - if (other == org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getStorageAt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getStorageAt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 2; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private long blocknumber_ ; - /** - * uint64 blocknumber = 3; - */ - public long getBlocknumber() { - return blocknumber_; - } - /** - * uint64 blocknumber = 3; - */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blocknumber = 3; - */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getStorageAt) - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getStorageAt) - private static final org.aion.api.server.pb.Message.req_getStorageAt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getStorageAt(); - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public static org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getStorageAt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getStorageAt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Block) { + return mergeFrom((org.aion.api.server.pb.Message.t_Block) other); + } else { + super.mergeFrom(other); + return this; + } + } - } - - public interface rsp_getStorageAtOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStorageAt) - com.google.protobuf.MessageOrBuilder { - - /** - * string storage = 1; - */ - java.lang.String getStorage(); - /** - * string storage = 1; - */ - com.google.protobuf.ByteString - getStorageBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} - */ - public static final class rsp_getStorageAt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStorageAt) - rsp_getStorageAtOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getStorageAt.newBuilder() to construct. - private rsp_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getStorageAt() { - storage_ = ""; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Block other) { + if (other == org.aion.api.server.pb.Message.t_Block.getDefaultInstance()) + return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setTotalDifficulty(other.getTotalDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (!other.txHash_.isEmpty()) { + if (txHash_.isEmpty()) { + txHash_ = other.txHash_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureTxHashIsMutable(); + txHash_.addAll(other.txHash_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getStorageAt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - storage_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - } + public final boolean isInitialized() { + return true; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStorageAt.class, org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Block parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_Block) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int STORAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object storage_; - /** - * string storage = 1; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } - } - /** - * string storage = 1; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private int bitField0_; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { - memoizedIsInitialized = 1; - return true; - } + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getStorageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storage_); - } - unknownFields.writeTo(output); - } + blockNumber_ = 0L; + onChanged(); + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStorageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storage_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } + /** uint64 timestamp = 2; */ + public Builder setTimestamp(long value) { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStorageAt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getStorageAt other = (org.aion.api.server.pb.Message.rsp_getStorageAt) obj; - - boolean result = true; - result = result && getStorage() - .equals(other.getStorage()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + timestamp_ = value; + onChanged(); + return this; + } + /** uint64 timestamp = 2; */ + public Builder clearTimestamp() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getStorage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + timestamp_ = 0L; + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** uint64 nrgConsumed = 3; */ + public Builder setNrgConsumed(long value) { - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getStorageAt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + nrgConsumed_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsumed = 3; */ + public Builder clearNrgConsumed() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStorageAt) - org.aion.api.server.pb.Message.rsp_getStorageAtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStorageAt.class, org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getStorageAt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - storage_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getStorageAt build() { - org.aion.api.server.pb.Message.rsp_getStorageAt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getStorageAt buildPartial() { - org.aion.api.server.pb.Message.rsp_getStorageAt result = new org.aion.api.server.pb.Message.rsp_getStorageAt(this); - result.storage_ = storage_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getStorageAt) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getStorageAt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStorageAt other) { - if (other == org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance()) return this; - if (!other.getStorage().isEmpty()) { - storage_ = other.storage_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getStorageAt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getStorageAt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object storage_ = ""; - /** - * string storage = 1; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string storage = 1; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string storage = 1; - */ - public Builder setStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storage_ = value; - onChanged(); - return this; - } - /** - * string storage = 1; - */ - public Builder clearStorage() { - - storage_ = getDefaultInstance().getStorage(); - onChanged(); - return this; - } - /** - * string storage = 1; - */ - public Builder setStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storage_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStorageAt) - } + nrgConsumed_ = 0L; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStorageAt) - private static final org.aion.api.server.pb.Message.rsp_getStorageAt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStorageAt(); - } + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } + /** uint64 nrgLimit = 4; */ + public Builder setNrgLimit(long value) { - public static org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + nrgLimit_ = value; + onChanged(); + return this; + } + /** uint64 nrgLimit = 4; */ + public Builder clearNrgLimit() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getStorageAt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getStorageAt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + nrgLimit_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.ByteString parentHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** bytes parentHash = 5; */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** bytes parentHash = 5; */ + public Builder clearParentHash() { - public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } - } - - public interface req_getBlockTransactionCountByHashOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes blockHash = 1; - */ - com.google.protobuf.ByteString getBlockHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} - */ - public static final class req_getBlockTransactionCountByHash extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - req_getBlockTransactionCountByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockTransactionCountByHash.newBuilder() to construct. - private req_getBlockTransactionCountByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockTransactionCountByHash() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - } + private com.google.protobuf.ByteString minerAddress_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** bytes minerAddress = 6; */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** bytes minerAddress = 6; */ + public Builder clearMinerAddress() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockTransactionCountByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - blockHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - } + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.Builder.class); - } + private com.google.protobuf.ByteString stateRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** bytes stateRoot = 7; */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** bytes stateRoot = 7; */ + public Builder clearStateRoot() { - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private com.google.protobuf.ByteString txTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** bytes txTrieRoot = 8; */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes txTrieRoot = 8; */ + public Builder clearTxTrieRoot() { - memoizedIsInitialized = 1; - return true; - } + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - unknownFields.writeTo(output); - } + private com.google.protobuf.ByteString receiptTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** bytes receiptTrieRoot = 9; */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes receiptTrieRoot = 9; */ + public Builder clearReceiptTrieRoot() { - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blockHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) obj; - - boolean result = true; - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private com.google.protobuf.ByteString logsBloom_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** bytes logsBloom = 10; */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** bytes logsBloom = 10; */ + public Builder clearLogsBloom() { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private com.google.protobuf.ByteString difficulty_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** bytes difficulty = 11; */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** bytes difficulty = 11; */ + public Builder clearDifficulty() { - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash build() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash buildPartial() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(this); - result.blockHash_ = blockHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other) { - if (other == org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** - * bytes blockHash = 1; - */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * bytes blockHash = 1; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - } + private com.google.protobuf.ByteString totalDifficulty_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes totalDifficulty = 12; */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } + /** bytes totalDifficulty = 12; */ + public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDifficulty_ = value; + onChanged(); + return this; + } + /** bytes totalDifficulty = 12; */ + public Builder clearTotalDifficulty() { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(); - } + totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.ByteString extraData_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes extraData = 13; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** bytes extraData = 13; */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** bytes extraData = 13; */ + public Builder clearExtraData() { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockTransactionCountByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockTransactionCountByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 14; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 14; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 14; */ + public Builder clearNonce() { - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } - } - - public interface rsp_getBlockTransactionCountOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockTransactionCount) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 txCount = 1; - */ - int getTxCount(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} - */ - public static final class rsp_getBlockTransactionCount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) - rsp_getBlockTransactionCountOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockTransactionCount.newBuilder() to construct. - private rsp_getBlockTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockTransactionCount() { - txCount_ = 0; - } + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** bytes solution = 15; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** bytes solution = 15; */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** bytes solution = 15; */ + public Builder clearSolution() { - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlockTransactionCount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - txCount_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - } + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.Builder.class); - } + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes hash = 16; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** bytes hash = 16; */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** bytes hash = 16; */ + public Builder clearHash() { - public static final int TXCOUNT_FIELD_NUMBER = 1; - private int txCount_; - /** - * uint32 txCount = 1; - */ - public int getTxCount() { - return txCount_; - } + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int size_; + /** uint32 size = 17; */ + public int getSize() { + return size_; + } + /** uint32 size = 17; */ + public Builder setSize(int value) { - memoizedIsInitialized = 1; - return true; - } + size_ = value; + onChanged(); + return this; + } + /** uint32 size = 17; */ + public Builder clearSize() { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txCount_ != 0) { - output.writeUInt32(1, txCount_); - } - unknownFields.writeTo(output); - } + size_ = 0; + onChanged(); + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, txCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private java.util.List txHash_ = + java.util.Collections.emptyList(); - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other = (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) obj; - - boolean result = true; - result = result && (getTxCount() - == other.getTxCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private void ensureTxHashIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = new java.util.ArrayList(txHash_); + bitField0_ |= 0x00020000; + } + } + /** repeated bytes txHash = 18; */ + public java.util.List getTxHashList() { + return java.util.Collections.unmodifiableList(txHash_); + } + /** repeated bytes txHash = 18; */ + public int getTxHashCount() { + return txHash_.size(); + } + /** repeated bytes txHash = 18; */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } + /** repeated bytes txHash = 18; */ + public Builder setTxHash(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes txHash = 18; */ + public Builder addTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.add(value); + onChanged(); + return this; + } + /** repeated bytes txHash = 18; */ + public Builder addAllTxHash( + java.lang.Iterable values) { + ensureTxHashIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHash_); + onChanged(); + return this; + } + /** repeated bytes txHash = 18; */ + public Builder clearTxHash() { + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getTxCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockTransactionCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Block) + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) - org.aion.api.server.pb.Message.rsp_getBlockTransactionCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txCount_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount build() { - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(this); - result.txCount_ = txCount_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockTransactionCount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.getDefaultInstance()) return this; - if (other.getTxCount() != 0) { - setTxCount(other.getTxCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int txCount_ ; - /** - * uint32 txCount = 1; - */ - public int getTxCount() { - return txCount_; - } - /** - * uint32 txCount = 1; - */ - public Builder setTxCount(int value) { - - txCount_ = value; - onChanged(); - return this; - } - /** - * uint32 txCount = 1; - */ - public Builder clearTxCount() { - - txCount_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Block) + private static final org.aion.api.server.pb.Message.t_Block DEFAULT_INSTANCE; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) - private static final org.aion.api.server.pb.Message.rsp_getBlockTransactionCount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Block(); + } - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_Block getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlockTransactionCount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockTransactionCount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Block(input, extensionRegistry); + } + }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - } - - public interface req_getBlockTransactionCountByNumberOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} - */ - public static final class req_getBlockTransactionCountByNumber extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - req_getBlockTransactionCountByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockTransactionCountByNumber.newBuilder() to construct. - private req_getBlockTransactionCountByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockTransactionCountByNumber() { - blockNumber_ = 0L; + public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockTransactionCountByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - } + public interface t_BlockSqlOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockSql) + com.google.protobuf.MessageOrBuilder { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.Builder.class); - } + /** uint64 blockNumber = 1; */ + long getBlockNumber(); - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + /** string blockHash = 2; */ + java.lang.String getBlockHash(); + /** string blockHash = 2; */ + com.google.protobuf.ByteString getBlockHashBytes(); - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** string parentHash = 3; */ + java.lang.String getParentHash(); + /** string parentHash = 3; */ + com.google.protobuf.ByteString getParentHashBytes(); - memoizedIsInitialized = 1; - return true; - } + /** string block = 4; */ + java.lang.String getBlock(); + /** string block = 4; */ + com.google.protobuf.ByteString getBlockBytes(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - unknownFields.writeTo(output); + /** repeated string tx = 5; */ + java.util.List getTxList(); + /** repeated string tx = 5; */ + int getTxCount(); + /** repeated string tx = 5; */ + java.lang.String getTx(int index); + /** repeated string tx = 5; */ + com.google.protobuf.ByteString getTxBytes(int index); } + /** Protobuf type {@code org.aion.api.server.pb.t_BlockSql} */ + public static final class t_BlockSql extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockSql) + t_BlockSqlOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_BlockSql.newBuilder() to construct. + private t_BlockSql(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private t_BlockSql() { + blockNumber_ = 0L; + blockHash_ = ""; + parentHash_ = ""; + block_ = ""; + tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private t_BlockSql( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + blockHash_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + parentHash_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + block_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + tx_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = tx_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockSql.class, + org.aion.api.server.pb.Message.t_BlockSql.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber build() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber buildPartial() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber(this); - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other) { - if (other == org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - } + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber(); - } + public static final int BLOCKHASH_FIELD_NUMBER = 2; + private volatile java.lang.Object blockHash_; + /** string blockHash = 2; */ + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } + } + /** string blockHash = 2; */ + public com.google.protobuf.ByteString getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int PARENTHASH_FIELD_NUMBER = 3; + private volatile java.lang.Object parentHash_; + /** string parentHash = 3; */ + public java.lang.String getParentHash() { + java.lang.Object ref = parentHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentHash_ = s; + return s; + } + } + /** string parentHash = 3; */ + public com.google.protobuf.ByteString getParentHashBytes() { + java.lang.Object ref = parentHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockTransactionCountByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockTransactionCountByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int BLOCK_FIELD_NUMBER = 4; + private volatile java.lang.Object block_; + /** string block = 4; */ + public java.lang.String getBlock() { + java.lang.Object ref = block_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + block_ = s; + return s; + } + } + /** string block = 4; */ + public com.google.protobuf.ByteString getBlockBytes() { + java.lang.Object ref = block_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + block_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int TX_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList tx_; + /** repeated string tx = 5; */ + public com.google.protobuf.ProtocolStringList getTxList() { + return tx_; + } + /** repeated string tx = 5; */ + public int getTxCount() { + return tx_.size(); + } + /** repeated string tx = 5; */ + public java.lang.String getTx(int index) { + return tx_.get(index); + } + /** repeated string tx = 5; */ + public com.google.protobuf.ByteString getTxBytes(int index) { + return tx_.getByteString(index); + } - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private byte memoizedIsInitialized = -1; - } - - public interface req_getTransactionByBlockHashAndIndexOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes blockHash = 1; - */ - com.google.protobuf.ByteString getBlockHash(); - - /** - * uint32 txIndex = 2; - */ - int getTxIndex(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} - */ - public static final class req_getTransactionByBlockHashAndIndex extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - req_getTransactionByBlockHashAndIndexOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionByBlockHashAndIndex.newBuilder() to construct. - private req_getTransactionByBlockHashAndIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getTransactionByBlockHashAndIndex() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - txIndex_ = 0; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getTransactionByBlockHashAndIndex( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - blockHash_ = input.readBytes(); - break; - } - case 16: { - - txIndex_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.Builder.class); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (!getBlockHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blockHash_); + } + if (!getParentHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentHash_); + } + if (!getBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, block_); + } + for (int i = 0; i < tx_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tx_.getRaw(i)); + } + unknownFields.writeTo(output); + } - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int TXINDEX_FIELD_NUMBER = 2; - private int txIndex_; - /** - * uint32 txIndex = 2; - */ - public int getTxIndex() { - return txIndex_; - } + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + if (!getBlockHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blockHash_); + } + if (!getParentHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentHash_); + } + if (!getBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, block_); + } + { + int dataSize = 0; + for (int i = 0; i < tx_.size(); i++) { + dataSize += computeStringSizeNoTag(tx_.getRaw(i)); + } + size += dataSize; + size += 1 * getTxList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockSql)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_BlockSql other = + (org.aion.api.server.pb.Message.t_BlockSql) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && getParentHash().equals(other.getParentHash()); + result = result && getBlock().equals(other.getBlock()); + result = result && getTxList().equals(other.getTxList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + if (getTxCount() > 0) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTxList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - if (txIndex_ != 0) { - output.writeUInt32(2, txIndex_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blockHash_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, txIndex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other = (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) obj; - - boolean result = true; - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && (getTxIndex() - == other.getTxIndex()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - txIndex_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex build() { - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex(this); - result.blockHash_ = blockHash_; - result.txIndex_ = txIndex_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) { - return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other) { - if (other == org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** - * bytes blockHash = 1; - */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * bytes blockHash = 1; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - private int txIndex_ ; - /** - * uint32 txIndex = 2; - */ - public int getTxIndex() { - return txIndex_; - } - /** - * uint32 txIndex = 2; - */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 txIndex = 2; - */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - private static final org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex(); - } + public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getTransactionByBlockHashAndIndex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionByBlockHashAndIndex(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder newBuilderForType() { + return newBuilder(); + } - } - - public interface req_getTransactionByBlockNumberAndIndexOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blockNumber = 1; - */ - long getBlockNumber(); - - /** - * uint32 txIndex = 2; - */ - int getTxIndex(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} - */ - public static final class req_getTransactionByBlockNumberAndIndex extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - req_getTransactionByBlockNumberAndIndexOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionByBlockNumberAndIndex.newBuilder() to construct. - private req_getTransactionByBlockNumberAndIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getTransactionByBlockNumberAndIndex() { - blockNumber_ = 0L; - txIndex_ = 0; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getTransactionByBlockNumberAndIndex( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blockNumber_ = input.readUInt64(); - break; - } - case 16: { - - txIndex_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockSql prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.Builder.class); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_BlockSql} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockSql) + org.aion.api.server.pb.Message.t_BlockSqlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + } - public static final int TXINDEX_FIELD_NUMBER = 2; - private int txIndex_; - /** - * uint32 txIndex = 2; - */ - public int getTxIndex() { - return txIndex_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockSql.class, + org.aion.api.server.pb.Message.t_BlockSql.Builder.class); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using org.aion.api.server.pb.Message.t_BlockSql.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (txIndex_ != 0) { - output.writeUInt32(2, txIndex_); - } - unknownFields.writeTo(output); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blockNumber_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, txIndex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other = (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) obj; - - boolean result = true; - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && (getTxIndex() - == other.getTxIndex()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + blockHash_ = ""; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + parentHash_ = ""; - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + block_ = ""; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - txIndex_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex build() { - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex(this); - result.blockNumber_ = blockNumber_; - result.txIndex_ = txIndex_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) { - return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other) { - if (other == org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 1; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 1; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 1; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private int txIndex_ ; - /** - * uint32 txIndex = 2; - */ - public int getTxIndex() { - return txIndex_; - } - /** - * uint32 txIndex = 2; - */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 txIndex = 2; - */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - private static final org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex(); - } + public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance(); + } - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.t_BlockSql build() { + org.aion.api.server.pb.Message.t_BlockSql result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getTransactionByBlockNumberAndIndex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionByBlockNumberAndIndex(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public org.aion.api.server.pb.Message.t_BlockSql buildPartial() { + org.aion.api.server.pb.Message.t_BlockSql result = + new org.aion.api.server.pb.Message.t_BlockSql(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.blockHash_ = blockHash_; + result.parentHash_ = parentHash_; + result.block_ = block_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = tx_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.tx_ = tx_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder clone() { + return (Builder) super.clone(); + } - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - } - - public interface req_getTransactionReceiptOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionReceipt) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes txHash = 1; - */ - com.google.protobuf.ByteString getTxHash(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} - */ - public static final class req_getTransactionReceipt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionReceipt) - req_getTransactionReceiptOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionReceipt.newBuilder() to construct. - private req_getTransactionReceipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getTransactionReceipt() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getTransactionReceipt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionReceipt.class, org.aion.api.server.pb.Message.req_getTransactionReceipt.Builder.class); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_BlockSql) { + return mergeFrom((org.aion.api.server.pb.Message.t_BlockSql) other); + } else { + super.mergeFrom(other); + return this; + } + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockSql other) { + if (other == org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()) + return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (!other.getBlockHash().isEmpty()) { + blockHash_ = other.blockHash_; + onChanged(); + } + if (!other.getParentHash().isEmpty()) { + parentHash_ = other.parentHash_; + onChanged(); + } + if (!other.getBlock().isEmpty()) { + block_ = other.block_; + onChanged(); + } + if (!other.tx_.isEmpty()) { + if (tx_.isEmpty()) { + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTxIsMutable(); + tx_.addAll(other.tx_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionReceipt other = (org.aion.api.server.pb.Message.req_getTransactionReceipt) obj; - - boolean result = true; - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_BlockSql parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_BlockSql) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private int bitField0_; - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionReceipt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionReceipt) - org.aion.api.server.pb.Message.req_getTransactionReceiptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionReceipt.class, org.aion.api.server.pb.Message.req_getTransactionReceipt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionReceipt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionReceipt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionReceipt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionReceipt build() { - org.aion.api.server.pb.Message.req_getTransactionReceipt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionReceipt buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionReceipt result = new org.aion.api.server.pb.Message.req_getTransactionReceipt(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt) { - return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionReceipt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionReceipt other) { - if (other == org.aion.api.server.pb.Message.req_getTransactionReceipt.getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionReceipt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionReceipt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 1; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 1; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 1; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionReceipt) - } + blockNumber_ = 0L; + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionReceipt) - private static final org.aion.api.server.pb.Message.req_getTransactionReceipt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionReceipt(); - } + private java.lang.Object blockHash_ = ""; + /** string blockHash = 2; */ + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string blockHash = 2; */ + public com.google.protobuf.ByteString getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string blockHash = 2; */ + public Builder setBlockHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** string blockHash = 2; */ + public Builder clearBlockHash() { - public static org.aion.api.server.pb.Message.req_getTransactionReceipt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + /** string blockHash = 2; */ + public Builder setBlockHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + blockHash_ = value; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getTransactionReceipt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionReceipt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object parentHash_ = ""; + /** string parentHash = 3; */ + public java.lang.String getParentHash() { + java.lang.Object ref = parentHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string parentHash = 3; */ + public com.google.protobuf.ByteString getParentHashBytes() { + java.lang.Object ref = parentHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string parentHash = 3; */ + public Builder setParentHash(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** string parentHash = 3; */ + public Builder clearParentHash() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + /** string parentHash = 3; */ + public Builder setParentHashBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentHash_ = value; + onChanged(); + return this; + } - public org.aion.api.server.pb.Message.req_getTransactionReceipt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private java.lang.Object block_ = ""; + /** string block = 4; */ + public java.lang.String getBlock() { + java.lang.Object ref = block_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + block_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string block = 4; */ + public com.google.protobuf.ByteString getBlockBytes() { + java.lang.Object ref = block_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + block_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string block = 4; */ + public Builder setBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + block_ = value; + onChanged(); + return this; + } + /** string block = 4; */ + public Builder clearBlock() { - } - - public interface rsp_getTransactionReceiptOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionReceipt) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 txIndex = 1; - */ - int getTxIndex(); - - /** - * uint64 blockNumber = 2; - */ - long getBlockNumber(); - - /** - * uint64 nrgConsumed = 3; - */ - long getNrgConsumed(); - - /** - * uint64 cumulativeNrgUsed = 4; - */ - long getCumulativeNrgUsed(); - - /** - * bytes blockHash = 5; - */ - com.google.protobuf.ByteString getBlockHash(); - - /** - * bytes txHash = 6; - */ - com.google.protobuf.ByteString getTxHash(); - - /** - * bytes from = 7; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes to = 8; - */ - com.google.protobuf.ByteString getTo(); - - /** - * bytes contractAddress = 9; - */ - com.google.protobuf.ByteString getContractAddress(); - - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - java.util.List - getLogsList(); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - org.aion.api.server.pb.Message.t_LgEle getLogs(int index); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - int getLogsCount(); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - java.util.List - getLogsOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} - */ - public static final class rsp_getTransactionReceipt extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) - rsp_getTransactionReceiptOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getTransactionReceipt.newBuilder() to construct. - private rsp_getTransactionReceipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getTransactionReceipt() { - txIndex_ = 0; - blockNumber_ = 0L; - nrgConsumed_ = 0L; - cumulativeNrgUsed_ = 0L; - blockHash_ = com.google.protobuf.ByteString.EMPTY; - txHash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - logs_ = java.util.Collections.emptyList(); - } + block_ = getDefaultInstance().getBlock(); + onChanged(); + return this; + } + /** string block = 4; */ + public Builder setBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + block_ = value; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getTransactionReceipt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - txIndex_ = input.readUInt32(); - break; - } - case 16: { - - blockNumber_ = input.readUInt64(); - break; - } - case 24: { - - nrgConsumed_ = input.readUInt64(); - break; - } - case 32: { - - cumulativeNrgUsed_ = input.readUInt64(); - break; - } - case 42: { - - blockHash_ = input.readBytes(); - break; - } - case 50: { - - txHash_ = input.readBytes(); - break; - } - case 58: { - - from_ = input.readBytes(); - break; - } - case 66: { - - to_ = input.readBytes(); - break; - } - case 74: { - - contractAddress_ = input.readBytes(); - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - logs_.add( - input.readMessage(org.aion.api.server.pb.Message.t_LgEle.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - } + private com.google.protobuf.LazyStringList tx_ = + com.google.protobuf.LazyStringArrayList.EMPTY; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, org.aion.api.server.pb.Message.rsp_getTransactionReceipt.Builder.class); - } + private void ensureTxIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = new com.google.protobuf.LazyStringArrayList(tx_); + bitField0_ |= 0x00000010; + } + } + /** repeated string tx = 5; */ + public com.google.protobuf.ProtocolStringList getTxList() { + return tx_.getUnmodifiableView(); + } + /** repeated string tx = 5; */ + public int getTxCount() { + return tx_.size(); + } + /** repeated string tx = 5; */ + public java.lang.String getTx(int index) { + return tx_.get(index); + } + /** repeated string tx = 5; */ + public com.google.protobuf.ByteString getTxBytes(int index) { + return tx_.getByteString(index); + } + /** repeated string tx = 5; */ + public Builder setTx(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.set(index, value); + onChanged(); + return this; + } + /** repeated string tx = 5; */ + public Builder addTx(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + return this; + } + /** repeated string tx = 5; */ + public Builder addAllTx(java.lang.Iterable values) { + ensureTxIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tx_); + onChanged(); + return this; + } + /** repeated string tx = 5; */ + public Builder clearTx() { + tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** repeated string tx = 5; */ + public Builder addTxBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + return this; + } - private int bitField0_; - public static final int TXINDEX_FIELD_NUMBER = 1; - private int txIndex_; - /** - * uint32 txIndex = 1; - */ - public int getTxIndex() { - return txIndex_; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blockNumber_; - /** - * uint64 blockNumber = 2; - */ - public long getBlockNumber() { - return blockNumber_; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockSql) + } - public static final int CUMULATIVENRGUSED_FIELD_NUMBER = 4; - private long cumulativeNrgUsed_; - /** - * uint64 cumulativeNrgUsed = 4; - */ - public long getCumulativeNrgUsed() { - return cumulativeNrgUsed_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockSql) + private static final org.aion.api.server.pb.Message.t_BlockSql DEFAULT_INSTANCE; - public static final int BLOCKHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString blockHash_; - /** - * bytes blockHash = 5; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockSql(); + } - public static final int TXHASH_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString txHash_; - /** - * bytes txHash = 6; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public static org.aion.api.server.pb.Message.t_BlockSql getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int FROM_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 7; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_BlockSql parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_BlockSql(input, extensionRegistry); + } + }; - public static final int TO_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString to_; - /** - * bytes to = 8; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int CONTRACTADDRESS_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString contractAddress_; - /** - * bytes contractAddress = 9; - */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int LOGS_FIELD_NUMBER = 10; - private java.util.List logs_; - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - return logs_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); + public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public interface rsp_errormsgOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_errormsg) + com.google.protobuf.MessageOrBuilder { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txIndex_ != 0) { - output.writeUInt32(1, txIndex_); - } - if (blockNumber_ != 0L) { - output.writeUInt64(2, blockNumber_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (cumulativeNrgUsed_ != 0L) { - output.writeUInt64(4, cumulativeNrgUsed_); - } - if (!blockHash_.isEmpty()) { - output.writeBytes(5, blockHash_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(6, txHash_); - } - if (!from_.isEmpty()) { - output.writeBytes(7, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(8, to_); - } - if (!contractAddress_.isEmpty()) { - output.writeBytes(9, contractAddress_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(10, logs_.get(i)); - } - unknownFields.writeTo(output); + /** string errormsg = 1; */ + java.lang.String getErrormsg(); + /** string errormsg = 1; */ + com.google.protobuf.ByteString getErrormsgBytes(); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} */ + public static final class rsp_errormsg extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_errormsg) + rsp_errormsgOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_errormsg.newBuilder() to construct. + private rsp_errormsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, txIndex_); - } - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blockNumber_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, nrgConsumed_); - } - if (cumulativeNrgUsed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, cumulativeNrgUsed_); - } - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, blockHash_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, txHash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, to_); - } - if (!contractAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, contractAddress_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, logs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private rsp_errormsg() { + errormsg_ = ""; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getTransactionReceipt other = (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) obj; - - boolean result = true; - result = result && (getTxIndex() - == other.getTxIndex()); - result = result && (getBlockNumber() - == other.getBlockNumber()); - result = result && (getNrgConsumed() - == other.getNrgConsumed()); - result = result && (getCumulativeNrgUsed() - == other.getCumulativeNrgUsed()); - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && getTxHash() - .equals(other.getTxHash()); - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTo() - .equals(other.getTo()); - result = result && getContractAddress() - .equals(other.getContractAddress()); - result = result && getLogsList() - .equals(other.getLogsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlockNumber()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgConsumed()); - hash = (37 * hash) + CUMULATIVENRGUSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCumulativeNrgUsed()); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getContractAddress().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private rsp_errormsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + errormsg_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getTransactionReceipt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_errormsg.class, + org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) - org.aion.api.server.pb.Message.rsp_getTransactionReceiptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, org.aion.api.server.pb.Message.rsp_getTransactionReceipt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getTransactionReceipt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - txIndex_ = 0; - - blockNumber_ = 0L; - - nrgConsumed_ = 0L; - - cumulativeNrgUsed_ = 0L; - - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - logsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getTransactionReceipt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt build() { - org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt buildPartial() { - org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.txIndex_ = txIndex_; - result.blockNumber_ = blockNumber_; - result.nrgConsumed_ = nrgConsumed_; - result.cumulativeNrgUsed_ = cumulativeNrgUsed_; - result.blockHash_ = blockHash_; - result.txHash_ = txHash_; - result.from_ = from_; - result.to_ = to_; - result.contractAddress_ = contractAddress_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransactionReceipt)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionReceipt other) { - if (other == org.aion.api.server.pb.Message.rsp_getTransactionReceipt.getDefaultInstance()) return this; - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getCumulativeNrgUsed() != 0L) { - setCumulativeNrgUsed(other.getCumulativeNrgUsed()); - } - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { - setContractAddress(other.getContractAddress()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000200); + public static final int ERRORMSG_FIELD_NUMBER = 1; + private volatile java.lang.Object errormsg_; + /** string errormsg = 1; */ + public java.lang.String getErrormsg() { + java.lang.Object ref = errormsg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000200); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errormsg_ = s; + return s; + } + } + /** string errormsg = 1; */ + public com.google.protobuf.ByteString getErrormsgBytes() { + java.lang.Object ref = errormsg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errormsg_ = b; + return b; } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getTransactionReceipt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int txIndex_ ; - /** - * uint32 txIndex = 1; - */ - public int getTxIndex() { - return txIndex_; - } - /** - * uint32 txIndex = 1; - */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** - * uint32 txIndex = 1; - */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - private long blockNumber_ ; - /** - * uint64 blockNumber = 2; - */ - public long getBlockNumber() { - return blockNumber_; - } - /** - * uint64 blockNumber = 2; - */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** - * uint64 blockNumber = 2; - */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_ ; - /** - * uint64 nrgConsumed = 3; - */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgConsumed = 3; - */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long cumulativeNrgUsed_ ; - /** - * uint64 cumulativeNrgUsed = 4; - */ - public long getCumulativeNrgUsed() { - return cumulativeNrgUsed_; - } - /** - * uint64 cumulativeNrgUsed = 4; - */ - public Builder setCumulativeNrgUsed(long value) { - - cumulativeNrgUsed_ = value; - onChanged(); - return this; - } - /** - * uint64 cumulativeNrgUsed = 4; - */ - public Builder clearCumulativeNrgUsed() { - - cumulativeNrgUsed_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockHash = 5; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** - * bytes blockHash = 5; - */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * bytes blockHash = 5; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes txHash = 6; - */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** - * bytes txHash = 6; - */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** - * bytes txHash = 6; - */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 7; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 7; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 7; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to = 8; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** - * bytes to = 8; - */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * bytes to = 8; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes contractAddress = 9; - */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } - /** - * bytes contractAddress = 9; - */ - public Builder setContractAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddress_ = value; - onChanged(); - return this; - } - /** - * bytes contractAddress = 9; - */ - public Builder clearContractAddress() { - - contractAddress_ = getDefaultInstance().getContractAddress(); - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> logsBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder setLogs( - int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder setLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder addLogs( - int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder addLogs( - org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder addLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_LgEle logs = 10; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder>( - logs_, - ((bitField0_ & 0x00000200) == 0x00000200), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) - } + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) - private static final org.aion.api.server.pb.Message.rsp_getTransactionReceipt DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(); - } + private byte memoizedIsInitialized = -1; - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getTransactionReceipt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getTransactionReceipt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getErrormsgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errormsg_); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - } - - public interface req_getUncleByBlockHashAndIndexOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes blockHash = 1; - */ - com.google.protobuf.ByteString getBlockHash(); - - /** - * uint32 index = 2; - */ - int getIndex(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} - */ - public static final class req_getUncleByBlockHashAndIndex extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - req_getUncleByBlockHashAndIndexOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getUncleByBlockHashAndIndex.newBuilder() to construct. - private req_getUncleByBlockHashAndIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getUncleByBlockHashAndIndex() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - index_ = 0; - } + size = 0; + if (!getErrormsgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errormsg_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getUncleByBlockHashAndIndex( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - blockHash_ = input.readBytes(); - break; - } - case 16: { - - index_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_errormsg)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_errormsg other = + (org.aion.api.server.pb.Message.rsp_errormsg) obj; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.Builder.class); - } + boolean result = true; + result = result && getErrormsg().equals(other.getErrormsg()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ERRORMSG_FIELD_NUMBER; + hash = (53 * hash) + getErrormsg().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int INDEX_FIELD_NUMBER = 2; - private int index_; - /** - * uint32 index = 2; - */ - public int getIndex() { - return index_; - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - if (index_ != 0) { - output.writeUInt32(2, index_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, blockHash_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, index_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other = (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) obj; - - boolean result = true; - result = result && getBlockHash() - .equals(other.getBlockHash()); - result = result && (getIndex() - == other.getIndex()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - index_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - } - - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex build() { - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex buildPartial() { - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(this); - result.blockHash_ = blockHash_; - result.index_ = index_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) { - return mergeFrom((org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other) { - if (other == org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes blockHash = 1; - */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** - * bytes blockHash = 1; - */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** - * bytes blockHash = 1; - */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - private int index_ ; - /** - * uint32 index = 2; - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 2; - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 2; - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - private static final org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(); - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getUncleByBlockHashAndIndex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getUncleByBlockHashAndIndex(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_errormsg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - } - - public interface rsp_getCompilersOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCompilers) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string compiler = 1; - */ - java.util.List - getCompilerList(); - /** - * repeated string compiler = 1; - */ - int getCompilerCount(); - /** - * repeated string compiler = 1; - */ - java.lang.String getCompiler(int index); - /** - * repeated string compiler = 1; - */ - com.google.protobuf.ByteString - getCompilerBytes(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} - */ - public static final class rsp_getCompilers extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCompilers) - rsp_getCompilersOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getCompilers.newBuilder() to construct. - private rsp_getCompilers(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getCompilers() { - compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getCompilers( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - compiler_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = compiler_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_errormsg) + org.aion.api.server.pb.Message.rsp_errormsgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCompilers.class, org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_errormsg.class, + org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); + } - public static final int COMPILER_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList compiler_; - /** - * repeated string compiler = 1; - */ - public com.google.protobuf.ProtocolStringList - getCompilerList() { - return compiler_; - } - /** - * repeated string compiler = 1; - */ - public int getCompilerCount() { - return compiler_.size(); - } - /** - * repeated string compiler = 1; - */ - public java.lang.String getCompiler(int index) { - return compiler_.get(index); - } - /** - * repeated string compiler = 1; - */ - public com.google.protobuf.ByteString - getCompilerBytes(int index) { - return compiler_.getByteString(index); - } + // Construct using org.aion.api.server.pb.Message.rsp_errormsg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < compiler_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, compiler_.getRaw(i)); - } - unknownFields.writeTo(output); - } + public Builder clear() { + super.clear(); + errormsg_ = ""; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < compiler_.size(); i++) { - dataSize += computeStringSizeNoTag(compiler_.getRaw(i)); - } - size += dataSize; - size += 1 * getCompilerList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCompilers)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getCompilers other = (org.aion.api.server.pb.Message.rsp_getCompilers) obj; - - boolean result = true; - result = result && getCompilerList() - .equals(other.getCompilerList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCompilerCount() > 0) { - hash = (37 * hash) + COMPILER_FIELD_NUMBER; - hash = (53 * hash) + getCompilerList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance(); + } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public org.aion.api.server.pb.Message.rsp_errormsg build() { + org.aion.api.server.pb.Message.rsp_errormsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCompilers prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public org.aion.api.server.pb.Message.rsp_errormsg buildPartial() { + org.aion.api.server.pb.Message.rsp_errormsg result = + new org.aion.api.server.pb.Message.rsp_errormsg(this); + result.errormsg_ = errormsg_; + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCompilers) - org.aion.api.server.pb.Message.rsp_getCompilersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCompilers.class, org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getCompilers.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getCompilers build() { - org.aion.api.server.pb.Message.rsp_getCompilers result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getCompilers buildPartial() { - org.aion.api.server.pb.Message.rsp_getCompilers result = new org.aion.api.server.pb.Message.rsp_getCompilers(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = compiler_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.compiler_ = compiler_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getCompilers) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getCompilers)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCompilers other) { - if (other == org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance()) return this; - if (!other.compiler_.isEmpty()) { - if (compiler_.isEmpty()) { - compiler_ = other.compiler_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCompilerIsMutable(); - compiler_.addAll(other.compiler_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getCompilers parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getCompilers) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCompilerIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = new com.google.protobuf.LazyStringArrayList(compiler_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string compiler = 1; - */ - public com.google.protobuf.ProtocolStringList - getCompilerList() { - return compiler_.getUnmodifiableView(); - } - /** - * repeated string compiler = 1; - */ - public int getCompilerCount() { - return compiler_.size(); - } - /** - * repeated string compiler = 1; - */ - public java.lang.String getCompiler(int index) { - return compiler_.get(index); - } - /** - * repeated string compiler = 1; - */ - public com.google.protobuf.ByteString - getCompilerBytes(int index) { - return compiler_.getByteString(index); - } - /** - * repeated string compiler = 1; - */ - public Builder setCompiler( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilerIsMutable(); - compiler_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string compiler = 1; - */ - public Builder addCompiler( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilerIsMutable(); - compiler_.add(value); - onChanged(); - return this; - } - /** - * repeated string compiler = 1; - */ - public Builder addAllCompiler( - java.lang.Iterable values) { - ensureCompilerIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, compiler_); - onChanged(); - return this; - } - /** - * repeated string compiler = 1; - */ - public Builder clearCompiler() { - compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string compiler = 1; - */ - public Builder addCompilerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCompilerIsMutable(); - compiler_.add(value); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCompilers) - } + public Builder clone() { + return (Builder) super.clone(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCompilers) - private static final org.aion.api.server.pb.Message.rsp_getCompilers DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCompilers(); - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - public static org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getCompilers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getCompilers(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - } - - public interface req_compileSolidityOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compileSolidity) - com.google.protobuf.MessageOrBuilder { - - /** - * string source = 1; - */ - java.lang.String getSource(); - /** - * string source = 1; - */ - com.google.protobuf.ByteString - getSourceBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} - */ - public static final class req_compileSolidity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compileSolidity) - req_compileSolidityOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_compileSolidity.newBuilder() to construct. - private req_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_compileSolidity() { - source_ = ""; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_errormsg) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_errormsg) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_compileSolidity( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_errormsg other) { + if (other == org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance()) + return this; + if (!other.getErrormsg().isEmpty()) { + errormsg_ = other.errormsg_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compileSolidity.class, org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_errormsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_errormsg) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object errormsg_ = ""; + /** string errormsg = 1; */ + public java.lang.String getErrormsg() { + java.lang.Object ref = errormsg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errormsg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string errormsg = 1; */ + public com.google.protobuf.ByteString getErrormsgBytes() { + java.lang.Object ref = errormsg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errormsg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string errormsg = 1; */ + public Builder setErrormsg(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errormsg_ = value; + onChanged(); + return this; + } + /** string errormsg = 1; */ + public Builder clearErrormsg() { + + errormsg_ = getDefaultInstance().getErrormsg(); + onChanged(); + return this; + } + /** string errormsg = 1; */ + public Builder setErrormsgBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errormsg_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_errormsg) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_errormsg) + private static final org.aion.api.server.pb.Message.rsp_errormsg DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_errormsg(); + } + + public static org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_errormsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_errormsg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_protocolVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_protocolVersion) + com.google.protobuf.MessageOrBuilder { + + /** string kernel = 1; */ + java.lang.String getKernel(); + /** string kernel = 1; */ + com.google.protobuf.ByteString getKernelBytes(); + + /** string net = 2; */ + java.lang.String getNet(); + /** string net = 2; */ + com.google.protobuf.ByteString getNetBytes(); + + /** string api = 3; */ + java.lang.String getApi(); + /** string api = 3; */ + com.google.protobuf.ByteString getApiBytes(); + + /** string vm = 4; */ + java.lang.String getVm(); + /** string vm = 4; */ + com.google.protobuf.ByteString getVmBytes(); + + /** string db = 5; */ + java.lang.String getDb(); + /** string db = 5; */ + com.google.protobuf.ByteString getDbBytes(); + + /** string miner = 6; */ + java.lang.String getMiner(); + /** string miner = 6; */ + com.google.protobuf.ByteString getMinerBytes(); + + /** string txpool = 7; */ + java.lang.String getTxpool(); + /** string txpool = 7; */ + com.google.protobuf.ByteString getTxpoolBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} */ + public static final class rsp_protocolVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_protocolVersion) + rsp_protocolVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_protocolVersion.newBuilder() to construct. + private rsp_protocolVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_protocolVersion() { + kernel_ = ""; + net_ = ""; + api_ = ""; + vm_ = ""; + db_ = ""; + miner_ = ""; + txpool_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_protocolVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + kernel_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + net_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + api_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + vm_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + db_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + miner_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + txpool_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_protocolVersion.class, + org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); + } + + public static final int KERNEL_FIELD_NUMBER = 1; + private volatile java.lang.Object kernel_; + /** string kernel = 1; */ + public java.lang.String getKernel() { + java.lang.Object ref = kernel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernel_ = s; + return s; + } + } + /** string kernel = 1; */ + public com.google.protobuf.ByteString getKernelBytes() { + java.lang.Object ref = kernel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kernel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NET_FIELD_NUMBER = 2; + private volatile java.lang.Object net_; + /** string net = 2; */ + public java.lang.String getNet() { + java.lang.Object ref = net_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + net_ = s; + return s; + } + } + /** string net = 2; */ + public com.google.protobuf.ByteString getNetBytes() { + java.lang.Object ref = net_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + net_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int API_FIELD_NUMBER = 3; + private volatile java.lang.Object api_; + /** string api = 3; */ + public java.lang.String getApi() { + java.lang.Object ref = api_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + api_ = s; + return s; + } + } + /** string api = 3; */ + public com.google.protobuf.ByteString getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VM_FIELD_NUMBER = 4; + private volatile java.lang.Object vm_; + /** string vm = 4; */ + public java.lang.String getVm() { + java.lang.Object ref = vm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vm_ = s; + return s; + } + } + /** string vm = 4; */ + public com.google.protobuf.ByteString getVmBytes() { + java.lang.Object ref = vm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DB_FIELD_NUMBER = 5; + private volatile java.lang.Object db_; + /** string db = 5; */ + public java.lang.String getDb() { + java.lang.Object ref = db_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + db_ = s; + return s; + } + } + /** string db = 5; */ + public com.google.protobuf.ByteString getDbBytes() { + java.lang.Object ref = db_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + db_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MINER_FIELD_NUMBER = 6; + private volatile java.lang.Object miner_; + /** string miner = 6; */ + public java.lang.String getMiner() { + java.lang.Object ref = miner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + miner_ = s; + return s; + } + } + /** string miner = 6; */ + public com.google.protobuf.ByteString getMinerBytes() { + java.lang.Object ref = miner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + miner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TXPOOL_FIELD_NUMBER = 7; + private volatile java.lang.Object txpool_; + /** string txpool = 7; */ + public java.lang.String getTxpool() { + java.lang.Object ref = txpool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txpool_ = s; + return s; + } + } + /** string txpool = 7; */ + public com.google.protobuf.ByteString getTxpoolBytes() { + java.lang.Object ref = txpool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txpool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKernelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kernel_); + } + if (!getNetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, net_); + } + if (!getApiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, api_); + } + if (!getVmBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vm_); + } + if (!getDbBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, db_); + } + if (!getMinerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, miner_); + } + if (!getTxpoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, txpool_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKernelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kernel_); + } + if (!getNetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, net_); + } + if (!getApiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, api_); + } + if (!getVmBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vm_); + } + if (!getDbBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, db_); + } + if (!getMinerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, miner_); + } + if (!getTxpoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, txpool_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_protocolVersion)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_protocolVersion other = + (org.aion.api.server.pb.Message.rsp_protocolVersion) obj; + + boolean result = true; + result = result && getKernel().equals(other.getKernel()); + result = result && getNet().equals(other.getNet()); + result = result && getApi().equals(other.getApi()); + result = result && getVm().equals(other.getVm()); + result = result && getDb().equals(other.getDb()); + result = result && getMiner().equals(other.getMiner()); + result = result && getTxpool().equals(other.getTxpool()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KERNEL_FIELD_NUMBER; + hash = (53 * hash) + getKernel().hashCode(); + hash = (37 * hash) + NET_FIELD_NUMBER; + hash = (53 * hash) + getNet().hashCode(); + hash = (37 * hash) + API_FIELD_NUMBER; + hash = (53 * hash) + getApi().hashCode(); + hash = (37 * hash) + VM_FIELD_NUMBER; + hash = (53 * hash) + getVm().hashCode(); + hash = (37 * hash) + DB_FIELD_NUMBER; + hash = (53 * hash) + getDb().hashCode(); + hash = (37 * hash) + MINER_FIELD_NUMBER; + hash = (53 * hash) + getMiner().hashCode(); + hash = (37 * hash) + TXPOOL_FIELD_NUMBER; + hash = (53 * hash) + getTxpool().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_protocolVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_protocolVersion) + org.aion.api.server.pb.Message.rsp_protocolVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_protocolVersion.class, + org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_protocolVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + kernel_ = ""; + + net_ = ""; + + api_ = ""; + + vm_ = ""; + + db_ = ""; + + miner_ = ""; + + txpool_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_protocolVersion build() { + org.aion.api.server.pb.Message.rsp_protocolVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_protocolVersion buildPartial() { + org.aion.api.server.pb.Message.rsp_protocolVersion result = + new org.aion.api.server.pb.Message.rsp_protocolVersion(this); + result.kernel_ = kernel_; + result.net_ = net_; + result.api_ = api_; + result.vm_ = vm_; + result.db_ = db_; + result.miner_ = miner_; + result.txpool_ = txpool_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_protocolVersion) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_protocolVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_protocolVersion other) { + if (other + == org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance()) + return this; + if (!other.getKernel().isEmpty()) { + kernel_ = other.kernel_; + onChanged(); + } + if (!other.getNet().isEmpty()) { + net_ = other.net_; + onChanged(); + } + if (!other.getApi().isEmpty()) { + api_ = other.api_; + onChanged(); + } + if (!other.getVm().isEmpty()) { + vm_ = other.vm_; + onChanged(); + } + if (!other.getDb().isEmpty()) { + db_ = other.db_; + onChanged(); + } + if (!other.getMiner().isEmpty()) { + miner_ = other.miner_; + onChanged(); + } + if (!other.getTxpool().isEmpty()) { + txpool_ = other.txpool_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_protocolVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_protocolVersion) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object kernel_ = ""; + /** string kernel = 1; */ + public java.lang.String getKernel() { + java.lang.Object ref = kernel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string kernel = 1; */ + public com.google.protobuf.ByteString getKernelBytes() { + java.lang.Object ref = kernel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kernel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string kernel = 1; */ + public Builder setKernel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kernel_ = value; + onChanged(); + return this; + } + /** string kernel = 1; */ + public Builder clearKernel() { + + kernel_ = getDefaultInstance().getKernel(); + onChanged(); + return this; + } + /** string kernel = 1; */ + public Builder setKernelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kernel_ = value; + onChanged(); + return this; + } + + private java.lang.Object net_ = ""; + /** string net = 2; */ + public java.lang.String getNet() { + java.lang.Object ref = net_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + net_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string net = 2; */ + public com.google.protobuf.ByteString getNetBytes() { + java.lang.Object ref = net_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + net_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string net = 2; */ + public Builder setNet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + net_ = value; + onChanged(); + return this; + } + /** string net = 2; */ + public Builder clearNet() { + + net_ = getDefaultInstance().getNet(); + onChanged(); + return this; + } + /** string net = 2; */ + public Builder setNetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + net_ = value; + onChanged(); + return this; + } + + private java.lang.Object api_ = ""; + /** string api = 3; */ + public java.lang.String getApi() { + java.lang.Object ref = api_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + api_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string api = 3; */ + public com.google.protobuf.ByteString getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string api = 3; */ + public Builder setApi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + api_ = value; + onChanged(); + return this; + } + /** string api = 3; */ + public Builder clearApi() { + + api_ = getDefaultInstance().getApi(); + onChanged(); + return this; + } + /** string api = 3; */ + public Builder setApiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + api_ = value; + onChanged(); + return this; + } + + private java.lang.Object vm_ = ""; + /** string vm = 4; */ + public java.lang.String getVm() { + java.lang.Object ref = vm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string vm = 4; */ + public com.google.protobuf.ByteString getVmBytes() { + java.lang.Object ref = vm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string vm = 4; */ + public Builder setVm(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vm_ = value; + onChanged(); + return this; + } + /** string vm = 4; */ + public Builder clearVm() { + + vm_ = getDefaultInstance().getVm(); + onChanged(); + return this; + } + /** string vm = 4; */ + public Builder setVmBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vm_ = value; + onChanged(); + return this; + } + + private java.lang.Object db_ = ""; + /** string db = 5; */ + public java.lang.String getDb() { + java.lang.Object ref = db_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + db_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string db = 5; */ + public com.google.protobuf.ByteString getDbBytes() { + java.lang.Object ref = db_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + db_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string db = 5; */ + public Builder setDb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + db_ = value; + onChanged(); + return this; + } + /** string db = 5; */ + public Builder clearDb() { + + db_ = getDefaultInstance().getDb(); + onChanged(); + return this; + } + /** string db = 5; */ + public Builder setDbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + db_ = value; + onChanged(); + return this; + } + + private java.lang.Object miner_ = ""; + /** string miner = 6; */ + public java.lang.String getMiner() { + java.lang.Object ref = miner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + miner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string miner = 6; */ + public com.google.protobuf.ByteString getMinerBytes() { + java.lang.Object ref = miner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + miner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string miner = 6; */ + public Builder setMiner(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + miner_ = value; + onChanged(); + return this; + } + /** string miner = 6; */ + public Builder clearMiner() { + + miner_ = getDefaultInstance().getMiner(); + onChanged(); + return this; + } + /** string miner = 6; */ + public Builder setMinerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + miner_ = value; + onChanged(); + return this; + } + + private java.lang.Object txpool_ = ""; + /** string txpool = 7; */ + public java.lang.String getTxpool() { + java.lang.Object ref = txpool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txpool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string txpool = 7; */ + public com.google.protobuf.ByteString getTxpoolBytes() { + java.lang.Object ref = txpool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + txpool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string txpool = 7; */ + public Builder setTxpool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txpool_ = value; + onChanged(); + return this; + } + /** string txpool = 7; */ + public Builder clearTxpool() { + + txpool_ = getDefaultInstance().getTxpool(); + onChanged(); + return this; + } + /** string txpool = 7; */ + public Builder setTxpoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txpool_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_protocolVersion) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_protocolVersion) + private static final org.aion.api.server.pb.Message.rsp_protocolVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_protocolVersion(); + } + + public static org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_protocolVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_protocolVersion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_minerAddressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_minerAddress) + com.google.protobuf.MessageOrBuilder { + + /** bytes minerAddr = 1; */ + com.google.protobuf.ByteString getMinerAddr(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} */ + public static final class rsp_minerAddress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_minerAddress) + rsp_minerAddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_minerAddress.newBuilder() to construct. + private rsp_minerAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_minerAddress() { + minerAddr_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_minerAddress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + minerAddr_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_minerAddress.class, + org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); + } + + public static final int MINERADDR_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString minerAddr_; + /** bytes minerAddr = 1; */ + public com.google.protobuf.ByteString getMinerAddr() { + return minerAddr_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!minerAddr_.isEmpty()) { + output.writeBytes(1, minerAddr_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!minerAddr_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, minerAddr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_minerAddress)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_minerAddress other = + (org.aion.api.server.pb.Message.rsp_minerAddress) obj; + + boolean result = true; + result = result && getMinerAddr().equals(other.getMinerAddr()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MINERADDR_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_minerAddress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_minerAddress) + org.aion.api.server.pb.Message.rsp_minerAddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_minerAddress.class, + org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_minerAddress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + minerAddr_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_minerAddress build() { + org.aion.api.server.pb.Message.rsp_minerAddress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_minerAddress buildPartial() { + org.aion.api.server.pb.Message.rsp_minerAddress result = + new org.aion.api.server.pb.Message.rsp_minerAddress(this); + result.minerAddr_ = minerAddr_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_minerAddress) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_minerAddress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_minerAddress other) { + if (other == org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance()) + return this; + if (other.getMinerAddr() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddr(other.getMinerAddr()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_minerAddress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_minerAddress) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString minerAddr_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes minerAddr = 1; */ + public com.google.protobuf.ByteString getMinerAddr() { + return minerAddr_; + } + /** bytes minerAddr = 1; */ + public Builder setMinerAddr(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddr_ = value; + onChanged(); + return this; + } + /** bytes minerAddr = 1; */ + public Builder clearMinerAddr() { + + minerAddr_ = getDefaultInstance().getMinerAddr(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_minerAddress) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_minerAddress) + private static final org.aion.api.server.pb.Message.rsp_minerAddress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_minerAddress(); + } + + public static org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_minerAddress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_minerAddress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getBlockByNumberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByNumber) + com.google.protobuf.MessageOrBuilder { + + /** uint64 blockNumber = 1; */ + long getBlockNumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} */ + public static final class req_getBlockByNumber extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByNumber) + req_getBlockByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockByNumber.newBuilder() to construct. + private req_getBlockByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBlockByNumber() { + blockNumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBlockByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByNumber.class, + org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockByNumber other = + (org.aion.api.server.pb.Message.req_getBlockByNumber) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByNumber) + org.aion.api.server.pb.Message.req_getBlockByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByNumber.class, + org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockByNumber build() { + org.aion.api.server.pb.Message.req_getBlockByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockByNumber buildPartial() { + org.aion.api.server.pb.Message.req_getBlockByNumber result = + new org.aion.api.server.pb.Message.req_getBlockByNumber(this); + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockByNumber) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByNumber) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByNumber other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance()) + return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockByNumber) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByNumber) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockByNumber DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByNumber(); + } + + public static org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlock) + com.google.protobuf.MessageOrBuilder { + + /** uint64 blockNumber = 1; */ + long getBlockNumber(); + + /** uint64 timestamp = 2; */ + long getTimestamp(); + + /** uint64 nrgConsumed = 3; */ + long getNrgConsumed(); + + /** uint64 nrgLimit = 4; */ + long getNrgLimit(); + + /** bytes parentHash = 5; */ + com.google.protobuf.ByteString getParentHash(); + + /** bytes minerAddress = 6; */ + com.google.protobuf.ByteString getMinerAddress(); + + /** bytes stateRoot = 7; */ + com.google.protobuf.ByteString getStateRoot(); + + /** bytes txTrieRoot = 8; */ + com.google.protobuf.ByteString getTxTrieRoot(); + + /** bytes receiptTrieRoot = 9; */ + com.google.protobuf.ByteString getReceiptTrieRoot(); + + /** bytes logsBloom = 10; */ + com.google.protobuf.ByteString getLogsBloom(); + + /** bytes difficulty = 11; */ + com.google.protobuf.ByteString getDifficulty(); + + /** bytes totalDifficulty = 12; */ + com.google.protobuf.ByteString getTotalDifficulty(); + + /** bytes extraData = 13; */ + com.google.protobuf.ByteString getExtraData(); + + /** bytes nonce = 14; */ + com.google.protobuf.ByteString getNonce(); + + /** bytes solution = 15; */ + com.google.protobuf.ByteString getSolution(); + + /** bytes hash = 16; */ + com.google.protobuf.ByteString getHash(); + + /** uint32 size = 17; */ + int getSize(); + + /** repeated bytes txHash = 18; */ + java.util.List getTxHashList(); + /** repeated bytes txHash = 18; */ + int getTxHashCount(); + /** repeated bytes txHash = 18; */ + com.google.protobuf.ByteString getTxHash(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} */ + public static final class rsp_getBlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlock) + rsp_getBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlock.newBuilder() to construct. + private rsp_getBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getBlock() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + txHash_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getBlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + case 16: + { + timestamp_ = input.readUInt64(); + break; + } + case 24: + { + nrgConsumed_ = input.readUInt64(); + break; + } + case 32: + { + nrgLimit_ = input.readUInt64(); + break; + } + case 42: + { + parentHash_ = input.readBytes(); + break; + } + case 50: + { + minerAddress_ = input.readBytes(); + break; + } + case 58: + { + stateRoot_ = input.readBytes(); + break; + } + case 66: + { + txTrieRoot_ = input.readBytes(); + break; + } + case 74: + { + receiptTrieRoot_ = input.readBytes(); + break; + } + case 82: + { + logsBloom_ = input.readBytes(); + break; + } + case 90: + { + difficulty_ = input.readBytes(); + break; + } + case 98: + { + totalDifficulty_ = input.readBytes(); + break; + } + case 106: + { + extraData_ = input.readBytes(); + break; + } + case 114: + { + nonce_ = input.readBytes(); + break; + } + case 122: + { + solution_ = input.readBytes(); + break; + } + case 130: + { + hash_ = input.readBytes(); + break; + } + case 136: + { + size_ = input.readUInt32(); + break; + } + case 146: + { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00020000; + } + txHash_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlock.class, + org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); + } + + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } + + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } + + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + + public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString totalDifficulty_; + /** bytes totalDifficulty = 12; */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } + + public static final int EXTRADATA_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString extraData_; + /** bytes extraData = 13; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + + public static final int NONCE_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 14; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + public static final int SOLUTION_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString solution_; + /** bytes solution = 15; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + + public static final int HASH_FIELD_NUMBER = 16; + private com.google.protobuf.ByteString hash_; + /** bytes hash = 16; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int SIZE_FIELD_NUMBER = 17; + private int size_; + /** uint32 size = 17; */ + public int getSize() { + return size_; + } + + public static final int TXHASH_FIELD_NUMBER = 18; + private java.util.List txHash_; + /** repeated bytes txHash = 18; */ + public java.util.List getTxHashList() { + return txHash_; + } + /** repeated bytes txHash = 18; */ + public int getTxHashCount() { + return txHash_.size(); + } + /** repeated bytes txHash = 18; */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + output.writeBytes(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(13, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(14, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(15, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(16, hash_); + } + if (size_ != 0) { + output.writeUInt32(17, size_); + } + for (int i = 0; i < txHash_.size(); i++) { + output.writeBytes(18, txHash_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(16, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(17, size_); + } + { + int dataSize = 0; + for (int i = 0; i < txHash_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + txHash_.get(i)); + } + size += dataSize; + size += 2 * getTxHashList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlock)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlock other = + (org.aion.api.server.pb.Message.rsp_getBlock) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && (getTimestamp() == other.getTimestamp()); + result = result && (getNrgConsumed() == other.getNrgConsumed()); + result = result && (getNrgLimit() == other.getNrgLimit()); + result = result && getParentHash().equals(other.getParentHash()); + result = result && getMinerAddress().equals(other.getMinerAddress()); + result = result && getStateRoot().equals(other.getStateRoot()); + result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom().equals(other.getLogsBloom()); + result = result && getDifficulty().equals(other.getDifficulty()); + result = result && getTotalDifficulty().equals(other.getTotalDifficulty()); + result = result && getExtraData().equals(other.getExtraData()); + result = result && getNonce().equals(other.getNonce()); + result = result && getSolution().equals(other.getSolution()); + result = result && getHash().equals(other.getHash()); + result = result && (getSize() == other.getSize()); + result = result && getTxHashList().equals(other.getTxHashList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getTotalDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + if (getTxHashCount() > 0) { + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHashList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlock) + org.aion.api.server.pb.Message.rsp_getBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlock.class, + org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + timestamp_ = 0L; + + nrgConsumed_ = 0L; + + nrgLimit_ = 0L; + + parentHash_ = com.google.protobuf.ByteString.EMPTY; + + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + + difficulty_ = com.google.protobuf.ByteString.EMPTY; + + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + + extraData_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + size_ = 0; + + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlock build() { + org.aion.api.server.pb.Message.rsp_getBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlock buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlock result = + new org.aion.api.server.pb.Message.rsp_getBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.totalDifficulty_ = totalDifficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + if (((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.txHash_ = txHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlock) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlock other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance()) + return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setTotalDifficulty(other.getTotalDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (!other.txHash_.isEmpty()) { + if (txHash_.isEmpty()) { + txHash_ = other.txHash_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureTxHashIsMutable(); + txHash_.addAll(other.txHash_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } + /** uint64 timestamp = 2; */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** uint64 timestamp = 2; */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** uint64 nrgConsumed = 3; */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsumed = 3; */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } + /** uint64 nrgLimit = 4; */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** uint64 nrgLimit = 4; */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString parentHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** bytes parentHash = 5; */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** bytes parentHash = 5; */ + public Builder clearParentHash() { + + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString minerAddress_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** bytes minerAddress = 6; */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** bytes minerAddress = 6; */ + public Builder clearMinerAddress() { + + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString stateRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** bytes stateRoot = 7; */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** bytes stateRoot = 7; */ + public Builder clearStateRoot() { + + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** bytes txTrieRoot = 8; */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes txTrieRoot = 8; */ + public Builder clearTxTrieRoot() { + + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString receiptTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** bytes receiptTrieRoot = 9; */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes receiptTrieRoot = 9; */ + public Builder clearReceiptTrieRoot() { + + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString logsBloom_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** bytes logsBloom = 10; */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** bytes logsBloom = 10; */ + public Builder clearLogsBloom() { + + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString difficulty_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** bytes difficulty = 11; */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** bytes difficulty = 11; */ + public Builder clearDifficulty() { + + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString totalDifficulty_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes totalDifficulty = 12; */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } + /** bytes totalDifficulty = 12; */ + public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDifficulty_ = value; + onChanged(); + return this; + } + /** bytes totalDifficulty = 12; */ + public Builder clearTotalDifficulty() { + + totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString extraData_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes extraData = 13; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** bytes extraData = 13; */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** bytes extraData = 13; */ + public Builder clearExtraData() { + + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 14; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 14; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 14; */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** bytes solution = 15; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** bytes solution = 15; */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** bytes solution = 15; */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes hash = 16; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** bytes hash = 16; */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** bytes hash = 16; */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private int size_; + /** uint32 size = 17; */ + public int getSize() { + return size_; + } + /** uint32 size = 17; */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** uint32 size = 17; */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.util.List txHash_ = + java.util.Collections.emptyList(); + + private void ensureTxHashIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = new java.util.ArrayList(txHash_); + bitField0_ |= 0x00020000; + } + } + /** repeated bytes txHash = 18; */ + public java.util.List getTxHashList() { + return java.util.Collections.unmodifiableList(txHash_); + } + /** repeated bytes txHash = 18; */ + public int getTxHashCount() { + return txHash_.size(); + } + /** repeated bytes txHash = 18; */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } + /** repeated bytes txHash = 18; */ + public Builder setTxHash(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes txHash = 18; */ + public Builder addTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.add(value); + onChanged(); + return this; + } + /** repeated bytes txHash = 18; */ + public Builder addAllTxHash( + java.lang.Iterable values) { + ensureTxHashIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHash_); + onChanged(); + return this; + } + /** repeated bytes txHash = 18; */ + public Builder clearTxHash() { + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlock) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlock) + private static final org.aion.api.server.pb.Message.rsp_getBlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlock(); + } + + public static org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getBlockHeaderByNumberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByNumber) + com.google.protobuf.MessageOrBuilder { + + /** uint64 blockNumber = 1; */ + long getBlockNumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} */ + public static final class req_getBlockHeaderByNumber + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) + req_getBlockHeaderByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockHeaderByNumber.newBuilder() to construct. + private req_getBlockHeaderByNumber( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBlockHeaderByNumber() { + blockNumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBlockHeaderByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + .Builder + .class); + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other = + (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) + org.aion.api.server.pb.Message.req_getBlockHeaderByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber build() { + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber buildPartial() { + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = + new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(this); + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + .getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockHeaderByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockHeaderByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getBlockHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockHeader) + com.google.protobuf.MessageOrBuilder { + + /** uint64 blockNumber = 1; */ + long getBlockNumber(); + + /** uint64 timestamp = 2; */ + long getTimestamp(); + + /** uint64 nrgConsumed = 3; */ + long getNrgConsumed(); + + /** uint64 nrgLimit = 4; */ + long getNrgLimit(); + + /** bytes parentHash = 5; */ + com.google.protobuf.ByteString getParentHash(); + + /** bytes minerAddress = 6; */ + com.google.protobuf.ByteString getMinerAddress(); + + /** bytes stateRoot = 7; */ + com.google.protobuf.ByteString getStateRoot(); + + /** bytes txTrieRoot = 8; */ + com.google.protobuf.ByteString getTxTrieRoot(); + + /** bytes receiptTrieRoot = 9; */ + com.google.protobuf.ByteString getReceiptTrieRoot(); + + /** bytes logsBloom = 10; */ + com.google.protobuf.ByteString getLogsBloom(); + + /** bytes difficulty = 11; */ + com.google.protobuf.ByteString getDifficulty(); + + /** bytes extraData = 12; */ + com.google.protobuf.ByteString getExtraData(); + + /** bytes nonce = 13; */ + com.google.protobuf.ByteString getNonce(); + + /** bytes solution = 14; */ + com.google.protobuf.ByteString getSolution(); + + /** bytes hash = 15; */ + com.google.protobuf.ByteString getHash(); + + /** uint32 size = 16; */ + int getSize(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} */ + public static final class rsp_getBlockHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockHeader) + rsp_getBlockHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockHeader.newBuilder() to construct. + private rsp_getBlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getBlockHeader() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getBlockHeader( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + case 16: + { + timestamp_ = input.readUInt64(); + break; + } + case 24: + { + nrgConsumed_ = input.readUInt64(); + break; + } + case 32: + { + nrgLimit_ = input.readUInt64(); + break; + } + case 42: + { + parentHash_ = input.readBytes(); + break; + } + case 50: + { + minerAddress_ = input.readBytes(); + break; + } + case 58: + { + stateRoot_ = input.readBytes(); + break; + } + case 66: + { + txTrieRoot_ = input.readBytes(); + break; + } + case 74: + { + receiptTrieRoot_ = input.readBytes(); + break; + } + case 82: + { + logsBloom_ = input.readBytes(); + break; + } + case 90: + { + difficulty_ = input.readBytes(); + break; + } + case 98: + { + extraData_ = input.readBytes(); + break; + } + case 106: + { + nonce_ = input.readBytes(); + break; + } + case 114: + { + solution_ = input.readBytes(); + break; + } + case 122: + { + hash_ = input.readBytes(); + break; + } + case 128: + { + size_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockHeader.class, + org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } + + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } + + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + + public static final int EXTRADATA_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString extraData_; + /** bytes extraData = 12; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + + public static final int NONCE_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 13; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + public static final int SOLUTION_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString solution_; + /** bytes solution = 14; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + + public static final int HASH_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString hash_; + /** bytes hash = 15; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + + public static final int SIZE_FIELD_NUMBER = 16; + private int size_; + /** uint32 size = 16; */ + public int getSize() { + return size_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(12, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(13, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(14, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(15, hash_); + } + if (size_ != 0) { + output.writeUInt32(16, size_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(16, size_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockHeader other = + (org.aion.api.server.pb.Message.rsp_getBlockHeader) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && (getTimestamp() == other.getTimestamp()); + result = result && (getNrgConsumed() == other.getNrgConsumed()); + result = result && (getNrgLimit() == other.getNrgLimit()); + result = result && getParentHash().equals(other.getParentHash()); + result = result && getMinerAddress().equals(other.getMinerAddress()); + result = result && getStateRoot().equals(other.getStateRoot()); + result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom().equals(other.getLogsBloom()); + result = result && getDifficulty().equals(other.getDifficulty()); + result = result && getExtraData().equals(other.getExtraData()); + result = result && getNonce().equals(other.getNonce()); + result = result && getSolution().equals(other.getSolution()); + result = result && getHash().equals(other.getHash()); + result = result && (getSize() == other.getSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getBlockHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockHeader) + org.aion.api.server.pb.Message.rsp_getBlockHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockHeader.class, + org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlockHeader.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + timestamp_ = 0L; + + nrgConsumed_ = 0L; + + nrgLimit_ = 0L; + + parentHash_ = com.google.protobuf.ByteString.EMPTY; + + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + + difficulty_ = com.google.protobuf.ByteString.EMPTY; + + extraData_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + size_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockHeader build() { + org.aion.api.server.pb.Message.rsp_getBlockHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockHeader buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockHeader result = + new org.aion.api.server.pb.Message.rsp_getBlockHeader(this); + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockHeader other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance()) + return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlockHeader) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long timestamp_; + /** uint64 timestamp = 2; */ + public long getTimestamp() { + return timestamp_; + } + /** uint64 timestamp = 2; */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** uint64 timestamp = 2; */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** uint64 nrgConsumed = 3; */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsumed = 3; */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgLimit_; + /** uint64 nrgLimit = 4; */ + public long getNrgLimit() { + return nrgLimit_; + } + /** uint64 nrgLimit = 4; */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** uint64 nrgLimit = 4; */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString parentHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes parentHash = 5; */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** bytes parentHash = 5; */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** bytes parentHash = 5; */ + public Builder clearParentHash() { + + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString minerAddress_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes minerAddress = 6; */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** bytes minerAddress = 6; */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** bytes minerAddress = 6; */ + public Builder clearMinerAddress() { + + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString stateRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes stateRoot = 7; */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** bytes stateRoot = 7; */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** bytes stateRoot = 7; */ + public Builder clearStateRoot() { + + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes txTrieRoot = 8; */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** bytes txTrieRoot = 8; */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes txTrieRoot = 8; */ + public Builder clearTxTrieRoot() { + + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString receiptTrieRoot_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes receiptTrieRoot = 9; */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** bytes receiptTrieRoot = 9; */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** bytes receiptTrieRoot = 9; */ + public Builder clearReceiptTrieRoot() { + + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString logsBloom_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes logsBloom = 10; */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** bytes logsBloom = 10; */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** bytes logsBloom = 10; */ + public Builder clearLogsBloom() { + + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString difficulty_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes difficulty = 11; */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** bytes difficulty = 11; */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** bytes difficulty = 11; */ + public Builder clearDifficulty() { + + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString extraData_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes extraData = 12; */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** bytes extraData = 12; */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** bytes extraData = 12; */ + public Builder clearExtraData() { + + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 13; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 13; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 13; */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** bytes solution = 14; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** bytes solution = 14; */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** bytes solution = 14; */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes hash = 15; */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** bytes hash = 15; */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** bytes hash = 15; */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private int size_; + /** uint32 size = 16; */ + public int getSize() { + return size_; + } + /** uint32 size = 16; */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** uint32 size = 16; */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockHeader) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockHeader) + private static final org.aion.api.server.pb.Message.rsp_getBlockHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockHeader(); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlockHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockHeader(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_sendTransactionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_sendTransaction) + com.google.protobuf.MessageOrBuilder { + + /** bytes from = 1; */ + com.google.protobuf.ByteString getFrom(); + + /** bytes to = 2; */ + com.google.protobuf.ByteString getTo(); + + /** bytes value = 3; */ + com.google.protobuf.ByteString getValue(); + + /** bytes data = 4; */ + com.google.protobuf.ByteString getData(); + + /** bytes nonce = 5; */ + com.google.protobuf.ByteString getNonce(); + + /** uint64 nrg = 6; */ + long getNrg(); + + /** uint64 nrgPrice = 7; */ + long getNrgPrice(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} */ + public static final class req_sendTransaction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_sendTransaction) + req_sendTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_sendTransaction.newBuilder() to construct. + private req_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_sendTransaction() { + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + nrg_ = 0L; + nrgPrice_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_sendTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + from_ = input.readBytes(); + break; + } + case 18: + { + to_ = input.readBytes(); + break; + } + case 26: + { + value_ = input.readBytes(); + break; + } + case 34: + { + data_ = input.readBytes(); + break; + } + case 42: + { + nonce_ = input.readBytes(); + break; + } + case 48: + { + nrg_ = input.readUInt64(); + break; + } + case 56: + { + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_sendTransaction.class, + org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); + } + + public static final int FROM_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString from_; + /** bytes from = 1; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + + public static final int TO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString to_; + /** bytes to = 2; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + + public static final int VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString value_; + /** bytes value = 3; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int DATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString data_; + /** bytes data = 4; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int NONCE_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 5; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + public static final int NRG_FIELD_NUMBER = 6; + private long nrg_; + /** uint64 nrg = 6; */ + public long getNrg() { + return nrg_; + } + + public static final int NRGPRICE_FIELD_NUMBER = 7; + private long nrgPrice_; + /** uint64 nrgPrice = 7; */ + public long getNrgPrice() { + return nrgPrice_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!from_.isEmpty()) { + output.writeBytes(1, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(2, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(3, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(4, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(5, nonce_); + } + if (nrg_ != 0L) { + output.writeUInt64(6, nrg_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(7, nrgPrice_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, nonce_); + } + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, nrg_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(7, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_sendTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_sendTransaction other = + (org.aion.api.server.pb.Message.req_sendTransaction) obj; + + boolean result = true; + result = result && getFrom().equals(other.getFrom()); + result = result && getTo().equals(other.getTo()); + result = result && getValue().equals(other.getValue()); + result = result && getData().equals(other.getData()); + result = result && getNonce().equals(other.getNonce()); + result = result && (getNrg() == other.getNrg()); + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_sendTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_sendTransaction) + org.aion.api.server.pb.Message.req_sendTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_sendTransaction.class, + org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_sendTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + nrg_ = 0L; + + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_sendTransaction build() { + org.aion.api.server.pb.Message.req_sendTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_sendTransaction buildPartial() { + org.aion.api.server.pb.Message.req_sendTransaction result = + new org.aion.api.server.pb.Message.req_sendTransaction(this); + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nonce_ = nonce_; + result.nrg_ = nrg_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_sendTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.req_sendTransaction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_sendTransaction other) { + if (other + == org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance()) + return this; + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_sendTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_sendTransaction) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 1; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** bytes from = 1; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** bytes from = 1; */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** bytes to = 2; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** bytes to = 2; */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** bytes to = 2; */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** bytes value = 3; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** bytes value = 3; */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** bytes value = 3; */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 4; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 4; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 4; */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 5; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 5; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 5; */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private long nrg_; + /** uint64 nrg = 6; */ + public long getNrg() { + return nrg_; + } + /** uint64 nrg = 6; */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** uint64 nrg = 6; */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_; + /** uint64 nrgPrice = 7; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 7; */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 7; */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_sendTransaction) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_sendTransaction) + private static final org.aion.api.server.pb.Message.req_sendTransaction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_sendTransaction(); + } + + public static org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_sendTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_sendTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_sendTransactionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_sendTransaction) + com.google.protobuf.MessageOrBuilder { + + /** bytes txHash = 1; */ + com.google.protobuf.ByteString getTxHash(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} */ + public static final class rsp_sendTransaction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_sendTransaction) + rsp_sendTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_sendTransaction.newBuilder() to construct. + private rsp_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_sendTransaction() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_sendTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_sendTransaction.class, + org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); + } + + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_sendTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_sendTransaction other = + (org.aion.api.server.pb.Message.rsp_sendTransaction) obj; + + boolean result = true; + result = result && getTxHash().equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_sendTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_sendTransaction) + org.aion.api.server.pb.Message.rsp_sendTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_sendTransaction.class, + org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_sendTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_sendTransaction build() { + org.aion.api.server.pb.Message.rsp_sendTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_sendTransaction buildPartial() { + org.aion.api.server.pb.Message.rsp_sendTransaction result = + new org.aion.api.server.pb.Message.rsp_sendTransaction(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_sendTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_sendTransaction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_sendTransaction other) { + if (other + == org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance()) + return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_sendTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_sendTransaction) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 1; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 1; */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_sendTransaction) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_sendTransaction) + private static final org.aion.api.server.pb.Message.rsp_sendTransaction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_sendTransaction(); + } + + public static org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_sendTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_sendTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getTransactionByHashOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByHash) + com.google.protobuf.MessageOrBuilder { + + /** bytes txHash = 1; */ + com.google.protobuf.ByteString getTxHash(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} */ + public static final class req_getTransactionByHash + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByHash) + req_getTransactionByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionByHash.newBuilder() to construct. + private req_getTransactionByHash( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getTransactionByHash() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getTransactionByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByHash.class, + org.aion.api.server.pb.Message.req_getTransactionByHash.Builder.class); + } + + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionByHash other = + (org.aion.api.server.pb.Message.req_getTransactionByHash) obj; + + boolean result = true; + result = result && getTxHash().equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getTransactionByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByHash) + org.aion.api.server.pb.Message.req_getTransactionByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByHash.class, + org.aion.api.server.pb.Message.req_getTransactionByHash + .Builder + .class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionByHash + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionByHash build() { + org.aion.api.server.pb.Message.req_getTransactionByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionByHash buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionByHash result = + new org.aion.api.server.pb.Message.req_getTransactionByHash(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByHash) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getTransactionByHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getTransactionByHash other) { + if (other + == org.aion.api.server.pb.Message.req_getTransactionByHash + .getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getTransactionByHash) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 1; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 1; */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByHash) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByHash) + private static final org.aion.api.server.pb.Message.req_getTransactionByHash + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByHash(); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getTransactionByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getTransactionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransaction) + com.google.protobuf.MessageOrBuilder { + + /** uint32 txIndex = 1; */ + int getTxIndex(); + + /** uint64 blocknumber = 2; */ + long getBlocknumber(); + + /** uint64 timeStamp = 3; */ + long getTimeStamp(); + + /** uint64 nrgConsume = 4; */ + long getNrgConsume(); + + /** uint64 nrgPrice = 5; */ + long getNrgPrice(); + + /** bytes blockhash = 6; */ + com.google.protobuf.ByteString getBlockhash(); + + /** bytes from = 7; */ + com.google.protobuf.ByteString getFrom(); + + /** bytes txHash = 8; */ + com.google.protobuf.ByteString getTxHash(); + + /** bytes data = 9; */ + com.google.protobuf.ByteString getData(); + + /** bytes nonce = 10; */ + com.google.protobuf.ByteString getNonce(); + + /** bytes to = 11; */ + com.google.protobuf.ByteString getTo(); + + /** bytes value = 12; */ + com.google.protobuf.ByteString getValue(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} */ + public static final class rsp_getTransaction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransaction) + rsp_getTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getTransaction.newBuilder() to construct. + private rsp_getTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getTransaction() { + txIndex_ = 0; + blocknumber_ = 0L; + timeStamp_ = 0L; + nrgConsume_ = 0L; + nrgPrice_ = 0L; + blockhash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + txHash_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + txIndex_ = input.readUInt32(); + break; + } + case 16: + { + blocknumber_ = input.readUInt64(); + break; + } + case 24: + { + timeStamp_ = input.readUInt64(); + break; + } + case 32: + { + nrgConsume_ = input.readUInt64(); + break; + } + case 40: + { + nrgPrice_ = input.readUInt64(); + break; + } + case 50: + { + blockhash_ = input.readBytes(); + break; + } + case 58: + { + from_ = input.readBytes(); + break; + } + case 66: + { + txHash_ = input.readBytes(); + break; + } + case 74: + { + data_ = input.readBytes(); + break; + } + case 82: + { + nonce_ = input.readBytes(); + break; + } + case 90: + { + to_ = input.readBytes(); + break; + } + case 98: + { + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransaction.class, + org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); + } + + public static final int TXINDEX_FIELD_NUMBER = 1; + private int txIndex_; + /** uint32 txIndex = 1; */ + public int getTxIndex() { + return txIndex_; + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blocknumber_; + /** uint64 blocknumber = 2; */ + public long getBlocknumber() { + return blocknumber_; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 3; + private long timeStamp_; + /** uint64 timeStamp = 3; */ + public long getTimeStamp() { + return timeStamp_; + } + + public static final int NRGCONSUME_FIELD_NUMBER = 4; + private long nrgConsume_; + /** uint64 nrgConsume = 4; */ + public long getNrgConsume() { + return nrgConsume_; + } + + public static final int NRGPRICE_FIELD_NUMBER = 5; + private long nrgPrice_; + /** uint64 nrgPrice = 5; */ + public long getNrgPrice() { + return nrgPrice_; + } + + public static final int BLOCKHASH_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString blockhash_; + /** bytes blockhash = 6; */ + public com.google.protobuf.ByteString getBlockhash() { + return blockhash_; + } + + public static final int FROM_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString from_; + /** bytes from = 7; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + + public static final int TXHASH_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 8; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + public static final int DATA_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString data_; + /** bytes data = 9; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int NONCE_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 10; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + public static final int TO_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString to_; + /** bytes to = 11; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + + public static final int VALUE_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString value_; + /** bytes value = 12; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txIndex_ != 0) { + output.writeUInt32(1, txIndex_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(2, blocknumber_); + } + if (timeStamp_ != 0L) { + output.writeUInt64(3, timeStamp_); + } + if (nrgConsume_ != 0L) { + output.writeUInt64(4, nrgConsume_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(5, nrgPrice_); + } + if (!blockhash_.isEmpty()) { + output.writeBytes(6, blockhash_); + } + if (!from_.isEmpty()) { + output.writeBytes(7, from_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(8, txHash_); + } + if (!data_.isEmpty()) { + output.writeBytes(9, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(10, nonce_); + } + if (!to_.isEmpty()) { + output.writeBytes(11, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(12, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, txIndex_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blocknumber_); + } + if (timeStamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, timeStamp_); + } + if (nrgConsume_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgConsume_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, nrgPrice_); + } + if (!blockhash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, blockhash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, from_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txHash_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, nonce_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getTransaction other = + (org.aion.api.server.pb.Message.rsp_getTransaction) obj; + + boolean result = true; + result = result && (getTxIndex() == other.getTxIndex()); + result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && (getTimeStamp() == other.getTimeStamp()); + result = result && (getNrgConsume() == other.getNrgConsume()); + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && getBlockhash().equals(other.getBlockhash()); + result = result && getFrom().equals(other.getFrom()); + result = result && getTxHash().equals(other.getTxHash()); + result = result && getData().equals(other.getData()); + result = result && getNonce().equals(other.getNonce()); + result = result && getTo().equals(other.getTo()); + result = result && getValue().equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeStamp()); + hash = (37 * hash) + NRGCONSUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsume()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockhash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransaction) + org.aion.api.server.pb.Message.rsp_getTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransaction.class, + org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txIndex_ = 0; + + blocknumber_ = 0L; + + timeStamp_ = 0L; + + nrgConsume_ = 0L; + + nrgPrice_ = 0L; + + blockhash_ = com.google.protobuf.ByteString.EMPTY; + + from_ = com.google.protobuf.ByteString.EMPTY; + + txHash_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getTransaction build() { + org.aion.api.server.pb.Message.rsp_getTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getTransaction buildPartial() { + org.aion.api.server.pb.Message.rsp_getTransaction result = + new org.aion.api.server.pb.Message.rsp_getTransaction(this); + result.txIndex_ = txIndex_; + result.blocknumber_ = blocknumber_; + result.timeStamp_ = timeStamp_; + result.nrgConsume_ = nrgConsume_; + result.nrgPrice_ = nrgPrice_; + result.blockhash_ = blockhash_; + result.from_ = from_; + result.txHash_ = txHash_; + result.data_ = data_; + result.nonce_ = nonce_; + result.to_ = to_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransaction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransaction other) { + if (other == org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance()) + return this; + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + if (other.getTimeStamp() != 0L) { + setTimeStamp(other.getTimeStamp()); + } + if (other.getNrgConsume() != 0L) { + setNrgConsume(other.getNrgConsume()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + if (other.getBlockhash() != com.google.protobuf.ByteString.EMPTY) { + setBlockhash(other.getBlockhash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getTransaction) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int txIndex_; + /** uint32 txIndex = 1; */ + public int getTxIndex() { + return txIndex_; + } + /** uint32 txIndex = 1; */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** uint32 txIndex = 1; */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + private long blocknumber_; + /** uint64 blocknumber = 2; */ + public long getBlocknumber() { + return blocknumber_; + } + /** uint64 blocknumber = 2; */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** uint64 blocknumber = 2; */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + + private long timeStamp_; + /** uint64 timeStamp = 3; */ + public long getTimeStamp() { + return timeStamp_; + } + /** uint64 timeStamp = 3; */ + public Builder setTimeStamp(long value) { + + timeStamp_ = value; + onChanged(); + return this; + } + /** uint64 timeStamp = 3; */ + public Builder clearTimeStamp() { + + timeStamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsume_; + /** uint64 nrgConsume = 4; */ + public long getNrgConsume() { + return nrgConsume_; + } + /** uint64 nrgConsume = 4; */ + public Builder setNrgConsume(long value) { + + nrgConsume_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsume = 4; */ + public Builder clearNrgConsume() { + + nrgConsume_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_; + /** uint64 nrgPrice = 5; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 5; */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 5; */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString blockhash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockhash = 6; */ + public com.google.protobuf.ByteString getBlockhash() { + return blockhash_; + } + /** bytes blockhash = 6; */ + public Builder setBlockhash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockhash_ = value; + onChanged(); + return this; + } + /** bytes blockhash = 6; */ + public Builder clearBlockhash() { + + blockhash_ = getDefaultInstance().getBlockhash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 7; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** bytes from = 7; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** bytes from = 7; */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 8; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 8; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 8; */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 9; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 9; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 9; */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 10; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 10; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 10; */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** bytes to = 11; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** bytes to = 11; */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** bytes to = 11; */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** bytes value = 12; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** bytes value = 12; */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** bytes value = 12; */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransaction) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransaction) + private static final org.aion.api.server.pb.Message.rsp_getTransaction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransaction(); + } + + public static org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_unlockAccountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_unlockAccount) + com.google.protobuf.MessageOrBuilder { + + /** bytes account = 1; */ + com.google.protobuf.ByteString getAccount(); + + /** string password = 2; */ + java.lang.String getPassword(); + /** string password = 2; */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** uint32 duration = 3; */ + int getDuration(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} */ + public static final class req_unlockAccount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_unlockAccount) + req_unlockAccountOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_unlockAccount.newBuilder() to construct. + private req_unlockAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_unlockAccount() { + account_ = com.google.protobuf.ByteString.EMPTY; + password_ = ""; + duration_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_unlockAccount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + account_ = input.readBytes(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 24: + { + duration_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_unlockAccount.class, + org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString account_; + /** bytes account = 1; */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_FIELD_NUMBER = 3; + private int duration_; + /** uint32 duration = 3; */ + public int getDuration() { + return duration_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!account_.isEmpty()) { + output.writeBytes(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (duration_ != 0) { + output.writeUInt32(3, duration_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!account_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (duration_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, duration_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_unlockAccount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_unlockAccount other = + (org.aion.api.server.pb.Message.req_unlockAccount) obj; + + boolean result = true; + result = result && getAccount().equals(other.getAccount()); + result = result && getPassword().equals(other.getPassword()); + result = result && (getDuration() == other.getDuration()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_unlockAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_unlockAccount) + org.aion.api.server.pb.Message.req_unlockAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_unlockAccount.class, + org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_unlockAccount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + account_ = com.google.protobuf.ByteString.EMPTY; + + password_ = ""; + + duration_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + } + + public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_unlockAccount build() { + org.aion.api.server.pb.Message.req_unlockAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_unlockAccount buildPartial() { + org.aion.api.server.pb.Message.req_unlockAccount result = + new org.aion.api.server.pb.Message.req_unlockAccount(this); + result.account_ = account_; + result.password_ = password_; + result.duration_ = duration_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_unlockAccount) { + return mergeFrom((org.aion.api.server.pb.Message.req_unlockAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_unlockAccount other) { + if (other == org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance()) + return this; + if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { + setAccount(other.getAccount()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.getDuration() != 0) { + setDuration(other.getDuration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_unlockAccount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_unlockAccount) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; + /** bytes account = 1; */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } + /** bytes account = 1; */ + public Builder setAccount(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + account_ = value; + onChanged(); + return this; + } + /** bytes account = 1; */ + public Builder clearAccount() { + + account_ = getDefaultInstance().getAccount(); + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string password = 2; */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** string password = 2; */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** string password = 2; */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private int duration_; + /** uint32 duration = 3; */ + public int getDuration() { + return duration_; + } + /** uint32 duration = 3; */ + public Builder setDuration(int value) { + + duration_ = value; + onChanged(); + return this; + } + /** uint32 duration = 3; */ + public Builder clearDuration() { + + duration_ = 0; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_unlockAccount) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_unlockAccount) + private static final org.aion.api.server.pb.Message.req_unlockAccount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_unlockAccount(); + } + + public static org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_unlockAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_unlockAccount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_accountsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accounts) + com.google.protobuf.MessageOrBuilder { + + /** repeated bytes accout = 1; */ + java.util.List getAccoutList(); + /** repeated bytes accout = 1; */ + int getAccoutCount(); + /** repeated bytes accout = 1; */ + com.google.protobuf.ByteString getAccout(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_accounts} */ + public static final class rsp_accounts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accounts) + rsp_accountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_accounts.newBuilder() to construct. + private rsp_accounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_accounts() { + accout_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_accounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00000001; + } + accout_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = java.util.Collections.unmodifiableList(accout_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accounts.class, + org.aion.api.server.pb.Message.rsp_accounts.Builder.class); + } + + public static final int ACCOUT_FIELD_NUMBER = 1; + private java.util.List accout_; + /** repeated bytes accout = 1; */ + public java.util.List getAccoutList() { + return accout_; + } + /** repeated bytes accout = 1; */ + public int getAccoutCount() { + return accout_.size(); + } + /** repeated bytes accout = 1; */ + public com.google.protobuf.ByteString getAccout(int index) { + return accout_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < accout_.size(); i++) { + output.writeBytes(1, accout_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < accout_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + accout_.get(i)); + } + size += dataSize; + size += 1 * getAccoutList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_accounts other = + (org.aion.api.server.pb.Message.rsp_accounts) obj; + + boolean result = true; + result = result && getAccoutList().equals(other.getAccoutList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccoutCount() > 0) { + hash = (37 * hash) + ACCOUT_FIELD_NUMBER; + hash = (53 * hash) + getAccoutList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_accounts} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accounts) + org.aion.api.server.pb.Message.rsp_accountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accounts.class, + org.aion.api.server.pb.Message.rsp_accounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_accounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + accout_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_accounts build() { + org.aion.api.server.pb.Message.rsp_accounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_accounts buildPartial() { + org.aion.api.server.pb.Message.rsp_accounts result = + new org.aion.api.server.pb.Message.rsp_accounts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = java.util.Collections.unmodifiableList(accout_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accout_ = accout_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_accounts) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_accounts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accounts other) { + if (other == org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance()) + return this; + if (!other.accout_.isEmpty()) { + if (accout_.isEmpty()) { + accout_ = other.accout_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccoutIsMutable(); + accout_.addAll(other.accout_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_accounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_accounts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List accout_ = + java.util.Collections.emptyList(); + + private void ensureAccoutIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = new java.util.ArrayList(accout_); + bitField0_ |= 0x00000001; + } + } + /** repeated bytes accout = 1; */ + public java.util.List getAccoutList() { + return java.util.Collections.unmodifiableList(accout_); + } + /** repeated bytes accout = 1; */ + public int getAccoutCount() { + return accout_.size(); + } + /** repeated bytes accout = 1; */ + public com.google.protobuf.ByteString getAccout(int index) { + return accout_.get(index); + } + /** repeated bytes accout = 1; */ + public Builder setAccout(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccoutIsMutable(); + accout_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes accout = 1; */ + public Builder addAccout(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccoutIsMutable(); + accout_.add(value); + onChanged(); + return this; + } + /** repeated bytes accout = 1; */ + public Builder addAllAccout( + java.lang.Iterable values) { + ensureAccoutIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accout_); + onChanged(); + return this; + } + /** repeated bytes accout = 1; */ + public Builder clearAccout() { + accout_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accounts) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accounts) + private static final org.aion.api.server.pb.Message.rsp_accounts DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accounts(); + } + + public static org.aion.api.server.pb.Message.rsp_accounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_accounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_accounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_compileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compile) + com.google.protobuf.MessageOrBuilder { + + /** string code = 1; */ + java.lang.String getCode(); + /** string code = 1; */ + com.google.protobuf.ByteString getCodeBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_compile} */ + public static final class req_compile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compile) + req_compileOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_compile.newBuilder() to construct. + private req_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_compile() { + code_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_compile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compile_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compile.class, + org.aion.api.server.pb.Message.req_compile.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** string code = 1; */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** string code = 1; */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_compile)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_compile other = + (org.aion.api.server.pb.Message.req_compile) obj; + + boolean result = true; + result = result && getCode().equals(other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.req_compile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_compile} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compile) + org.aion.api.server.pb.Message.req_compileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compile_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compile.class, + org.aion.api.server.pb.Message.req_compile.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_compile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + code_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compile_descriptor; + } + + public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_compile.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_compile build() { + org.aion.api.server.pb.Message.req_compile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_compile buildPartial() { + org.aion.api.server.pb.Message.req_compile result = + new org.aion.api.server.pb.Message.req_compile(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_compile) { + return mergeFrom((org.aion.api.server.pb.Message.req_compile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_compile other) { + if (other == org.aion.api.server.pb.Message.req_compile.getDefaultInstance()) + return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_compile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_compile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** string code = 1; */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string code = 1; */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string code = 1; */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** string code = 1; */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** string code = 1; */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compile) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compile) + private static final org.aion.api.server.pb.Message.req_compile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compile(); + } + + public static org.aion.api.server.pb.Message.req_compile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_compile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_compile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_compileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compile) + com.google.protobuf.MessageOrBuilder { + + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + int getConstractsCount(); + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + boolean containsConstracts(java.lang.String key); + /** Use {@link #getConstractsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConstracts(); + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + java.util.Map + getConstractsMap(); + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( + java.lang.String key, org.aion.api.server.pb.Message.t_Contract defaultValue); + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow(java.lang.String key); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_compile} */ + public static final class rsp_compile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compile) + rsp_compileOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_compile.newBuilder() to construct. + private rsp_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_compile() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_compile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + constracts_ = + com.google.protobuf.MapField.newMapField( + ConstractsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, + org.aion.api.server.pb.Message.t_Contract> + constracts__ = + input.readMessage( + ConstractsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + constracts_ + .getMutableMap() + .put(constracts__.getKey(), constracts__.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetConstracts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compile.class, + org.aion.api.server.pb.Message.rsp_compile.Builder.class); + } + + public static final int CONSTRACTS_FIELD_NUMBER = 1; + + private static final class ConstractsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType + .MESSAGE, + org.aion.api.server.pb.Message.t_Contract + .getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> + constracts_; + + private com.google.protobuf.MapField< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> + internalGetConstracts() { + if (constracts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConstractsDefaultEntryHolder.defaultEntry); + } + return constracts_; + } + + public int getConstractsCount() { + return internalGetConstracts().getMap().size(); + } + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + public boolean containsConstracts(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetConstracts().getMap().containsKey(key); + } + /** Use {@link #getConstractsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getConstracts() { + return getConstractsMap(); + } + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + public java.util.Map + getConstractsMap() { + return internalGetConstracts().getMap(); + } + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( + java.lang.String key, org.aion.api.server.pb.Message.t_Contract defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetConstracts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ + public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetConstracts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetConstracts(), ConstractsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry + entry : internalGetConstracts().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> + constracts__ = + ConstractsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, constracts__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compile)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_compile other = + (org.aion.api.server.pb.Message.rsp_compile) obj; + + boolean result = true; + result = result && internalGetConstracts().equals(other.internalGetConstracts()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetConstracts().getMap().isEmpty()) { + hash = (37 * hash) + CONSTRACTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetConstracts().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_compile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_compile} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compile) + org.aion.api.server.pb.Message.rsp_compileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetConstracts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableConstracts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compile.class, + org.aion.api.server.pb.Message.rsp_compile.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_compile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + internalGetMutableConstracts().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_compile build() { + org.aion.api.server.pb.Message.rsp_compile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_compile buildPartial() { + org.aion.api.server.pb.Message.rsp_compile result = + new org.aion.api.server.pb.Message.rsp_compile(this); + int from_bitField0_ = bitField0_; + result.constracts_ = internalGetConstracts(); + result.constracts_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_compile) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_compile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compile other) { + if (other == org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance()) + return this; + internalGetMutableConstracts().mergeFrom(other.internalGetConstracts()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_compile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_compile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> + constracts_; + + private com.google.protobuf.MapField< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> + internalGetConstracts() { + if (constracts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConstractsDefaultEntryHolder.defaultEntry); + } + return constracts_; + } + + private com.google.protobuf.MapField< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> + internalGetMutableConstracts() { + onChanged(); + ; + if (constracts_ == null) { + constracts_ = + com.google.protobuf.MapField.newMapField( + ConstractsDefaultEntryHolder.defaultEntry); + } + if (!constracts_.isMutable()) { + constracts_ = constracts_.copy(); + } + return constracts_; + } + + public int getConstractsCount() { + return internalGetConstracts().getMap().size(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public boolean containsConstracts(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetConstracts().getMap().containsKey(key); + } + /** Use {@link #getConstractsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getConstracts() { + return getConstractsMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public java.util.Map + getConstractsMap() { + return internalGetConstracts().getMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( + java.lang.String key, org.aion.api.server.pb.Message.t_Contract defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetConstracts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetConstracts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConstracts() { + internalGetMutableConstracts().getMutableMap().clear(); + return this; + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public Builder removeConstracts(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableConstracts().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableConstracts() { + return internalGetMutableConstracts().getMutableMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public Builder putConstracts( + java.lang.String key, org.aion.api.server.pb.Message.t_Contract value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableConstracts().getMutableMap().put(key, value); + return this; + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public Builder putAllConstracts( + java.util.Map + values) { + internalGetMutableConstracts().getMutableMap().putAll(values); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compile) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compile) + private static final org.aion.api.server.pb.Message.rsp_compile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compile(); + } + + public static org.aion.api.server.pb.Message.rsp_compile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_compile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_compile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getCodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getCode) + com.google.protobuf.MessageOrBuilder { + + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); + + /** uint64 blocknumber = 2; */ + long getBlocknumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getCode} */ + public static final class req_getCode extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getCode) + req_getCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getCode.newBuilder() to construct. + private req_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getCode() { + address_ = com.google.protobuf.ByteString.EMPTY; + blocknumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getCode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 16: + { + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getCode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getCode.class, + org.aion.api.server.pb.Message.req_getCode.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blocknumber_; + /** uint64 blocknumber = 2; */ + public long getBlocknumber() { + return blocknumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(2, blocknumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getCode)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getCode other = + (org.aion.api.server.pb.Message.req_getCode) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getCode} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getCode) + org.aion.api.server.pb.Message.req_getCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getCode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getCode.class, + org.aion.api.server.pb.Message.req_getCode.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getCode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getCode_descriptor; + } + + public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getCode.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getCode build() { + org.aion.api.server.pb.Message.req_getCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getCode buildPartial() { + org.aion.api.server.pb.Message.req_getCode result = + new org.aion.api.server.pb.Message.req_getCode(this); + result.address_ = address_; + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getCode) { + return mergeFrom((org.aion.api.server.pb.Message.req_getCode) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getCode other) { + if (other == org.aion.api.server.pb.Message.req_getCode.getDefaultInstance()) + return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getCode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getCode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private long blocknumber_; + /** uint64 blocknumber = 2; */ + public long getBlocknumber() { + return blocknumber_; + } + /** uint64 blocknumber = 2; */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** uint64 blocknumber = 2; */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getCode) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getCode) + private static final org.aion.api.server.pb.Message.req_getCode DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getCode(); + } + + public static org.aion.api.server.pb.Message.req_getCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getCode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getCodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCode) + com.google.protobuf.MessageOrBuilder { + + /** bytes code = 1; */ + com.google.protobuf.ByteString getCode(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getCode} */ + public static final class rsp_getCode extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCode) + rsp_getCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getCode.newBuilder() to construct. + private rsp_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getCode() { + code_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getCode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + code_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCode.class, + org.aion.api.server.pb.Message.rsp_getCode.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString code_; + /** bytes code = 1; */ + public com.google.protobuf.ByteString getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!code_.isEmpty()) { + output.writeBytes(1, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!code_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCode)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getCode other = + (org.aion.api.server.pb.Message.rsp_getCode) obj; + + boolean result = true; + result = result && getCode().equals(other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getCode} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCode) + org.aion.api.server.pb.Message.rsp_getCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCode.class, + org.aion.api.server.pb.Message.rsp_getCode.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getCode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + code_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getCode build() { + org.aion.api.server.pb.Message.rsp_getCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getCode buildPartial() { + org.aion.api.server.pb.Message.rsp_getCode result = + new org.aion.api.server.pb.Message.rsp_getCode(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getCode) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getCode) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCode other) { + if (other == org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance()) + return this; + if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getCode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getCode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; + /** bytes code = 1; */ + public com.google.protobuf.ByteString getCode() { + return code_; + } + /** bytes code = 1; */ + public Builder setCode(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** bytes code = 1; */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCode) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCode) + private static final org.aion.api.server.pb.Message.rsp_getCode DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCode(); + } + + public static org.aion.api.server.pb.Message.rsp_getCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getCode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_contractDeployOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_contractDeploy) + com.google.protobuf.MessageOrBuilder { + + /** uint64 nrgLimit = 1; */ + long getNrgLimit(); + + /** uint64 nrgPrice = 2; */ + long getNrgPrice(); + + /** bytes from = 3; */ + com.google.protobuf.ByteString getFrom(); + + /** bytes data = 4; */ + com.google.protobuf.ByteString getData(); + + /** bytes value = 5; */ + com.google.protobuf.ByteString getValue(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} */ + public static final class req_contractDeploy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_contractDeploy) + req_contractDeployOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_contractDeploy.newBuilder() to construct. + private req_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_contractDeploy() { + nrgLimit_ = 0L; + nrgPrice_ = 0L; + from_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_contractDeploy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + nrgLimit_ = input.readUInt64(); + break; + } + case 16: + { + nrgPrice_ = input.readUInt64(); + break; + } + case 26: + { + from_ = input.readBytes(); + break; + } + case 34: + { + data_ = input.readBytes(); + break; + } + case 42: + { + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_contractDeploy.class, + org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); + } + + public static final int NRGLIMIT_FIELD_NUMBER = 1; + private long nrgLimit_; + /** uint64 nrgLimit = 1; */ + public long getNrgLimit() { + return nrgLimit_; + } + + public static final int NRGPRICE_FIELD_NUMBER = 2; + private long nrgPrice_; + /** uint64 nrgPrice = 2; */ + public long getNrgPrice() { + return nrgPrice_; + } + + public static final int FROM_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString from_; + /** bytes from = 3; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + + public static final int DATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString data_; + /** bytes data = 4; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int VALUE_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString value_; + /** bytes value = 5; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nrgLimit_ != 0L) { + output.writeUInt64(1, nrgLimit_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(2, nrgPrice_); + } + if (!from_.isEmpty()) { + output.writeBytes(3, from_); + } + if (!data_.isEmpty()) { + output.writeBytes(4, data_); + } + if (!value_.isEmpty()) { + output.writeBytes(5, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nrgLimit_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, nrgPrice_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, from_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, data_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_contractDeploy)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_contractDeploy other = + (org.aion.api.server.pb.Message.req_contractDeploy) obj; + + boolean result = true; + result = result && (getNrgLimit() == other.getNrgLimit()); + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && getFrom().equals(other.getFrom()); + result = result && getData().equals(other.getData()); + result = result && getValue().equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_contractDeploy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_contractDeploy) + org.aion.api.server.pb.Message.req_contractDeployOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_contractDeploy.class, + org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_contractDeploy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + nrgLimit_ = 0L; + + nrgPrice_ = 0L; + + from_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + } + + public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_contractDeploy build() { + org.aion.api.server.pb.Message.req_contractDeploy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_contractDeploy buildPartial() { + org.aion.api.server.pb.Message.req_contractDeploy result = + new org.aion.api.server.pb.Message.req_contractDeploy(this); + result.nrgLimit_ = nrgLimit_; + result.nrgPrice_ = nrgPrice_; + result.from_ = from_; + result.data_ = data_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_contractDeploy) { + return mergeFrom((org.aion.api.server.pb.Message.req_contractDeploy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_contractDeploy other) { + if (other == org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance()) + return this; + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_contractDeploy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_contractDeploy) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nrgLimit_; + /** uint64 nrgLimit = 1; */ + public long getNrgLimit() { + return nrgLimit_; + } + /** uint64 nrgLimit = 1; */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** uint64 nrgLimit = 1; */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_; + /** uint64 nrgPrice = 2; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 2; */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 2; */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 3; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** bytes from = 3; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** bytes from = 3; */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 4; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 4; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 4; */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** bytes value = 5; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** bytes value = 5; */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** bytes value = 5; */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_contractDeploy) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_contractDeploy) + private static final org.aion.api.server.pb.Message.req_contractDeploy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_contractDeploy(); + } + + public static org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_contractDeploy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_contractDeploy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_contractDeployOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_contractDeploy) + com.google.protobuf.MessageOrBuilder { + + /** bytes txHash = 1; */ + com.google.protobuf.ByteString getTxHash(); + + /** bytes contractAddress = 2; */ + com.google.protobuf.ByteString getContractAddress(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} */ + public static final class rsp_contractDeploy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_contractDeploy) + rsp_contractDeployOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_contractDeploy.newBuilder() to construct. + private rsp_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_contractDeploy() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_contractDeploy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + txHash_ = input.readBytes(); + break; + } + case 18: + { + contractAddress_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_contractDeploy.class, + org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); + } + + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + public static final int CONTRACTADDRESS_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString contractAddress_; + /** bytes contractAddress = 2; */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + if (!contractAddress_.isEmpty()) { + output.writeBytes(2, contractAddress_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + if (!contractAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, contractAddress_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_contractDeploy)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_contractDeploy other = + (org.aion.api.server.pb.Message.rsp_contractDeploy) obj; + + boolean result = true; + result = result && getTxHash().equals(other.getTxHash()); + result = result && getContractAddress().equals(other.getContractAddress()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getContractAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_contractDeploy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_contractDeploy) + org.aion.api.server.pb.Message.rsp_contractDeployOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_contractDeploy.class, + org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_contractDeploy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_contractDeploy build() { + org.aion.api.server.pb.Message.rsp_contractDeploy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_contractDeploy buildPartial() { + org.aion.api.server.pb.Message.rsp_contractDeploy result = + new org.aion.api.server.pb.Message.rsp_contractDeploy(this); + result.txHash_ = txHash_; + result.contractAddress_ = contractAddress_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_contractDeploy) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_contractDeploy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_contractDeploy other) { + if (other == org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance()) + return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { + setContractAddress(other.getContractAddress()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_contractDeploy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_contractDeploy) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 1; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 1; */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contractAddress_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes contractAddress = 2; */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } + /** bytes contractAddress = 2; */ + public Builder setContractAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddress_ = value; + onChanged(); + return this; + } + /** bytes contractAddress = 2; */ + public Builder clearContractAddress() { + + contractAddress_ = getDefaultInstance().getContractAddress(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_contractDeploy) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_contractDeploy) + private static final org.aion.api.server.pb.Message.rsp_contractDeploy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_contractDeploy(); + } + + public static org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_contractDeploy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_contractDeploy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_callOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_call) + com.google.protobuf.MessageOrBuilder { + + /** bytes from = 1; */ + com.google.protobuf.ByteString getFrom(); + + /** bytes to = 2; */ + com.google.protobuf.ByteString getTo(); + + /** bytes data = 3; */ + com.google.protobuf.ByteString getData(); + + /** bytes value = 4; */ + com.google.protobuf.ByteString getValue(); + + /** uint64 nrg = 5; */ + long getNrg(); + + /** uint64 nrgPrice = 6; */ + long getNrgPrice(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_call} */ + public static final class req_call extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_call) + req_callOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_call.newBuilder() to construct. + private req_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_call() { + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + nrg_ = 0L; + nrgPrice_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_call( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + from_ = input.readBytes(); + break; + } + case 18: + { + to_ = input.readBytes(); + break; + } + case 26: + { + data_ = input.readBytes(); + break; + } + case 34: + { + value_ = input.readBytes(); + break; + } + case 40: + { + nrg_ = input.readUInt64(); + break; + } + case 48: + { + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_call_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_call.class, + org.aion.api.server.pb.Message.req_call.Builder.class); + } + + public static final int FROM_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString from_; + /** bytes from = 1; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + + public static final int TO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString to_; + /** bytes to = 2; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + + public static final int DATA_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString data_; + /** bytes data = 3; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString value_; + /** bytes value = 4; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int NRG_FIELD_NUMBER = 5; + private long nrg_; + /** uint64 nrg = 5; */ + public long getNrg() { + return nrg_; + } + + public static final int NRGPRICE_FIELD_NUMBER = 6; + private long nrgPrice_; + /** uint64 nrgPrice = 6; */ + public long getNrgPrice() { + return nrgPrice_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!from_.isEmpty()) { + output.writeBytes(1, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(2, to_); + } + if (!data_.isEmpty()) { + output.writeBytes(3, data_); + } + if (!value_.isEmpty()) { + output.writeBytes(4, value_); + } + if (nrg_ != 0L) { + output.writeUInt64(5, nrg_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(6, nrgPrice_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, to_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, data_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_); + } + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, nrg_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_call)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_call other = + (org.aion.api.server.pb.Message.req_call) obj; + + boolean result = true; + result = result && getFrom().equals(other.getFrom()); + result = result && getTo().equals(other.getTo()); + result = result && getData().equals(other.getData()); + result = result && getValue().equals(other.getValue()); + result = result && (getNrg() == other.getNrg()); + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_call parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.req_call prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_call} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_call) + org.aion.api.server.pb.Message.req_callOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_call_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_call.class, + org.aion.api.server.pb.Message.req_call.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_call.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + nrg_ = 0L; + + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_call_descriptor; + } + + public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_call.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_call build() { + org.aion.api.server.pb.Message.req_call result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_call buildPartial() { + org.aion.api.server.pb.Message.req_call result = + new org.aion.api.server.pb.Message.req_call(this); + result.from_ = from_; + result.to_ = to_; + result.data_ = data_; + result.value_ = value_; + result.nrg_ = nrg_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_call) { + return mergeFrom((org.aion.api.server.pb.Message.req_call) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_call other) { + if (other == org.aion.api.server.pb.Message.req_call.getDefaultInstance()) + return this; + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_call parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_call) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 1; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** bytes from = 1; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** bytes from = 1; */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** bytes to = 2; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** bytes to = 2; */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** bytes to = 2; */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 3; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 3; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 3; */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** bytes value = 4; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** bytes value = 4; */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** bytes value = 4; */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private long nrg_; + /** uint64 nrg = 5; */ + public long getNrg() { + return nrg_; + } + /** uint64 nrg = 5; */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** uint64 nrg = 5; */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_; + /** uint64 nrgPrice = 6; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 6; */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 6; */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_call) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_call) + private static final org.aion.api.server.pb.Message.req_call DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_call(); + } + + public static org.aion.api.server.pb.Message.req_call getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_call parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_call(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_callOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_call) + com.google.protobuf.MessageOrBuilder { + + /** bytes result = 1; */ + com.google.protobuf.ByteString getResult(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_call} */ + public static final class rsp_call extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_call) + rsp_callOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_call.newBuilder() to construct. + private rsp_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_call() { + result_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_call( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + result_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_call_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_call.class, + org.aion.api.server.pb.Message.rsp_call.Builder.class); + } + + public static final int RESULT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString result_; + /** bytes result = 1; */ + public com.google.protobuf.ByteString getResult() { + return result_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!result_.isEmpty()) { + output.writeBytes(1, result_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!result_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, result_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_call)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_call other = + (org.aion.api.server.pb.Message.rsp_call) obj; + + boolean result = true; + result = result && getResult().equals(other.getResult()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_call prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_call} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_call) + org.aion.api.server.pb.Message.rsp_callOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_call_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_call.class, + org.aion.api.server.pb.Message.rsp_call.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_call.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + result_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_call_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_call.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_call build() { + org.aion.api.server.pb.Message.rsp_call result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_call buildPartial() { + org.aion.api.server.pb.Message.rsp_call result = + new org.aion.api.server.pb.Message.rsp_call(this); + result.result_ = result_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_call) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_call) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_call other) { + if (other == org.aion.api.server.pb.Message.rsp_call.getDefaultInstance()) + return this; + if (other.getResult() != com.google.protobuf.ByteString.EMPTY) { + setResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_call parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_call) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY; + /** bytes result = 1; */ + public com.google.protobuf.ByteString getResult() { + return result_; + } + /** bytes result = 1; */ + public Builder setResult(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value; + onChanged(); + return this; + } + /** bytes result = 1; */ + public Builder clearResult() { + + result_ = getDefaultInstance().getResult(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_call) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_call) + private static final org.aion.api.server.pb.Message.rsp_call DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_call(); + } + + public static org.aion.api.server.pb.Message.rsp_call getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_call parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_call(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getBlockByHashOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByHash) + com.google.protobuf.MessageOrBuilder { + + /** bytes blockHash = 1; */ + com.google.protobuf.ByteString getBlockHash(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} */ + public static final class req_getBlockByHash extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByHash) + req_getBlockByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockByHash.newBuilder() to construct. + private req_getBlockByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBlockByHash() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBlockByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + blockHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByHash.class, + org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); + } + + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockByHash other = + (org.aion.api.server.pb.Message.req_getBlockByHash) obj; + + boolean result = true; + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByHash) + org.aion.api.server.pb.Message.req_getBlockByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByHash.class, + org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockByHash build() { + org.aion.api.server.pb.Message.req_getBlockByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockByHash buildPartial() { + org.aion.api.server.pb.Message.req_getBlockByHash result = + new org.aion.api.server.pb.Message.req_getBlockByHash(this); + result.blockHash_ = blockHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockByHash) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByHash other) { + if (other == org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance()) + return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockByHash) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** bytes blockHash = 1; */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** bytes blockHash = 1; */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByHash) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByHash) + private static final org.aion.api.server.pb.Message.req_getBlockByHash DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByHash(); + } + + public static org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getBlockHeaderByHashOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByHash) + com.google.protobuf.MessageOrBuilder { + + /** bytes blockHash = 1; */ + com.google.protobuf.ByteString getBlockHash(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} */ + public static final class req_getBlockHeaderByHash + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) + req_getBlockHeaderByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockHeaderByHash.newBuilder() to construct. + private req_getBlockHeaderByHash( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBlockHeaderByHash() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBlockHeaderByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + blockHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, + org.aion.api.server.pb.Message.req_getBlockHeaderByHash.Builder.class); + } + + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockHeaderByHash other = + (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) obj; + + boolean result = true; + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockHeaderByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) + org.aion.api.server.pb.Message.req_getBlockHeaderByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, + org.aion.api.server.pb.Message.req_getBlockHeaderByHash + .Builder + .class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockHeaderByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockHeaderByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash build() { + org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash buildPartial() { + org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = + new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(this); + result.blockHash_ = blockHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getBlockHeaderByHash other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockHeaderByHash + .getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockHeaderByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** bytes blockHash = 1; */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** bytes blockHash = 1; */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) + private static final org.aion.api.server.pb.Message.req_getBlockHeaderByHash + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(); + } + + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockHeaderByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockHeaderByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getTransactionCountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCount) + com.google.protobuf.MessageOrBuilder { + + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); + + /** uint64 blocknumber = 2; */ + long getBlocknumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} */ + public static final class req_getTransactionCount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCount) + req_getTransactionCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionCount.newBuilder() to construct. + private req_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getTransactionCount() { + address_ = com.google.protobuf.ByteString.EMPTY; + blocknumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getTransactionCount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 16: + { + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCount.class, + org.aion.api.server.pb.Message.req_getTransactionCount.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blocknumber_; + /** uint64 blocknumber = 2; */ + public long getBlocknumber() { + return blocknumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(2, blocknumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionCount other = + (org.aion.api.server.pb.Message.req_getTransactionCount) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getTransactionCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCount) + org.aion.api.server.pb.Message.req_getTransactionCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCount.class, + org.aion.api.server.pb.Message.req_getTransactionCount + .Builder + .class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionCount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionCount + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionCount.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionCount build() { + org.aion.api.server.pb.Message.req_getTransactionCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionCount buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionCount result = + new org.aion.api.server.pb.Message.req_getTransactionCount(this); + result.address_ = address_; + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCount) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getTransactionCount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCount other) { + if (other + == org.aion.api.server.pb.Message.req_getTransactionCount + .getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionCount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getTransactionCount) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private long blocknumber_; + /** uint64 blocknumber = 2; */ + public long getBlocknumber() { + return blocknumber_; + } + /** uint64 blocknumber = 2; */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** uint64 blocknumber = 2; */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCount) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCount) + private static final org.aion.api.server.pb.Message.req_getTransactionCount + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCount(); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getTransactionCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionCount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getTransactionCountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionCount) + com.google.protobuf.MessageOrBuilder { + + /** uint64 txCount = 1; */ + long getTxCount(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} */ + public static final class rsp_getTransactionCount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionCount) + rsp_getTransactionCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getTransactionCount.newBuilder() to construct. + private rsp_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getTransactionCount() { + txCount_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getTransactionCount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + txCount_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionCount.class, + org.aion.api.server.pb.Message.rsp_getTransactionCount.Builder.class); + } + + public static final int TXCOUNT_FIELD_NUMBER = 1; + private long txCount_; + /** uint64 txCount = 1; */ + public long getTxCount() { + return txCount_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txCount_ != 0L) { + output.writeUInt64(1, txCount_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, txCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getTransactionCount other = + (org.aion.api.server.pb.Message.rsp_getTransactionCount) obj; + + boolean result = true; + result = result && (getTxCount() == other.getTxCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTxCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getTransactionCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionCount) + org.aion.api.server.pb.Message.rsp_getTransactionCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionCount.class, + org.aion.api.server.pb.Message.rsp_getTransactionCount + .Builder + .class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getTransactionCount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txCount_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionCount + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getTransactionCount.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getTransactionCount build() { + org.aion.api.server.pb.Message.rsp_getTransactionCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionCount buildPartial() { + org.aion.api.server.pb.Message.rsp_getTransactionCount result = + new org.aion.api.server.pb.Message.rsp_getTransactionCount(this); + result.txCount_ = txCount_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getTransactionCount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionCount other) { + if (other + == org.aion.api.server.pb.Message.rsp_getTransactionCount + .getDefaultInstance()) return this; + if (other.getTxCount() != 0L) { + setTxCount(other.getTxCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getTransactionCount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getTransactionCount) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long txCount_; + /** uint64 txCount = 1; */ + public long getTxCount() { + return txCount_; + } + /** uint64 txCount = 1; */ + public Builder setTxCount(long value) { + + txCount_ = value; + onChanged(); + return this; + } + /** uint64 txCount = 1; */ + public Builder clearTxCount() { + + txCount_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionCount) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionCount) + private static final org.aion.api.server.pb.Message.rsp_getTransactionCount + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionCount(); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getTransactionCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getTransactionCount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getTransactionCountByHashOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCountByHash) + com.google.protobuf.MessageOrBuilder { + + /** bytes txHash = 1; */ + com.google.protobuf.ByteString getTxHash(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} */ + public static final class req_getTransactionCountByHash + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCountByHash) + req_getTransactionCountByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionCountByHash.newBuilder() to construct. + private req_getTransactionCountByHash( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getTransactionCountByHash() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getTransactionCountByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, + org.aion.api.server.pb.Message.req_getTransactionCountByHash + .Builder + .class); + } + + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionCountByHash other = + (org.aion.api.server.pb.Message.req_getTransactionCountByHash) obj; + + boolean result = true; + result = result && getTxHash().equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getTransactionCountByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCountByHash) + org.aion.api.server.pb.Message.req_getTransactionCountByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, + org.aion.api.server.pb.Message.req_getTransactionCountByHash + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.req_getTransactionCountByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionCountByHash + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionCountByHash + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionCountByHash build() { + org.aion.api.server.pb.Message.req_getTransactionCountByHash result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionCountByHash buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionCountByHash result = + new org.aion.api.server.pb.Message.req_getTransactionCountByHash(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getTransactionCountByHash) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getTransactionCountByHash other) { + if (other + == org.aion.api.server.pb.Message.req_getTransactionCountByHash + .getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionCountByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getTransactionCountByHash) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 1; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 1; */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCountByHash) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCountByHash) + private static final org.aion.api.server.pb.Message.req_getTransactionCountByHash + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCountByHash(); + } + + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getTransactionCountByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionCountByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getTransactionCountByHash + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_blockNumberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_blockNumber) + com.google.protobuf.MessageOrBuilder { + + /** uint64 blocknumber = 1; */ + long getBlocknumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} */ + public static final class rsp_blockNumber extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_blockNumber) + rsp_blockNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_blockNumber.newBuilder() to construct. + private rsp_blockNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_blockNumber() { + blocknumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_blockNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_blockNumber.class, + org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blocknumber_; + /** uint64 blocknumber = 1; */ + public long getBlocknumber() { + return blocknumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blocknumber_ != 0L) { + output.writeUInt64(1, blocknumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_blockNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_blockNumber other = + (org.aion.api.server.pb.Message.rsp_blockNumber) obj; + + boolean result = true; + result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_blockNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_blockNumber) + org.aion.api.server.pb.Message.rsp_blockNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_blockNumber.class, + org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_blockNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_blockNumber build() { + org.aion.api.server.pb.Message.rsp_blockNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_blockNumber buildPartial() { + org.aion.api.server.pb.Message.rsp_blockNumber result = + new org.aion.api.server.pb.Message.rsp_blockNumber(this); + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_blockNumber) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_blockNumber) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_blockNumber other) { + if (other == org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance()) + return this; + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_blockNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_blockNumber) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blocknumber_; + /** uint64 blocknumber = 1; */ + public long getBlocknumber() { + return blocknumber_; + } + /** uint64 blocknumber = 1; */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** uint64 blocknumber = 1; */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_blockNumber) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_blockNumber) + private static final org.aion.api.server.pb.Message.rsp_blockNumber DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_blockNumber(); + } + + public static org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_blockNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_blockNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getBalanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBalance) + com.google.protobuf.MessageOrBuilder { + + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); + + /** uint64 blockNumber = 2; */ + long getBlockNumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBalance} */ + public static final class req_getBalance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBalance) + req_getBalanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBalance.newBuilder() to construct. + private req_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBalance() { + address_ = com.google.protobuf.ByteString.EMPTY; + blockNumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBalance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 16: + { + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBalance.class, + org.aion.api.server.pb.Message.req_getBalance.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blockNumber_; + /** uint64 blockNumber = 2; */ + public long getBlockNumber() { + return blockNumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (blockNumber_ != 0L) { + output.writeUInt64(2, blockNumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBalance)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBalance other = + (org.aion.api.server.pb.Message.req_getBalance) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBalance} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBalance) + org.aion.api.server.pb.Message.req_getBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBalance.class, + org.aion.api.server.pb.Message.req_getBalance.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBalance build() { + org.aion.api.server.pb.Message.req_getBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBalance buildPartial() { + org.aion.api.server.pb.Message.req_getBalance result = + new org.aion.api.server.pb.Message.req_getBalance(this); + result.address_ = address_; + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBalance) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBalance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBalance other) { + if (other == org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance()) + return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBalance) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private long blockNumber_; + /** uint64 blockNumber = 2; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 2; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 2; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBalance) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBalance) + private static final org.aion.api.server.pb.Message.req_getBalance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBalance(); + } + + public static org.aion.api.server.pb.Message.req_getBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBalance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getBalanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBalance) + com.google.protobuf.MessageOrBuilder { + + /** bytes balance = 1; */ + com.google.protobuf.ByteString getBalance(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} */ + public static final class rsp_getBalance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBalance) + rsp_getBalanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBalance.newBuilder() to construct. + private rsp_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getBalance() { + balance_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getBalance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + balance_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBalance.class, + org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); + } + + public static final int BALANCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString balance_; + /** bytes balance = 1; */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!balance_.isEmpty()) { + output.writeBytes(1, balance_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!balance_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, balance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBalance)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBalance other = + (org.aion.api.server.pb.Message.rsp_getBalance) obj; + + boolean result = true; + result = result && getBalance().equals(other.getBalance()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + getBalance().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBalance) + org.aion.api.server.pb.Message.rsp_getBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBalance.class, + org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + balance_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBalance build() { + org.aion.api.server.pb.Message.rsp_getBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBalance buildPartial() { + org.aion.api.server.pb.Message.rsp_getBalance result = + new org.aion.api.server.pb.Message.rsp_getBalance(this); + result.balance_ = balance_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBalance) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBalance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBalance other) { + if (other == org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance()) + return this; + if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { + setBalance(other.getBalance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBalance) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; + /** bytes balance = 1; */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } + /** bytes balance = 1; */ + public Builder setBalance(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + balance_ = value; + onChanged(); + return this; + } + /** bytes balance = 1; */ + public Builder clearBalance() { + + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBalance) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBalance) + private static final org.aion.api.server.pb.Message.rsp_getBalance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBalance(); + } + + public static org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBalance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getStorageAtOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getStorageAt) + com.google.protobuf.MessageOrBuilder { + + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); + + /** string key = 2; */ + java.lang.String getKey(); + /** string key = 2; */ + com.google.protobuf.ByteString getKeyBytes(); + + /** uint64 blocknumber = 3; */ + long getBlocknumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} */ + public static final class req_getStorageAt extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getStorageAt) + req_getStorageAtOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getStorageAt.newBuilder() to construct. + private req_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getStorageAt() { + address_ = com.google.protobuf.ByteString.EMPTY; + key_ = ""; + blocknumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getStorageAt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 24: + { + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getStorageAt.class, + org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** string key = 2; */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** string key = 2; */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 3; + private long blocknumber_; + /** uint64 blocknumber = 3; */ + public long getBlocknumber() { + return blocknumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(3, blocknumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getStorageAt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getStorageAt other = + (org.aion.api.server.pb.Message.req_getStorageAt) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getKey().equals(other.getKey()); + result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getStorageAt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getStorageAt) + org.aion.api.server.pb.Message.req_getStorageAtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getStorageAt.class, + org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getStorageAt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + key_ = ""; + + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + } + + public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getStorageAt build() { + org.aion.api.server.pb.Message.req_getStorageAt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getStorageAt buildPartial() { + org.aion.api.server.pb.Message.req_getStorageAt result = + new org.aion.api.server.pb.Message.req_getStorageAt(this); + result.address_ = address_; + result.key_ = key_; + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getStorageAt) { + return mergeFrom((org.aion.api.server.pb.Message.req_getStorageAt) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getStorageAt other) { + if (other == org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance()) + return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getStorageAt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getStorageAt) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** string key = 2; */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string key = 2; */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string key = 2; */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** string key = 2; */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** string key = 2; */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private long blocknumber_; + /** uint64 blocknumber = 3; */ + public long getBlocknumber() { + return blocknumber_; + } + /** uint64 blocknumber = 3; */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** uint64 blocknumber = 3; */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getStorageAt) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getStorageAt) + private static final org.aion.api.server.pb.Message.req_getStorageAt DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getStorageAt(); + } + + public static org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getStorageAt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getStorageAt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getStorageAtOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStorageAt) + com.google.protobuf.MessageOrBuilder { + + /** string storage = 1; */ + java.lang.String getStorage(); + /** string storage = 1; */ + com.google.protobuf.ByteString getStorageBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} */ + public static final class rsp_getStorageAt extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStorageAt) + rsp_getStorageAtOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getStorageAt.newBuilder() to construct. + private rsp_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getStorageAt() { + storage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getStorageAt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + storage_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStorageAt.class, + org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); + } + + public static final int STORAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object storage_; + /** string storage = 1; */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } + } + /** string storage = 1; */ + public com.google.protobuf.ByteString getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getStorageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storage_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStorageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storage_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStorageAt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getStorageAt other = + (org.aion.api.server.pb.Message.rsp_getStorageAt) obj; + + boolean result = true; + result = result && getStorage().equals(other.getStorage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getStorage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getStorageAt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStorageAt) + org.aion.api.server.pb.Message.rsp_getStorageAtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStorageAt.class, + org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getStorageAt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + storage_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getStorageAt build() { + org.aion.api.server.pb.Message.rsp_getStorageAt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getStorageAt buildPartial() { + org.aion.api.server.pb.Message.rsp_getStorageAt result = + new org.aion.api.server.pb.Message.rsp_getStorageAt(this); + result.storage_ = storage_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getStorageAt) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getStorageAt) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStorageAt other) { + if (other == org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance()) + return this; + if (!other.getStorage().isEmpty()) { + storage_ = other.storage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getStorageAt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getStorageAt) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object storage_ = ""; + /** string storage = 1; */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string storage = 1; */ + public com.google.protobuf.ByteString getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string storage = 1; */ + public Builder setStorage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storage_ = value; + onChanged(); + return this; + } + /** string storage = 1; */ + public Builder clearStorage() { + + storage_ = getDefaultInstance().getStorage(); + onChanged(); + return this; + } + /** string storage = 1; */ + public Builder setStorageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storage_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStorageAt) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStorageAt) + private static final org.aion.api.server.pb.Message.rsp_getStorageAt DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStorageAt(); + } + + public static org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getStorageAt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getStorageAt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getBlockTransactionCountByHashOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + com.google.protobuf.MessageOrBuilder { + + /** bytes blockHash = 1; */ + com.google.protobuf.ByteString getBlockHash(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} */ + public static final class req_getBlockTransactionCountByHash + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + req_getBlockTransactionCountByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockTransactionCountByHash.newBuilder() to construct. + private req_getBlockTransactionCountByHash( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBlockTransactionCountByHash() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBlockTransactionCountByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + blockHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.class, + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + .Builder + .class); + } + + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other = + (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) obj; + + boolean result = true; + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + .class, + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash build() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + buildPartial() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = + new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(this); + result.blockHash_ = blockHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + .getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** bytes blockHash = 1; */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** bytes blockHash = 1; */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockTransactionCountByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockTransactionCountByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getBlockTransactionCountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockTransactionCount) + com.google.protobuf.MessageOrBuilder { + + /** uint32 txCount = 1; */ + int getTxCount(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} */ + public static final class rsp_getBlockTransactionCount + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) + rsp_getBlockTransactionCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockTransactionCount.newBuilder() to construct. + private rsp_getBlockTransactionCount( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getBlockTransactionCount() { + txCount_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getBlockTransactionCount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + txCount_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + .Builder + .class); + } + + public static final int TXCOUNT_FIELD_NUMBER = 1; + private int txCount_; + /** uint32 txCount = 1; */ + public int getTxCount() { + return txCount_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txCount_ != 0) { + output.writeUInt32(1, txCount_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, txCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other = + (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) obj; + + boolean result = true; + result = result && (getTxCount() == other.getTxCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTxCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) + org.aion.api.server.pb.Message.rsp_getBlockTransactionCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txCount_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount build() { + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = + new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(this); + result.txCount_ = txCount_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other) { + if (other + == org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + .getDefaultInstance()) return this; + if (other.getTxCount() != 0) { + setTxCount(other.getTxCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int txCount_; + /** uint32 txCount = 1; */ + public int getTxCount() { + return txCount_; + } + /** uint32 txCount = 1; */ + public Builder setTxCount(int value) { + + txCount_ = value; + onChanged(); + return this; + } + /** uint32 txCount = 1; */ + public Builder clearTxCount() { + + txCount_ = 0; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) + private static final org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlockTransactionCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockTransactionCount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getBlockTransactionCountByNumberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + com.google.protobuf.MessageOrBuilder { + + /** uint64 blockNumber = 1; */ + long getBlockNumber(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} */ + public static final class req_getBlockTransactionCountByNumber + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + req_getBlockTransactionCountByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockTransactionCountByNumber.newBuilder() to construct. + private req_getBlockTransactionCountByNumber( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBlockTransactionCountByNumber() { + blockNumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBlockTransactionCountByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + .class, + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + .Builder + .class); + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other = + (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + .class, + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber build() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + buildPartial() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = + new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber( + this); + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + .getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber(); + } + + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + req_getBlockTransactionCountByNumber>() { + public req_getBlockTransactionCountByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockTransactionCountByNumber( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getTransactionByBlockHashAndIndexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + com.google.protobuf.MessageOrBuilder { + + /** bytes blockHash = 1; */ + com.google.protobuf.ByteString getBlockHash(); + + /** uint32 txIndex = 2; */ + int getTxIndex(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} */ + public static final class req_getTransactionByBlockHashAndIndex + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + req_getTransactionByBlockHashAndIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionByBlockHashAndIndex.newBuilder() to construct. + private req_getTransactionByBlockHashAndIndex( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getTransactionByBlockHashAndIndex() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + txIndex_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getTransactionByBlockHashAndIndex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + blockHash_ = input.readBytes(); + break; + } + case 16: + { + txIndex_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + .class, + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + .Builder + .class); + } + + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + + public static final int TXINDEX_FIELD_NUMBER = 2; + private int txIndex_; + /** uint32 txIndex = 2; */ + public int getTxIndex() { + return txIndex_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + if (txIndex_ != 0) { + output.writeUInt32(2, txIndex_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, txIndex_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other = + (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) obj; + + boolean result = true; + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && (getTxIndex() == other.getTxIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + .class, + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + txIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex build() { + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = + new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex( + this); + result.blockHash_ = blockHash_; + result.txIndex_ = txIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other) { + if (other + == org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + .getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** bytes blockHash = 1; */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** bytes blockHash = 1; */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + private int txIndex_; + /** uint32 txIndex = 2; */ + public int getTxIndex() { + return txIndex_; + } + /** uint32 txIndex = 2; */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** uint32 txIndex = 2; */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + private static final org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex(); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + req_getTransactionByBlockHashAndIndex>() { + public req_getTransactionByBlockHashAndIndex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionByBlockHashAndIndex( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getTransactionByBlockNumberAndIndexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + com.google.protobuf.MessageOrBuilder { + + /** uint64 blockNumber = 1; */ + long getBlockNumber(); + + /** uint32 txIndex = 2; */ + int getTxIndex(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} */ + public static final class req_getTransactionByBlockNumberAndIndex + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + req_getTransactionByBlockNumberAndIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionByBlockNumberAndIndex.newBuilder() to construct. + private req_getTransactionByBlockNumberAndIndex( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getTransactionByBlockNumberAndIndex() { + blockNumber_ = 0L; + txIndex_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getTransactionByBlockNumberAndIndex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blockNumber_ = input.readUInt64(); + break; + } + case 16: + { + txIndex_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + .class, + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + .Builder + .class); + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + + public static final int TXINDEX_FIELD_NUMBER = 2; + private int txIndex_; + /** uint32 txIndex = 2; */ + public int getTxIndex() { + return txIndex_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (txIndex_ != 0) { + output.writeUInt32(2, txIndex_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, txIndex_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other = + (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) obj; + + boolean result = true; + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && (getTxIndex() == other.getTxIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message + .req_getTransactionByBlockNumberAndIndex + .class, + org.aion.api.server.pb.Message + .req_getTransactionByBlockNumberAndIndex + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + txIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex build() { + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = + new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex( + this); + result.blockNumber_ = blockNumber_; + result.txIndex_ = txIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other) { + if (other + == org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + .getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_; + /** uint64 blockNumber = 1; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 1; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 1; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private int txIndex_; + /** uint32 txIndex = 2; */ + public int getTxIndex() { + return txIndex_; + } + /** uint32 txIndex = 2; */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** uint32 txIndex = 2; */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + private static final org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex(); + } + + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + req_getTransactionByBlockNumberAndIndex>() { + public req_getTransactionByBlockNumberAndIndex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionByBlockNumberAndIndex( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getTransactionReceiptOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionReceipt) + com.google.protobuf.MessageOrBuilder { + + /** bytes txHash = 1; */ + com.google.protobuf.ByteString getTxHash(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} */ + public static final class req_getTransactionReceipt + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionReceipt) + req_getTransactionReceiptOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionReceipt.newBuilder() to construct. + private req_getTransactionReceipt( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getTransactionReceipt() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getTransactionReceipt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionReceipt.class, + org.aion.api.server.pb.Message.req_getTransactionReceipt.Builder.class); + } + + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionReceipt other = + (org.aion.api.server.pb.Message.req_getTransactionReceipt) obj; + + boolean result = true; + result = result && getTxHash().equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getTransactionReceipt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionReceipt) + org.aion.api.server.pb.Message.req_getTransactionReceiptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionReceipt.class, + org.aion.api.server.pb.Message.req_getTransactionReceipt + .Builder + .class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionReceipt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionReceipt + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionReceipt + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionReceipt build() { + org.aion.api.server.pb.Message.req_getTransactionReceipt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionReceipt buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionReceipt result = + new org.aion.api.server.pb.Message.req_getTransactionReceipt(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getTransactionReceipt) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getTransactionReceipt other) { + if (other + == org.aion.api.server.pb.Message.req_getTransactionReceipt + .getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionReceipt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getTransactionReceipt) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 1; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 1; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 1; */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionReceipt) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionReceipt) + private static final org.aion.api.server.pb.Message.req_getTransactionReceipt + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionReceipt(); + } + + public static org.aion.api.server.pb.Message.req_getTransactionReceipt + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getTransactionReceipt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionReceipt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getTransactionReceipt + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getTransactionReceiptOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionReceipt) + com.google.protobuf.MessageOrBuilder { + + /** uint32 txIndex = 1; */ + int getTxIndex(); + + /** uint64 blockNumber = 2; */ + long getBlockNumber(); + + /** uint64 nrgConsumed = 3; */ + long getNrgConsumed(); + + /** uint64 cumulativeNrgUsed = 4; */ + long getCumulativeNrgUsed(); + + /** bytes blockHash = 5; */ + com.google.protobuf.ByteString getBlockHash(); + + /** bytes txHash = 6; */ + com.google.protobuf.ByteString getTxHash(); + + /** bytes from = 7; */ + com.google.protobuf.ByteString getFrom(); + + /** bytes to = 8; */ + com.google.protobuf.ByteString getTo(); + + /** bytes contractAddress = 9; */ + com.google.protobuf.ByteString getContractAddress(); + + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + java.util.List getLogsList(); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + org.aion.api.server.pb.Message.t_LgEle getLogs(int index); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + int getLogsCount(); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + java.util.List + getLogsOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} */ + public static final class rsp_getTransactionReceipt + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) + rsp_getTransactionReceiptOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getTransactionReceipt.newBuilder() to construct. + private rsp_getTransactionReceipt( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getTransactionReceipt() { + txIndex_ = 0; + blockNumber_ = 0L; + nrgConsumed_ = 0L; + cumulativeNrgUsed_ = 0L; + blockHash_ = com.google.protobuf.ByteString.EMPTY; + txHash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + logs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getTransactionReceipt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + txIndex_ = input.readUInt32(); + break; + } + case 16: + { + blockNumber_ = input.readUInt64(); + break; + } + case 24: + { + nrgConsumed_ = input.readUInt64(); + break; + } + case 32: + { + cumulativeNrgUsed_ = input.readUInt64(); + break; + } + case 42: + { + blockHash_ = input.readBytes(); + break; + } + case 50: + { + txHash_ = input.readBytes(); + break; + } + case 58: + { + from_ = input.readBytes(); + break; + } + case 66: + { + to_ = input.readBytes(); + break; + } + case 74: + { + contractAddress_ = input.readBytes(); + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_LgEle>(); + mutable_bitField0_ |= 0x00000200; + } + logs_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_LgEle.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, + org.aion.api.server.pb.Message.rsp_getTransactionReceipt.Builder.class); + } + + private int bitField0_; + public static final int TXINDEX_FIELD_NUMBER = 1; + private int txIndex_; + /** uint32 txIndex = 1; */ + public int getTxIndex() { + return txIndex_; + } + + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blockNumber_; + /** uint64 blockNumber = 2; */ + public long getBlockNumber() { + return blockNumber_; + } + + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + + public static final int CUMULATIVENRGUSED_FIELD_NUMBER = 4; + private long cumulativeNrgUsed_; + /** uint64 cumulativeNrgUsed = 4; */ + public long getCumulativeNrgUsed() { + return cumulativeNrgUsed_; + } + + public static final int BLOCKHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString blockHash_; + /** bytes blockHash = 5; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + + public static final int TXHASH_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString txHash_; + /** bytes txHash = 6; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + + public static final int FROM_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString from_; + /** bytes from = 7; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + + public static final int TO_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString to_; + /** bytes to = 8; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + + public static final int CONTRACTADDRESS_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString contractAddress_; + /** bytes contractAddress = 9; */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } + + public static final int LOGS_FIELD_NUMBER = 10; + private java.util.List logs_; + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public java.util.List getLogsList() { + return logs_; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public int getLogsCount() { + return logs_.size(); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + return logs_.get(index); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { + return logs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txIndex_ != 0) { + output.writeUInt32(1, txIndex_); + } + if (blockNumber_ != 0L) { + output.writeUInt64(2, blockNumber_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (cumulativeNrgUsed_ != 0L) { + output.writeUInt64(4, cumulativeNrgUsed_); + } + if (!blockHash_.isEmpty()) { + output.writeBytes(5, blockHash_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(6, txHash_); + } + if (!from_.isEmpty()) { + output.writeBytes(7, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(8, to_); + } + if (!contractAddress_.isEmpty()) { + output.writeBytes(9, contractAddress_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(10, logs_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, txIndex_); + } + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blockNumber_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); + } + if (cumulativeNrgUsed_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeUInt64Size( + 4, cumulativeNrgUsed_); + } + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, blockHash_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, txHash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, to_); + } + if (!contractAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, contractAddress_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, logs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getTransactionReceipt other = + (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) obj; + + boolean result = true; + result = result && (getTxIndex() == other.getTxIndex()); + result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && (getNrgConsumed() == other.getNrgConsumed()); + result = result && (getCumulativeNrgUsed() == other.getCumulativeNrgUsed()); + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && getTxHash().equals(other.getTxHash()); + result = result && getFrom().equals(other.getFrom()); + result = result && getTo().equals(other.getTo()); + result = result && getContractAddress().equals(other.getContractAddress()); + result = result && getLogsList().equals(other.getLogsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); + hash = (37 * hash) + CUMULATIVENRGUSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCumulativeNrgUsed()); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getContractAddress().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getTransactionReceipt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) + org.aion.api.server.pb.Message.rsp_getTransactionReceiptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, + org.aion.api.server.pb.Message.rsp_getTransactionReceipt + .Builder + .class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getTransactionReceipt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + txIndex_ = 0; + + blockNumber_ = 0L; + + nrgConsumed_ = 0L; + + cumulativeNrgUsed_ = 0L; + + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + txHash_ = com.google.protobuf.ByteString.EMPTY; + + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + logsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getTransactionReceipt + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt build() { + org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt buildPartial() { + org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = + new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.txIndex_ = txIndex_; + result.blockNumber_ = blockNumber_; + result.nrgConsumed_ = nrgConsumed_; + result.cumulativeNrgUsed_ = cumulativeNrgUsed_; + result.blockHash_ = blockHash_; + result.txHash_ = txHash_; + result.from_ = from_; + result.to_ = to_; + result.contractAddress_ = contractAddress_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_getTransactionReceipt other) { + if (other + == org.aion.api.server.pb.Message.rsp_getTransactionReceipt + .getDefaultInstance()) return this; + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getCumulativeNrgUsed() != 0L) { + setCumulativeNrgUsed(other.getCumulativeNrgUsed()); + } + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { + setContractAddress(other.getContractAddress()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000200); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLogsFieldBuilder() + : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getTransactionReceipt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int txIndex_; + /** uint32 txIndex = 1; */ + public int getTxIndex() { + return txIndex_; + } + /** uint32 txIndex = 1; */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** uint32 txIndex = 1; */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + private long blockNumber_; + /** uint64 blockNumber = 2; */ + public long getBlockNumber() { + return blockNumber_; + } + /** uint64 blockNumber = 2; */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** uint64 blockNumber = 2; */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_; + /** uint64 nrgConsumed = 3; */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** uint64 nrgConsumed = 3; */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** uint64 nrgConsumed = 3; */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long cumulativeNrgUsed_; + /** uint64 cumulativeNrgUsed = 4; */ + public long getCumulativeNrgUsed() { + return cumulativeNrgUsed_; + } + /** uint64 cumulativeNrgUsed = 4; */ + public Builder setCumulativeNrgUsed(long value) { + + cumulativeNrgUsed_ = value; + onChanged(); + return this; + } + /** uint64 cumulativeNrgUsed = 4; */ + public Builder clearCumulativeNrgUsed() { + + cumulativeNrgUsed_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString blockHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockHash = 5; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** bytes blockHash = 5; */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** bytes blockHash = 5; */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** bytes txHash = 6; */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** bytes txHash = 6; */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** bytes txHash = 6; */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 7; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** bytes from = 7; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** bytes from = 7; */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** bytes to = 8; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** bytes to = 8; */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** bytes to = 8; */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contractAddress_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes contractAddress = 9; */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } + /** bytes contractAddress = 9; */ + public Builder setContractAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddress_ = value; + onChanged(); + return this; + } + /** bytes contractAddress = 9; */ + public Builder clearContractAddress() { + + contractAddress_ = getDefaultInstance().getContractAddress(); + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, + org.aion.api.server.pb.Message.t_LgEle.Builder, + org.aion.api.server.pb.Message.t_LgEleOrBuilder> + logsBuilder_; + + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder setLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder setLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder addLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder addLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder(int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { + return getLogsFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder(int index) { + return getLogsFieldBuilder() + .addBuilder( + index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, + org.aion.api.server.pb.Message.t_LgEle.Builder, + org.aion.api.server.pb.Message.t_LgEleOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, + org.aion.api.server.pb.Message.t_LgEle.Builder, + org.aion.api.server.pb.Message.t_LgEleOrBuilder>( + logs_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) + private static final org.aion.api.server.pb.Message.rsp_getTransactionReceipt + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(); + } + + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getTransactionReceipt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getTransactionReceipt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_getUncleByBlockHashAndIndexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + com.google.protobuf.MessageOrBuilder { + + /** bytes blockHash = 1; */ + com.google.protobuf.ByteString getBlockHash(); + + /** uint32 index = 2; */ + int getIndex(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} */ + public static final class req_getUncleByBlockHashAndIndex + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + req_getUncleByBlockHashAndIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getUncleByBlockHashAndIndex.newBuilder() to construct. + private req_getUncleByBlockHashAndIndex( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getUncleByBlockHashAndIndex() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + index_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getUncleByBlockHashAndIndex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + blockHash_ = input.readBytes(); + break; + } + case 16: + { + index_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.class, + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + .Builder + .class); + } + + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + + public static final int INDEX_FIELD_NUMBER = 2; + private int index_; + /** uint32 index = 2; */ + public int getIndex() { + return index_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + if (index_ != 0) { + output.writeUInt32(2, index_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, index_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other = + (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) obj; + + boolean result = true; + result = result && getBlockHash().equals(other.getBlockHash()); + result = result && (getIndex() == other.getIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + .class, + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + index_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + } + + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex build() { + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex buildPartial() { + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = + new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(this); + result.blockHash_ = blockHash_; + result.index_ = index_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other) { + if (other + == org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + .getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes blockHash = 1; */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** bytes blockHash = 1; */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** bytes blockHash = 1; */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + private int index_; + /** uint32 index = 2; */ + public int getIndex() { + return index_; + } + /** uint32 index = 2; */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** uint32 index = 2; */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + private static final org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(); + } + + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getUncleByBlockHashAndIndex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getUncleByBlockHashAndIndex(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getCompilersOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCompilers) + com.google.protobuf.MessageOrBuilder { + + /** repeated string compiler = 1; */ + java.util.List getCompilerList(); + /** repeated string compiler = 1; */ + int getCompilerCount(); + /** repeated string compiler = 1; */ + java.lang.String getCompiler(int index); + /** repeated string compiler = 1; */ + com.google.protobuf.ByteString getCompilerBytes(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} */ + public static final class rsp_getCompilers extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCompilers) + rsp_getCompilersOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getCompilers.newBuilder() to construct. + private rsp_getCompilers(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getCompilers() { + compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getCompilers( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + compiler_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = compiler_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCompilers.class, + org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); + } + + public static final int COMPILER_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList compiler_; + /** repeated string compiler = 1; */ + public com.google.protobuf.ProtocolStringList getCompilerList() { + return compiler_; + } + /** repeated string compiler = 1; */ + public int getCompilerCount() { + return compiler_.size(); + } + /** repeated string compiler = 1; */ + public java.lang.String getCompiler(int index) { + return compiler_.get(index); + } + /** repeated string compiler = 1; */ + public com.google.protobuf.ByteString getCompilerBytes(int index) { + return compiler_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < compiler_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, compiler_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < compiler_.size(); i++) { + dataSize += computeStringSizeNoTag(compiler_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompilerList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCompilers)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getCompilers other = + (org.aion.api.server.pb.Message.rsp_getCompilers) obj; + + boolean result = true; + result = result && getCompilerList().equals(other.getCompilerList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompilerCount() > 0) { + hash = (37 * hash) + COMPILER_FIELD_NUMBER; + hash = (53 * hash) + getCompilerList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getCompilers prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCompilers) + org.aion.api.server.pb.Message.rsp_getCompilersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCompilers.class, + org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getCompilers.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getCompilers build() { + org.aion.api.server.pb.Message.rsp_getCompilers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getCompilers buildPartial() { + org.aion.api.server.pb.Message.rsp_getCompilers result = + new org.aion.api.server.pb.Message.rsp_getCompilers(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = compiler_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.compiler_ = compiler_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getCompilers) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getCompilers) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCompilers other) { + if (other == org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance()) + return this; + if (!other.compiler_.isEmpty()) { + if (compiler_.isEmpty()) { + compiler_ = other.compiler_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompilerIsMutable(); + compiler_.addAll(other.compiler_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getCompilers parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getCompilers) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList compiler_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCompilerIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = new com.google.protobuf.LazyStringArrayList(compiler_); + bitField0_ |= 0x00000001; + } + } + /** repeated string compiler = 1; */ + public com.google.protobuf.ProtocolStringList getCompilerList() { + return compiler_.getUnmodifiableView(); + } + /** repeated string compiler = 1; */ + public int getCompilerCount() { + return compiler_.size(); + } + /** repeated string compiler = 1; */ + public java.lang.String getCompiler(int index) { + return compiler_.get(index); + } + /** repeated string compiler = 1; */ + public com.google.protobuf.ByteString getCompilerBytes(int index) { + return compiler_.getByteString(index); + } + /** repeated string compiler = 1; */ + public Builder setCompiler(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompilerIsMutable(); + compiler_.set(index, value); + onChanged(); + return this; + } + /** repeated string compiler = 1; */ + public Builder addCompiler(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompilerIsMutable(); + compiler_.add(value); + onChanged(); + return this; + } + /** repeated string compiler = 1; */ + public Builder addAllCompiler(java.lang.Iterable values) { + ensureCompilerIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compiler_); + onChanged(); + return this; + } + /** repeated string compiler = 1; */ + public Builder clearCompiler() { + compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** repeated string compiler = 1; */ + public Builder addCompilerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompilerIsMutable(); + compiler_.add(value); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCompilers) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCompilers) + private static final org.aion.api.server.pb.Message.rsp_getCompilers DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCompilers(); + } + + public static org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getCompilers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getCompilers(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_compileSolidityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compileSolidity) + com.google.protobuf.MessageOrBuilder { + + /** string source = 1; */ + java.lang.String getSource(); + /** string source = 1; */ + com.google.protobuf.ByteString getSourceBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} */ + public static final class req_compileSolidity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compileSolidity) + req_compileSolidityOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_compileSolidity.newBuilder() to construct. + private req_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_compileSolidity() { + source_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_compileSolidity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compileSolidity.class, + org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object source_; + /** string source = 1; */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** string source = 1; */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_compileSolidity)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_compileSolidity other = + (org.aion.api.server.pb.Message.req_compileSolidity) obj; + + boolean result = true; + result = result && getSource().equals(other.getSource()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_compileSolidity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compileSolidity) + org.aion.api.server.pb.Message.req_compileSolidityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compileSolidity.class, + org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_compileSolidity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + source_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; + } + + public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_compileSolidity build() { + org.aion.api.server.pb.Message.req_compileSolidity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_compileSolidity buildPartial() { + org.aion.api.server.pb.Message.req_compileSolidity result = + new org.aion.api.server.pb.Message.req_compileSolidity(this); + result.source_ = source_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_compileSolidity) { + return mergeFrom((org.aion.api.server.pb.Message.req_compileSolidity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_compileSolidity other) { + if (other + == org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance()) + return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_compileSolidity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_compileSolidity) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object source_ = ""; + /** string source = 1; */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string source = 1; */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string source = 1; */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** string source = 1; */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** string source = 1; */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compileSolidity) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compileSolidity) + private static final org.aion.api.server.pb.Message.req_compileSolidity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compileSolidity(); + } + + public static org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_compileSolidity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_compileSolidity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_compileSolidityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compileSolidity) + com.google.protobuf.MessageOrBuilder { + + /** string code = 1; */ + java.lang.String getCode(); + /** string code = 1; */ + com.google.protobuf.ByteString getCodeBytes(); + + /** .org.aion.api.server.pb.t_Contract info = 2; */ + boolean hasInfo(); + /** .org.aion.api.server.pb.t_Contract info = 2; */ + org.aion.api.server.pb.Message.t_Contract getInfo(); + /** .org.aion.api.server.pb.t_Contract info = 2; */ + org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} */ + public static final class rsp_compileSolidity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compileSolidity) + rsp_compileSolidityOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_compileSolidity.newBuilder() to construct. + private rsp_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_compileSolidity() { + code_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_compileSolidity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: + { + org.aion.api.server.pb.Message.t_Contract.Builder subBuilder = null; + if (info_ != null) { + subBuilder = info_.toBuilder(); + } + info_ = + input.readMessage( + org.aion.api.server.pb.Message.t_Contract.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(info_); + info_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compileSolidity.class, + org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** string code = 1; */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** string code = 1; */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INFO_FIELD_NUMBER = 2; + private org.aion.api.server.pb.Message.t_Contract info_; + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public boolean hasInfo() { + return info_ != null; + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public org.aion.api.server.pb.Message.t_Contract getInfo() { + return info_ == null + ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() + : info_; + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { + return getInfo(); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (info_ != null) { + output.writeMessage(2, getInfo()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (info_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compileSolidity)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_compileSolidity other = + (org.aion.api.server.pb.Message.rsp_compileSolidity) obj; + + boolean result = true; + result = result && getCode().equals(other.getCode()); + result = result && (hasInfo() == other.hasInfo()); + if (hasInfo()) { + result = result && getInfo().equals(other.getInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_compileSolidity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compileSolidity) + org.aion.api.server.pb.Message.rsp_compileSolidityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compileSolidity.class, + org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_compileSolidity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + code_ = ""; + + if (infoBuilder_ == null) { + info_ = null; + } else { + info_ = null; + infoBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_compileSolidity build() { + org.aion.api.server.pb.Message.rsp_compileSolidity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_compileSolidity buildPartial() { + org.aion.api.server.pb.Message.rsp_compileSolidity result = + new org.aion.api.server.pb.Message.rsp_compileSolidity(this); + result.code_ = code_; + if (infoBuilder_ == null) { + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_compileSolidity) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_compileSolidity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compileSolidity other) { + if (other + == org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance()) + return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_compileSolidity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_compileSolidity) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** string code = 1; */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string code = 1; */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string code = 1; */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** string code = 1; */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** string code = 1; */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private org.aion.api.server.pb.Message.t_Contract info_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_Contract, + org.aion.api.server.pb.Message.t_Contract.Builder, + org.aion.api.server.pb.Message.t_ContractOrBuilder> + infoBuilder_; + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public boolean hasInfo() { + return infoBuilder_ != null || info_ != null; + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public org.aion.api.server.pb.Message.t_Contract getInfo() { + if (infoBuilder_ == null) { + return info_ == null + ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() + : info_; + } else { + return infoBuilder_.getMessage(); + } + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public Builder setInfo(org.aion.api.server.pb.Message.t_Contract value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + onChanged(); + } else { + infoBuilder_.setMessage(value); + } + + return this; + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public Builder setInfo( + org.aion.api.server.pb.Message.t_Contract.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + onChanged(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public Builder mergeInfo(org.aion.api.server.pb.Message.t_Contract value) { + if (infoBuilder_ == null) { + if (info_ != null) { + info_ = + org.aion.api.server.pb.Message.t_Contract + .newBuilder(info_) + .mergeFrom(value) + .buildPartial(); + } else { + info_ = value; + } + onChanged(); + } else { + infoBuilder_.mergeFrom(value); + } + + return this; + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = null; + onChanged(); + } else { + info_ = null; + infoBuilder_ = null; + } + + return this; + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public org.aion.api.server.pb.Message.t_Contract.Builder getInfoBuilder() { + + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null + ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() + : info_; + } + } + /** .org.aion.api.server.pb.t_Contract info = 2; */ + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_Contract, + org.aion.api.server.pb.Message.t_Contract.Builder, + org.aion.api.server.pb.Message.t_ContractOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_Contract, + org.aion.api.server.pb.Message.t_Contract.Builder, + org.aion.api.server.pb.Message.t_ContractOrBuilder>( + getInfo(), getParentForChildren(), isClean()); + info_ = null; + } + return infoBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compileSolidity) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compileSolidity) + private static final org.aion.api.server.pb.Message.rsp_compileSolidity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compileSolidity(); + } + + public static org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_compileSolidity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_compileSolidity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getWorkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getWork) + com.google.protobuf.MessageOrBuilder { + + /** repeated string work = 1; */ + java.util.List getWorkList(); + /** repeated string work = 1; */ + int getWorkCount(); + /** repeated string work = 1; */ + java.lang.String getWork(int index); + /** repeated string work = 1; */ + com.google.protobuf.ByteString getWorkBytes(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getWork} */ + public static final class rsp_getWork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getWork) + rsp_getWorkOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getWork.newBuilder() to construct. + private rsp_getWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getWork() { + work_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getWork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + work_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + work_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + work_ = work_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getWork.class, + org.aion.api.server.pb.Message.rsp_getWork.Builder.class); + } + + public static final int WORK_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList work_; + /** repeated string work = 1; */ + public com.google.protobuf.ProtocolStringList getWorkList() { + return work_; + } + /** repeated string work = 1; */ + public int getWorkCount() { + return work_.size(); + } + /** repeated string work = 1; */ + public java.lang.String getWork(int index) { + return work_.get(index); + } + /** repeated string work = 1; */ + public com.google.protobuf.ByteString getWorkBytes(int index) { + return work_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < work_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, work_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < work_.size(); i++) { + dataSize += computeStringSizeNoTag(work_.getRaw(i)); + } + size += dataSize; + size += 1 * getWorkList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getWork)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getWork other = + (org.aion.api.server.pb.Message.rsp_getWork) obj; + + boolean result = true; + result = result && getWorkList().equals(other.getWorkList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWorkCount() > 0) { + hash = (37 * hash) + WORK_FIELD_NUMBER; + hash = (53 * hash) + getWorkList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getWork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getWork} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getWork) + org.aion.api.server.pb.Message.rsp_getWorkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getWork.class, + org.aion.api.server.pb.Message.rsp_getWork.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getWork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + work_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getWork build() { + org.aion.api.server.pb.Message.rsp_getWork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getWork buildPartial() { + org.aion.api.server.pb.Message.rsp_getWork result = + new org.aion.api.server.pb.Message.rsp_getWork(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + work_ = work_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.work_ = work_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getWork) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getWork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getWork other) { + if (other == org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance()) + return this; + if (!other.work_.isEmpty()) { + if (work_.isEmpty()) { + work_ = other.work_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkIsMutable(); + work_.addAll(other.work_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getWork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getWork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList work_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureWorkIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + work_ = new com.google.protobuf.LazyStringArrayList(work_); + bitField0_ |= 0x00000001; + } + } + /** repeated string work = 1; */ + public com.google.protobuf.ProtocolStringList getWorkList() { + return work_.getUnmodifiableView(); + } + /** repeated string work = 1; */ + public int getWorkCount() { + return work_.size(); + } + /** repeated string work = 1; */ + public java.lang.String getWork(int index) { + return work_.get(index); + } + /** repeated string work = 1; */ + public com.google.protobuf.ByteString getWorkBytes(int index) { + return work_.getByteString(index); + } + /** repeated string work = 1; */ + public Builder setWork(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkIsMutable(); + work_.set(index, value); + onChanged(); + return this; + } + /** repeated string work = 1; */ + public Builder addWork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkIsMutable(); + work_.add(value); + onChanged(); + return this; + } + /** repeated string work = 1; */ + public Builder addAllWork(java.lang.Iterable values) { + ensureWorkIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, work_); + onChanged(); + return this; + } + /** repeated string work = 1; */ + public Builder clearWork() { + work_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** repeated string work = 1; */ + public Builder addWorkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWorkIsMutable(); + work_.add(value); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getWork) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getWork) + private static final org.aion.api.server.pb.Message.rsp_getWork DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getWork(); + } + + public static org.aion.api.server.pb.Message.rsp_getWork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getWork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getWork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_submitWorkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_submitWork) + com.google.protobuf.MessageOrBuilder { + + /** bytes nonce = 1; */ + com.google.protobuf.ByteString getNonce(); + + /** bytes solution = 2; */ + com.google.protobuf.ByteString getSolution(); + + /** bytes digest = 3; */ + com.google.protobuf.ByteString getDigest(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_submitWork} */ + public static final class req_submitWork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_submitWork) + req_submitWorkOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_submitWork.newBuilder() to construct. + private req_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_submitWork() { + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + digest_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_submitWork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + nonce_ = input.readBytes(); + break; + } + case 18: + { + solution_ = input.readBytes(); + break; + } + case 26: + { + digest_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_submitWork.class, + org.aion.api.server.pb.Message.req_submitWork.Builder.class); + } + + public static final int NONCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 1; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + public static final int SOLUTION_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString solution_; + /** bytes solution = 2; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + + public static final int DIGEST_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString digest_; + /** bytes digest = 3; */ + public com.google.protobuf.ByteString getDigest() { + return digest_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!nonce_.isEmpty()) { + output.writeBytes(1, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(2, solution_); + } + if (!digest_.isEmpty()) { + output.writeBytes(3, digest_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, solution_); + } + if (!digest_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, digest_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_submitWork)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_submitWork other = + (org.aion.api.server.pb.Message.req_submitWork) obj; + + boolean result = true; + result = result && getNonce().equals(other.getNonce()); + result = result && getSolution().equals(other.getSolution()); + result = result && getDigest().equals(other.getDigest()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + DIGEST_FIELD_NUMBER; + hash = (53 * hash) + getDigest().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.req_submitWork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_submitWork} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_submitWork) + org.aion.api.server.pb.Message.req_submitWorkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_submitWork.class, + org.aion.api.server.pb.Message.req_submitWork.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_submitWork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + digest_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + } + + public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_submitWork build() { + org.aion.api.server.pb.Message.req_submitWork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_submitWork buildPartial() { + org.aion.api.server.pb.Message.req_submitWork result = + new org.aion.api.server.pb.Message.req_submitWork(this); + result.nonce_ = nonce_; + result.solution_ = solution_; + result.digest_ = digest_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_submitWork) { + return mergeFrom((org.aion.api.server.pb.Message.req_submitWork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_submitWork other) { + if (other == org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance()) + return this; + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getDigest() != com.google.protobuf.ByteString.EMPTY) { + setDigest(other.getDigest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_submitWork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_submitWork) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 1; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 1; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 1; */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** bytes solution = 2; */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** bytes solution = 2; */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** bytes solution = 2; */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY; + /** bytes digest = 3; */ + public com.google.protobuf.ByteString getDigest() { + return digest_; + } + /** bytes digest = 3; */ + public Builder setDigest(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + digest_ = value; + onChanged(); + return this; + } + /** bytes digest = 3; */ + public Builder clearDigest() { + + digest_ = getDefaultInstance().getDigest(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_submitWork) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_submitWork) + private static final org.aion.api.server.pb.Message.req_submitWork DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_submitWork(); + } + + public static org.aion.api.server.pb.Message.req_submitWork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_submitWork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_submitWork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_submitWorkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_submitWork) + com.google.protobuf.MessageOrBuilder { + + /** bool workAccepted = 1; */ + boolean getWorkAccepted(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} */ + public static final class rsp_submitWork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_submitWork) + rsp_submitWorkOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_submitWork.newBuilder() to construct. + private rsp_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_submitWork() { + workAccepted_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_submitWork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + workAccepted_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_submitWork.class, + org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); + } + + public static final int WORKACCEPTED_FIELD_NUMBER = 1; + private boolean workAccepted_; + /** bool workAccepted = 1; */ + public boolean getWorkAccepted() { + return workAccepted_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workAccepted_ != false) { + output.writeBool(1, workAccepted_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, workAccepted_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_submitWork)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_submitWork other = + (org.aion.api.server.pb.Message.rsp_submitWork) obj; + + boolean result = true; + result = result && (getWorkAccepted() == other.getWorkAccepted()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWorkAccepted()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_submitWork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_submitWork) + org.aion.api.server.pb.Message.rsp_submitWorkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_submitWork.class, + org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_submitWork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + workAccepted_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_submitWork build() { + org.aion.api.server.pb.Message.rsp_submitWork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_submitWork buildPartial() { + org.aion.api.server.pb.Message.rsp_submitWork result = + new org.aion.api.server.pb.Message.rsp_submitWork(this); + result.workAccepted_ = workAccepted_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_submitWork) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_submitWork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_submitWork other) { + if (other == org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance()) + return this; + if (other.getWorkAccepted() != false) { + setWorkAccepted(other.getWorkAccepted()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_submitWork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_submitWork) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean workAccepted_; + /** bool workAccepted = 1; */ + public boolean getWorkAccepted() { + return workAccepted_; + } + /** bool workAccepted = 1; */ + public Builder setWorkAccepted(boolean value) { + + workAccepted_ = value; + onChanged(); + return this; + } + /** bool workAccepted = 1; */ + public Builder clearWorkAccepted() { + + workAccepted_ = false; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_submitWork) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_submitWork) + private static final org.aion.api.server.pb.Message.rsp_submitWork DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_submitWork(); + } + + public static org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_submitWork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_submitWork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_fetchQueuedTransactionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + java.util.List getTxList(); + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + org.aion.api.server.pb.Message.t_AionTx getTx(int index); + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + int getTxCount(); + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + java.util.List + getTxOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} */ + public static final class rsp_fetchQueuedTransactions + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + rsp_fetchQueuedTransactionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_fetchQueuedTransactions.newBuilder() to construct. + private rsp_fetchQueuedTransactions( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_fetchQueuedTransactions() { + tx_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_fetchQueuedTransactions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_AionTx>(); + mutable_bitField0_ |= 0x00000001; + } + tx_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_AionTx.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + .Builder + .class); + } + + public static final int TX_FIELD_NUMBER = 1; + private java.util.List tx_; + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public java.util.List getTxList() { + return tx_; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public java.util.List + getTxOrBuilderList() { + return tx_; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public int getTxCount() { + return tx_.size(); + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { + return tx_.get(index); + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder(int index) { + return tx_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tx_.size(); i++) { + output.writeMessage(1, tx_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tx_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tx_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other = + (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) obj; + + boolean result = true; + result = result && getTxList().equals(other.getTxList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxCount() > 0) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTxList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTxFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions build() { + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions buildPartial() { + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = + new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(this); + int from_bitField0_ = bitField0_; + if (txBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other) { + if (other + == org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + .getDefaultInstance()) return this; + if (txBuilder_ == null) { + if (!other.tx_.isEmpty()) { + if (tx_.isEmpty()) { + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxIsMutable(); + tx_.addAll(other.tx_); + } + onChanged(); + } + } else { + if (!other.tx_.isEmpty()) { + if (txBuilder_.isEmpty()) { + txBuilder_.dispose(); + txBuilder_ = null; + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00000001); + txBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTxFieldBuilder() + : null; + } else { + txBuilder_.addAllMessages(other.tx_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List tx_ = + java.util.Collections.emptyList(); + + private void ensureTxIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = new java.util.ArrayList(tx_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AionTx, + org.aion.api.server.pb.Message.t_AionTx.Builder, + org.aion.api.server.pb.Message.t_AionTxOrBuilder> + txBuilder_; + + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public java.util.List getTxList() { + if (txBuilder_ == null) { + return java.util.Collections.unmodifiableList(tx_); + } else { + return txBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public int getTxCount() { + if (txBuilder_ == null) { + return tx_.size(); + } else { + return txBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { + if (txBuilder_ == null) { + return tx_.get(index); + } else { + return txBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder setTx(int index, org.aion.api.server.pb.Message.t_AionTx value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.set(index, value); + onChanged(); + } else { + txBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder setTx( + int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.set(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder addTx(org.aion.api.server.pb.Message.t_AionTx value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + } else { + txBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder addTx(int index, org.aion.api.server.pb.Message.t_AionTx value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(index, value); + onChanged(); + } else { + txBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder addTx(org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder addTx( + int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder addAllTx( + java.lang.Iterable values) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tx_); + onChanged(); + } else { + txBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public Builder removeTx(int index) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.remove(index); + onChanged(); + } else { + txBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public org.aion.api.server.pb.Message.t_AionTx.Builder getTxBuilder(int index) { + return getTxFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder(int index) { + if (txBuilder_ == null) { + return tx_.get(index); + } else { + return txBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public java.util.List + getTxOrBuilderList() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tx_); + } + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder() { + return getTxFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder(int index) { + return getTxFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ + public java.util.List + getTxBuilderList() { + return getTxFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AionTx, + org.aion.api.server.pb.Message.t_AionTx.Builder, + org.aion.api.server.pb.Message.t_AionTxOrBuilder> + getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AionTx, + org.aion.api.server.pb.Message.t_AionTx.Builder, + org.aion.api.server.pb.Message.t_AionTxOrBuilder>( + tx_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + tx_ = null; + } + return txBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + private static final org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(); + } + + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_fetchQueuedTransactions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_fetchQueuedTransactions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_rawTransactionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_rawTransaction) + com.google.protobuf.MessageOrBuilder { + + /** bytes encodedTx = 1; */ + com.google.protobuf.ByteString getEncodedTx(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} */ + public static final class req_rawTransaction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_rawTransaction) + req_rawTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_rawTransaction.newBuilder() to construct. + private req_rawTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_rawTransaction() { + encodedTx_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_rawTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + encodedTx_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_rawTransaction.class, + org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); + } + + public static final int ENCODEDTX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString encodedTx_; + /** bytes encodedTx = 1; */ + public com.google.protobuf.ByteString getEncodedTx() { + return encodedTx_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!encodedTx_.isEmpty()) { + output.writeBytes(1, encodedTx_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!encodedTx_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, encodedTx_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_rawTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_rawTransaction other = + (org.aion.api.server.pb.Message.req_rawTransaction) obj; + + boolean result = true; + result = result && getEncodedTx().equals(other.getEncodedTx()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENCODEDTX_FIELD_NUMBER; + hash = (53 * hash) + getEncodedTx().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_rawTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_rawTransaction) + org.aion.api.server.pb.Message.req_rawTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_rawTransaction.class, + org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_rawTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + encodedTx_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_rawTransaction build() { + org.aion.api.server.pb.Message.req_rawTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_rawTransaction buildPartial() { + org.aion.api.server.pb.Message.req_rawTransaction result = + new org.aion.api.server.pb.Message.req_rawTransaction(this); + result.encodedTx_ = encodedTx_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_rawTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.req_rawTransaction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_rawTransaction other) { + if (other == org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance()) + return this; + if (other.getEncodedTx() != com.google.protobuf.ByteString.EMPTY) { + setEncodedTx(other.getEncodedTx()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_rawTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_rawTransaction) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString encodedTx_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes encodedTx = 1; */ + public com.google.protobuf.ByteString getEncodedTx() { + return encodedTx_; + } + /** bytes encodedTx = 1; */ + public Builder setEncodedTx(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + encodedTx_ = value; + onChanged(); + return this; + } + /** bytes encodedTx = 1; */ + public Builder clearEncodedTx() { + + encodedTx_ = getDefaultInstance().getEncodedTx(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_rawTransaction) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_rawTransaction) + private static final org.aion.api.server.pb.Message.req_rawTransaction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_rawTransaction(); + } + + public static org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_rawTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_rawTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_estimateNrgOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_estimateNrg) + com.google.protobuf.MessageOrBuilder { + + /** bytes from = 1; */ + com.google.protobuf.ByteString getFrom(); + + /** bytes to = 2; */ + com.google.protobuf.ByteString getTo(); + + /** bytes value = 3; */ + com.google.protobuf.ByteString getValue(); + + /** bytes data = 4; */ + com.google.protobuf.ByteString getData(); + + /** uint64 nrg = 5; */ + long getNrg(); + + /** uint64 nrgPrice = 6; */ + long getNrgPrice(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} */ + public static final class req_estimateNrg extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_estimateNrg) + req_estimateNrgOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_estimateNrg.newBuilder() to construct. + private req_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_estimateNrg() { + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nrg_ = 0L; + nrgPrice_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_estimateNrg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + from_ = input.readBytes(); + break; + } + case 18: + { + to_ = input.readBytes(); + break; + } + case 26: + { + value_ = input.readBytes(); + break; + } + case 34: + { + data_ = input.readBytes(); + break; + } + case 40: + { + nrg_ = input.readUInt64(); + break; + } + case 48: + { + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_estimateNrg.class, + org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); + } + + public static final int FROM_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString from_; + /** bytes from = 1; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + + public static final int TO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString to_; + /** bytes to = 2; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + + public static final int VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString value_; + /** bytes value = 3; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int DATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString data_; + /** bytes data = 4; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int NRG_FIELD_NUMBER = 5; + private long nrg_; + /** uint64 nrg = 5; */ + public long getNrg() { + return nrg_; + } + + public static final int NRGPRICE_FIELD_NUMBER = 6; + private long nrgPrice_; + /** uint64 nrgPrice = 6; */ + public long getNrgPrice() { + return nrgPrice_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!from_.isEmpty()) { + output.writeBytes(1, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(2, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(3, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(4, data_); + } + if (nrg_ != 0L) { + output.writeUInt64(5, nrg_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(6, nrgPrice_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, data_); + } + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, nrg_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_estimateNrg)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_estimateNrg other = + (org.aion.api.server.pb.Message.req_estimateNrg) obj; + + boolean result = true; + result = result && getFrom().equals(other.getFrom()); + result = result && getTo().equals(other.getTo()); + result = result && getValue().equals(other.getValue()); + result = result && getData().equals(other.getData()); + result = result && (getNrg() == other.getNrg()); + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.req_estimateNrg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_estimateNrg) + org.aion.api.server.pb.Message.req_estimateNrgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_estimateNrg.class, + org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_estimateNrg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nrg_ = 0L; + + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + } + + public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_estimateNrg build() { + org.aion.api.server.pb.Message.req_estimateNrg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_estimateNrg buildPartial() { + org.aion.api.server.pb.Message.req_estimateNrg result = + new org.aion.api.server.pb.Message.req_estimateNrg(this); + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nrg_ = nrg_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_estimateNrg) { + return mergeFrom((org.aion.api.server.pb.Message.req_estimateNrg) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_estimateNrg other) { + if (other == org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance()) + return this; + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_estimateNrg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_estimateNrg) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** bytes from = 1; */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** bytes from = 1; */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** bytes from = 1; */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** bytes to = 2; */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** bytes to = 2; */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** bytes to = 2; */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** bytes value = 3; */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** bytes value = 3; */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** bytes value = 3; */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** bytes data = 4; */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** bytes data = 4; */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** bytes data = 4; */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private long nrg_; + /** uint64 nrg = 5; */ + public long getNrg() { + return nrg_; + } + /** uint64 nrg = 5; */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** uint64 nrg = 5; */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_; + /** uint64 nrgPrice = 6; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 6; */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 6; */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_estimateNrg) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_estimateNrg) + private static final org.aion.api.server.pb.Message.req_estimateNrg DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_estimateNrg(); + } + + public static org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_estimateNrg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_estimateNrg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_estimateNrgOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_estimateNrg) + com.google.protobuf.MessageOrBuilder { + + /** uint64 nrg = 1; */ + long getNrg(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} */ + public static final class rsp_estimateNrg extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_estimateNrg) + rsp_estimateNrgOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_estimateNrg.newBuilder() to construct. + private rsp_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_estimateNrg() { + nrg_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_estimateNrg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + nrg_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_estimateNrg.class, + org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); + } + + public static final int NRG_FIELD_NUMBER = 1; + private long nrg_; + /** uint64 nrg = 1; */ + public long getNrg() { + return nrg_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nrg_ != 0L) { + output.writeUInt64(1, nrg_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nrg_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_estimateNrg)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_estimateNrg other = + (org.aion.api.server.pb.Message.rsp_estimateNrg) obj; + + boolean result = true; + result = result && (getNrg() == other.getNrg()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_estimateNrg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_estimateNrg) + org.aion.api.server.pb.Message.rsp_estimateNrgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_estimateNrg.class, + org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_estimateNrg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + nrg_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_estimateNrg build() { + org.aion.api.server.pb.Message.rsp_estimateNrg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_estimateNrg buildPartial() { + org.aion.api.server.pb.Message.rsp_estimateNrg result = + new org.aion.api.server.pb.Message.rsp_estimateNrg(this); + result.nrg_ = nrg_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_estimateNrg) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_estimateNrg) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_estimateNrg other) { + if (other == org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance()) + return this; + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_estimateNrg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_estimateNrg) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nrg_; + /** uint64 nrg = 1; */ + public long getNrg() { + return nrg_; + } + /** uint64 nrg = 1; */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** uint64 nrg = 1; */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_estimateNrg) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_estimateNrg) + private static final org.aion.api.server.pb.Message.rsp_estimateNrg DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_estimateNrg(); + } + + public static org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_estimateNrg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_estimateNrg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_miningOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_mining) + com.google.protobuf.MessageOrBuilder { + + /** bool mining = 1; */ + boolean getMining(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_mining} */ + public static final class rsp_mining extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_mining) + rsp_miningOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_mining.newBuilder() to construct. + private rsp_mining(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_mining() { + mining_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_mining( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + mining_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_mining.class, + org.aion.api.server.pb.Message.rsp_mining.Builder.class); + } + + public static final int MINING_FIELD_NUMBER = 1; + private boolean mining_; + /** bool mining = 1; */ + public boolean getMining() { + return mining_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mining_ != false) { + output.writeBool(1, mining_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mining_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, mining_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_mining)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_mining other = + (org.aion.api.server.pb.Message.rsp_mining) obj; + + boolean result = true; + result = result && (getMining() == other.getMining()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMining()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_mining prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_mining} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_mining) + org.aion.api.server.pb.Message.rsp_miningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_mining.class, + org.aion.api.server.pb.Message.rsp_mining.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_mining.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + mining_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_mining build() { + org.aion.api.server.pb.Message.rsp_mining result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_mining buildPartial() { + org.aion.api.server.pb.Message.rsp_mining result = + new org.aion.api.server.pb.Message.rsp_mining(this); + result.mining_ = mining_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_mining) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_mining) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_mining other) { + if (other == org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance()) + return this; + if (other.getMining() != false) { + setMining(other.getMining()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_mining parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_mining) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean mining_; + /** bool mining = 1; */ + public boolean getMining() { + return mining_; + } + /** bool mining = 1; */ + public Builder setMining(boolean value) { + + mining_ = value; + onChanged(); + return this; + } + /** bool mining = 1; */ + public Builder clearMining() { + + mining_ = false; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_mining) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_mining) + private static final org.aion.api.server.pb.Message.rsp_mining DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_mining(); + } + + public static org.aion.api.server.pb.Message.rsp_mining getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_mining parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_mining(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_syncingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncing) + com.google.protobuf.MessageOrBuilder { + + /** bool syncing = 1; */ + boolean getSyncing(); + + /** uint64 currentBlock = 2; */ + long getCurrentBlock(); + + /** uint64 highestBlock = 3; */ + long getHighestBlock(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_syncing} */ + public static final class rsp_syncing extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncing) + rsp_syncingOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_syncing.newBuilder() to construct. + private rsp_syncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_syncing() { + syncing_ = false; + currentBlock_ = 0L; + highestBlock_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_syncing( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + syncing_ = input.readBool(); + break; + } + case 16: + { + currentBlock_ = input.readUInt64(); + break; + } + case 24: + { + highestBlock_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncing.class, + org.aion.api.server.pb.Message.rsp_syncing.Builder.class); + } + + public static final int SYNCING_FIELD_NUMBER = 1; + private boolean syncing_; + /** bool syncing = 1; */ + public boolean getSyncing() { + return syncing_; + } + + public static final int CURRENTBLOCK_FIELD_NUMBER = 2; + private long currentBlock_; + /** uint64 currentBlock = 2; */ + public long getCurrentBlock() { + return currentBlock_; + } + + public static final int HIGHESTBLOCK_FIELD_NUMBER = 3; + private long highestBlock_; + /** uint64 highestBlock = 3; */ + public long getHighestBlock() { + return highestBlock_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (syncing_ != false) { + output.writeBool(1, syncing_); + } + if (currentBlock_ != 0L) { + output.writeUInt64(2, currentBlock_); + } + if (highestBlock_ != 0L) { + output.writeUInt64(3, highestBlock_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (syncing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, syncing_); + } + if (currentBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, currentBlock_); + } + if (highestBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, highestBlock_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncing)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_syncing other = + (org.aion.api.server.pb.Message.rsp_syncing) obj; + + boolean result = true; + result = result && (getSyncing() == other.getSyncing()); + result = result && (getCurrentBlock() == other.getCurrentBlock()); + result = result && (getHighestBlock() == other.getHighestBlock()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNCING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSyncing()); + hash = (37 * hash) + CURRENTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentBlock()); + hash = (37 * hash) + HIGHESTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHighestBlock()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_syncing} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncing) + org.aion.api.server.pb.Message.rsp_syncingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncing.class, + org.aion.api.server.pb.Message.rsp_syncing.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_syncing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + syncing_ = false; + + currentBlock_ = 0L; + + highestBlock_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_syncing build() { + org.aion.api.server.pb.Message.rsp_syncing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_syncing buildPartial() { + org.aion.api.server.pb.Message.rsp_syncing result = + new org.aion.api.server.pb.Message.rsp_syncing(this); + result.syncing_ = syncing_; + result.currentBlock_ = currentBlock_; + result.highestBlock_ = highestBlock_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_syncing) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_syncing) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncing other) { + if (other == org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance()) + return this; + if (other.getSyncing() != false) { + setSyncing(other.getSyncing()); + } + if (other.getCurrentBlock() != 0L) { + setCurrentBlock(other.getCurrentBlock()); + } + if (other.getHighestBlock() != 0L) { + setHighestBlock(other.getHighestBlock()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_syncing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_syncing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean syncing_; + /** bool syncing = 1; */ + public boolean getSyncing() { + return syncing_; + } + /** bool syncing = 1; */ + public Builder setSyncing(boolean value) { + + syncing_ = value; + onChanged(); + return this; + } + /** bool syncing = 1; */ + public Builder clearSyncing() { + + syncing_ = false; + onChanged(); + return this; + } + + private long currentBlock_; + /** uint64 currentBlock = 2; */ + public long getCurrentBlock() { + return currentBlock_; + } + /** uint64 currentBlock = 2; */ + public Builder setCurrentBlock(long value) { + + currentBlock_ = value; + onChanged(); + return this; + } + /** uint64 currentBlock = 2; */ + public Builder clearCurrentBlock() { + + currentBlock_ = 0L; + onChanged(); + return this; + } + + private long highestBlock_; + /** uint64 highestBlock = 3; */ + public long getHighestBlock() { + return highestBlock_; + } + /** uint64 highestBlock = 3; */ + public Builder setHighestBlock(long value) { + + highestBlock_ = value; + onChanged(); + return this; + } + /** uint64 highestBlock = 3; */ + public Builder clearHighestBlock() { + + highestBlock_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncing) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncing) + private static final org.aion.api.server.pb.Message.rsp_syncing DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncing(); + } + + public static org.aion.api.server.pb.Message.rsp_syncing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_syncing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_syncing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_hashrateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_hashrate) + com.google.protobuf.MessageOrBuilder { + + /** uint64 hashrate = 1; */ + long getHashrate(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} */ + public static final class rsp_hashrate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_hashrate) + rsp_hashrateOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_hashrate.newBuilder() to construct. + private rsp_hashrate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_hashrate() { + hashrate_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_hashrate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + hashrate_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_hashrate.class, + org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); + } + + public static final int HASHRATE_FIELD_NUMBER = 1; + private long hashrate_; + /** uint64 hashrate = 1; */ + public long getHashrate() { + return hashrate_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hashrate_ != 0L) { + output.writeUInt64(1, hashrate_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hashrate_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, hashrate_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_hashrate)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_hashrate other = + (org.aion.api.server.pb.Message.rsp_hashrate) obj; + + boolean result = true; + result = result && (getHashrate() == other.getHashrate()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASHRATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHashrate()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_hashrate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_hashrate) + org.aion.api.server.pb.Message.rsp_hashrateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_hashrate.class, + org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_hashrate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + hashrate_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_hashrate build() { + org.aion.api.server.pb.Message.rsp_hashrate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_hashrate buildPartial() { + org.aion.api.server.pb.Message.rsp_hashrate result = + new org.aion.api.server.pb.Message.rsp_hashrate(this); + result.hashrate_ = hashrate_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_hashrate) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_hashrate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_hashrate other) { + if (other == org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance()) + return this; + if (other.getHashrate() != 0L) { + setHashrate(other.getHashrate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_hashrate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_hashrate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long hashrate_; + /** uint64 hashrate = 1; */ + public long getHashrate() { + return hashrate_; + } + /** uint64 hashrate = 1; */ + public Builder setHashrate(long value) { + + hashrate_ = value; + onChanged(); + return this; + } + /** uint64 hashrate = 1; */ + public Builder clearHashrate() { + + hashrate_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_hashrate) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_hashrate) + private static final org.aion.api.server.pb.Message.rsp_hashrate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_hashrate(); + } + + public static org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_hashrate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_hashrate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getActiveNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getActiveNodes) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + java.util.List getNodeList(); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + org.aion.api.server.pb.Message.t_Node getNode(int index); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + int getNodeCount(); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + java.util.List + getNodeOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} */ + public static final class rsp_getActiveNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getActiveNodes) + rsp_getActiveNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getActiveNodes.newBuilder() to construct. + private rsp_getActiveNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getActiveNodes() { + node_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getActiveNodes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_Node>(); + mutable_bitField0_ |= 0x00000001; + } + node_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_Node.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getActiveNodes.class, + org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); + } + + public static final int NODE_FIELD_NUMBER = 1; + private java.util.List node_; + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List getNodeList() { + return node_; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List + getNodeOrBuilderList() { + return node_; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public int getNodeCount() { + return node_.size(); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + return node_.get(index); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { + return node_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < node_.size(); i++) { + output.writeMessage(1, node_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < node_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, node_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getActiveNodes other = + (org.aion.api.server.pb.Message.rsp_getActiveNodes) obj; + + boolean result = true; + result = result && getNodeList().equals(other.getNodeList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeCount() > 0) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getActiveNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getActiveNodes) + org.aion.api.server.pb.Message.rsp_getActiveNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getActiveNodes.class, + org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getActiveNodes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNodeFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getActiveNodes build() { + org.aion.api.server.pb.Message.rsp_getActiveNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getActiveNodes buildPartial() { + org.aion.api.server.pb.Message.rsp_getActiveNodes result = + new org.aion.api.server.pb.Message.rsp_getActiveNodes(this); + int from_bitField0_ = bitField0_; + if (nodeBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.node_ = node_; + } else { + result.node_ = nodeBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getActiveNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getActiveNodes other) { + if (other == org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance()) + return this; + if (nodeBuilder_ == null) { + if (!other.node_.isEmpty()) { + if (node_.isEmpty()) { + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeIsMutable(); + node_.addAll(other.node_); + } + onChanged(); + } + } else { + if (!other.node_.isEmpty()) { + if (nodeBuilder_.isEmpty()) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodeFieldBuilder() + : null; + } else { + nodeBuilder_.addAllMessages(other.node_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getActiveNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getActiveNodes) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List node_ = + java.util.Collections.emptyList(); + + private void ensureNodeIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = new java.util.ArrayList(node_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, + org.aion.api.server.pb.Message.t_Node.Builder, + org.aion.api.server.pb.Message.t_NodeOrBuilder> + nodeBuilder_; + + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List getNodeList() { + if (nodeBuilder_ == null) { + return java.util.Collections.unmodifiableList(node_); + } else { + return nodeBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public int getNodeCount() { + if (nodeBuilder_ == null) { + return node_.size(); + } else { + return nodeBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder setNode(int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.set(index, value); + onChanged(); + } else { + nodeBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder setNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(value); + onChanged(); + } else { + nodeBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode(int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(index, value); + onChanged(); + } else { + nodeBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode(org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addAllNode( + java.lang.Iterable values) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, node_); + onChanged(); + } else { + nodeBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder clearNode() { + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder removeNode(int index) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.remove(index); + onChanged(); + } else { + nodeBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder(int index) { + return getNodeFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List + getNodeOrBuilderList() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(node_); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { + return getNodeFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder(int index) { + return getNodeFieldBuilder() + .addBuilder( + index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List + getNodeBuilderList() { + return getNodeFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, + org.aion.api.server.pb.Message.t_Node.Builder, + org.aion.api.server.pb.Message.t_NodeOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, + org.aion.api.server.pb.Message.t_Node.Builder, + org.aion.api.server.pb.Message.t_NodeOrBuilder>( + node_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + node_ = null; + } + return nodeBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getActiveNodes) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getActiveNodes) + private static final org.aion.api.server.pb.Message.rsp_getActiveNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getActiveNodes(); + } + + public static org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getActiveNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getActiveNodes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getStaticNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStaticNodes) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + java.util.List getNodeList(); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + org.aion.api.server.pb.Message.t_Node getNode(int index); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + int getNodeCount(); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + java.util.List + getNodeOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} */ + public static final class rsp_getStaticNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStaticNodes) + rsp_getStaticNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getStaticNodes.newBuilder() to construct. + private rsp_getStaticNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getStaticNodes() { + node_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getStaticNodes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_Node>(); + mutable_bitField0_ |= 0x00000001; + } + node_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_Node.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStaticNodes.class, + org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); + } + + public static final int NODE_FIELD_NUMBER = 1; + private java.util.List node_; + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List getNodeList() { + return node_; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List + getNodeOrBuilderList() { + return node_; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public int getNodeCount() { + return node_.size(); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + return node_.get(index); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { + return node_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < node_.size(); i++) { + output.writeMessage(1, node_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < node_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, node_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getStaticNodes other = + (org.aion.api.server.pb.Message.rsp_getStaticNodes) obj; + + boolean result = true; + result = result && getNodeList().equals(other.getNodeList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeCount() > 0) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getStaticNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStaticNodes) + org.aion.api.server.pb.Message.rsp_getStaticNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStaticNodes.class, + org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getStaticNodes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNodeFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getStaticNodes build() { + org.aion.api.server.pb.Message.rsp_getStaticNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getStaticNodes buildPartial() { + org.aion.api.server.pb.Message.rsp_getStaticNodes result = + new org.aion.api.server.pb.Message.rsp_getStaticNodes(this); + int from_bitField0_ = bitField0_; + if (nodeBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.node_ = node_; + } else { + result.node_ = nodeBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getStaticNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStaticNodes other) { + if (other == org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance()) + return this; + if (nodeBuilder_ == null) { + if (!other.node_.isEmpty()) { + if (node_.isEmpty()) { + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeIsMutable(); + node_.addAll(other.node_); + } + onChanged(); + } + } else { + if (!other.node_.isEmpty()) { + if (nodeBuilder_.isEmpty()) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodeFieldBuilder() + : null; + } else { + nodeBuilder_.addAllMessages(other.node_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getStaticNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getStaticNodes) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List node_ = + java.util.Collections.emptyList(); + + private void ensureNodeIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = new java.util.ArrayList(node_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, + org.aion.api.server.pb.Message.t_Node.Builder, + org.aion.api.server.pb.Message.t_NodeOrBuilder> + nodeBuilder_; + + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List getNodeList() { + if (nodeBuilder_ == null) { + return java.util.Collections.unmodifiableList(node_); + } else { + return nodeBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public int getNodeCount() { + if (nodeBuilder_ == null) { + return node_.size(); + } else { + return nodeBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder setNode(int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.set(index, value); + onChanged(); + } else { + nodeBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder setNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(value); + onChanged(); + } else { + nodeBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode(int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(index, value); + onChanged(); + } else { + nodeBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode(org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder addAllNode( + java.lang.Iterable values) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, node_); + onChanged(); + } else { + nodeBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder clearNode() { + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public Builder removeNode(int index) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.remove(index); + onChanged(); + } else { + nodeBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder(int index) { + return getNodeFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List + getNodeOrBuilderList() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(node_); + } + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { + return getNodeFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder(int index) { + return getNodeFieldBuilder() + .addBuilder( + index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Node node = 1; */ + public java.util.List + getNodeBuilderList() { + return getNodeFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, + org.aion.api.server.pb.Message.t_Node.Builder, + org.aion.api.server.pb.Message.t_NodeOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, + org.aion.api.server.pb.Message.t_Node.Builder, + org.aion.api.server.pb.Message.t_NodeOrBuilder>( + node_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + node_ = null; + } + return nodeBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStaticNodes) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStaticNodes) + private static final org.aion.api.server.pb.Message.rsp_getStaticNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStaticNodes(); + } + + public static org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getStaticNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getStaticNodes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getSolcVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getSolcVersion) + com.google.protobuf.MessageOrBuilder { + + /** string ver = 1; */ + java.lang.String getVer(); + /** string ver = 1; */ + com.google.protobuf.ByteString getVerBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} */ + public static final class rsp_getSolcVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getSolcVersion) + rsp_getSolcVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getSolcVersion.newBuilder() to construct. + private rsp_getSolcVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getSolcVersion() { + ver_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getSolcVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + ver_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getSolcVersion.class, + org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); + } + + public static final int VER_FIELD_NUMBER = 1; + private volatile java.lang.Object ver_; + /** string ver = 1; */ + public java.lang.String getVer() { + java.lang.Object ref = ver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ver_ = s; + return s; + } + } + /** string ver = 1; */ + public com.google.protobuf.ByteString getVerBytes() { + java.lang.Object ref = ver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ver_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ver_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getSolcVersion other = + (org.aion.api.server.pb.Message.rsp_getSolcVersion) obj; + + boolean result = true; + result = result && getVer().equals(other.getVer()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VER_FIELD_NUMBER; + hash = (53 * hash) + getVer().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getSolcVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getSolcVersion) + org.aion.api.server.pb.Message.rsp_getSolcVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getSolcVersion.class, + org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getSolcVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + ver_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getSolcVersion build() { + org.aion.api.server.pb.Message.rsp_getSolcVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getSolcVersion buildPartial() { + org.aion.api.server.pb.Message.rsp_getSolcVersion result = + new org.aion.api.server.pb.Message.rsp_getSolcVersion(this); + result.ver_ = ver_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getSolcVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getSolcVersion other) { + if (other == org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance()) + return this; + if (!other.getVer().isEmpty()) { + ver_ = other.ver_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getSolcVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getSolcVersion) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ver_ = ""; + /** string ver = 1; */ + public java.lang.String getVer() { + java.lang.Object ref = ver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ver_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string ver = 1; */ + public com.google.protobuf.ByteString getVerBytes() { + java.lang.Object ref = ver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string ver = 1; */ + public Builder setVer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ver_ = value; + onChanged(); + return this; + } + /** string ver = 1; */ + public Builder clearVer() { + + ver_ = getDefaultInstance().getVer(); + onChanged(); + return this; + } + /** string ver = 1; */ + public Builder setVerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ver_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getSolcVersion) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getSolcVersion) + private static final org.aion.api.server.pb.Message.rsp_getSolcVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getSolcVersion(); + } + + public static org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getSolcVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getSolcVersion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_isSyncingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_isSyncing) + com.google.protobuf.MessageOrBuilder { + + /** bool syncing = 1; */ + boolean getSyncing(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} */ + public static final class rsp_isSyncing extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_isSyncing) + rsp_isSyncingOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_isSyncing.newBuilder() to construct. + private rsp_isSyncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_isSyncing() { + syncing_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_isSyncing( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + syncing_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_isSyncing.class, + org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); + } + + public static final int SYNCING_FIELD_NUMBER = 1; + private boolean syncing_; + /** bool syncing = 1; */ + public boolean getSyncing() { + return syncing_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (syncing_ != false) { + output.writeBool(1, syncing_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (syncing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, syncing_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_isSyncing)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_isSyncing other = + (org.aion.api.server.pb.Message.rsp_isSyncing) obj; + + boolean result = true; + result = result && (getSyncing() == other.getSyncing()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNCING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSyncing()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_isSyncing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_isSyncing) + org.aion.api.server.pb.Message.rsp_isSyncingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_isSyncing.class, + org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_isSyncing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + syncing_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_isSyncing build() { + org.aion.api.server.pb.Message.rsp_isSyncing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_isSyncing buildPartial() { + org.aion.api.server.pb.Message.rsp_isSyncing result = + new org.aion.api.server.pb.Message.rsp_isSyncing(this); + result.syncing_ = syncing_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_isSyncing) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_isSyncing) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_isSyncing other) { + if (other == org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance()) + return this; + if (other.getSyncing() != false) { + setSyncing(other.getSyncing()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_isSyncing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_isSyncing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean syncing_; + /** bool syncing = 1; */ + public boolean getSyncing() { + return syncing_; + } + /** bool syncing = 1; */ + public Builder setSyncing(boolean value) { + + syncing_ = value; + onChanged(); + return this; + } + /** bool syncing = 1; */ + public Builder clearSyncing() { + + syncing_ = false; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_isSyncing) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_isSyncing) + private static final org.aion.api.server.pb.Message.rsp_isSyncing DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_isSyncing(); + } + + public static org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_isSyncing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_isSyncing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_syncInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncInfo) + com.google.protobuf.MessageOrBuilder { + + /** bool syncing = 1; */ + boolean getSyncing(); + + /** uint64 networkBestBlock = 2; */ + long getNetworkBestBlock(); + + /** uint64 chainBestBlock = 3; */ + long getChainBestBlock(); + + /** uint32 maxImportBlocks = 4; */ + int getMaxImportBlocks(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} */ + public static final class rsp_syncInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncInfo) + rsp_syncInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_syncInfo.newBuilder() to construct. + private rsp_syncInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_syncInfo() { + syncing_ = false; + networkBestBlock_ = 0L; + chainBestBlock_ = 0L; + maxImportBlocks_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_syncInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + syncing_ = input.readBool(); + break; + } + case 16: + { + networkBestBlock_ = input.readUInt64(); + break; + } + case 24: + { + chainBestBlock_ = input.readUInt64(); + break; + } + case 32: + { + maxImportBlocks_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncInfo.class, + org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); + } + + public static final int SYNCING_FIELD_NUMBER = 1; + private boolean syncing_; + /** bool syncing = 1; */ + public boolean getSyncing() { + return syncing_; + } + + public static final int NETWORKBESTBLOCK_FIELD_NUMBER = 2; + private long networkBestBlock_; + /** uint64 networkBestBlock = 2; */ + public long getNetworkBestBlock() { + return networkBestBlock_; + } + + public static final int CHAINBESTBLOCK_FIELD_NUMBER = 3; + private long chainBestBlock_; + /** uint64 chainBestBlock = 3; */ + public long getChainBestBlock() { + return chainBestBlock_; + } + + public static final int MAXIMPORTBLOCKS_FIELD_NUMBER = 4; + private int maxImportBlocks_; + /** uint32 maxImportBlocks = 4; */ + public int getMaxImportBlocks() { + return maxImportBlocks_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (syncing_ != false) { + output.writeBool(1, syncing_); + } + if (networkBestBlock_ != 0L) { + output.writeUInt64(2, networkBestBlock_); + } + if (chainBestBlock_ != 0L) { + output.writeUInt64(3, chainBestBlock_); + } + if (maxImportBlocks_ != 0) { + output.writeUInt32(4, maxImportBlocks_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (syncing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, syncing_); + } + if (networkBestBlock_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeUInt64Size( + 2, networkBestBlock_); + } + if (chainBestBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, chainBestBlock_); + } + if (maxImportBlocks_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeUInt32Size( + 4, maxImportBlocks_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncInfo)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_syncInfo other = + (org.aion.api.server.pb.Message.rsp_syncInfo) obj; + + boolean result = true; + result = result && (getSyncing() == other.getSyncing()); + result = result && (getNetworkBestBlock() == other.getNetworkBestBlock()); + result = result && (getChainBestBlock() == other.getChainBestBlock()); + result = result && (getMaxImportBlocks() == other.getMaxImportBlocks()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNCING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSyncing()); + hash = (37 * hash) + NETWORKBESTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNetworkBestBlock()); + hash = (37 * hash) + CHAINBESTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getChainBestBlock()); + hash = (37 * hash) + MAXIMPORTBLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxImportBlocks(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncInfo) + org.aion.api.server.pb.Message.rsp_syncInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncInfo.class, + org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_syncInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + syncing_ = false; + + networkBestBlock_ = 0L; + + chainBestBlock_ = 0L; + + maxImportBlocks_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_syncInfo build() { + org.aion.api.server.pb.Message.rsp_syncInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_syncInfo buildPartial() { + org.aion.api.server.pb.Message.rsp_syncInfo result = + new org.aion.api.server.pb.Message.rsp_syncInfo(this); + result.syncing_ = syncing_; + result.networkBestBlock_ = networkBestBlock_; + result.chainBestBlock_ = chainBestBlock_; + result.maxImportBlocks_ = maxImportBlocks_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_syncInfo) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_syncInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncInfo other) { + if (other == org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance()) + return this; + if (other.getSyncing() != false) { + setSyncing(other.getSyncing()); + } + if (other.getNetworkBestBlock() != 0L) { + setNetworkBestBlock(other.getNetworkBestBlock()); + } + if (other.getChainBestBlock() != 0L) { + setChainBestBlock(other.getChainBestBlock()); + } + if (other.getMaxImportBlocks() != 0) { + setMaxImportBlocks(other.getMaxImportBlocks()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_syncInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_syncInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean syncing_; + /** bool syncing = 1; */ + public boolean getSyncing() { + return syncing_; + } + /** bool syncing = 1; */ + public Builder setSyncing(boolean value) { + + syncing_ = value; + onChanged(); + return this; + } + /** bool syncing = 1; */ + public Builder clearSyncing() { + + syncing_ = false; + onChanged(); + return this; + } + + private long networkBestBlock_; + /** uint64 networkBestBlock = 2; */ + public long getNetworkBestBlock() { + return networkBestBlock_; + } + /** uint64 networkBestBlock = 2; */ + public Builder setNetworkBestBlock(long value) { + + networkBestBlock_ = value; + onChanged(); + return this; + } + /** uint64 networkBestBlock = 2; */ + public Builder clearNetworkBestBlock() { + + networkBestBlock_ = 0L; + onChanged(); + return this; + } + + private long chainBestBlock_; + /** uint64 chainBestBlock = 3; */ + public long getChainBestBlock() { + return chainBestBlock_; + } + /** uint64 chainBestBlock = 3; */ + public Builder setChainBestBlock(long value) { + + chainBestBlock_ = value; + onChanged(); + return this; + } + /** uint64 chainBestBlock = 3; */ + public Builder clearChainBestBlock() { + + chainBestBlock_ = 0L; + onChanged(); + return this; + } + + private int maxImportBlocks_; + /** uint32 maxImportBlocks = 4; */ + public int getMaxImportBlocks() { + return maxImportBlocks_; + } + /** uint32 maxImportBlocks = 4; */ + public Builder setMaxImportBlocks(int value) { + + maxImportBlocks_ = value; + onChanged(); + return this; + } + /** uint32 maxImportBlocks = 4; */ + public Builder clearMaxImportBlocks() { + + maxImportBlocks_ = 0; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncInfo) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncInfo) + private static final org.aion.api.server.pb.Message.rsp_syncInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncInfo(); + } + + public static org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_syncInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_syncInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_systemInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_systemInfo) + com.google.protobuf.MessageOrBuilder { + + /** float cpuUsage = 1; */ + float getCpuUsage(); + + /** uint64 memoryUsage = 2; */ + long getMemoryUsage(); + + /** uint64 DBSize = 3; */ + long getDBSize(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} */ + public static final class rsp_systemInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_systemInfo) + rsp_systemInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_systemInfo.newBuilder() to construct. + private rsp_systemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_systemInfo() { + cpuUsage_ = 0F; + memoryUsage_ = 0L; + dBSize_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_systemInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 13: + { + cpuUsage_ = input.readFloat(); + break; + } + case 16: + { + memoryUsage_ = input.readUInt64(); + break; + } + case 24: + { + dBSize_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_systemInfo.class, + org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); + } + + public static final int CPUUSAGE_FIELD_NUMBER = 1; + private float cpuUsage_; + /** float cpuUsage = 1; */ + public float getCpuUsage() { + return cpuUsage_; + } + + public static final int MEMORYUSAGE_FIELD_NUMBER = 2; + private long memoryUsage_; + /** uint64 memoryUsage = 2; */ + public long getMemoryUsage() { + return memoryUsage_; + } + + public static final int DBSIZE_FIELD_NUMBER = 3; + private long dBSize_; + /** uint64 DBSize = 3; */ + public long getDBSize() { + return dBSize_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (cpuUsage_ != 0F) { + output.writeFloat(1, cpuUsage_); + } + if (memoryUsage_ != 0L) { + output.writeUInt64(2, memoryUsage_); + } + if (dBSize_ != 0L) { + output.writeUInt64(3, dBSize_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cpuUsage_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, cpuUsage_); + } + if (memoryUsage_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, memoryUsage_); + } + if (dBSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, dBSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_systemInfo)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_systemInfo other = + (org.aion.api.server.pb.Message.rsp_systemInfo) obj; + + boolean result = true; + result = + result + && (java.lang.Float.floatToIntBits(getCpuUsage()) + == java.lang.Float.floatToIntBits(other.getCpuUsage())); + result = result && (getMemoryUsage() == other.getMemoryUsage()); + result = result && (getDBSize() == other.getDBSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CPUUSAGE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getCpuUsage()); + hash = (37 * hash) + MEMORYUSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMemoryUsage()); + hash = (37 * hash) + DBSIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDBSize()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_systemInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_systemInfo) + org.aion.api.server.pb.Message.rsp_systemInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_systemInfo.class, + org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_systemInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + cpuUsage_ = 0F; + + memoryUsage_ = 0L; + + dBSize_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_systemInfo build() { + org.aion.api.server.pb.Message.rsp_systemInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_systemInfo buildPartial() { + org.aion.api.server.pb.Message.rsp_systemInfo result = + new org.aion.api.server.pb.Message.rsp_systemInfo(this); + result.cpuUsage_ = cpuUsage_; + result.memoryUsage_ = memoryUsage_; + result.dBSize_ = dBSize_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_systemInfo) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_systemInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_systemInfo other) { + if (other == org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance()) + return this; + if (other.getCpuUsage() != 0F) { + setCpuUsage(other.getCpuUsage()); + } + if (other.getMemoryUsage() != 0L) { + setMemoryUsage(other.getMemoryUsage()); + } + if (other.getDBSize() != 0L) { + setDBSize(other.getDBSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_systemInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_systemInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float cpuUsage_; + /** float cpuUsage = 1; */ + public float getCpuUsage() { + return cpuUsage_; + } + /** float cpuUsage = 1; */ + public Builder setCpuUsage(float value) { + + cpuUsage_ = value; + onChanged(); + return this; + } + /** float cpuUsage = 1; */ + public Builder clearCpuUsage() { + + cpuUsage_ = 0F; + onChanged(); + return this; + } + + private long memoryUsage_; + /** uint64 memoryUsage = 2; */ + public long getMemoryUsage() { + return memoryUsage_; + } + /** uint64 memoryUsage = 2; */ + public Builder setMemoryUsage(long value) { + + memoryUsage_ = value; + onChanged(); + return this; + } + /** uint64 memoryUsage = 2; */ + public Builder clearMemoryUsage() { + + memoryUsage_ = 0L; + onChanged(); + return this; + } + + private long dBSize_; + /** uint64 DBSize = 3; */ + public long getDBSize() { + return dBSize_; + } + /** uint64 DBSize = 3; */ + public Builder setDBSize(long value) { + + dBSize_ = value; + onChanged(); + return this; + } + /** uint64 DBSize = 3; */ + public Builder clearDBSize() { + + dBSize_ = 0L; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_systemInfo) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_systemInfo) + private static final org.aion.api.server.pb.Message.rsp_systemInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_systemInfo(); + } + + public static org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_systemInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_systemInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_eventRegisterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventRegister) + com.google.protobuf.MessageOrBuilder { + + /** repeated string events = 1; */ + java.util.List getEventsList(); + /** repeated string events = 1; */ + int getEventsCount(); + /** repeated string events = 1; */ + java.lang.String getEvents(int index); + /** repeated string events = 1; */ + com.google.protobuf.ByteString getEventsBytes(int index); + + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + boolean hasFilter(); + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + org.aion.api.server.pb.Message.t_FilterCt getFilter(); + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_eventRegister} */ + public static final class req_eventRegister extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventRegister) + req_eventRegisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_eventRegister.newBuilder() to construct. + private req_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_eventRegister() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_eventRegister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add(s); + break; + } + case 18: + { + org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = + input.readMessage( + org.aion.api.server.pb.Message.t_FilterCt.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventRegister.class, + org.aion.api.server.pb.Message.req_eventRegister.Builder.class); + } + + private int bitField0_; + public static final int EVENTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList events_; + /** repeated string events = 1; */ + public com.google.protobuf.ProtocolStringList getEventsList() { + return events_; + } + /** repeated string events = 1; */ + public int getEventsCount() { + return events_.size(); + } + /** repeated string events = 1; */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** repeated string events = 1; */ + public com.google.protobuf.ByteString getEventsBytes(int index) { + return events_.getByteString(index); + } + + public static final int FILTER_FIELD_NUMBER = 2; + private org.aion.api.server.pb.Message.t_FilterCt filter_; + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public boolean hasFilter() { + return filter_ != null; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + return filter_ == null + ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() + : filter_; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < events_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); + } + if (filter_ != null) { + output.writeMessage(2, getFilter()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < events_.size(); i++) { + dataSize += computeStringSizeNoTag(events_.getRaw(i)); + } + size += dataSize; + size += 1 * getEventsList().size(); + } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilter()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_eventRegister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_eventRegister other = + (org.aion.api.server.pb.Message.req_eventRegister) obj; + + boolean result = true; + result = result && getEventsList().equals(other.getEventsList()); + result = result && (hasFilter() == other.hasFilter()); + if (hasFilter()) { + result = result && getFilter().equals(other.getFilter()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_eventRegister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_eventRegister} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventRegister) + org.aion.api.server.pb.Message.req_eventRegisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventRegister.class, + org.aion.api.server.pb.Message.req_eventRegister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_eventRegister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + } + + public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_eventRegister build() { + org.aion.api.server.pb.Message.req_eventRegister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_eventRegister buildPartial() { + org.aion.api.server.pb.Message.req_eventRegister result = + new org.aion.api.server.pb.Message.req_eventRegister(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.events_ = events_; + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_eventRegister) { + return mergeFrom((org.aion.api.server.pb.Message.req_eventRegister) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventRegister other) { + if (other == org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance()) + return this; + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_eventRegister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_eventRegister) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList events_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(events_); + bitField0_ |= 0x00000001; + } + } + /** repeated string events = 1; */ + public com.google.protobuf.ProtocolStringList getEventsList() { + return events_.getUnmodifiableView(); + } + /** repeated string events = 1; */ + public int getEventsCount() { + return events_.size(); + } + /** repeated string events = 1; */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** repeated string events = 1; */ + public com.google.protobuf.ByteString getEventsBytes(int index) { + return events_.getByteString(index); + } + /** repeated string events = 1; */ + public Builder setEvents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder addEvents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder addAllEvents(java.lang.Iterable values) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder clearEvents() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder addEventsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + + private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, + org.aion.api.server.pb.Message.t_FilterCt.Builder, + org.aion.api.server.pb.Message.t_FilterCtOrBuilder> + filterBuilder_; + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public Builder setFilter( + org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + org.aion.api.server.pb.Message.t_FilterCt + .newBuilder(filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() + : filter_; + } + } + /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, + org.aion.api.server.pb.Message.t_FilterCt.Builder, + org.aion.api.server.pb.Message.t_FilterCtOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, + org.aion.api.server.pb.Message.t_FilterCt.Builder, + org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventRegister) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventRegister) + private static final org.aion.api.server.pb.Message.req_eventRegister DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventRegister(); + } + + public static org.aion.api.server.pb.Message.req_eventRegister getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_eventRegister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_eventRegister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_eventRegisterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventRegister) + com.google.protobuf.MessageOrBuilder { + + /** bool result = 1; */ + boolean getResult(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} */ + public static final class rsp_eventRegister extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventRegister) + rsp_eventRegisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_eventRegister.newBuilder() to construct. + private rsp_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_eventRegister() { + result_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_eventRegister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + result_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventRegister.class, + org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); + } + + public static final int RESULT_FIELD_NUMBER = 1; + private boolean result_; + /** bool result = 1; */ + public boolean getResult() { + return result_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != false) { + output.writeBool(1, result_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, result_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventRegister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_eventRegister other = + (org.aion.api.server.pb.Message.rsp_eventRegister) obj; + + boolean result = true; + result = result && (getResult() == other.getResult()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResult()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_eventRegister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventRegister) + org.aion.api.server.pb.Message.rsp_eventRegisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventRegister.class, + org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_eventRegister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + result_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_eventRegister build() { + org.aion.api.server.pb.Message.rsp_eventRegister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_eventRegister buildPartial() { + org.aion.api.server.pb.Message.rsp_eventRegister result = + new org.aion.api.server.pb.Message.rsp_eventRegister(this); + result.result_ = result_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_eventRegister) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_eventRegister) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventRegister other) { + if (other == org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance()) + return this; + if (other.getResult() != false) { + setResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_eventRegister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_eventRegister) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean result_; + /** bool result = 1; */ + public boolean getResult() { + return result_; + } + /** bool result = 1; */ + public Builder setResult(boolean value) { + + result_ = value; + onChanged(); + return this; + } + /** bool result = 1; */ + public Builder clearResult() { + + result_ = false; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventRegister) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventRegister) + private static final org.aion.api.server.pb.Message.rsp_eventRegister DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventRegister(); + } + + public static org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_eventRegister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_eventRegister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_eventDeregisterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventDeregister) + com.google.protobuf.MessageOrBuilder { + + /** repeated string events = 1; */ + java.util.List getEventsList(); + /** repeated string events = 1; */ + int getEventsCount(); + /** repeated string events = 1; */ + java.lang.String getEvents(int index); + /** repeated string events = 1; */ + com.google.protobuf.ByteString getEventsBytes(int index); + + /** bytes contractAddr = 2; */ + com.google.protobuf.ByteString getContractAddr(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} */ + public static final class req_eventDeregister extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventDeregister) + req_eventDeregisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_eventDeregister.newBuilder() to construct. + private req_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_eventDeregister() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + contractAddr_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_eventDeregister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add(s); + break; + } + case 18: + { + contractAddr_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventDeregister.class, + org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); + } + + private int bitField0_; + public static final int EVENTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList events_; + /** repeated string events = 1; */ + public com.google.protobuf.ProtocolStringList getEventsList() { + return events_; + } + /** repeated string events = 1; */ + public int getEventsCount() { + return events_.size(); + } + /** repeated string events = 1; */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** repeated string events = 1; */ + public com.google.protobuf.ByteString getEventsBytes(int index) { + return events_.getByteString(index); + } + + public static final int CONTRACTADDR_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString contractAddr_; + /** bytes contractAddr = 2; */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < events_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); + } + if (!contractAddr_.isEmpty()) { + output.writeBytes(2, contractAddr_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < events_.size(); i++) { + dataSize += computeStringSizeNoTag(events_.getRaw(i)); + } + size += dataSize; + size += 1 * getEventsList().size(); + } + if (!contractAddr_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, contractAddr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_eventDeregister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_eventDeregister other = + (org.aion.api.server.pb.Message.req_eventDeregister) obj; + + boolean result = true; + result = result && getEventsList().equals(other.getEventsList()); + result = result && getContractAddr().equals(other.getContractAddr()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_eventDeregister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventDeregister) + org.aion.api.server.pb.Message.req_eventDeregisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventDeregister.class, + org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_eventDeregister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + contractAddr_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + } + + public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_eventDeregister build() { + org.aion.api.server.pb.Message.req_eventDeregister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_eventDeregister buildPartial() { + org.aion.api.server.pb.Message.req_eventDeregister result = + new org.aion.api.server.pb.Message.req_eventDeregister(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.events_ = events_; + result.contractAddr_ = contractAddr_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_eventDeregister) { + return mergeFrom((org.aion.api.server.pb.Message.req_eventDeregister) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventDeregister other) { + if (other + == org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance()) + return this; + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { + setContractAddr(other.getContractAddr()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_eventDeregister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_eventDeregister) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList events_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(events_); + bitField0_ |= 0x00000001; + } + } + /** repeated string events = 1; */ + public com.google.protobuf.ProtocolStringList getEventsList() { + return events_.getUnmodifiableView(); + } + /** repeated string events = 1; */ + public int getEventsCount() { + return events_.size(); + } + /** repeated string events = 1; */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** repeated string events = 1; */ + public com.google.protobuf.ByteString getEventsBytes(int index) { + return events_.getByteString(index); + } + /** repeated string events = 1; */ + public Builder setEvents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder addEvents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder addAllEvents(java.lang.Iterable values) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder clearEvents() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** repeated string events = 1; */ + public Builder addEventsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contractAddr_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes contractAddr = 2; */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } + /** bytes contractAddr = 2; */ + public Builder setContractAddr(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + /** bytes contractAddr = 2; */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventDeregister) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventDeregister) + private static final org.aion.api.server.pb.Message.req_eventDeregister DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventDeregister(); + } + + public static org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_eventDeregister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_eventDeregister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_eventDeregisterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventDeregister) + com.google.protobuf.MessageOrBuilder { + + /** bool result = 1; */ + boolean getResult(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} */ + public static final class rsp_eventDeregister extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventDeregister) + rsp_eventDeregisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_eventDeregister.newBuilder() to construct. + private rsp_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_eventDeregister() { + result_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_eventDeregister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + result_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventDeregister.class, + org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); + } + + public static final int RESULT_FIELD_NUMBER = 1; + private boolean result_; + /** bool result = 1; */ + public boolean getResult() { + return result_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != false) { + output.writeBool(1, result_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, result_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventDeregister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_eventDeregister other = + (org.aion.api.server.pb.Message.rsp_eventDeregister) obj; + + boolean result = true; + result = result && (getResult() == other.getResult()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResult()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_eventDeregister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventDeregister) + org.aion.api.server.pb.Message.rsp_eventDeregisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventDeregister.class, + org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_eventDeregister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + result_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_eventDeregister build() { + org.aion.api.server.pb.Message.rsp_eventDeregister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_eventDeregister buildPartial() { + org.aion.api.server.pb.Message.rsp_eventDeregister result = + new org.aion.api.server.pb.Message.rsp_eventDeregister(this); + result.result_ = result_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_eventDeregister) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_eventDeregister) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventDeregister other) { + if (other + == org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance()) + return this; + if (other.getResult() != false) { + setResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_eventDeregister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_eventDeregister) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean result_; + /** bool result = 1; */ + public boolean getResult() { + return result_; + } + /** bool result = 1; */ + public Builder setResult(boolean value) { + + result_ = value; + onChanged(); + return this; + } + /** bool result = 1; */ + public Builder clearResult() { + + result_ = false; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventDeregister) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventDeregister) + private static final org.aion.api.server.pb.Message.rsp_eventDeregister DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventDeregister(); + } + + public static org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_eventDeregister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_eventDeregister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_EventCtCallbackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_EventCtCallback) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + java.util.List getEcList(); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + org.aion.api.server.pb.Message.t_EventCt getEc(int index); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + int getEcCount(); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + java.util.List + getEcOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} */ + public static final class rsp_EventCtCallback extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_EventCtCallback) + rsp_EventCtCallbackOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_EventCtCallback.newBuilder() to construct. + private rsp_EventCtCallback(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_EventCtCallback() { + ec_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_EventCtCallback( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_EventCt>(); + mutable_bitField0_ |= 0x00000001; + } + ec_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_EventCt.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_EventCtCallback.class, + org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); + } + + public static final int EC_FIELD_NUMBER = 1; + private java.util.List ec_; + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List getEcList() { + return ec_; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List + getEcOrBuilderList() { + return ec_; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public int getEcCount() { + return ec_.size(); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + return ec_.get(index); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { + return ec_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < ec_.size(); i++) { + output.writeMessage(1, ec_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < ec_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ec_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_EventCtCallback other = + (org.aion.api.server.pb.Message.rsp_EventCtCallback) obj; + + boolean result = true; + result = result && getEcList().equals(other.getEcList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEcCount() > 0) { + hash = (37 * hash) + EC_FIELD_NUMBER; + hash = (53 * hash) + getEcList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_EventCtCallback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_EventCtCallback) + org.aion.api.server.pb.Message.rsp_EventCtCallbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_EventCtCallback.class, + org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_EventCtCallback.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEcFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ecBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_EventCtCallback build() { + org.aion.api.server.pb.Message.rsp_EventCtCallback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_EventCtCallback buildPartial() { + org.aion.api.server.pb.Message.rsp_EventCtCallback result = + new org.aion.api.server.pb.Message.rsp_EventCtCallback(this); + int from_bitField0_ = bitField0_; + if (ecBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ec_ = ec_; + } else { + result.ec_ = ecBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_EventCtCallback) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_EventCtCallback other) { + if (other + == org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance()) + return this; + if (ecBuilder_ == null) { + if (!other.ec_.isEmpty()) { + if (ec_.isEmpty()) { + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEcIsMutable(); + ec_.addAll(other.ec_); + } + onChanged(); + } + } else { + if (!other.ec_.isEmpty()) { + if (ecBuilder_.isEmpty()) { + ecBuilder_.dispose(); + ecBuilder_ = null; + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + ecBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEcFieldBuilder() + : null; + } else { + ecBuilder_.addAllMessages(other.ec_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_EventCtCallback parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_EventCtCallback) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List ec_ = + java.util.Collections.emptyList(); + + private void ensureEcIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = new java.util.ArrayList(ec_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, + org.aion.api.server.pb.Message.t_EventCt.Builder, + org.aion.api.server.pb.Message.t_EventCtOrBuilder> + ecBuilder_; + + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List getEcList() { + if (ecBuilder_ == null) { + return java.util.Collections.unmodifiableList(ec_); + } else { + return ecBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public int getEcCount() { + if (ecBuilder_ == null) { + return ec_.size(); + } else { + return ecBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + if (ecBuilder_ == null) { + return ec_.get(index); + } else { + return ecBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder setEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.set(index, value); + onChanged(); + } else { + ecBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder setEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.set(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(value); + onChanged(); + } else { + ecBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(index, value); + onChanged(); + } else { + ecBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc(org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addAllEc( + java.lang.Iterable values) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ec_); + onChanged(); + } else { + ecBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder clearEc() { + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ecBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder removeEc(int index) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.remove(index); + onChanged(); + } else { + ecBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder(int index) { + return getEcFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { + if (ecBuilder_ == null) { + return ec_.get(index); + } else { + return ecBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List + getEcOrBuilderList() { + if (ecBuilder_ != null) { + return ecBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ec_); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { + return getEcFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder(int index) { + return getEcFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List + getEcBuilderList() { + return getEcFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, + org.aion.api.server.pb.Message.t_EventCt.Builder, + org.aion.api.server.pb.Message.t_EventCtOrBuilder> + getEcFieldBuilder() { + if (ecBuilder_ == null) { + ecBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, + org.aion.api.server.pb.Message.t_EventCt.Builder, + org.aion.api.server.pb.Message.t_EventCtOrBuilder>( + ec_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + ec_ = null; + } + return ecBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_EventCtCallback) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_EventCtCallback) + private static final org.aion.api.server.pb.Message.rsp_EventCtCallback DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_EventCtCallback(); + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_EventCtCallback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_EventCtCallback(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_accountCreateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountCreate) + com.google.protobuf.MessageOrBuilder { + + /** repeated string password = 1; */ + java.util.List getPasswordList(); + /** repeated string password = 1; */ + int getPasswordCount(); + /** repeated string password = 1; */ + java.lang.String getPassword(int index); + /** repeated string password = 1; */ + com.google.protobuf.ByteString getPasswordBytes(int index); + + /** bool privateKey = 2; */ + boolean getPrivateKey(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_accountCreate} */ + public static final class req_accountCreate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountCreate) + req_accountCreateOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_accountCreate.newBuilder() to construct. + private req_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_accountCreate() { + password_ = com.google.protobuf.LazyStringArrayList.EMPTY; + privateKey_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_accountCreate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + password_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + password_.add(s); + break; + } + case 16: + { + privateKey_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + password_ = password_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountCreate.class, + org.aion.api.server.pb.Message.req_accountCreate.Builder.class); + } + + private int bitField0_; + public static final int PASSWORD_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList password_; + /** repeated string password = 1; */ + public com.google.protobuf.ProtocolStringList getPasswordList() { + return password_; + } + /** repeated string password = 1; */ + public int getPasswordCount() { + return password_.size(); + } + /** repeated string password = 1; */ + public java.lang.String getPassword(int index) { + return password_.get(index); + } + /** repeated string password = 1; */ + public com.google.protobuf.ByteString getPasswordBytes(int index) { + return password_.getByteString(index); + } + + public static final int PRIVATEKEY_FIELD_NUMBER = 2; + private boolean privateKey_; + /** bool privateKey = 2; */ + public boolean getPrivateKey() { + return privateKey_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < password_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, password_.getRaw(i)); + } + if (privateKey_ != false) { + output.writeBool(2, privateKey_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < password_.size(); i++) { + dataSize += computeStringSizeNoTag(password_.getRaw(i)); + } + size += dataSize; + size += 1 * getPasswordList().size(); + } + if (privateKey_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, privateKey_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_accountCreate)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_accountCreate other = + (org.aion.api.server.pb.Message.req_accountCreate) obj; + + boolean result = true; + result = result && getPasswordList().equals(other.getPasswordList()); + result = result && (getPrivateKey() == other.getPrivateKey()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPasswordCount() > 0) { + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPasswordList().hashCode(); + } + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrivateKey()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_accountCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_accountCreate} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountCreate) + org.aion.api.server.pb.Message.req_accountCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountCreate.class, + org.aion.api.server.pb.Message.req_accountCreate.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_accountCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + password_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + privateKey_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + } + + public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_accountCreate build() { + org.aion.api.server.pb.Message.req_accountCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_accountCreate buildPartial() { + org.aion.api.server.pb.Message.req_accountCreate result = + new org.aion.api.server.pb.Message.req_accountCreate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + password_ = password_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.password_ = password_; + result.privateKey_ = privateKey_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_accountCreate) { + return mergeFrom((org.aion.api.server.pb.Message.req_accountCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountCreate other) { + if (other == org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance()) + return this; + if (!other.password_.isEmpty()) { + if (password_.isEmpty()) { + password_ = other.password_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePasswordIsMutable(); + password_.addAll(other.password_); + } + onChanged(); + } + if (other.getPrivateKey() != false) { + setPrivateKey(other.getPrivateKey()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_accountCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_accountCreate) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList password_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePasswordIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + password_ = new com.google.protobuf.LazyStringArrayList(password_); + bitField0_ |= 0x00000001; + } + } + /** repeated string password = 1; */ + public com.google.protobuf.ProtocolStringList getPasswordList() { + return password_.getUnmodifiableView(); + } + /** repeated string password = 1; */ + public int getPasswordCount() { + return password_.size(); + } + /** repeated string password = 1; */ + public java.lang.String getPassword(int index) { + return password_.get(index); + } + /** repeated string password = 1; */ + public com.google.protobuf.ByteString getPasswordBytes(int index) { + return password_.getByteString(index); + } + /** repeated string password = 1; */ + public Builder setPassword(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePasswordIsMutable(); + password_.set(index, value); + onChanged(); + return this; + } + /** repeated string password = 1; */ + public Builder addPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePasswordIsMutable(); + password_.add(value); + onChanged(); + return this; + } + /** repeated string password = 1; */ + public Builder addAllPassword(java.lang.Iterable values) { + ensurePasswordIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, password_); + onChanged(); + return this; + } + /** repeated string password = 1; */ + public Builder clearPassword() { + password_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** repeated string password = 1; */ + public Builder addPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePasswordIsMutable(); + password_.add(value); + onChanged(); + return this; + } + + private boolean privateKey_; + /** bool privateKey = 2; */ + public boolean getPrivateKey() { + return privateKey_; + } + /** bool privateKey = 2; */ + public Builder setPrivateKey(boolean value) { + + privateKey_ = value; + onChanged(); + return this; + } + /** bool privateKey = 2; */ + public Builder clearPrivateKey() { + + privateKey_ = false; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountCreate) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountCreate) + private static final org.aion.api.server.pb.Message.req_accountCreate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountCreate(); + } + + public static org.aion.api.server.pb.Message.req_accountCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_accountCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_accountCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_accountCreateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountCreate) + com.google.protobuf.MessageOrBuilder { + + /** repeated bytes address = 1; */ + java.util.List getAddressList(); + /** repeated bytes address = 1; */ + int getAddressCount(); + /** repeated bytes address = 1; */ + com.google.protobuf.ByteString getAddress(int index); + + /** repeated bytes privateKey = 2; */ + java.util.List getPrivateKeyList(); + /** repeated bytes privateKey = 2; */ + int getPrivateKeyCount(); + /** repeated bytes privateKey = 2; */ + com.google.protobuf.ByteString getPrivateKey(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} */ + public static final class rsp_accountCreate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountCreate) + rsp_accountCreateOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_accountCreate.newBuilder() to construct. + private rsp_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_accountCreate() { + address_ = java.util.Collections.emptyList(); + privateKey_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_accountCreate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + address_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00000001; + } + address_.add(input.readBytes()); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00000002; + } + privateKey_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + address_ = java.util.Collections.unmodifiableList(address_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountCreate.class, + org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private java.util.List address_; + /** repeated bytes address = 1; */ + public java.util.List getAddressList() { + return address_; + } + /** repeated bytes address = 1; */ + public int getAddressCount() { + return address_.size(); + } + /** repeated bytes address = 1; */ + public com.google.protobuf.ByteString getAddress(int index) { + return address_.get(index); + } + + public static final int PRIVATEKEY_FIELD_NUMBER = 2; + private java.util.List privateKey_; + /** repeated bytes privateKey = 2; */ + public java.util.List getPrivateKeyList() { + return privateKey_; + } + /** repeated bytes privateKey = 2; */ + public int getPrivateKeyCount() { + return privateKey_.size(); + } + /** repeated bytes privateKey = 2; */ + public com.google.protobuf.ByteString getPrivateKey(int index) { + return privateKey_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < address_.size(); i++) { + output.writeBytes(1, address_.get(i)); + } + for (int i = 0; i < privateKey_.size(); i++) { + output.writeBytes(2, privateKey_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < address_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + address_.get(i)); + } + size += dataSize; + size += 1 * getAddressList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < privateKey_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + privateKey_.get(i)); + } + size += dataSize; + size += 1 * getPrivateKeyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountCreate)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_accountCreate other = + (org.aion.api.server.pb.Message.rsp_accountCreate) obj; + + boolean result = true; + result = result && getAddressList().equals(other.getAddressList()); + result = result && getPrivateKeyList().equals(other.getPrivateKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressCount() > 0) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddressList().hashCode(); + } + if (getPrivateKeyCount() > 0) { + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_accountCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountCreate) + org.aion.api.server.pb.Message.rsp_accountCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountCreate.class, + org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_accountCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + address_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_accountCreate build() { + org.aion.api.server.pb.Message.rsp_accountCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_accountCreate buildPartial() { + org.aion.api.server.pb.Message.rsp_accountCreate result = + new org.aion.api.server.pb.Message.rsp_accountCreate(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + address_ = java.util.Collections.unmodifiableList(address_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.address_ = address_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.privateKey_ = privateKey_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_accountCreate) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_accountCreate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountCreate other) { + if (other == org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance()) + return this; + if (!other.address_.isEmpty()) { + if (address_.isEmpty()) { + address_ = other.address_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressIsMutable(); + address_.addAll(other.address_); + } + onChanged(); + } + if (!other.privateKey_.isEmpty()) { + if (privateKey_.isEmpty()) { + privateKey_ = other.privateKey_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePrivateKeyIsMutable(); + privateKey_.addAll(other.privateKey_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_accountCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_accountCreate) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List address_ = + java.util.Collections.emptyList(); + + private void ensureAddressIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + address_ = new java.util.ArrayList(address_); + bitField0_ |= 0x00000001; + } + } + /** repeated bytes address = 1; */ + public java.util.List getAddressList() { + return java.util.Collections.unmodifiableList(address_); + } + /** repeated bytes address = 1; */ + public int getAddressCount() { + return address_.size(); + } + /** repeated bytes address = 1; */ + public com.google.protobuf.ByteString getAddress(int index) { + return address_.get(index); + } + /** repeated bytes address = 1; */ + public Builder setAddress(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIsMutable(); + address_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes address = 1; */ + public Builder addAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIsMutable(); + address_.add(value); + onChanged(); + return this; + } + /** repeated bytes address = 1; */ + public Builder addAllAddress( + java.lang.Iterable values) { + ensureAddressIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, address_); + onChanged(); + return this; + } + /** repeated bytes address = 1; */ + public Builder clearAddress() { + address_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List privateKey_ = + java.util.Collections.emptyList(); + + private void ensurePrivateKeyIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = + new java.util.ArrayList(privateKey_); + bitField0_ |= 0x00000002; + } + } + /** repeated bytes privateKey = 2; */ + public java.util.List getPrivateKeyList() { + return java.util.Collections.unmodifiableList(privateKey_); + } + /** repeated bytes privateKey = 2; */ + public int getPrivateKeyCount() { + return privateKey_.size(); + } + /** repeated bytes privateKey = 2; */ + public com.google.protobuf.ByteString getPrivateKey(int index) { + return privateKey_.get(index); + } + /** repeated bytes privateKey = 2; */ + public Builder setPrivateKey(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes privateKey = 2; */ + public Builder addPrivateKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.add(value); + onChanged(); + return this; + } + /** repeated bytes privateKey = 2; */ + public Builder addAllPrivateKey( + java.lang.Iterable values) { + ensurePrivateKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateKey_); + onChanged(); + return this; + } + /** repeated bytes privateKey = 2; */ + public Builder clearPrivateKey() { + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountCreate) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountCreate) + private static final org.aion.api.server.pb.Message.rsp_accountCreate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountCreate(); + } + + public static org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_accountCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_accountCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_accountlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountlock) + com.google.protobuf.MessageOrBuilder { + + /** bytes account = 1; */ + com.google.protobuf.ByteString getAccount(); + + /** string password = 2; */ + java.lang.String getPassword(); + /** string password = 2; */ + com.google.protobuf.ByteString getPasswordBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_accountlock} */ + public static final class req_accountlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountlock) + req_accountlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_accountlock.newBuilder() to construct. + private req_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_accountlock() { + account_ = com.google.protobuf.ByteString.EMPTY; + password_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_accountlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + account_ = input.readBytes(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountlock.class, + org.aion.api.server.pb.Message.req_accountlock.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString account_; + /** bytes account = 1; */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!account_.isEmpty()) { + output.writeBytes(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!account_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_accountlock)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_accountlock other = + (org.aion.api.server.pb.Message.req_accountlock) obj; + + boolean result = true; + result = result && getAccount().equals(other.getAccount()); + result = result && getPassword().equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.req_accountlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_accountlock} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountlock) + org.aion.api.server.pb.Message.req_accountlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountlock.class, + org.aion.api.server.pb.Message.req_accountlock.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_accountlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + account_ = com.google.protobuf.ByteString.EMPTY; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + } + + public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_accountlock build() { + org.aion.api.server.pb.Message.req_accountlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_accountlock buildPartial() { + org.aion.api.server.pb.Message.req_accountlock result = + new org.aion.api.server.pb.Message.req_accountlock(this); + result.account_ = account_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_accountlock) { + return mergeFrom((org.aion.api.server.pb.Message.req_accountlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountlock other) { + if (other == org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance()) + return this; + if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { + setAccount(other.getAccount()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_accountlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_accountlock) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; + /** bytes account = 1; */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } + /** bytes account = 1; */ + public Builder setAccount(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + account_ = value; + onChanged(); + return this; + } + /** bytes account = 1; */ + public Builder clearAccount() { + + account_ = getDefaultInstance().getAccount(); + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string password = 2; */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** string password = 2; */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** string password = 2; */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountlock) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountlock) + private static final org.aion.api.server.pb.Message.req_accountlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountlock(); + } + + public static org.aion.api.server.pb.Message.req_accountlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_accountlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_accountlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_accountlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountlock) + com.google.protobuf.MessageOrBuilder { + + /** bool locked = 1; */ + boolean getLocked(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} */ + public static final class rsp_accountlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountlock) + rsp_accountlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_accountlock.newBuilder() to construct. + private rsp_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_accountlock() { + locked_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_accountlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + locked_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountlock.class, + org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); + } + + public static final int LOCKED_FIELD_NUMBER = 1; + private boolean locked_; + /** bool locked = 1; */ + public boolean getLocked() { + return locked_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (locked_ != false) { + output.writeBool(1, locked_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locked_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, locked_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountlock)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_accountlock other = + (org.aion.api.server.pb.Message.rsp_accountlock) obj; + + boolean result = true; + result = result && (getLocked() == other.getLocked()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accountlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountlock) + org.aion.api.server.pb.Message.rsp_accountlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountlock.class, + org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_accountlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + locked_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_accountlock build() { + org.aion.api.server.pb.Message.rsp_accountlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_accountlock buildPartial() { + org.aion.api.server.pb.Message.rsp_accountlock result = + new org.aion.api.server.pb.Message.rsp_accountlock(this); + result.locked_ = locked_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_accountlock) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_accountlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountlock other) { + if (other == org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance()) + return this; + if (other.getLocked() != false) { + setLocked(other.getLocked()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_accountlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_accountlock) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean locked_; + /** bool locked = 1; */ + public boolean getLocked() { + return locked_; + } + /** bool locked = 1; */ + public Builder setLocked(boolean value) { + + locked_ = value; + onChanged(); + return this; + } + /** bool locked = 1; */ + public Builder clearLocked() { + + locked_ = false; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountlock) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountlock) + private static final org.aion.api.server.pb.Message.rsp_accountlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountlock(); + } + + public static org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_accountlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_accountlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_userPrivilegeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_userPrivilege) + com.google.protobuf.MessageOrBuilder { + + /** string username = 1; */ + java.lang.String getUsername(); + /** string username = 1; */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** string password = 2; */ + java.lang.String getPassword(); + /** string password = 2; */ + com.google.protobuf.ByteString getPasswordBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} */ + public static final class req_userPrivilege extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_userPrivilege) + req_userPrivilegeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_userPrivilege.newBuilder() to construct. + private req_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_userPrivilege() { + username_ = ""; + password_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_userPrivilege( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_userPrivilege.class, + org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** string username = 1; */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** string username = 1; */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_userPrivilege)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_userPrivilege other = + (org.aion.api.server.pb.Message.req_userPrivilege) obj; + + boolean result = true; + result = result && getUsername().equals(other.getUsername()); + result = result && getPassword().equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_userPrivilege prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_userPrivilege) + org.aion.api.server.pb.Message.req_userPrivilegeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_userPrivilege.class, + org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_userPrivilege.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + } + + public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_userPrivilege build() { + org.aion.api.server.pb.Message.req_userPrivilege result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_userPrivilege buildPartial() { + org.aion.api.server.pb.Message.req_userPrivilege result = + new org.aion.api.server.pb.Message.req_userPrivilege(this); + result.username_ = username_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_userPrivilege) { + return mergeFrom((org.aion.api.server.pb.Message.req_userPrivilege) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_userPrivilege other) { + if (other == org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance()) + return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_userPrivilege parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_userPrivilege) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object username_ = ""; + /** string username = 1; */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string username = 1; */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string username = 1; */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** string username = 1; */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** string username = 1; */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string password = 2; */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** string password = 2; */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** string password = 2; */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_userPrivilege) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_userPrivilege) + private static final org.aion.api.server.pb.Message.req_userPrivilege DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_userPrivilege(); + } + + public static org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_userPrivilege parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_userPrivilege(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_userPrivilegeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_userPrivilege) + com.google.protobuf.MessageOrBuilder { + + /** repeated string privilege = 1; */ + java.util.List getPrivilegeList(); + /** repeated string privilege = 1; */ + int getPrivilegeCount(); + /** repeated string privilege = 1; */ + java.lang.String getPrivilege(int index); + /** repeated string privilege = 1; */ + com.google.protobuf.ByteString getPrivilegeBytes(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} */ + public static final class rsp_userPrivilege extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_userPrivilege) + rsp_userPrivilegeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_userPrivilege.newBuilder() to construct. + private rsp_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_userPrivilege() { + privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_userPrivilege( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + privilege_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = privilege_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_userPrivilege.class, + org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); + } + + public static final int PRIVILEGE_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList privilege_; + /** repeated string privilege = 1; */ + public com.google.protobuf.ProtocolStringList getPrivilegeList() { + return privilege_; + } + /** repeated string privilege = 1; */ + public int getPrivilegeCount() { + return privilege_.size(); + } + /** repeated string privilege = 1; */ + public java.lang.String getPrivilege(int index) { + return privilege_.get(index); + } + /** repeated string privilege = 1; */ + public com.google.protobuf.ByteString getPrivilegeBytes(int index) { + return privilege_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < privilege_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privilege_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < privilege_.size(); i++) { + dataSize += computeStringSizeNoTag(privilege_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrivilegeList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_userPrivilege)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_userPrivilege other = + (org.aion.api.server.pb.Message.rsp_userPrivilege) obj; + + boolean result = true; + result = result && getPrivilegeList().equals(other.getPrivilegeList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivilegeCount() > 0) { + hash = (37 * hash) + PRIVILEGE_FIELD_NUMBER; + hash = (53 * hash) + getPrivilegeList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_userPrivilege prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_userPrivilege) + org.aion.api.server.pb.Message.rsp_userPrivilegeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_userPrivilege.class, + org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_userPrivilege.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_userPrivilege build() { + org.aion.api.server.pb.Message.rsp_userPrivilege result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_userPrivilege buildPartial() { + org.aion.api.server.pb.Message.rsp_userPrivilege result = + new org.aion.api.server.pb.Message.rsp_userPrivilege(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = privilege_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privilege_ = privilege_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_userPrivilege) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_userPrivilege) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_userPrivilege other) { + if (other == org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance()) + return this; + if (!other.privilege_.isEmpty()) { + if (privilege_.isEmpty()) { + privilege_ = other.privilege_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivilegeIsMutable(); + privilege_.addAll(other.privilege_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_userPrivilege parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_userPrivilege) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList privilege_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePrivilegeIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = new com.google.protobuf.LazyStringArrayList(privilege_); + bitField0_ |= 0x00000001; + } + } + /** repeated string privilege = 1; */ + public com.google.protobuf.ProtocolStringList getPrivilegeList() { + return privilege_.getUnmodifiableView(); + } + /** repeated string privilege = 1; */ + public int getPrivilegeCount() { + return privilege_.size(); + } + /** repeated string privilege = 1; */ + public java.lang.String getPrivilege(int index) { + return privilege_.get(index); + } + /** repeated string privilege = 1; */ + public com.google.protobuf.ByteString getPrivilegeBytes(int index) { + return privilege_.getByteString(index); + } + /** repeated string privilege = 1; */ + public Builder setPrivilege(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivilegeIsMutable(); + privilege_.set(index, value); + onChanged(); + return this; + } + /** repeated string privilege = 1; */ + public Builder addPrivilege(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivilegeIsMutable(); + privilege_.add(value); + onChanged(); + return this; + } + /** repeated string privilege = 1; */ + public Builder addAllPrivilege(java.lang.Iterable values) { + ensurePrivilegeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privilege_); + onChanged(); + return this; + } + /** repeated string privilege = 1; */ + public Builder clearPrivilege() { + privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** repeated string privilege = 1; */ + public Builder addPrivilegeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrivilegeIsMutable(); + privilege_.add(value); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_userPrivilege) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_userPrivilege) + private static final org.aion.api.server.pb.Message.rsp_userPrivilege DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_userPrivilege(); + } + + public static org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_userPrivilege parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_userPrivilege(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_queryCtEventsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_queryCtEvents) + com.google.protobuf.MessageOrBuilder { + + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + boolean hasFilter(); + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + org.aion.api.server.pb.Message.t_FilterCt getFilter(); + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); + } + /** Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} */ + public static final class req_queryCtEvents extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_queryCtEvents) + req_queryCtEventsOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_queryCtEvents.newBuilder() to construct. + private req_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_queryCtEvents() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_queryCtEvents( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = + input.readMessage( + org.aion.api.server.pb.Message.t_FilterCt.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_queryCtEvents.class, + org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + private org.aion.api.server.pb.Message.t_FilterCt filter_; + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public boolean hasFilter() { + return filter_ != null; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + return filter_ == null + ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() + : filter_; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (filter_ != null) { + output.writeMessage(1, getFilter()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFilter()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_queryCtEvents)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_queryCtEvents other = + (org.aion.api.server.pb.Message.req_queryCtEvents) obj; + + boolean result = true; + result = result && (hasFilter() == other.hasFilter()); + if (hasFilter()) { + result = result && getFilter().equals(other.getFilter()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_queryCtEvents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_queryCtEvents) + org.aion.api.server.pb.Message.req_queryCtEventsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_queryCtEvents.class, + org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_queryCtEvents.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + } + + public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_queryCtEvents build() { + org.aion.api.server.pb.Message.req_queryCtEvents result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_queryCtEvents buildPartial() { + org.aion.api.server.pb.Message.req_queryCtEvents result = + new org.aion.api.server.pb.Message.req_queryCtEvents(this); + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_queryCtEvents) { + return mergeFrom((org.aion.api.server.pb.Message.req_queryCtEvents) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_queryCtEvents other) { + if (other == org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance()) + return this; + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_queryCtEvents parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_queryCtEvents) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, + org.aion.api.server.pb.Message.t_FilterCt.Builder, + org.aion.api.server.pb.Message.t_FilterCtOrBuilder> + filterBuilder_; + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public Builder setFilter( + org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + org.aion.api.server.pb.Message.t_FilterCt + .newBuilder(filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() + : filter_; + } + } + /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, + org.aion.api.server.pb.Message.t_FilterCt.Builder, + org.aion.api.server.pb.Message.t_FilterCtOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, + org.aion.api.server.pb.Message.t_FilterCt.Builder, + org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_queryCtEvents) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_queryCtEvents) + private static final org.aion.api.server.pb.Message.req_queryCtEvents DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_queryCtEvents(); + } + + public static org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_queryCtEvents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_queryCtEvents(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_queryCtEventsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_queryCtEvents) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + java.util.List getEcList(); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + org.aion.api.server.pb.Message.t_EventCt getEc(int index); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + int getEcCount(); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + java.util.List + getEcOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} */ + public static final class rsp_queryCtEvents extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_queryCtEvents) + rsp_queryCtEventsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_queryCtEvents.newBuilder() to construct. + private rsp_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_queryCtEvents() { + ec_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_queryCtEvents( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_EventCt>(); + mutable_bitField0_ |= 0x00000001; + } + ec_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_EventCt.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_queryCtEvents.class, + org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); + } + + public static final int EC_FIELD_NUMBER = 1; + private java.util.List ec_; + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List getEcList() { + return ec_; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List + getEcOrBuilderList() { + return ec_; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public int getEcCount() { + return ec_.size(); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + return ec_.get(index); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { + return ec_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < ec_.size(); i++) { + output.writeMessage(1, ec_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < ec_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ec_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_queryCtEvents other = + (org.aion.api.server.pb.Message.rsp_queryCtEvents) obj; + + boolean result = true; + result = result && getEcList().equals(other.getEcList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEcCount() > 0) { + hash = (37 * hash) + EC_FIELD_NUMBER; + hash = (53 * hash) + getEcList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_queryCtEvents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_queryCtEvents) + org.aion.api.server.pb.Message.rsp_queryCtEventsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_queryCtEvents.class, + org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_queryCtEvents.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEcFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ecBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_queryCtEvents build() { + org.aion.api.server.pb.Message.rsp_queryCtEvents result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_queryCtEvents buildPartial() { + org.aion.api.server.pb.Message.rsp_queryCtEvents result = + new org.aion.api.server.pb.Message.rsp_queryCtEvents(this); + int from_bitField0_ = bitField0_; + if (ecBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ec_ = ec_; + } else { + result.ec_ = ecBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_queryCtEvents) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_queryCtEvents other) { + if (other == org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance()) + return this; + if (ecBuilder_ == null) { + if (!other.ec_.isEmpty()) { + if (ec_.isEmpty()) { + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEcIsMutable(); + ec_.addAll(other.ec_); + } + onChanged(); + } + } else { + if (!other.ec_.isEmpty()) { + if (ecBuilder_.isEmpty()) { + ecBuilder_.dispose(); + ecBuilder_ = null; + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + ecBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEcFieldBuilder() + : null; + } else { + ecBuilder_.addAllMessages(other.ec_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_queryCtEvents parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_queryCtEvents) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List ec_ = + java.util.Collections.emptyList(); + + private void ensureEcIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = new java.util.ArrayList(ec_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, + org.aion.api.server.pb.Message.t_EventCt.Builder, + org.aion.api.server.pb.Message.t_EventCtOrBuilder> + ecBuilder_; + + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List getEcList() { + if (ecBuilder_ == null) { + return java.util.Collections.unmodifiableList(ec_); + } else { + return ecBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public int getEcCount() { + if (ecBuilder_ == null) { + return ec_.size(); + } else { + return ecBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + if (ecBuilder_ == null) { + return ec_.get(index); + } else { + return ecBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder setEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.set(index, value); + onChanged(); + } else { + ecBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder setEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.set(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(value); + onChanged(); + } else { + ecBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(index, value); + onChanged(); + } else { + ecBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc(org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder addAllEc( + java.lang.Iterable values) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ec_); + onChanged(); + } else { + ecBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder clearEc() { + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ecBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public Builder removeEc(int index) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.remove(index); + onChanged(); + } else { + ecBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder(int index) { + return getEcFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { + if (ecBuilder_ == null) { + return ec_.get(index); + } else { + return ecBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List + getEcOrBuilderList() { + if (ecBuilder_ != null) { + return ecBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ec_); + } + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { + return getEcFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder(int index) { + return getEcFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ + public java.util.List + getEcBuilderList() { + return getEcFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, + org.aion.api.server.pb.Message.t_EventCt.Builder, + org.aion.api.server.pb.Message.t_EventCtOrBuilder> + getEcFieldBuilder() { + if (ecBuilder_ == null) { + ecBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, + org.aion.api.server.pb.Message.t_EventCt.Builder, + org.aion.api.server.pb.Message.t_EventCtOrBuilder>( + ec_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + ec_ = null; + } + return ecBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_queryCtEvents) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_queryCtEvents) + private static final org.aion.api.server.pb.Message.rsp_queryCtEvents DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_queryCtEvents(); + } + + public static org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_queryCtEvents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_queryCtEvents(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface t_PrivateKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_PrivateKey) + com.google.protobuf.MessageOrBuilder { + + /** string privateKey = 1; */ + java.lang.String getPrivateKey(); + /** string privateKey = 1; */ + com.google.protobuf.ByteString getPrivateKeyBytes(); + + /** string password = 2; */ + java.lang.String getPassword(); + /** string password = 2; */ + com.google.protobuf.ByteString getPasswordBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} */ + public static final class t_PrivateKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_PrivateKey) + t_PrivateKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_PrivateKey.newBuilder() to construct. + private t_PrivateKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private t_PrivateKey() { + privateKey_ = ""; + password_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private t_PrivateKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + privateKey_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_PrivateKey.class, + org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); + } + + public static final int PRIVATEKEY_FIELD_NUMBER = 1; + private volatile java.lang.Object privateKey_; + /** string privateKey = 1; */ + public java.lang.String getPrivateKey() { + java.lang.Object ref = privateKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKey_ = s; + return s; + } + } + /** string privateKey = 1; */ + public com.google.protobuf.ByteString getPrivateKeyBytes() { + java.lang.Object ref = privateKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPrivateKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateKey_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPrivateKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateKey_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_PrivateKey)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_PrivateKey other = + (org.aion.api.server.pb.Message.t_PrivateKey) obj; + + boolean result = true; + result = result && getPrivateKey().equals(other.getPrivateKey()); + result = result && getPassword().equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKey().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.t_PrivateKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_PrivateKey) + org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_PrivateKey.class, + org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_PrivateKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + privateKey_ = ""; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + } + + public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_PrivateKey build() { + org.aion.api.server.pb.Message.t_PrivateKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_PrivateKey buildPartial() { + org.aion.api.server.pb.Message.t_PrivateKey result = + new org.aion.api.server.pb.Message.t_PrivateKey(this); + result.privateKey_ = privateKey_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_PrivateKey) { + return mergeFrom((org.aion.api.server.pb.Message.t_PrivateKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_PrivateKey other) { + if (other == org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()) + return this; + if (!other.getPrivateKey().isEmpty()) { + privateKey_ = other.privateKey_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_PrivateKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.t_PrivateKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object privateKey_ = ""; + /** string privateKey = 1; */ + public java.lang.String getPrivateKey() { + java.lang.Object ref = privateKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string privateKey = 1; */ + public com.google.protobuf.ByteString getPrivateKeyBytes() { + java.lang.Object ref = privateKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string privateKey = 1; */ + public Builder setPrivateKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateKey_ = value; + onChanged(); + return this; + } + /** string privateKey = 1; */ + public Builder clearPrivateKey() { + + privateKey_ = getDefaultInstance().getPrivateKey(); + onChanged(); + return this; + } + /** string privateKey = 1; */ + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string password = 2; */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** string password = 2; */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** string password = 2; */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_PrivateKey) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_PrivateKey) + private static final org.aion.api.server.pb.Message.t_PrivateKey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_PrivateKey(); + } + + public static org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_PrivateKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_PrivateKey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_importAccountsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_importAccounts) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + java.util.List getPrivateKeyList(); + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index); + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + int getPrivateKeyCount(); + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + java.util.List + getPrivateKeyOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.req_importAccounts} */ + public static final class req_importAccounts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_importAccounts) + req_importAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_importAccounts.newBuilder() to construct. + private req_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_importAccounts() { + privateKey_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_importAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_PrivateKey>(); + mutable_bitField0_ |= 0x00000001; + } + privateKey_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_PrivateKey + .parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_importAccounts.class, + org.aion.api.server.pb.Message.req_importAccounts.Builder.class); + } + + public static final int PRIVATEKEY_FIELD_NUMBER = 1; + private java.util.List privateKey_; + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public java.util.List getPrivateKeyList() { + return privateKey_; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public java.util.List + getPrivateKeyOrBuilderList() { + return privateKey_; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public int getPrivateKeyCount() { + return privateKey_.size(); + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { + return privateKey_.get(index); + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( + int index) { + return privateKey_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < privateKey_.size(); i++) { + output.writeMessage(1, privateKey_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateKey_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, privateKey_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_importAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_importAccounts other = + (org.aion.api.server.pb.Message.req_importAccounts) obj; + + boolean result = true; + result = result && getPrivateKeyList().equals(other.getPrivateKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateKeyCount() > 0) { + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_importAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_importAccounts} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_importAccounts) + org.aion.api.server.pb.Message.req_importAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_importAccounts.class, + org.aion.api.server.pb.Message.req_importAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_importAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrivateKeyFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (privateKeyBuilder_ == null) { + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + privateKeyBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_importAccounts build() { + org.aion.api.server.pb.Message.req_importAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_importAccounts buildPartial() { + org.aion.api.server.pb.Message.req_importAccounts result = + new org.aion.api.server.pb.Message.req_importAccounts(this); + int from_bitField0_ = bitField0_; + if (privateKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateKey_ = privateKey_; + } else { + result.privateKey_ = privateKeyBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_importAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.req_importAccounts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_importAccounts other) { + if (other == org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance()) + return this; + if (privateKeyBuilder_ == null) { + if (!other.privateKey_.isEmpty()) { + if (privateKey_.isEmpty()) { + privateKey_ = other.privateKey_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateKeyIsMutable(); + privateKey_.addAll(other.privateKey_); + } + onChanged(); + } + } else { + if (!other.privateKey_.isEmpty()) { + if (privateKeyBuilder_.isEmpty()) { + privateKeyBuilder_.dispose(); + privateKeyBuilder_ = null; + privateKey_ = other.privateKey_; + bitField0_ = (bitField0_ & ~0x00000001); + privateKeyBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateKeyFieldBuilder() + : null; + } else { + privateKeyBuilder_.addAllMessages(other.privateKey_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_importAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_importAccounts) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List privateKey_ = + java.util.Collections.emptyList(); + + private void ensurePrivateKeyIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = + new java.util.ArrayList( + privateKey_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_PrivateKey, + org.aion.api.server.pb.Message.t_PrivateKey.Builder, + org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> + privateKeyBuilder_; + + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public java.util.List getPrivateKeyList() { + if (privateKeyBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateKey_); + } else { + return privateKeyBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public int getPrivateKeyCount() { + if (privateKeyBuilder_ == null) { + return privateKey_.size(); + } else { + return privateKeyBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { + if (privateKeyBuilder_ == null) { + return privateKey_.get(index); + } else { + return privateKeyBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder setPrivateKey( + int index, org.aion.api.server.pb.Message.t_PrivateKey value) { + if (privateKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.set(index, value); + onChanged(); + } else { + privateKeyBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder setPrivateKey( + int index, + org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.set(index, builderForValue.build()); + onChanged(); + } else { + privateKeyBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder addPrivateKey(org.aion.api.server.pb.Message.t_PrivateKey value) { + if (privateKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.add(value); + onChanged(); + } else { + privateKeyBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder addPrivateKey( + int index, org.aion.api.server.pb.Message.t_PrivateKey value) { + if (privateKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.add(index, value); + onChanged(); + } else { + privateKeyBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder addPrivateKey( + org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.add(builderForValue.build()); + onChanged(); + } else { + privateKeyBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder addPrivateKey( + int index, + org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.add(index, builderForValue.build()); + onChanged(); + } else { + privateKeyBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder addAllPrivateKey( + java.lang.Iterable + values) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateKey_); + onChanged(); + } else { + privateKeyBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder clearPrivateKey() { + if (privateKeyBuilder_ == null) { + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateKeyBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public Builder removePrivateKey(int index) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.remove(index); + onChanged(); + } else { + privateKeyBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public org.aion.api.server.pb.Message.t_PrivateKey.Builder getPrivateKeyBuilder( + int index) { + return getPrivateKeyFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( + int index) { + if (privateKeyBuilder_ == null) { + return privateKey_.get(index); + } else { + return privateKeyBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public java.util.List + getPrivateKeyOrBuilderList() { + if (privateKeyBuilder_ != null) { + return privateKeyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateKey_); + } + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder() { + return getPrivateKeyFieldBuilder() + .addBuilder( + org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder( + int index) { + return getPrivateKeyFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ + public java.util.List + getPrivateKeyBuilderList() { + return getPrivateKeyFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_PrivateKey, + org.aion.api.server.pb.Message.t_PrivateKey.Builder, + org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> + getPrivateKeyFieldBuilder() { + if (privateKeyBuilder_ == null) { + privateKeyBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_PrivateKey, + org.aion.api.server.pb.Message.t_PrivateKey.Builder, + org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder>( + privateKey_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + privateKey_ = null; + } + return privateKeyBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_importAccounts) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_importAccounts) + private static final org.aion.api.server.pb.Message.req_importAccounts DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_importAccounts(); + } + + public static org.aion.api.server.pb.Message.req_importAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_importAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_importAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_importAccountsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_importAccounts) + com.google.protobuf.MessageOrBuilder { + + /** repeated string invalidKey = 1; */ + java.util.List getInvalidKeyList(); + /** repeated string invalidKey = 1; */ + int getInvalidKeyCount(); + /** repeated string invalidKey = 1; */ + java.lang.String getInvalidKey(int index); + /** repeated string invalidKey = 1; */ + com.google.protobuf.ByteString getInvalidKeyBytes(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} */ + public static final class rsp_importAccounts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_importAccounts) + rsp_importAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_importAccounts.newBuilder() to construct. + private rsp_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_importAccounts() { + invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_importAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + invalidKey_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = invalidKey_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_importAccounts.class, + org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); + } + + public static final int INVALIDKEY_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList invalidKey_; + /** repeated string invalidKey = 1; */ + public com.google.protobuf.ProtocolStringList getInvalidKeyList() { + return invalidKey_; + } + /** repeated string invalidKey = 1; */ + public int getInvalidKeyCount() { + return invalidKey_.size(); + } + /** repeated string invalidKey = 1; */ + public java.lang.String getInvalidKey(int index) { + return invalidKey_.get(index); + } + /** repeated string invalidKey = 1; */ + public com.google.protobuf.ByteString getInvalidKeyBytes(int index) { + return invalidKey_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < invalidKey_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, invalidKey_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < invalidKey_.size(); i++) { + dataSize += computeStringSizeNoTag(invalidKey_.getRaw(i)); + } + size += dataSize; + size += 1 * getInvalidKeyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_importAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_importAccounts other = + (org.aion.api.server.pb.Message.rsp_importAccounts) obj; + + boolean result = true; + result = result && getInvalidKeyList().equals(other.getInvalidKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInvalidKeyCount() > 0) { + hash = (37 * hash) + INVALIDKEY_FIELD_NUMBER; + hash = (53 * hash) + getInvalidKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_importAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_importAccounts) + org.aion.api.server.pb.Message.rsp_importAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_importAccounts.class, + org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_importAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_importAccounts build() { + org.aion.api.server.pb.Message.rsp_importAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_importAccounts buildPartial() { + org.aion.api.server.pb.Message.rsp_importAccounts result = + new org.aion.api.server.pb.Message.rsp_importAccounts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = invalidKey_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.invalidKey_ = invalidKey_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_importAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_importAccounts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_importAccounts other) { + if (other == org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance()) + return this; + if (!other.invalidKey_.isEmpty()) { + if (invalidKey_.isEmpty()) { + invalidKey_ = other.invalidKey_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInvalidKeyIsMutable(); + invalidKey_.addAll(other.invalidKey_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_importAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_importAccounts) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList invalidKey_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInvalidKeyIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = new com.google.protobuf.LazyStringArrayList(invalidKey_); + bitField0_ |= 0x00000001; + } + } + /** repeated string invalidKey = 1; */ + public com.google.protobuf.ProtocolStringList getInvalidKeyList() { + return invalidKey_.getUnmodifiableView(); + } + /** repeated string invalidKey = 1; */ + public int getInvalidKeyCount() { + return invalidKey_.size(); + } + /** repeated string invalidKey = 1; */ + public java.lang.String getInvalidKey(int index) { + return invalidKey_.get(index); + } + /** repeated string invalidKey = 1; */ + public com.google.protobuf.ByteString getInvalidKeyBytes(int index) { + return invalidKey_.getByteString(index); + } + /** repeated string invalidKey = 1; */ + public Builder setInvalidKey(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidKeyIsMutable(); + invalidKey_.set(index, value); + onChanged(); + return this; + } + /** repeated string invalidKey = 1; */ + public Builder addInvalidKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidKeyIsMutable(); + invalidKey_.add(value); + onChanged(); + return this; + } + /** repeated string invalidKey = 1; */ + public Builder addAllInvalidKey(java.lang.Iterable values) { + ensureInvalidKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidKey_); + onChanged(); + return this; + } + /** repeated string invalidKey = 1; */ + public Builder clearInvalidKey() { + invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** repeated string invalidKey = 1; */ + public Builder addInvalidKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInvalidKeyIsMutable(); + invalidKey_.add(value); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_importAccounts) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_importAccounts) + private static final org.aion.api.server.pb.Message.rsp_importAccounts DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_importAccounts(); + } + + public static org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_importAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_importAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface t_KeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Key) + com.google.protobuf.MessageOrBuilder { + + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); + + /** string password = 2; */ + java.lang.String getPassword(); + /** string password = 2; */ + com.google.protobuf.ByteString getPasswordBytes(); + } + /** Protobuf type {@code org.aion.api.server.pb.t_Key} */ + public static final class t_Key extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Key) + t_KeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Key.newBuilder() to construct. + private t_Key(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private t_Key() { + address_ = com.google.protobuf.ByteString.EMPTY; + password_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private t_Key( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Key_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Key.class, + org.aion.api.server.pb.Message.t_Key.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Key)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_Key other = (org.aion.api.server.pb.Message.t_Key) obj; + + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && getPassword().equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Key prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.t_Key} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Key) + org.aion.api.server.pb.Message.t_KeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Key_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Key.class, + org.aion.api.server.pb.Message.t_Key.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_Key.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_t_Key_descriptor; + } + + public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Key.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_Key build() { + org.aion.api.server.pb.Message.t_Key result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_Key buildPartial() { + org.aion.api.server.pb.Message.t_Key result = + new org.aion.api.server.pb.Message.t_Key(this); + result.address_ = address_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Key) { + return mergeFrom((org.aion.api.server.pb.Message.t_Key) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Key other) { + if (other == org.aion.api.server.pb.Message.t_Key.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Key parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_Key) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** string password = 2; */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** string password = 2; */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** string password = 2; */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** string password = 2; */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** string password = 2; */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Key) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Key) + private static final org.aion.api.server.pb.Message.t_Key DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Key(); + } + + public static org.aion.api.server.pb.Message.t_Key getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public t_Key parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Key(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface req_exportAccountsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_exportAccounts) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + java.util.List getKeyFileList(); + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + org.aion.api.server.pb.Message.t_Key getKeyFile(int index); + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + int getKeyFileCount(); + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + java.util.List + getKeyFileOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} */ + public static final class req_exportAccounts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_exportAccounts) + req_exportAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_exportAccounts.newBuilder() to construct. + private req_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_exportAccounts() { + keyFile_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_exportAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_Key>(); + mutable_bitField0_ |= 0x00000001; + } + keyFile_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_Key.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_exportAccounts.class, + org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); + } + + public static final int KEYFILE_FIELD_NUMBER = 1; + private java.util.List keyFile_; + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public java.util.List getKeyFileList() { + return keyFile_; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public java.util.List + getKeyFileOrBuilderList() { + return keyFile_; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public int getKeyFileCount() { + return keyFile_.size(); + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { + return keyFile_.get(index); + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder(int index) { + return keyFile_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < keyFile_.size(); i++) { + output.writeMessage(1, keyFile_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < keyFile_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, keyFile_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_exportAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_exportAccounts other = + (org.aion.api.server.pb.Message.req_exportAccounts) obj; + + boolean result = true; + result = result && getKeyFileList().equals(other.getKeyFileList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeyFileCount() > 0) { + hash = (37 * hash) + KEYFILE_FIELD_NUMBER; + hash = (53 * hash) + getKeyFileList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_exportAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_exportAccounts) + org.aion.api.server.pb.Message.req_exportAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_exportAccounts.class, + org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_exportAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKeyFileFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (keyFileBuilder_ == null) { + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + keyFileBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_exportAccounts build() { + org.aion.api.server.pb.Message.req_exportAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_exportAccounts buildPartial() { + org.aion.api.server.pb.Message.req_exportAccounts result = + new org.aion.api.server.pb.Message.req_exportAccounts(this); + int from_bitField0_ = bitField0_; + if (keyFileBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keyFile_ = keyFile_; + } else { + result.keyFile_ = keyFileBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_exportAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.req_exportAccounts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_exportAccounts other) { + if (other == org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance()) + return this; + if (keyFileBuilder_ == null) { + if (!other.keyFile_.isEmpty()) { + if (keyFile_.isEmpty()) { + keyFile_ = other.keyFile_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeyFileIsMutable(); + keyFile_.addAll(other.keyFile_); + } + onChanged(); + } + } else { + if (!other.keyFile_.isEmpty()) { + if (keyFileBuilder_.isEmpty()) { + keyFileBuilder_.dispose(); + keyFileBuilder_ = null; + keyFile_ = other.keyFile_; + bitField0_ = (bitField0_ & ~0x00000001); + keyFileBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeyFileFieldBuilder() + : null; + } else { + keyFileBuilder_.addAllMessages(other.keyFile_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_exportAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_exportAccounts) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List keyFile_ = + java.util.Collections.emptyList(); + + private void ensureKeyFileIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = + new java.util.ArrayList(keyFile_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Key, + org.aion.api.server.pb.Message.t_Key.Builder, + org.aion.api.server.pb.Message.t_KeyOrBuilder> + keyFileBuilder_; + + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public java.util.List getKeyFileList() { + if (keyFileBuilder_ == null) { + return java.util.Collections.unmodifiableList(keyFile_); + } else { + return keyFileBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public int getKeyFileCount() { + if (keyFileBuilder_ == null) { + return keyFile_.size(); + } else { + return keyFileBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { + if (keyFileBuilder_ == null) { + return keyFile_.get(index); + } else { + return keyFileBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder setKeyFile(int index, org.aion.api.server.pb.Message.t_Key value) { + if (keyFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.set(index, value); + onChanged(); + } else { + keyFileBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder setKeyFile( + int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.set(index, builderForValue.build()); + onChanged(); + } else { + keyFileBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder addKeyFile(org.aion.api.server.pb.Message.t_Key value) { + if (keyFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.add(value); + onChanged(); + } else { + keyFileBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder addKeyFile(int index, org.aion.api.server.pb.Message.t_Key value) { + if (keyFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.add(index, value); + onChanged(); + } else { + keyFileBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder addKeyFile( + org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.add(builderForValue.build()); + onChanged(); + } else { + keyFileBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder addKeyFile( + int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.add(index, builderForValue.build()); + onChanged(); + } else { + keyFileBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder addAllKeyFile( + java.lang.Iterable values) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyFile_); + onChanged(); + } else { + keyFileBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder clearKeyFile() { + if (keyFileBuilder_ == null) { + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keyFileBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public Builder removeKeyFile(int index) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.remove(index); + onChanged(); + } else { + keyFileBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public org.aion.api.server.pb.Message.t_Key.Builder getKeyFileBuilder(int index) { + return getKeyFileFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder(int index) { + if (keyFileBuilder_ == null) { + return keyFile_.get(index); + } else { + return keyFileBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public java.util.List + getKeyFileOrBuilderList() { + if (keyFileBuilder_ != null) { + return keyFileBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keyFile_); + } + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder() { + return getKeyFileFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder(int index) { + return getKeyFileFieldBuilder() + .addBuilder( + index, org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ + public java.util.List + getKeyFileBuilderList() { + return getKeyFileFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Key, + org.aion.api.server.pb.Message.t_Key.Builder, + org.aion.api.server.pb.Message.t_KeyOrBuilder> + getKeyFileFieldBuilder() { + if (keyFileBuilder_ == null) { + keyFileBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Key, + org.aion.api.server.pb.Message.t_Key.Builder, + org.aion.api.server.pb.Message.t_KeyOrBuilder>( + keyFile_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + keyFile_ = null; + } + return keyFileBuilder_; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_exportAccounts) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_exportAccounts) + private static final org.aion.api.server.pb.Message.req_exportAccounts DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_exportAccounts(); + } + + public static org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_exportAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_exportAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_exportAccountsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_exportAccounts) + com.google.protobuf.MessageOrBuilder { + + /** repeated bytes keyFile = 1; */ + java.util.List getKeyFileList(); + /** repeated bytes keyFile = 1; */ + int getKeyFileCount(); + /** repeated bytes keyFile = 1; */ + com.google.protobuf.ByteString getKeyFile(int index); + + /** repeated bytes failedKey = 2; */ + java.util.List getFailedKeyList(); + /** repeated bytes failedKey = 2; */ + int getFailedKeyCount(); + /** repeated bytes failedKey = 2; */ + com.google.protobuf.ByteString getFailedKey(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} */ + public static final class rsp_exportAccounts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_exportAccounts) + rsp_exportAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_exportAccounts.newBuilder() to construct. + private rsp_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_exportAccounts() { + keyFile_ = java.util.Collections.emptyList(); + failedKey_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_exportAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00000001; + } + keyFile_.add(input.readBytes()); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00000002; + } + failedKey_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = java.util.Collections.unmodifiableList(failedKey_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_exportAccounts.class, + org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); + } + + public static final int KEYFILE_FIELD_NUMBER = 1; + private java.util.List keyFile_; + /** repeated bytes keyFile = 1; */ + public java.util.List getKeyFileList() { + return keyFile_; + } + /** repeated bytes keyFile = 1; */ + public int getKeyFileCount() { + return keyFile_.size(); + } + /** repeated bytes keyFile = 1; */ + public com.google.protobuf.ByteString getKeyFile(int index) { + return keyFile_.get(index); + } + + public static final int FAILEDKEY_FIELD_NUMBER = 2; + private java.util.List failedKey_; + /** repeated bytes failedKey = 2; */ + public java.util.List getFailedKeyList() { + return failedKey_; + } + /** repeated bytes failedKey = 2; */ + public int getFailedKeyCount() { + return failedKey_.size(); + } + /** repeated bytes failedKey = 2; */ + public com.google.protobuf.ByteString getFailedKey(int index) { + return failedKey_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < keyFile_.size(); i++) { + output.writeBytes(1, keyFile_.get(i)); + } + for (int i = 0; i < failedKey_.size(); i++) { + output.writeBytes(2, failedKey_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < keyFile_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + keyFile_.get(i)); + } + size += dataSize; + size += 1 * getKeyFileList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < failedKey_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + failedKey_.get(i)); + } + size += dataSize; + size += 1 * getFailedKeyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_exportAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_exportAccounts other = + (org.aion.api.server.pb.Message.rsp_exportAccounts) obj; + + boolean result = true; + result = result && getKeyFileList().equals(other.getKeyFileList()); + result = result && getFailedKeyList().equals(other.getFailedKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeyFileCount() > 0) { + hash = (37 * hash) + KEYFILE_FIELD_NUMBER; + hash = (53 * hash) + getKeyFileList().hashCode(); + } + if (getFailedKeyCount() > 0) { + hash = (37 * hash) + FAILEDKEY_FIELD_NUMBER; + hash = (53 * hash) + getFailedKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_exportAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_exportAccounts) + org.aion.api.server.pb.Message.rsp_exportAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_exportAccounts.class, + org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_exportAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + failedKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_exportAccounts build() { + org.aion.api.server.pb.Message.rsp_exportAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_exportAccounts buildPartial() { + org.aion.api.server.pb.Message.rsp_exportAccounts result = + new org.aion.api.server.pb.Message.rsp_exportAccounts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keyFile_ = keyFile_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = java.util.Collections.unmodifiableList(failedKey_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.failedKey_ = failedKey_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_exportAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_exportAccounts) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_exportAccounts other) { + if (other == org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance()) + return this; + if (!other.keyFile_.isEmpty()) { + if (keyFile_.isEmpty()) { + keyFile_ = other.keyFile_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeyFileIsMutable(); + keyFile_.addAll(other.keyFile_); + } + onChanged(); + } + if (!other.failedKey_.isEmpty()) { + if (failedKey_.isEmpty()) { + failedKey_ = other.failedKey_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFailedKeyIsMutable(); + failedKey_.addAll(other.failedKey_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_exportAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_exportAccounts) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List keyFile_ = + java.util.Collections.emptyList(); + + private void ensureKeyFileIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = new java.util.ArrayList(keyFile_); + bitField0_ |= 0x00000001; + } + } + /** repeated bytes keyFile = 1; */ + public java.util.List getKeyFileList() { + return java.util.Collections.unmodifiableList(keyFile_); + } + /** repeated bytes keyFile = 1; */ + public int getKeyFileCount() { + return keyFile_.size(); + } + /** repeated bytes keyFile = 1; */ + public com.google.protobuf.ByteString getKeyFile(int index) { + return keyFile_.get(index); + } + /** repeated bytes keyFile = 1; */ + public Builder setKeyFile(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes keyFile = 1; */ + public Builder addKeyFile(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.add(value); + onChanged(); + return this; + } + /** repeated bytes keyFile = 1; */ + public Builder addAllKeyFile( + java.lang.Iterable values) { + ensureKeyFileIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyFile_); + onChanged(); + return this; + } + /** repeated bytes keyFile = 1; */ + public Builder clearKeyFile() { + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List failedKey_ = + java.util.Collections.emptyList(); + + private void ensureFailedKeyIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = + new java.util.ArrayList(failedKey_); + bitField0_ |= 0x00000002; + } + } + /** repeated bytes failedKey = 2; */ + public java.util.List getFailedKeyList() { + return java.util.Collections.unmodifiableList(failedKey_); + } + /** repeated bytes failedKey = 2; */ + public int getFailedKeyCount() { + return failedKey_.size(); + } + /** repeated bytes failedKey = 2; */ + public com.google.protobuf.ByteString getFailedKey(int index) { + return failedKey_.get(index); + } + /** repeated bytes failedKey = 2; */ + public Builder setFailedKey(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedKeyIsMutable(); + failedKey_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes failedKey = 2; */ + public Builder addFailedKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedKeyIsMutable(); + failedKey_.add(value); + onChanged(); + return this; + } + /** repeated bytes failedKey = 2; */ + public Builder addAllFailedKey( + java.lang.Iterable values) { + ensureFailedKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, failedKey_); + onChanged(); + return this; + } + /** repeated bytes failedKey = 2; */ + public Builder clearFailedKey() { + failedKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_exportAccounts) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_exportAccounts) + private static final org.aion.api.server.pb.Message.rsp_exportAccounts DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_exportAccounts(); + } + + public static org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_exportAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_exportAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface rsp_getCurrentTotalDifficultyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + com.google.protobuf.MessageOrBuilder { + + /** bytes totalDiff = 1; */ + com.google.protobuf.ByteString getTotalDiff(); + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} */ + public static final class rsp_getCurrentTotalDifficulty + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + rsp_getCurrentTotalDifficultyOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getCurrentTotalDifficulty.newBuilder() to construct. + private rsp_getCurrentTotalDifficulty( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getCurrentTotalDifficulty() { + totalDiff_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getCurrentTotalDifficulty( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + totalDiff_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + .Builder + .class); + } + + public static final int TOTALDIFF_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString totalDiff_; + /** bytes totalDiff = 1; */ + public com.google.protobuf.ByteString getTotalDiff() { + return totalDiff_; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!totalDiff_.isEmpty()) { + output.writeBytes(1, totalDiff_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!totalDiff_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, totalDiff_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other = + (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) obj; + + boolean result = true; + result = result && getTotalDiff().equals(other.getTotalDiff()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTALDIFF_FIELD_NUMBER; + hash = (53 * hash) + getTotalDiff().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficultyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + public Builder clear() { + super.clear(); + totalDiff_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + .getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty build() { + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty buildPartial() { + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = + new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(this); + result.totalDiff_ = totalDiff_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other) { + if (other + == org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + .getDefaultInstance()) return this; + if (other.getTotalDiff() != com.google.protobuf.ByteString.EMPTY) { + setTotalDiff(other.getTotalDiff()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString totalDiff_ = + com.google.protobuf.ByteString.EMPTY; + /** bytes totalDiff = 1; */ + public com.google.protobuf.ByteString getTotalDiff() { + return totalDiff_; + } + /** bytes totalDiff = 1; */ + public Builder setTotalDiff(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDiff_ = value; + onChanged(); + return this; + } + /** bytes totalDiff = 1; */ + public Builder clearTotalDiff() { + + totalDiff_ = getDefaultInstance().getTotalDiff(); + onChanged(); + return this; + } + + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + private static final org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(); + } + + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getCurrentTotalDifficulty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getCurrentTotalDifficulty(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static final int SOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object source_; - /** - * string source = 1; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } - } - /** - * string source = 1; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public interface req_getBlockDetailsByNumberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByNumber) + com.google.protobuf.MessageOrBuilder { + + /** repeated uint64 blkNumbers = 1; */ + java.util.List getBlkNumbersList(); + /** repeated uint64 blkNumbers = 1; */ + int getBlkNumbersCount(); + /** repeated uint64 blkNumbers = 1; */ + long getBlkNumbers(int index); + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} */ + public static final class req_getBlockDetailsByNumber + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) + req_getBlockDetailsByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockDetailsByNumber.newBuilder() to construct. + private req_getBlockDetailsByNumber( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private req_getBlockDetailsByNumber() { + blkNumbers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private req_getBlockDetailsByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blkNumbers_.add(input.readUInt64()); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) + && input.getBytesUntilLimit() > 0) { + blkNumbers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + blkNumbers_.add(input.readUInt64()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + .Builder + .class); + } + + public static final int BLKNUMBERS_FIELD_NUMBER = 1; + private java.util.List blkNumbers_; + /** repeated uint64 blkNumbers = 1; */ + public java.util.List getBlkNumbersList() { + return blkNumbers_; + } + /** repeated uint64 blkNumbers = 1; */ + public int getBlkNumbersCount() { + return blkNumbers_.size(); + } + /** repeated uint64 blkNumbers = 1; */ + public long getBlkNumbers(int index) { + return blkNumbers_.get(index); + } + + private int blkNumbersMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getBlkNumbersList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(blkNumbersMemoizedSerializedSize); + } + for (int i = 0; i < blkNumbers_.size(); i++) { + output.writeUInt64NoTag(blkNumbers_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < blkNumbers_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeUInt64SizeNoTag( + blkNumbers_.get(i)); + } + size += dataSize; + if (!getBlkNumbersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + blkNumbersMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other = + (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) obj; - memoizedIsInitialized = 1; - return true; - } + boolean result = true; + result = result && getBlkNumbersList().equals(other.getBlkNumbersList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSourceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkNumbersCount() > 0) { + hash = (37 * hash) + BLKNUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getBlkNumbersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSourceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_compileSolidity)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_compileSolidity other = (org.aion.api.server.pb.Message.req_compileSolidity) obj; - - boolean result = true; - result = result && getSource() - .equals(other.getSource()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_compileSolidity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compileSolidity) - org.aion.api.server.pb.Message.req_compileSolidityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compileSolidity.class, org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_compileSolidity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - source_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - } - - public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_compileSolidity build() { - org.aion.api.server.pb.Message.req_compileSolidity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_compileSolidity buildPartial() { - org.aion.api.server.pb.Message.req_compileSolidity result = new org.aion.api.server.pb.Message.req_compileSolidity(this); - result.source_ = source_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_compileSolidity) { - return mergeFrom((org.aion.api.server.pb.Message.req_compileSolidity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_compileSolidity other) { - if (other == org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance()) return this; - if (!other.getSource().isEmpty()) { - source_ = other.source_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_compileSolidity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_compileSolidity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object source_ = ""; - /** - * string source = 1; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string source = 1; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string source = 1; - */ - public Builder setSource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - source_ = value; - onChanged(); - return this; - } - /** - * string source = 1; - */ - public Builder clearSource() { - - source_ = getDefaultInstance().getSource(); - onChanged(); - return this; - } - /** - * string source = 1; - */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - source_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compileSolidity) - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compileSolidity) - private static final org.aion.api.server.pb.Message.req_compileSolidity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compileSolidity(); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_compileSolidity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_compileSolidity(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } - - public interface rsp_compileSolidityOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compileSolidity) - com.google.protobuf.MessageOrBuilder { - - /** - * string code = 1; - */ - java.lang.String getCode(); - /** - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - boolean hasInfo(); - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - org.aion.api.server.pb.Message.t_Contract getInfo(); - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} - */ - public static final class rsp_compileSolidity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compileSolidity) - rsp_compileSolidityOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_compileSolidity.newBuilder() to construct. - private rsp_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_compileSolidity() { - code_ = ""; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_compileSolidity( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 18: { - org.aion.api.server.pb.Message.t_Contract.Builder subBuilder = null; - if (info_ != null) { - subBuilder = info_.toBuilder(); - } - info_ = input.readMessage(org.aion.api.server.pb.Message.t_Contract.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(info_); - info_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - } + public Builder newBuilderForType() { + return newBuilder(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compileSolidity.class, org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int INFO_FIELD_NUMBER = 2; - private org.aion.api.server.pb.Message.t_Contract info_; - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public boolean hasInfo() { - return info_ != null; - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public org.aion.api.server.pb.Message.t_Contract getInfo() { - return info_ == null ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() : info_; - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { - return getInfo(); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) + org.aion.api.server.pb.Message.req_getBlockDetailsByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + .Builder + .class); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (info_ != null) { - output.writeMessage(2, getInfo()); - } - unknownFields.writeTo(output); - } + // Construct using + // org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (info_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compileSolidity)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_compileSolidity other = (org.aion.api.server.pb.Message.rsp_compileSolidity) obj; - - boolean result = true; - result = result && getCode() - .equals(other.getCode()); - result = result && (hasInfo() == other.hasInfo()); - if (hasInfo()) { - result = result && getInfo() - .equals(other.getInfo()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - if (hasInfo()) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder clear() { + super.clear(); + blkNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_compileSolidity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + .getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compileSolidity) - org.aion.api.server.pb.Message.rsp_compileSolidityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compileSolidity.class, org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_compileSolidity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - code_ = ""; - - if (infoBuilder_ == null) { - info_ = null; - } else { - info_ = null; - infoBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_compileSolidity build() { - org.aion.api.server.pb.Message.rsp_compileSolidity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_compileSolidity buildPartial() { - org.aion.api.server.pb.Message.rsp_compileSolidity result = new org.aion.api.server.pb.Message.rsp_compileSolidity(this); - result.code_ = code_; - if (infoBuilder_ == null) { - result.info_ = info_; - } else { - result.info_ = infoBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_compileSolidity) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_compileSolidity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compileSolidity other) { - if (other == org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (other.hasInfo()) { - mergeInfo(other.getInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_compileSolidity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_compileSolidity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private org.aion.api.server.pb.Message.t_Contract info_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_Contract, org.aion.api.server.pb.Message.t_Contract.Builder, org.aion.api.server.pb.Message.t_ContractOrBuilder> infoBuilder_; - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public boolean hasInfo() { - return infoBuilder_ != null || info_ != null; - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public org.aion.api.server.pb.Message.t_Contract getInfo() { - if (infoBuilder_ == null) { - return info_ == null ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() : info_; - } else { - return infoBuilder_.getMessage(); - } - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public Builder setInfo(org.aion.api.server.pb.Message.t_Contract value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - info_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public Builder setInfo( - org.aion.api.server.pb.Message.t_Contract.Builder builderForValue) { - if (infoBuilder_ == null) { - info_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public Builder mergeInfo(org.aion.api.server.pb.Message.t_Contract value) { - if (infoBuilder_ == null) { - if (info_ != null) { - info_ = - org.aion.api.server.pb.Message.t_Contract.newBuilder(info_).mergeFrom(value).buildPartial(); - } else { - info_ = value; - } - onChanged(); - } else { - infoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; - infoBuilder_ = null; - } - - return this; - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public org.aion.api.server.pb.Message.t_Contract.Builder getInfoBuilder() { - - onChanged(); - return getInfoFieldBuilder().getBuilder(); - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { - if (infoBuilder_ != null) { - return infoBuilder_.getMessageOrBuilder(); - } else { - return info_ == null ? - org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() : info_; - } - } - /** - * .org.aion.api.server.pb.t_Contract info = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_Contract, org.aion.api.server.pb.Message.t_Contract.Builder, org.aion.api.server.pb.Message.t_ContractOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_Contract, org.aion.api.server.pb.Message.t_Contract.Builder, org.aion.api.server.pb.Message.t_ContractOrBuilder>( - getInfo(), - getParentForChildren(), - isClean()); - info_ = null; - } - return infoBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compileSolidity) - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber build() { + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compileSolidity) - private static final org.aion.api.server.pb.Message.rsp_compileSolidity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compileSolidity(); - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber buildPartial() { + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = + new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkNumbers_ = blkNumbers_; + onBuilt(); + return result; + } - public static org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clone() { + return (Builder) super.clone(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_compileSolidity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_compileSolidity(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - } - - public interface rsp_getWorkOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getWork) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string work = 1; - */ - java.util.List - getWorkList(); - /** - * repeated string work = 1; - */ - int getWorkCount(); - /** - * repeated string work = 1; - */ - java.lang.String getWork(int index); - /** - * repeated string work = 1; - */ - com.google.protobuf.ByteString - getWorkBytes(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getWork} - */ - public static final class rsp_getWork extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getWork) - rsp_getWorkOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getWork.newBuilder() to construct. - private rsp_getWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getWork() { - work_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getWork( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - work_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - work_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - work_ = work_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getWork.class, org.aion.api.server.pb.Message.rsp_getWork.Builder.class); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int WORK_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList work_; - /** - * repeated string work = 1; - */ - public com.google.protobuf.ProtocolStringList - getWorkList() { - return work_; - } - /** - * repeated string work = 1; - */ - public int getWorkCount() { - return work_.size(); - } - /** - * repeated string work = 1; - */ - public java.lang.String getWork(int index) { - return work_.get(index); - } - /** - * repeated string work = 1; - */ - public com.google.protobuf.ByteString - getWorkBytes(int index) { - return work_.getByteString(index); - } + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + .getDefaultInstance()) return this; + if (!other.blkNumbers_.isEmpty()) { + if (blkNumbers_.isEmpty()) { + blkNumbers_ = other.blkNumbers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkNumbersIsMutable(); + blkNumbers_.addAll(other.blkNumbers_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + private int bitField0_; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < work_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, work_.getRaw(i)); - } - unknownFields.writeTo(output); - } + private java.util.List blkNumbers_ = java.util.Collections.emptyList(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < work_.size(); i++) { - dataSize += computeStringSizeNoTag(work_.getRaw(i)); - } - size += dataSize; - size += 1 * getWorkList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void ensureBlkNumbersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = new java.util.ArrayList(blkNumbers_); + bitField0_ |= 0x00000001; + } + } + /** repeated uint64 blkNumbers = 1; */ + public java.util.List getBlkNumbersList() { + return java.util.Collections.unmodifiableList(blkNumbers_); + } + /** repeated uint64 blkNumbers = 1; */ + public int getBlkNumbersCount() { + return blkNumbers_.size(); + } + /** repeated uint64 blkNumbers = 1; */ + public long getBlkNumbers(int index) { + return blkNumbers_.get(index); + } + /** repeated uint64 blkNumbers = 1; */ + public Builder setBlkNumbers(int index, long value) { + ensureBlkNumbersIsMutable(); + blkNumbers_.set(index, value); + onChanged(); + return this; + } + /** repeated uint64 blkNumbers = 1; */ + public Builder addBlkNumbers(long value) { + ensureBlkNumbersIsMutable(); + blkNumbers_.add(value); + onChanged(); + return this; + } + /** repeated uint64 blkNumbers = 1; */ + public Builder addAllBlkNumbers(java.lang.Iterable values) { + ensureBlkNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkNumbers_); + onChanged(); + return this; + } + /** repeated uint64 blkNumbers = 1; */ + public Builder clearBlkNumbers() { + blkNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getWork)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getWork other = (org.aion.api.server.pb.Message.rsp_getWork) obj; - - boolean result = true; - result = result && getWorkList() - .equals(other.getWorkList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWorkCount() > 0) { - hash = (37 * hash) + WORK_FIELD_NUMBER; - hash = (53 * hash) + getWorkList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(); + } + + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockDetailsByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockDetailsByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public interface rsp_getBlockDetailsByNumberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + com.google.protobuf.MessageOrBuilder { + + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + java.util.List getBlkDetailsList(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + int getBlkDetailsCount(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + java.util.List + getBlkDetailsOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder(int index); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} */ + public static final class rsp_getBlockDetailsByNumber + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + rsp_getBlockDetailsByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockDetailsByNumber.newBuilder() to construct. + private rsp_getBlockDetailsByNumber( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private rsp_getBlockDetailsByNumber() { + blkDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private rsp_getBlockDetailsByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_BlockDetail>(); + mutable_bitField0_ |= 0x00000001; + } + blkDetails_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_BlockDetail + .parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + .Builder + .class); + } + + public static final int BLKDETAILS_FIELD_NUMBER = 1; + private java.util.List blkDetails_; + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List getBlkDetailsList() { + return blkDetails_; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsOrBuilderList() { + return blkDetails_; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public int getBlkDetailsCount() { + return blkDetails_.size(); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + return blkDetails_.get(index); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + return blkDetails_.get(index); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkDetails_.size(); i++) { + output.writeMessage(1, blkDetails_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blkDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, blkDetails_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other = + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) obj; + + boolean result = true; + result = result && getBlkDetailsList().equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkDetailsCount() > 0) { + hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBlkDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + .Builder + .class); + } + + // Construct using + // org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBlkDetailsFieldBuilder(); + } + } + + public Builder clear() { + super.clear(); + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getWork prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + .getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getWork} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getWork) - org.aion.api.server.pb.Message.rsp_getWorkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getWork.class, org.aion.api.server.pb.Message.rsp_getWork.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getWork.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - work_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getWork build() { - org.aion.api.server.pb.Message.rsp_getWork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getWork buildPartial() { - org.aion.api.server.pb.Message.rsp_getWork result = new org.aion.api.server.pb.Message.rsp_getWork(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - work_ = work_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.work_ = work_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getWork) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getWork)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getWork other) { - if (other == org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance()) return this; - if (!other.work_.isEmpty()) { - if (work_.isEmpty()) { - work_ = other.work_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkIsMutable(); - work_.addAll(other.work_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getWork parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getWork) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList work_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureWorkIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - work_ = new com.google.protobuf.LazyStringArrayList(work_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string work = 1; - */ - public com.google.protobuf.ProtocolStringList - getWorkList() { - return work_.getUnmodifiableView(); - } - /** - * repeated string work = 1; - */ - public int getWorkCount() { - return work_.size(); - } - /** - * repeated string work = 1; - */ - public java.lang.String getWork(int index) { - return work_.get(index); - } - /** - * repeated string work = 1; - */ - public com.google.protobuf.ByteString - getWorkBytes(int index) { - return work_.getByteString(index); - } - /** - * repeated string work = 1; - */ - public Builder setWork( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkIsMutable(); - work_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string work = 1; - */ - public Builder addWork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkIsMutable(); - work_.add(value); - onChanged(); - return this; - } - /** - * repeated string work = 1; - */ - public Builder addAllWork( - java.lang.Iterable values) { - ensureWorkIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, work_); - onChanged(); - return this; - } - /** - * repeated string work = 1; - */ - public Builder clearWork() { - work_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string work = 1; - */ - public Builder addWorkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureWorkIsMutable(); - work_.add(value); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getWork) - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber build() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getWork) - private static final org.aion.api.server.pb.Message.rsp_getWork DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getWork(); - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = + new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(this); + int from_bitField0_ = bitField0_; + if (blkDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkDetails_ = blkDetails_; + } else { + result.blkDetails_ = blkDetailsBuilder_.build(); + } + onBuilt(); + return result; + } - public static org.aion.api.server.pb.Message.rsp_getWork getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clone() { + return (Builder) super.clone(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getWork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getWork(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - } - - public interface req_submitWorkOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_submitWork) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes nonce = 1; - */ - com.google.protobuf.ByteString getNonce(); - - /** - * bytes solution = 2; - */ - com.google.protobuf.ByteString getSolution(); - - /** - * bytes digest = 3; - */ - com.google.protobuf.ByteString getDigest(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_submitWork} - */ - public static final class req_submitWork extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_submitWork) - req_submitWorkOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_submitWork.newBuilder() to construct. - private req_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_submitWork() { - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - digest_ = com.google.protobuf.ByteString.EMPTY; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_submitWork( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - nonce_ = input.readBytes(); - break; - } - case 18: { - - solution_ = input.readBytes(); - break; - } - case 26: { - - digest_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_submitWork.class, org.aion.api.server.pb.Message.req_submitWork.Builder.class); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int NONCE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 1; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other) { + if (other + == org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + .getDefaultInstance()) return this; + if (blkDetailsBuilder_ == null) { + if (!other.blkDetails_.isEmpty()) { + if (blkDetails_.isEmpty()) { + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkDetailsIsMutable(); + blkDetails_.addAll(other.blkDetails_); + } + onChanged(); + } + } else { + if (!other.blkDetails_.isEmpty()) { + if (blkDetailsBuilder_.isEmpty()) { + blkDetailsBuilder_.dispose(); + blkDetailsBuilder_ = null; + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + blkDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlkDetailsFieldBuilder() + : null; + } else { + blkDetailsBuilder_.addAllMessages(other.blkDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int SOLUTION_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString solution_; - /** - * bytes solution = 2; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } + public final boolean isInitialized() { + return true; + } - public static final int DIGEST_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString digest_; - /** - * bytes digest = 3; - */ - public com.google.protobuf.ByteString getDigest() { - return digest_; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int bitField0_; - memoizedIsInitialized = 1; - return true; - } + private java.util.List blkDetails_ = + java.util.Collections.emptyList(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!nonce_.isEmpty()) { - output.writeBytes(1, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(2, solution_); - } - if (!digest_.isEmpty()) { - output.writeBytes(3, digest_); - } - unknownFields.writeTo(output); - } + private void ensureBlkDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = + new java.util.ArrayList( + blkDetails_); + bitField0_ |= 0x00000001; + } + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, solution_); - } - if (!digest_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, digest_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + blkDetailsBuilder_; + + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsList() { + if (blkDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkDetails_); + } else { + return blkDetailsBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public int getBlkDetailsCount() { + if (blkDetailsBuilder_ == null) { + return blkDetails_.size(); + } else { + return blkDetailsBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, value); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder setBlkDetails( + int index, + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + int index, + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addAllBlkDetails( + java.lang.Iterable + values) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkDetails_); + onChanged(); + } else { + blkDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder clearBlkDetails() { + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder removeBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.remove(index); + onChanged(); + } else { + blkDetailsBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsOrBuilderList() { + if (blkDetailsBuilder_ != null) { + return blkDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkDetails_); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { + return getBlkDetailsFieldBuilder() + .addBuilder( + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsBuilderList() { + return getBlkDetailsFieldBuilder().getBuilderList(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_submitWork)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_submitWork other = (org.aion.api.server.pb.Message.req_submitWork) obj; - - boolean result = true; - result = result && getNonce() - .equals(other.getNonce()); - result = result && getSolution() - .equals(other.getSolution()); - result = result && getDigest() - .equals(other.getDigest()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + getBlkDetailsFieldBuilder() { + if (blkDetailsBuilder_ == null) { + blkDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( + blkDetails_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkDetails_ = null; + } + return blkDetailsBuilder_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + DIGEST_FIELD_NUMBER; - hash = (53 * hash) + getDigest().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_submitWork prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_submitWork} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_submitWork) - org.aion.api.server.pb.Message.req_submitWorkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_submitWork.class, org.aion.api.server.pb.Message.req_submitWork.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_submitWork.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - digest_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - } - - public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_submitWork build() { - org.aion.api.server.pb.Message.req_submitWork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_submitWork buildPartial() { - org.aion.api.server.pb.Message.req_submitWork result = new org.aion.api.server.pb.Message.req_submitWork(this); - result.nonce_ = nonce_; - result.solution_ = solution_; - result.digest_ = digest_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_submitWork) { - return mergeFrom((org.aion.api.server.pb.Message.req_submitWork)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_submitWork other) { - if (other == org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance()) return this; - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getDigest() != com.google.protobuf.ByteString.EMPTY) { - setDigest(other.getDigest()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_submitWork parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_submitWork) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 1; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 1; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 1; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes solution = 2; - */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** - * bytes solution = 2; - */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** - * bytes solution = 2; - */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes digest = 3; - */ - public com.google.protobuf.ByteString getDigest() { - return digest_; - } - /** - * bytes digest = 3; - */ - public Builder setDigest(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - digest_ = value; - onChanged(); - return this; - } - /** - * bytes digest = 3; - */ - public Builder clearDigest() { - - digest_ = getDefaultInstance().getDigest(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_submitWork) - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + DEFAULT_INSTANCE; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_submitWork) - private static final org.aion.api.server.pb.Message.req_submitWork DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_submitWork(); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(); + } - public static org.aion.api.server.pb.Message.req_submitWork getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_submitWork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_submitWork(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlockDetailsByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockDetailsByNumber(input, extensionRegistry); + } + }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - } - - public interface rsp_submitWorkOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_submitWork) - com.google.protobuf.MessageOrBuilder { - - /** - * bool workAccepted = 1; - */ - boolean getWorkAccepted(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} - */ - public static final class rsp_submitWork extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_submitWork) - rsp_submitWorkOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_submitWork.newBuilder() to construct. - private rsp_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_submitWork() { - workAccepted_ = false; + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_submitWork( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - workAccepted_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - } + public interface req_getBlockDetailsByLatestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByLatest) + com.google.protobuf.MessageOrBuilder { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_submitWork.class, org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); + /** uint64 count = 1; */ + long getCount(); } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} */ + public static final class req_getBlockDetailsByLatest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) + req_getBlockDetailsByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockDetailsByLatest.newBuilder() to construct. + private req_getBlockDetailsByLatest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int WORKACCEPTED_FIELD_NUMBER = 1; - private boolean workAccepted_; - /** - * bool workAccepted = 1; - */ - public boolean getWorkAccepted() { - return workAccepted_; - } + private req_getBlockDetailsByLatest() { + count_ = 0L; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - memoizedIsInitialized = 1; - return true; - } + private req_getBlockDetailsByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + count_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (workAccepted_ != false) { - output.writeBool(1, workAccepted_); - } - unknownFields.writeTo(output); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workAccepted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, workAccepted_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + .Builder + .class); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_submitWork)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_submitWork other = (org.aion.api.server.pb.Message.rsp_submitWork) obj; - - boolean result = true; - result = result && (getWorkAccepted() - == other.getWorkAccepted()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int COUNT_FIELD_NUMBER = 1; + private long count_; + /** uint64 count = 1; */ + public long getCount() { + return count_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WORKACCEPTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWorkAccepted()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_submitWork prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_submitWork) - org.aion.api.server.pb.Message.rsp_submitWorkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_submitWork.class, org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_submitWork.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - workAccepted_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_submitWork build() { - org.aion.api.server.pb.Message.rsp_submitWork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_submitWork buildPartial() { - org.aion.api.server.pb.Message.rsp_submitWork result = new org.aion.api.server.pb.Message.rsp_submitWork(this); - result.workAccepted_ = workAccepted_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_submitWork) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_submitWork)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_submitWork other) { - if (other == org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance()) return this; - if (other.getWorkAccepted() != false) { - setWorkAccepted(other.getWorkAccepted()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_submitWork parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_submitWork) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean workAccepted_ ; - /** - * bool workAccepted = 1; - */ - public boolean getWorkAccepted() { - return workAccepted_; - } - /** - * bool workAccepted = 1; - */ - public Builder setWorkAccepted(boolean value) { - - workAccepted_ = value; - onChanged(); - return this; - } - /** - * bool workAccepted = 1; - */ - public Builder clearWorkAccepted() { - - workAccepted_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_submitWork) - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (count_ != 0L) { + output.writeUInt64(1, count_); + } + unknownFields.writeTo(output); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_submitWork) - private static final org.aion.api.server.pb.Message.rsp_submitWork DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_submitWork(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstance() { - return DEFAULT_INSTANCE; - } + size = 0; + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_submitWork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_submitWork(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other = + (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) obj; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + boolean result = true; + result = result && (getCount() == other.getCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - } - - public interface rsp_fetchQueuedTransactionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - java.util.List - getTxList(); - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - org.aion.api.server.pb.Message.t_AionTx getTx(int index); - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - int getTxCount(); - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - java.util.List - getTxOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} - */ - public static final class rsp_fetchQueuedTransactions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - rsp_fetchQueuedTransactionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_fetchQueuedTransactions.newBuilder() to construct. - private rsp_fetchQueuedTransactions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_fetchQueuedTransactions() { - tx_ = java.util.Collections.emptyList(); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_fetchQueuedTransactions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tx_.add( - input.readMessage(org.aion.api.server.pb.Message.t_AionTx.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TX_FIELD_NUMBER = 1; - private java.util.List tx_; - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public java.util.List getTxList() { - return tx_; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public java.util.List - getTxOrBuilderList() { - return tx_; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public int getTxCount() { - return tx_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { - return tx_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder( - int index) { - return tx_.get(index); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < tx_.size(); i++) { - output.writeMessage(1, tx_.get(i)); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tx_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tx_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other = (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) obj; - - boolean result = true; - result = result && getTxList() - .equals(other.getTxList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxCount() > 0) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTxList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTxFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions build() { - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions buildPartial() { - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(this); - int from_bitField0_ = bitField0_; - if (txBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other) { - if (other == org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.getDefaultInstance()) return this; - if (txBuilder_ == null) { - if (!other.tx_.isEmpty()) { - if (tx_.isEmpty()) { - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxIsMutable(); - tx_.addAll(other.tx_); - } - onChanged(); - } - } else { - if (!other.tx_.isEmpty()) { - if (txBuilder_.isEmpty()) { - txBuilder_.dispose(); - txBuilder_ = null; - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00000001); - txBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTxFieldBuilder() : null; - } else { - txBuilder_.addAllMessages(other.tx_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tx_ = - java.util.Collections.emptyList(); - private void ensureTxIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = new java.util.ArrayList(tx_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AionTx, org.aion.api.server.pb.Message.t_AionTx.Builder, org.aion.api.server.pb.Message.t_AionTxOrBuilder> txBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public java.util.List getTxList() { - if (txBuilder_ == null) { - return java.util.Collections.unmodifiableList(tx_); - } else { - return txBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public int getTxCount() { - if (txBuilder_ == null) { - return tx_.size(); - } else { - return txBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { - if (txBuilder_ == null) { - return tx_.get(index); - } else { - return txBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder setTx( - int index, org.aion.api.server.pb.Message.t_AionTx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.set(index, value); - onChanged(); - } else { - txBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder setTx( - int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.set(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder addTx(org.aion.api.server.pb.Message.t_AionTx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - } else { - txBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder addTx( - int index, org.aion.api.server.pb.Message.t_AionTx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(index, value); - onChanged(); - } else { - txBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder addTx( - org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder addTx( - int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder addAllTx( - java.lang.Iterable values) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tx_); - onChanged(); - } else { - txBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public Builder removeTx(int index) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.remove(index); - onChanged(); - } else { - txBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public org.aion.api.server.pb.Message.t_AionTx.Builder getTxBuilder( - int index) { - return getTxFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder( - int index) { - if (txBuilder_ == null) { - return tx_.get(index); } else { - return txBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public java.util.List - getTxOrBuilderList() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tx_); - } - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder() { - return getTxFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder( - int index) { - return getTxFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_AionTx tx = 1; - */ - public java.util.List - getTxBuilderList() { - return getTxFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AionTx, org.aion.api.server.pb.Message.t_AionTx.Builder, org.aion.api.server.pb.Message.t_AionTxOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AionTx, org.aion.api.server.pb.Message.t_AionTx.Builder, org.aion.api.server.pb.Message.t_AionTxOrBuilder>( - tx_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - } + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - private static final org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_fetchQueuedTransactions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_fetchQueuedTransactions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) + org.aion.api.server.pb.Message.req_getBlockDetailsByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + } - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + .Builder + .class); + } - } - - public interface req_rawTransactionOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_rawTransaction) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes encodedTx = 1; - */ - com.google.protobuf.ByteString getEncodedTx(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} - */ - public static final class req_rawTransaction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_rawTransaction) - req_rawTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_rawTransaction.newBuilder() to construct. - private req_rawTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_rawTransaction() { - encodedTx_ = com.google.protobuf.ByteString.EMPTY; - } + // Construct using + // org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_rawTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - encodedTx_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_rawTransaction.class, org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public static final int ENCODEDTX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString encodedTx_; - /** - * bytes encodedTx = 1; - */ - public com.google.protobuf.ByteString getEncodedTx() { - return encodedTx_; - } + public Builder clear() { + super.clear(); + count_ = 0L; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + return this; + } - memoizedIsInitialized = 1; - return true; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!encodedTx_.isEmpty()) { - output.writeBytes(1, encodedTx_); - } - unknownFields.writeTo(output); - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + .getDefaultInstance(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!encodedTx_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, encodedTx_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest build() { + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_rawTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_rawTransaction other = (org.aion.api.server.pb.Message.req_rawTransaction) obj; - - boolean result = true; - result = result && getEncodedTx() - .equals(other.getEncodedTx()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest buildPartial() { + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = + new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(this); + result.count_ = count_; + onBuilt(); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENCODEDTX_FIELD_NUMBER; - hash = (53 * hash) + getEncodedTx().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder clone() { + return (Builder) super.clone(); + } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_rawTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_rawTransaction) - org.aion.api.server.pb.Message.req_rawTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_rawTransaction.class, org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_rawTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - encodedTx_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_rawTransaction build() { - org.aion.api.server.pb.Message.req_rawTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_rawTransaction buildPartial() { - org.aion.api.server.pb.Message.req_rawTransaction result = new org.aion.api.server.pb.Message.req_rawTransaction(this); - result.encodedTx_ = encodedTx_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_rawTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.req_rawTransaction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_rawTransaction other) { - if (other == org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance()) return this; - if (other.getEncodedTx() != com.google.protobuf.ByteString.EMPTY) { - setEncodedTx(other.getEncodedTx()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_rawTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_rawTransaction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString encodedTx_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes encodedTx = 1; - */ - public com.google.protobuf.ByteString getEncodedTx() { - return encodedTx_; - } - /** - * bytes encodedTx = 1; - */ - public Builder setEncodedTx(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - encodedTx_ = value; - onChanged(); - return this; - } - /** - * bytes encodedTx = 1; - */ - public Builder clearEncodedTx() { - - encodedTx_ = getDefaultInstance().getEncodedTx(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_rawTransaction) - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + .getDefaultInstance()) return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_rawTransaction) - private static final org.aion.api.server.pb.Message.req_rawTransaction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_rawTransaction(); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private long count_; + /** uint64 count = 1; */ + public long getCount() { + return count_; + } + /** uint64 count = 1; */ + public Builder setCount(long value) { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_rawTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_rawTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + count_ = value; + onChanged(); + return this; + } + /** uint64 count = 1; */ + public Builder clearCount() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + count_ = 0L; + onChanged(); + return this; + } - public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - } - - public interface req_estimateNrgOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_estimateNrg) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes from = 1; - */ - com.google.protobuf.ByteString getFrom(); - - /** - * bytes to = 2; - */ - com.google.protobuf.ByteString getTo(); - - /** - * bytes value = 3; - */ - com.google.protobuf.ByteString getValue(); - - /** - * bytes data = 4; - */ - com.google.protobuf.ByteString getData(); - - /** - * uint64 nrg = 5; - */ - long getNrg(); - - /** - * uint64 nrgPrice = 6; - */ - long getNrgPrice(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} - */ - public static final class req_estimateNrg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_estimateNrg) - req_estimateNrgOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_estimateNrg.newBuilder() to construct. - private req_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_estimateNrg() { - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nrg_ = 0L; - nrgPrice_ = 0L; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_estimateNrg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - from_ = input.readBytes(); - break; - } - case 18: { - - to_ = input.readBytes(); - break; - } - case 26: { - - value_ = input.readBytes(); - break; - } - case 34: { - - data_ = input.readBytes(); - break; - } - case 40: { - - nrg_ = input.readUInt64(); - break; - } - case 48: { - - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_estimateNrg.class, org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) + private static final org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + DEFAULT_INSTANCE; - public static final int FROM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString from_; - /** - * bytes from = 1; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(); + } - public static final int TO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString to_; - /** - * bytes to = 2; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int VALUE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 3; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockDetailsByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockDetailsByLatest(input, extensionRegistry); + } + }; - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int NRG_FIELD_NUMBER = 5; - private long nrg_; - /** - * uint64 nrg = 5; - */ - public long getNrg() { - return nrg_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int NRGPRICE_FIELD_NUMBER = 6; - private long nrgPrice_; - /** - * uint64 nrgPrice = 6; - */ - public long getNrgPrice() { - return nrgPrice_; + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public interface rsp_getBlockDetailsByLatestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + com.google.protobuf.MessageOrBuilder { - memoizedIsInitialized = 1; - return true; + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + java.util.List getBlkDetailsList(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + int getBlkDetailsCount(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + java.util.List + getBlkDetailsOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder(int index); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} */ + public static final class rsp_getBlockDetailsByLatest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + rsp_getBlockDetailsByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockDetailsByLatest.newBuilder() to construct. + private rsp_getBlockDetailsByLatest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!from_.isEmpty()) { - output.writeBytes(1, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(2, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(3, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - if (nrg_ != 0L) { - output.writeUInt64(5, nrg_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(6, nrgPrice_); - } - unknownFields.writeTo(output); - } + private rsp_getBlockDetailsByLatest() { + blkDetails_ = java.util.Collections.emptyList(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, data_); - } - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, nrg_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_estimateNrg)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_estimateNrg other = (org.aion.api.server.pb.Message.req_estimateNrg) obj; - - boolean result = true; - result = result && getFrom() - .equals(other.getFrom()); - result = result && getTo() - .equals(other.getTo()); - result = result && getValue() - .equals(other.getValue()); - result = result && getData() - .equals(other.getData()); - result = result && (getNrg() - == other.getNrg()); - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private rsp_getBlockDetailsByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_BlockDetail>(); + mutable_bitField0_ |= 0x00000001; + } + blkDetails_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_BlockDetail + .parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrg()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + .Builder + .class); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_estimateNrg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final int BLKDETAILS_FIELD_NUMBER = 1; + private java.util.List blkDetails_; + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List getBlkDetailsList() { + return blkDetails_; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsOrBuilderList() { + return blkDetails_; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public int getBlkDetailsCount() { + return blkDetails_.size(); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + return blkDetails_.get(index); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + return blkDetails_.get(index); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_estimateNrg) - org.aion.api.server.pb.Message.req_estimateNrgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_estimateNrg.class, org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_estimateNrg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nrg_ = 0L; - - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - } - - public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_estimateNrg build() { - org.aion.api.server.pb.Message.req_estimateNrg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_estimateNrg buildPartial() { - org.aion.api.server.pb.Message.req_estimateNrg result = new org.aion.api.server.pb.Message.req_estimateNrg(this); - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nrg_ = nrg_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_estimateNrg) { - return mergeFrom((org.aion.api.server.pb.Message.req_estimateNrg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_estimateNrg other) { - if (other == org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance()) return this; - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_estimateNrg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_estimateNrg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes from = 1; - */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** - * bytes from = 1; - */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** - * bytes from = 1; - */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes to = 2; - */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** - * bytes to = 2; - */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** - * bytes to = 2; - */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 3; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 3; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 3; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 4; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 4; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private long nrg_ ; - /** - * uint64 nrg = 5; - */ - public long getNrg() { - return nrg_; - } - /** - * uint64 nrg = 5; - */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** - * uint64 nrg = 5; - */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 6; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 6; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 6; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_estimateNrg) - } + private byte memoizedIsInitialized = -1; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_estimateNrg) - private static final org.aion.api.server.pb.Message.req_estimateNrg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_estimateNrg(); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstance() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_estimateNrg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_estimateNrg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkDetails_.size(); i++) { + output.writeMessage(1, blkDetails_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + size = 0; + for (int i = 0; i < blkDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, blkDetails_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - } - - public interface rsp_estimateNrgOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_estimateNrg) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 nrg = 1; - */ - long getNrg(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} - */ - public static final class rsp_estimateNrg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_estimateNrg) - rsp_estimateNrgOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_estimateNrg.newBuilder() to construct. - private rsp_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_estimateNrg() { - nrg_ = 0L; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other = + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) obj; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_estimateNrg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - nrg_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - } + boolean result = true; + result = result && getBlkDetailsList().equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_estimateNrg.class, org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkDetailsCount() > 0) { + hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBlkDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int NRG_FIELD_NUMBER = 1; - private long nrg_; - /** - * uint64 nrg = 1; - */ - public long getNrg() { - return nrg_; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nrg_ != 0L) { - output.writeUInt64(1, nrg_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, nrg_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_estimateNrg)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_estimateNrg other = (org.aion.api.server.pb.Message.rsp_estimateNrg) obj; - - boolean result = true; - result = result && (getNrg() - == other.getNrg()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrg()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_estimateNrg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_estimateNrg) - org.aion.api.server.pb.Message.rsp_estimateNrgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_estimateNrg.class, org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_estimateNrg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - nrg_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_estimateNrg build() { - org.aion.api.server.pb.Message.rsp_estimateNrg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_estimateNrg buildPartial() { - org.aion.api.server.pb.Message.rsp_estimateNrg result = new org.aion.api.server.pb.Message.rsp_estimateNrg(this); - result.nrg_ = nrg_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_estimateNrg) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_estimateNrg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_estimateNrg other) { - if (other == org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance()) return this; - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_estimateNrg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_estimateNrg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nrg_ ; - /** - * uint64 nrg = 1; - */ - public long getNrg() { - return nrg_; - } - /** - * uint64 nrg = 1; - */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** - * uint64 nrg = 1; - */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_estimateNrg) - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_estimateNrg) - private static final org.aion.api.server.pb.Message.rsp_estimateNrg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_estimateNrg(); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_estimateNrg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_estimateNrg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - } - - public interface rsp_miningOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_mining) - com.google.protobuf.MessageOrBuilder { - - /** - * bool mining = 1; - */ - boolean getMining(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_mining} - */ - public static final class rsp_mining extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_mining) - rsp_miningOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_mining.newBuilder() to construct. - private rsp_mining(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_mining() { - mining_ = false; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_mining( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - mining_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_mining.class, org.aion.api.server.pb.Message.rsp_mining.Builder.class); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + .Builder + .class); + } - public static final int MINING_FIELD_NUMBER = 1; - private boolean mining_; - /** - * bool mining = 1; - */ - public boolean getMining() { - return mining_; - } + // Construct using + // org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - memoizedIsInitialized = 1; - return true; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBlkDetailsFieldBuilder(); + } + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mining_ != false) { - output.writeBool(1, mining_); - } - unknownFields.writeTo(output); - } + public Builder clear() { + super.clear(); + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mining_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, mining_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_mining)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_mining other = (org.aion.api.server.pb.Message.rsp_mining) obj; - - boolean result = true; - result = result && (getMining() - == other.getMining()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + .getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MINING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMining()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest build() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = + new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(this); + int from_bitField0_ = bitField0_; + if (blkDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkDetails_ = blkDetails_; + } else { + result.blkDetails_ = blkDetailsBuilder_.build(); + } + onBuilt(); + return result; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_mining prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder clone() { + return (Builder) super.clone(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_mining} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_mining) - org.aion.api.server.pb.Message.rsp_miningOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_mining.class, org.aion.api.server.pb.Message.rsp_mining.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_mining.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - mining_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_mining build() { - org.aion.api.server.pb.Message.rsp_mining result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_mining buildPartial() { - org.aion.api.server.pb.Message.rsp_mining result = new org.aion.api.server.pb.Message.rsp_mining(this); - result.mining_ = mining_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_mining) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_mining)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_mining other) { - if (other == org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance()) return this; - if (other.getMining() != false) { - setMining(other.getMining()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_mining parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_mining) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean mining_ ; - /** - * bool mining = 1; - */ - public boolean getMining() { - return mining_; - } - /** - * bool mining = 1; - */ - public Builder setMining(boolean value) { - - mining_ = value; - onChanged(); - return this; - } - /** - * bool mining = 1; - */ - public Builder clearMining() { - - mining_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_mining) - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_mining) - private static final org.aion.api.server.pb.Message.rsp_mining DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_mining(); - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public static org.aion.api.server.pb.Message.rsp_mining getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_mining parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_mining(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) other); + } else { + super.mergeFrom(other); + return this; + } + } - } - - public interface rsp_syncingOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncing) - com.google.protobuf.MessageOrBuilder { - - /** - * bool syncing = 1; - */ - boolean getSyncing(); - - /** - * uint64 currentBlock = 2; - */ - long getCurrentBlock(); - - /** - * uint64 highestBlock = 3; - */ - long getHighestBlock(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_syncing} - */ - public static final class rsp_syncing extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncing) - rsp_syncingOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_syncing.newBuilder() to construct. - private rsp_syncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_syncing() { - syncing_ = false; - currentBlock_ = 0L; - highestBlock_ = 0L; - } + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other) { + if (other + == org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + .getDefaultInstance()) return this; + if (blkDetailsBuilder_ == null) { + if (!other.blkDetails_.isEmpty()) { + if (blkDetails_.isEmpty()) { + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkDetailsIsMutable(); + blkDetails_.addAll(other.blkDetails_); + } + onChanged(); + } + } else { + if (!other.blkDetails_.isEmpty()) { + if (blkDetailsBuilder_.isEmpty()) { + blkDetailsBuilder_.dispose(); + blkDetailsBuilder_ = null; + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + blkDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlkDetailsFieldBuilder() + : null; + } else { + blkDetailsBuilder_.addAllMessages(other.blkDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_syncing( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - syncing_ = input.readBool(); - break; - } - case 16: { - - currentBlock_ = input.readUInt64(); - break; - } - case 24: { - - highestBlock_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - } + public final boolean isInitialized() { + return true; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncing.class, org.aion.api.server.pb.Message.rsp_syncing.Builder.class); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public static final int SYNCING_FIELD_NUMBER = 1; - private boolean syncing_; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } + private int bitField0_; - public static final int CURRENTBLOCK_FIELD_NUMBER = 2; - private long currentBlock_; - /** - * uint64 currentBlock = 2; - */ - public long getCurrentBlock() { - return currentBlock_; - } + private java.util.List blkDetails_ = + java.util.Collections.emptyList(); - public static final int HIGHESTBLOCK_FIELD_NUMBER = 3; - private long highestBlock_; - /** - * uint64 highestBlock = 3; - */ - public long getHighestBlock() { - return highestBlock_; - } + private void ensureBlkDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = + new java.util.ArrayList( + blkDetails_); + bitField0_ |= 0x00000001; + } + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + blkDetailsBuilder_; + + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsList() { + if (blkDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkDetails_); + } else { + return blkDetailsBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public int getBlkDetailsCount() { + if (blkDetailsBuilder_ == null) { + return blkDetails_.size(); + } else { + return blkDetailsBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, value); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder setBlkDetails( + int index, + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + int index, + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addAllBlkDetails( + java.lang.Iterable + values) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkDetails_); + onChanged(); + } else { + blkDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder clearBlkDetails() { + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder removeBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.remove(index); + onChanged(); + } else { + blkDetailsBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsOrBuilderList() { + if (blkDetailsBuilder_ != null) { + return blkDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkDetails_); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { + return getBlkDetailsFieldBuilder() + .addBuilder( + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsBuilderList() { + return getBlkDetailsFieldBuilder().getBuilderList(); + } - memoizedIsInitialized = 1; - return true; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + getBlkDetailsFieldBuilder() { + if (blkDetailsBuilder_ == null) { + blkDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( + blkDetails_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkDetails_ = null; + } + return blkDetailsBuilder_; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (syncing_ != false) { - output.writeBool(1, syncing_); - } - if (currentBlock_ != 0L) { - output.writeUInt64(2, currentBlock_); - } - if (highestBlock_ != 0L) { - output.writeUInt64(3, highestBlock_); - } - unknownFields.writeTo(output); - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (syncing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, syncing_); - } - if (currentBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, currentBlock_); - } - if (highestBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, highestBlock_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncing)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_syncing other = (org.aion.api.server.pb.Message.rsp_syncing) obj; - - boolean result = true; - result = result && (getSyncing() - == other.getSyncing()); - result = result && (getCurrentBlock() - == other.getCurrentBlock()); - result = result && (getHighestBlock() - == other.getHighestBlock()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYNCING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSyncing()); - hash = (37 * hash) + CURRENTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurrentBlock()); - hash = (37 * hash) + HIGHESTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHighestBlock()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + DEFAULT_INSTANCE; - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncing prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_syncing} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncing) - org.aion.api.server.pb.Message.rsp_syncingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncing.class, org.aion.api.server.pb.Message.rsp_syncing.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_syncing.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - syncing_ = false; - - currentBlock_ = 0L; - - highestBlock_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_syncing build() { - org.aion.api.server.pb.Message.rsp_syncing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_syncing buildPartial() { - org.aion.api.server.pb.Message.rsp_syncing result = new org.aion.api.server.pb.Message.rsp_syncing(this); - result.syncing_ = syncing_; - result.currentBlock_ = currentBlock_; - result.highestBlock_ = highestBlock_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_syncing) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_syncing)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncing other) { - if (other == org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance()) return this; - if (other.getSyncing() != false) { - setSyncing(other.getSyncing()); - } - if (other.getCurrentBlock() != 0L) { - setCurrentBlock(other.getCurrentBlock()); - } - if (other.getHighestBlock() != 0L) { - setHighestBlock(other.getHighestBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_syncing parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_syncing) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean syncing_ ; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } - /** - * bool syncing = 1; - */ - public Builder setSyncing(boolean value) { - - syncing_ = value; - onChanged(); - return this; - } - /** - * bool syncing = 1; - */ - public Builder clearSyncing() { - - syncing_ = false; - onChanged(); - return this; - } - - private long currentBlock_ ; - /** - * uint64 currentBlock = 2; - */ - public long getCurrentBlock() { - return currentBlock_; - } - /** - * uint64 currentBlock = 2; - */ - public Builder setCurrentBlock(long value) { - - currentBlock_ = value; - onChanged(); - return this; - } - /** - * uint64 currentBlock = 2; - */ - public Builder clearCurrentBlock() { - - currentBlock_ = 0L; - onChanged(); - return this; - } - - private long highestBlock_ ; - /** - * uint64 highestBlock = 3; - */ - public long getHighestBlock() { - return highestBlock_; - } - /** - * uint64 highestBlock = 3; - */ - public Builder setHighestBlock(long value) { - - highestBlock_ = value; - onChanged(); - return this; - } - /** - * uint64 highestBlock = 3; - */ - public Builder clearHighestBlock() { - - highestBlock_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncing) - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlockDetailsByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockDetailsByLatest(input, extensionRegistry); + } + }; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncing) - private static final org.aion.api.server.pb.Message.rsp_syncing DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncing(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_syncing getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_syncing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_syncing(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public interface req_getBlocksByLatestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlocksByLatest) + com.google.protobuf.MessageOrBuilder { + + /** uint64 count = 1; */ + long getCount(); } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} */ + public static final class req_getBlocksByLatest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlocksByLatest) + req_getBlocksByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlocksByLatest.newBuilder() to construct. + private req_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private req_getBlocksByLatest() { + count_ = 0L; + } - } - - public interface rsp_hashrateOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_hashrate) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 hashrate = 1; - */ - long getHashrate(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} - */ - public static final class rsp_hashrate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_hashrate) - rsp_hashrateOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_hashrate.newBuilder() to construct. - private rsp_hashrate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_hashrate() { - hashrate_ = 0L; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_hashrate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - hashrate_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - } + private req_getBlocksByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + count_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_hashrate.class, org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + } - public static final int HASHRATE_FIELD_NUMBER = 1; - private long hashrate_; - /** - * uint64 hashrate = 1; - */ - public long getHashrate() { - return hashrate_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlocksByLatest.class, + org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int COUNT_FIELD_NUMBER = 1; + private long count_; + /** uint64 count = 1; */ + public long getCount() { + return count_; + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hashrate_ != 0L) { - output.writeUInt64(1, hashrate_); - } - unknownFields.writeTo(output); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hashrate_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, hashrate_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_hashrate)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_hashrate other = (org.aion.api.server.pb.Message.rsp_hashrate) obj; - - boolean result = true; - result = result && (getHashrate() - == other.getHashrate()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (count_ != 0L) { + output.writeUInt64(1, count_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASHRATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHashrate()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_hashrate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlocksByLatest other = + (org.aion.api.server.pb.Message.req_getBlocksByLatest) obj; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_hashrate) - org.aion.api.server.pb.Message.rsp_hashrateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_hashrate.class, org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_hashrate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - hashrate_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_hashrate build() { - org.aion.api.server.pb.Message.rsp_hashrate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_hashrate buildPartial() { - org.aion.api.server.pb.Message.rsp_hashrate result = new org.aion.api.server.pb.Message.rsp_hashrate(this); - result.hashrate_ = hashrate_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_hashrate) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_hashrate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_hashrate other) { - if (other == org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance()) return this; - if (other.getHashrate() != 0L) { - setHashrate(other.getHashrate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_hashrate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_hashrate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long hashrate_ ; - /** - * uint64 hashrate = 1; - */ - public long getHashrate() { - return hashrate_; - } - /** - * uint64 hashrate = 1; - */ - public Builder setHashrate(long value) { - - hashrate_ = value; - onChanged(); - return this; - } - /** - * uint64 hashrate = 1; - */ - public Builder clearHashrate() { - - hashrate_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_hashrate) - } + boolean result = true; + result = result && (getCount() == other.getCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_hashrate) - private static final org.aion.api.server.pb.Message.rsp_hashrate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_hashrate(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_hashrate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_hashrate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } - - public interface rsp_getActiveNodesOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getActiveNodes) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - java.util.List - getNodeList(); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - org.aion.api.server.pb.Message.t_Node getNode(int index); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - int getNodeCount(); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - java.util.List - getNodeOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} - */ - public static final class rsp_getActiveNodes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getActiveNodes) - rsp_getActiveNodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getActiveNodes.newBuilder() to construct. - private rsp_getActiveNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getActiveNodes() { - node_ = java.util.Collections.emptyList(); - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getActiveNodes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - node_.add( - input.readMessage(org.aion.api.server.pb.Message.t_Node.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getActiveNodes.class, org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int NODE_FIELD_NUMBER = 1; - private java.util.List node_; - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List getNodeList() { - return node_; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - return node_; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public int getNodeCount() { - return node_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - return node_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( - int index) { - return node_.get(index); - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < node_.size(); i++) { - output.writeMessage(1, node_.get(i)); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < node_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, node_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getActiveNodes other = (org.aion.api.server.pb.Message.rsp_getActiveNodes) obj; - - boolean result = true; - result = result && getNodeList() - .equals(other.getNodeList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodeCount() > 0) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNodeList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlocksByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getActiveNodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getActiveNodes) - org.aion.api.server.pb.Message.rsp_getActiveNodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getActiveNodes.class, org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getActiveNodes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getActiveNodes build() { - org.aion.api.server.pb.Message.rsp_getActiveNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getActiveNodes buildPartial() { - org.aion.api.server.pb.Message.rsp_getActiveNodes result = new org.aion.api.server.pb.Message.rsp_getActiveNodes(this); - int from_bitField0_ = bitField0_; - if (nodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.node_ = node_; - } else { - result.node_ = nodeBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getActiveNodes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getActiveNodes other) { - if (other == org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance()) return this; - if (nodeBuilder_ == null) { - if (!other.node_.isEmpty()) { - if (node_.isEmpty()) { - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeIsMutable(); - node_.addAll(other.node_); - } - onChanged(); - } - } else { - if (!other.node_.isEmpty()) { - if (nodeBuilder_.isEmpty()) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeFieldBuilder() : null; - } else { - nodeBuilder_.addAllMessages(other.node_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getActiveNodes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getActiveNodes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List node_ = - java.util.Collections.emptyList(); - private void ensureNodeIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = new java.util.ArrayList(node_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> nodeBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List getNodeList() { - if (nodeBuilder_ == null) { - return java.util.Collections.unmodifiableList(node_); - } else { - return nodeBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public int getNodeCount() { - if (nodeBuilder_ == null) { - return node_.size(); - } else { - return nodeBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder setNode( - int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.set(index, value); - onChanged(); - } else { - nodeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder setNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(value); - onChanged(); - } else { - nodeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode( - int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(index, value); - onChanged(); - } else { - nodeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode( - org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addAllNode( - java.lang.Iterable values) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, node_); - onChanged(); - } else { - nodeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder clearNode() { - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder removeNode(int index) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.remove(index); - onChanged(); - } else { - nodeBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder( - int index) { - return getNodeFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( - int index) { - if (nodeBuilder_ == null) { - return node_.get(index); } else { - return nodeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(node_); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { - return getNodeFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder( - int index) { - return getNodeFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List - getNodeBuilderList() { - return getNodeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder>( - node_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getActiveNodes) - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlocksByLatest) + org.aion.api.server.pb.Message.req_getBlocksByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getActiveNodes) - private static final org.aion.api.server.pb.Message.rsp_getActiveNodes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getActiveNodes(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlocksByLatest.class, + org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // Construct using org.aion.api.server.pb.Message.req_getBlocksByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getActiveNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getActiveNodes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clear() { + super.clear(); + count_ = 0L; - } - - public interface rsp_getStaticNodesOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStaticNodes) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - java.util.List - getNodeList(); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - org.aion.api.server.pb.Message.t_Node getNode(int index); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - int getNodeCount(); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - java.util.List - getNodeOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} - */ - public static final class rsp_getStaticNodes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStaticNodes) - rsp_getStaticNodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getStaticNodes.newBuilder() to construct. - private rsp_getStaticNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getStaticNodes() { - node_ = java.util.Collections.emptyList(); - } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getStaticNodes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - node_.add( - input.readMessage(org.aion.api.server.pb.Message.t_Node.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStaticNodes.class, org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); - } + public org.aion.api.server.pb.Message.req_getBlocksByLatest + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlocksByLatest.getDefaultInstance(); + } - public static final int NODE_FIELD_NUMBER = 1; - private java.util.List node_; - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List getNodeList() { - return node_; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - return node_; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public int getNodeCount() { - return node_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - return node_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( - int index) { - return node_.get(index); - } + public org.aion.api.server.pb.Message.req_getBlocksByLatest build() { + org.aion.api.server.pb.Message.req_getBlocksByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public org.aion.api.server.pb.Message.req_getBlocksByLatest buildPartial() { + org.aion.api.server.pb.Message.req_getBlocksByLatest result = + new org.aion.api.server.pb.Message.req_getBlocksByLatest(this); + result.count_ = count_; + onBuilt(); + return result; + } - memoizedIsInitialized = 1; - return true; - } + public Builder clone() { + return (Builder) super.clone(); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < node_.size(); i++) { - output.writeMessage(1, node_.get(i)); - } - unknownFields.writeTo(output); - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < node_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, node_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getStaticNodes other = (org.aion.api.server.pb.Message.rsp_getStaticNodes) obj; - - boolean result = true; - result = result && getNodeList() - .equals(other.getNodeList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodeCount() > 0) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNodeList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getStaticNodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlocksByLatest) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStaticNodes) - org.aion.api.server.pb.Message.rsp_getStaticNodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStaticNodes.class, org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getStaticNodes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getStaticNodes build() { - org.aion.api.server.pb.Message.rsp_getStaticNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getStaticNodes buildPartial() { - org.aion.api.server.pb.Message.rsp_getStaticNodes result = new org.aion.api.server.pb.Message.rsp_getStaticNodes(this); - int from_bitField0_ = bitField0_; - if (nodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.node_ = node_; - } else { - result.node_ = nodeBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getStaticNodes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStaticNodes other) { - if (other == org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance()) return this; - if (nodeBuilder_ == null) { - if (!other.node_.isEmpty()) { - if (node_.isEmpty()) { - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeIsMutable(); - node_.addAll(other.node_); - } - onChanged(); - } - } else { - if (!other.node_.isEmpty()) { - if (nodeBuilder_.isEmpty()) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeFieldBuilder() : null; - } else { - nodeBuilder_.addAllMessages(other.node_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getStaticNodes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getStaticNodes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List node_ = - java.util.Collections.emptyList(); - private void ensureNodeIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = new java.util.ArrayList(node_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> nodeBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List getNodeList() { - if (nodeBuilder_ == null) { - return java.util.Collections.unmodifiableList(node_); - } else { - return nodeBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public int getNodeCount() { - if (nodeBuilder_ == null) { - return node_.size(); - } else { - return nodeBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder setNode( - int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.set(index, value); - onChanged(); - } else { - nodeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder setNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(value); - onChanged(); - } else { - nodeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode( - int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(index, value); - onChanged(); - } else { - nodeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode( - org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder addAllNode( - java.lang.Iterable values) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, node_); - onChanged(); - } else { - nodeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder clearNode() { - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public Builder removeNode(int index) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.remove(index); - onChanged(); - } else { - nodeBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder( - int index) { - return getNodeFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( - int index) { - if (nodeBuilder_ == null) { - return node_.get(index); } else { - return nodeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(node_); - } - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { - return getNodeFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder( - int index) { - return getNodeFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Node node = 1; - */ - public java.util.List - getNodeBuilderList() { - return getNodeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder>( - node_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStaticNodes) - } + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlocksByLatest other) { + if (other + == org.aion.api.server.pb.Message.req_getBlocksByLatest + .getDefaultInstance()) return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStaticNodes) - private static final org.aion.api.server.pb.Message.rsp_getStaticNodes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStaticNodes(); - } + public final boolean isInitialized() { + return true; + } - public static org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlocksByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlocksByLatest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getStaticNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getStaticNodes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private long count_; + /** uint64 count = 1; */ + public long getCount() { + return count_; + } + /** uint64 count = 1; */ + public Builder setCount(long value) { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + count_ = value; + onChanged(); + return this; + } + /** uint64 count = 1; */ + public Builder clearCount() { - public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + count_ = 0L; + onChanged(); + return this; + } - } - - public interface rsp_getSolcVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getSolcVersion) - com.google.protobuf.MessageOrBuilder { - - /** - * string ver = 1; - */ - java.lang.String getVer(); - /** - * string ver = 1; - */ - com.google.protobuf.ByteString - getVerBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} - */ - public static final class rsp_getSolcVersion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getSolcVersion) - rsp_getSolcVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getSolcVersion.newBuilder() to construct. - private rsp_getSolcVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getSolcVersion() { - ver_ = ""; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getSolcVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - ver_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getSolcVersion.class, org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlocksByLatest) + } - public static final int VER_FIELD_NUMBER = 1; - private volatile java.lang.Object ver_; - /** - * string ver = 1; - */ - public java.lang.String getVer() { - java.lang.Object ref = ver_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ver_ = s; - return s; - } - } - /** - * string ver = 1; - */ - public com.google.protobuf.ByteString - getVerBytes() { - java.lang.Object ref = ver_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlocksByLatest) + private static final org.aion.api.server.pb.Message.req_getBlocksByLatest DEFAULT_INSTANCE; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlocksByLatest(); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getVerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ver_); - } - unknownFields.writeTo(output); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlocksByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlocksByLatest(input, extensionRegistry); + } + }; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ver_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getSolcVersion other = (org.aion.api.server.pb.Message.rsp_getSolcVersion) obj; - - boolean result = true; - result = result && getVer() - .equals(other.getVer()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VER_FIELD_NUMBER; - hash = (53 * hash) + getVer().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; + public org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public interface rsp_getBlocksByLatestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlocksByLatest) + com.google.protobuf.MessageOrBuilder { - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getSolcVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + java.util.List getBlksList(); + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + org.aion.api.server.pb.Message.t_Block getBlks(int index); + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + int getBlksCount(); + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + java.util.List + getBlksOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder(int index); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} */ + public static final class rsp_getBlocksByLatest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) + rsp_getBlocksByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlocksByLatest.newBuilder() to construct. + private rsp_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getSolcVersion) - org.aion.api.server.pb.Message.rsp_getSolcVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getSolcVersion.class, org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getSolcVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - ver_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getSolcVersion build() { - org.aion.api.server.pb.Message.rsp_getSolcVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getSolcVersion buildPartial() { - org.aion.api.server.pb.Message.rsp_getSolcVersion result = new org.aion.api.server.pb.Message.rsp_getSolcVersion(this); - result.ver_ = ver_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getSolcVersion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getSolcVersion other) { - if (other == org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance()) return this; - if (!other.getVer().isEmpty()) { - ver_ = other.ver_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getSolcVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getSolcVersion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ver_ = ""; - /** - * string ver = 1; - */ - public java.lang.String getVer() { - java.lang.Object ref = ver_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ver_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ver = 1; - */ - public com.google.protobuf.ByteString - getVerBytes() { - java.lang.Object ref = ver_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ver = 1; - */ - public Builder setVer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ver_ = value; - onChanged(); - return this; - } - /** - * string ver = 1; - */ - public Builder clearVer() { - - ver_ = getDefaultInstance().getVer(); - onChanged(); - return this; - } - /** - * string ver = 1; - */ - public Builder setVerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ver_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getSolcVersion) - } + private rsp_getBlocksByLatest() { + blks_ = java.util.Collections.emptyList(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getSolcVersion) - private static final org.aion.api.server.pb.Message.rsp_getSolcVersion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getSolcVersion(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private rsp_getBlocksByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_Block>(); + mutable_bitField0_ |= 0x00000001; + } + blks_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_Block.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = java.util.Collections.unmodifiableList(blks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getSolcVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getSolcVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, + org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); + } - public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int BLKS_FIELD_NUMBER = 1; + private java.util.List blks_; + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public java.util.List getBlksList() { + return blks_; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public java.util.List + getBlksOrBuilderList() { + return blks_; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public int getBlksCount() { + return blks_.size(); + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public org.aion.api.server.pb.Message.t_Block getBlks(int index) { + return blks_.get(index); + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder(int index) { + return blks_.get(index); + } - } - - public interface rsp_isSyncingOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_isSyncing) - com.google.protobuf.MessageOrBuilder { - - /** - * bool syncing = 1; - */ - boolean getSyncing(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} - */ - public static final class rsp_isSyncing extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_isSyncing) - rsp_isSyncingOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_isSyncing.newBuilder() to construct. - private rsp_isSyncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_isSyncing() { - syncing_ = false; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_isSyncing( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - syncing_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_isSyncing.class, org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); - } + memoizedIsInitialized = 1; + return true; + } - public static final int SYNCING_FIELD_NUMBER = 1; - private boolean syncing_; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blks_.size(); i++) { + output.writeMessage(1, blks_.get(i)); + } + unknownFields.writeTo(output); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - memoizedIsInitialized = 1; - return true; - } + size = 0; + for (int i = 0; i < blks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blks_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (syncing_ != false) { - output.writeBool(1, syncing_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlocksByLatest other = + (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) obj; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (syncing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, syncing_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + boolean result = true; + result = result && getBlksList().equals(other.getBlksList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_isSyncing)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_isSyncing other = (org.aion.api.server.pb.Message.rsp_isSyncing) obj; - - boolean result = true; - result = result && (getSyncing() - == other.getSyncing()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlksCount() > 0) { + hash = (37 * hash) + BLKS_FIELD_NUMBER; + hash = (53 * hash) + getBlksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYNCING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSyncing()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_isSyncing prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_isSyncing) - org.aion.api.server.pb.Message.rsp_isSyncingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_isSyncing.class, org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_isSyncing.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - syncing_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_isSyncing build() { - org.aion.api.server.pb.Message.rsp_isSyncing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_isSyncing buildPartial() { - org.aion.api.server.pb.Message.rsp_isSyncing result = new org.aion.api.server.pb.Message.rsp_isSyncing(this); - result.syncing_ = syncing_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_isSyncing) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_isSyncing)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_isSyncing other) { - if (other == org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance()) return this; - if (other.getSyncing() != false) { - setSyncing(other.getSyncing()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_isSyncing parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_isSyncing) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean syncing_ ; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } - /** - * bool syncing = 1; - */ - public Builder setSyncing(boolean value) { - - syncing_ = value; - onChanged(); - return this; - } - /** - * bool syncing = 1; - */ - public Builder clearSyncing() { - - syncing_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_isSyncing) - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_isSyncing) - private static final org.aion.api.server.pb.Message.rsp_isSyncing DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_isSyncing(); - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_isSyncing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_isSyncing(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - } - - public interface rsp_syncInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * bool syncing = 1; - */ - boolean getSyncing(); - - /** - * uint64 networkBestBlock = 2; - */ - long getNetworkBestBlock(); - - /** - * uint64 chainBestBlock = 3; - */ - long getChainBestBlock(); - - /** - * uint32 maxImportBlocks = 4; - */ - int getMaxImportBlocks(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} - */ - public static final class rsp_syncInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncInfo) - rsp_syncInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_syncInfo.newBuilder() to construct. - private rsp_syncInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_syncInfo() { - syncing_ = false; - networkBestBlock_ = 0L; - chainBestBlock_ = 0L; - maxImportBlocks_ = 0; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_syncInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - syncing_ = input.readBool(); - break; - } - case 16: { - - networkBestBlock_ = input.readUInt64(); - break; - } - case 24: { - - chainBestBlock_ = input.readUInt64(); - break; - } - case 32: { - - maxImportBlocks_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncInfo.class, org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int SYNCING_FIELD_NUMBER = 1; - private boolean syncing_; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int NETWORKBESTBLOCK_FIELD_NUMBER = 2; - private long networkBestBlock_; - /** - * uint64 networkBestBlock = 2; - */ - public long getNetworkBestBlock() { - return networkBestBlock_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int CHAINBESTBLOCK_FIELD_NUMBER = 3; - private long chainBestBlock_; - /** - * uint64 chainBestBlock = 3; - */ - public long getChainBestBlock() { - return chainBestBlock_; - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getBlocksByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int MAXIMPORTBLOCKS_FIELD_NUMBER = 4; - private int maxImportBlocks_; - /** - * uint32 maxImportBlocks = 4; - */ - public int getMaxImportBlocks() { - return maxImportBlocks_; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) + org.aion.api.server.pb.Message.rsp_getBlocksByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, + org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (syncing_ != false) { - output.writeBool(1, syncing_); - } - if (networkBestBlock_ != 0L) { - output.writeUInt64(2, networkBestBlock_); - } - if (chainBestBlock_ != 0L) { - output.writeUInt64(3, chainBestBlock_); - } - if (maxImportBlocks_ != 0) { - output.writeUInt32(4, maxImportBlocks_); - } - unknownFields.writeTo(output); - } + // Construct using org.aion.api.server.pb.Message.rsp_getBlocksByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (syncing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, syncing_); - } - if (networkBestBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, networkBestBlock_); - } - if (chainBestBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, chainBestBlock_); - } - if (maxImportBlocks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, maxImportBlocks_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncInfo)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_syncInfo other = (org.aion.api.server.pb.Message.rsp_syncInfo) obj; - - boolean result = true; - result = result && (getSyncing() - == other.getSyncing()); - result = result && (getNetworkBestBlock() - == other.getNetworkBestBlock()); - result = result && (getChainBestBlock() - == other.getChainBestBlock()); - result = result && (getMaxImportBlocks() - == other.getMaxImportBlocks()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBlksFieldBuilder(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYNCING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSyncing()); - hash = (37 * hash) + NETWORKBESTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNetworkBestBlock()); - hash = (37 * hash) + CHAINBESTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getChainBestBlock()); - hash = (37 * hash) + MAXIMPORTBLOCKS_FIELD_NUMBER; - hash = (53 * hash) + getMaxImportBlocks(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder clear() { + super.clear(); + if (blksBuilder_ == null) { + blks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blksBuilder_.clear(); + } + return this; + } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlocksByLatest.getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncInfo) - org.aion.api.server.pb.Message.rsp_syncInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncInfo.class, org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_syncInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - syncing_ = false; - - networkBestBlock_ = 0L; - - chainBestBlock_ = 0L; - - maxImportBlocks_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_syncInfo build() { - org.aion.api.server.pb.Message.rsp_syncInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_syncInfo buildPartial() { - org.aion.api.server.pb.Message.rsp_syncInfo result = new org.aion.api.server.pb.Message.rsp_syncInfo(this); - result.syncing_ = syncing_; - result.networkBestBlock_ = networkBestBlock_; - result.chainBestBlock_ = chainBestBlock_; - result.maxImportBlocks_ = maxImportBlocks_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_syncInfo) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_syncInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncInfo other) { - if (other == org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance()) return this; - if (other.getSyncing() != false) { - setSyncing(other.getSyncing()); - } - if (other.getNetworkBestBlock() != 0L) { - setNetworkBestBlock(other.getNetworkBestBlock()); - } - if (other.getChainBestBlock() != 0L) { - setChainBestBlock(other.getChainBestBlock()); - } - if (other.getMaxImportBlocks() != 0) { - setMaxImportBlocks(other.getMaxImportBlocks()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_syncInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_syncInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean syncing_ ; - /** - * bool syncing = 1; - */ - public boolean getSyncing() { - return syncing_; - } - /** - * bool syncing = 1; - */ - public Builder setSyncing(boolean value) { - - syncing_ = value; - onChanged(); - return this; - } - /** - * bool syncing = 1; - */ - public Builder clearSyncing() { - - syncing_ = false; - onChanged(); - return this; - } - - private long networkBestBlock_ ; - /** - * uint64 networkBestBlock = 2; - */ - public long getNetworkBestBlock() { - return networkBestBlock_; - } - /** - * uint64 networkBestBlock = 2; - */ - public Builder setNetworkBestBlock(long value) { - - networkBestBlock_ = value; - onChanged(); - return this; - } - /** - * uint64 networkBestBlock = 2; - */ - public Builder clearNetworkBestBlock() { - - networkBestBlock_ = 0L; - onChanged(); - return this; - } - - private long chainBestBlock_ ; - /** - * uint64 chainBestBlock = 3; - */ - public long getChainBestBlock() { - return chainBestBlock_; - } - /** - * uint64 chainBestBlock = 3; - */ - public Builder setChainBestBlock(long value) { - - chainBestBlock_ = value; - onChanged(); - return this; - } - /** - * uint64 chainBestBlock = 3; - */ - public Builder clearChainBestBlock() { - - chainBestBlock_ = 0L; - onChanged(); - return this; - } - - private int maxImportBlocks_ ; - /** - * uint32 maxImportBlocks = 4; - */ - public int getMaxImportBlocks() { - return maxImportBlocks_; - } - /** - * uint32 maxImportBlocks = 4; - */ - public Builder setMaxImportBlocks(int value) { - - maxImportBlocks_ = value; - onChanged(); - return this; - } - /** - * uint32 maxImportBlocks = 4; - */ - public Builder clearMaxImportBlocks() { - - maxImportBlocks_ = 0; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncInfo) - } + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest build() { + org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncInfo) - private static final org.aion.api.server.pb.Message.rsp_syncInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncInfo(); - } + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = + new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(this); + int from_bitField0_ = bitField0_; + if (blksBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = java.util.Collections.unmodifiableList(blks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blks_ = blks_; + } else { + result.blks_ = blksBuilder_.build(); + } + onBuilt(); + return result; + } - public static org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clone() { + return (Builder) super.clone(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_syncInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_syncInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - } - - public interface rsp_systemInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_systemInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * float cpuUsage = 1; - */ - float getCpuUsage(); - - /** - * uint64 memoryUsage = 2; - */ - long getMemoryUsage(); - - /** - * uint64 DBSize = 3; - */ - long getDBSize(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} - */ - public static final class rsp_systemInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_systemInfo) - rsp_systemInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_systemInfo.newBuilder() to construct. - private rsp_systemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_systemInfo() { - cpuUsage_ = 0F; - memoryUsage_ = 0L; - dBSize_ = 0L; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_systemInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 13: { - - cpuUsage_ = input.readFloat(); - break; - } - case 16: { - - memoryUsage_ = input.readUInt64(); - break; - } - case 24: { - - dBSize_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_systemInfo.class, org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlocksByLatest) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int CPUUSAGE_FIELD_NUMBER = 1; - private float cpuUsage_; - /** - * float cpuUsage = 1; - */ - public float getCpuUsage() { - return cpuUsage_; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlocksByLatest other) { + if (other + == org.aion.api.server.pb.Message.rsp_getBlocksByLatest + .getDefaultInstance()) return this; + if (blksBuilder_ == null) { + if (!other.blks_.isEmpty()) { + if (blks_.isEmpty()) { + blks_ = other.blks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlksIsMutable(); + blks_.addAll(other.blks_); + } + onChanged(); + } + } else { + if (!other.blks_.isEmpty()) { + if (blksBuilder_.isEmpty()) { + blksBuilder_.dispose(); + blksBuilder_ = null; + blks_ = other.blks_; + bitField0_ = (bitField0_ & ~0x00000001); + blksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlksFieldBuilder() + : null; + } else { + blksBuilder_.addAllMessages(other.blks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int MEMORYUSAGE_FIELD_NUMBER = 2; - private long memoryUsage_; - /** - * uint64 memoryUsage = 2; - */ - public long getMemoryUsage() { - return memoryUsage_; - } + public final boolean isInitialized() { + return true; + } - public static final int DBSIZE_FIELD_NUMBER = 3; - private long dBSize_; - /** - * uint64 DBSize = 3; - */ - public long getDBSize() { - return dBSize_; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlocksByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private int bitField0_; - memoizedIsInitialized = 1; - return true; - } + private java.util.List blks_ = + java.util.Collections.emptyList(); - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (cpuUsage_ != 0F) { - output.writeFloat(1, cpuUsage_); - } - if (memoryUsage_ != 0L) { - output.writeUInt64(2, memoryUsage_); - } - if (dBSize_ != 0L) { - output.writeUInt64(3, dBSize_); - } - unknownFields.writeTo(output); - } + private void ensureBlksIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = new java.util.ArrayList(blks_); + bitField0_ |= 0x00000001; + } + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cpuUsage_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, cpuUsage_); - } - if (memoryUsage_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, memoryUsage_); - } - if (dBSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, dBSize_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Block, + org.aion.api.server.pb.Message.t_Block.Builder, + org.aion.api.server.pb.Message.t_BlockOrBuilder> + blksBuilder_; + + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public java.util.List getBlksList() { + if (blksBuilder_ == null) { + return java.util.Collections.unmodifiableList(blks_); + } else { + return blksBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public int getBlksCount() { + if (blksBuilder_ == null) { + return blks_.size(); + } else { + return blksBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public org.aion.api.server.pb.Message.t_Block getBlks(int index) { + if (blksBuilder_ == null) { + return blks_.get(index); + } else { + return blksBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder setBlks(int index, org.aion.api.server.pb.Message.t_Block value) { + if (blksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlksIsMutable(); + blks_.set(index, value); + onChanged(); + } else { + blksBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder setBlks( + int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.set(index, builderForValue.build()); + onChanged(); + } else { + blksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder addBlks(org.aion.api.server.pb.Message.t_Block value) { + if (blksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlksIsMutable(); + blks_.add(value); + onChanged(); + } else { + blksBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder addBlks(int index, org.aion.api.server.pb.Message.t_Block value) { + if (blksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlksIsMutable(); + blks_.add(index, value); + onChanged(); + } else { + blksBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder addBlks(org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.add(builderForValue.build()); + onChanged(); + } else { + blksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder addBlks( + int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.add(index, builderForValue.build()); + onChanged(); + } else { + blksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder addAllBlks( + java.lang.Iterable values) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blks_); + onChanged(); + } else { + blksBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder clearBlks() { + if (blksBuilder_ == null) { + blks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blksBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public Builder removeBlks(int index) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.remove(index); + onChanged(); + } else { + blksBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public org.aion.api.server.pb.Message.t_Block.Builder getBlksBuilder(int index) { + return getBlksFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder(int index) { + if (blksBuilder_ == null) { + return blks_.get(index); + } else { + return blksBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public java.util.List + getBlksOrBuilderList() { + if (blksBuilder_ != null) { + return blksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blks_); + } + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder() { + return getBlksFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder(int index) { + return getBlksFieldBuilder() + .addBuilder( + index, org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ + public java.util.List + getBlksBuilderList() { + return getBlksFieldBuilder().getBuilderList(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_systemInfo)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_systemInfo other = (org.aion.api.server.pb.Message.rsp_systemInfo) obj; - - boolean result = true; - result = result && ( - java.lang.Float.floatToIntBits(getCpuUsage()) - == java.lang.Float.floatToIntBits( - other.getCpuUsage())); - result = result && (getMemoryUsage() - == other.getMemoryUsage()); - result = result && (getDBSize() - == other.getDBSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Block, + org.aion.api.server.pb.Message.t_Block.Builder, + org.aion.api.server.pb.Message.t_BlockOrBuilder> + getBlksFieldBuilder() { + if (blksBuilder_ == null) { + blksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Block, + org.aion.api.server.pb.Message.t_Block.Builder, + org.aion.api.server.pb.Message.t_BlockOrBuilder>( + blks_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blks_ = null; + } + return blksBuilder_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CPUUSAGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getCpuUsage()); - hash = (37 * hash) + MEMORYUSAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMemoryUsage()); - hash = (37 * hash) + DBSIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDBSize()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_systemInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_systemInfo) - org.aion.api.server.pb.Message.rsp_systemInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_systemInfo.class, org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_systemInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - cpuUsage_ = 0F; - - memoryUsage_ = 0L; - - dBSize_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_systemInfo build() { - org.aion.api.server.pb.Message.rsp_systemInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_systemInfo buildPartial() { - org.aion.api.server.pb.Message.rsp_systemInfo result = new org.aion.api.server.pb.Message.rsp_systemInfo(this); - result.cpuUsage_ = cpuUsage_; - result.memoryUsage_ = memoryUsage_; - result.dBSize_ = dBSize_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_systemInfo) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_systemInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_systemInfo other) { - if (other == org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance()) return this; - if (other.getCpuUsage() != 0F) { - setCpuUsage(other.getCpuUsage()); - } - if (other.getMemoryUsage() != 0L) { - setMemoryUsage(other.getMemoryUsage()); - } - if (other.getDBSize() != 0L) { - setDBSize(other.getDBSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_systemInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_systemInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float cpuUsage_ ; - /** - * float cpuUsage = 1; - */ - public float getCpuUsage() { - return cpuUsage_; - } - /** - * float cpuUsage = 1; - */ - public Builder setCpuUsage(float value) { - - cpuUsage_ = value; - onChanged(); - return this; - } - /** - * float cpuUsage = 1; - */ - public Builder clearCpuUsage() { - - cpuUsage_ = 0F; - onChanged(); - return this; - } - - private long memoryUsage_ ; - /** - * uint64 memoryUsage = 2; - */ - public long getMemoryUsage() { - return memoryUsage_; - } - /** - * uint64 memoryUsage = 2; - */ - public Builder setMemoryUsage(long value) { - - memoryUsage_ = value; - onChanged(); - return this; - } - /** - * uint64 memoryUsage = 2; - */ - public Builder clearMemoryUsage() { - - memoryUsage_ = 0L; - onChanged(); - return this; - } - - private long dBSize_ ; - /** - * uint64 DBSize = 3; - */ - public long getDBSize() { - return dBSize_; - } - /** - * uint64 DBSize = 3; - */ - public Builder setDBSize(long value) { - - dBSize_ = value; - onChanged(); - return this; - } - /** - * uint64 DBSize = 3; - */ - public Builder clearDBSize() { - - dBSize_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_systemInfo) - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) + private static final org.aion.api.server.pb.Message.rsp_getBlocksByLatest DEFAULT_INSTANCE; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_systemInfo) - private static final org.aion.api.server.pb.Message.rsp_systemInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_systemInfo(); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(); + } - public static org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_systemInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_systemInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlocksByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlocksByLatest(input, extensionRegistry); + } + }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - } - - public interface req_eventRegisterOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventRegister) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string events = 1; - */ - java.util.List - getEventsList(); - /** - * repeated string events = 1; - */ - int getEventsCount(); - /** - * repeated string events = 1; - */ - java.lang.String getEvents(int index); - /** - * repeated string events = 1; - */ - com.google.protobuf.ByteString - getEventsBytes(int index); - - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - boolean hasFilter(); - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - org.aion.api.server.pb.Message.t_FilterCt getFilter(); - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_eventRegister} - */ - public static final class req_eventRegister extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventRegister) - req_eventRegisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_eventRegister.newBuilder() to construct. - private req_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_eventRegister() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_eventRegister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(s); - break; - } - case 18: { - org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); - } - filter_ = input.readMessage(org.aion.api.server.pb.Message.t_FilterCt.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - } + public interface req_getAccountDetailsByAddressListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + com.google.protobuf.MessageOrBuilder { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventRegister.class, org.aion.api.server.pb.Message.req_eventRegister.Builder.class); + /** repeated bytes addresses = 1; */ + java.util.List getAddressesList(); + /** repeated bytes addresses = 1; */ + int getAddressesCount(); + /** repeated bytes addresses = 1; */ + com.google.protobuf.ByteString getAddresses(int index); } + /** Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} */ + public static final class req_getAccountDetailsByAddressList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + req_getAccountDetailsByAddressListOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getAccountDetailsByAddressList.newBuilder() to construct. + private req_getAccountDetailsByAddressList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private int bitField0_; - public static final int EVENTS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList events_; - /** - * repeated string events = 1; - */ - public com.google.protobuf.ProtocolStringList - getEventsList() { - return events_; - } - /** - * repeated string events = 1; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated string events = 1; - */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** - * repeated string events = 1; - */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { - return events_.getByteString(index); - } + private req_getAccountDetailsByAddressList() { + addresses_ = java.util.Collections.emptyList(); + } - public static final int FILTER_FIELD_NUMBER = 2; - private org.aion.api.server.pb.Message.t_FilterCt filter_; - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public boolean hasFilter() { - return filter_ != null; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - return getFilter(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private req_getAccountDetailsByAddressList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = + new java.util.ArrayList< + com.google.protobuf.ByteString>(); + mutable_bitField0_ |= 0x00000001; + } + addresses_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < events_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); - } - if (filter_ != null) { - output.writeMessage(2, getFilter()); - } - unknownFields.writeTo(output); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.class, + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + .Builder + .class); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < events_.size(); i++) { - dataSize += computeStringSizeNoTag(events_.getRaw(i)); - } - size += dataSize; - size += 1 * getEventsList().size(); - } - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilter()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int ADDRESSES_FIELD_NUMBER = 1; + private java.util.List addresses_; + /** repeated bytes addresses = 1; */ + public java.util.List getAddressesList() { + return addresses_; + } + /** repeated bytes addresses = 1; */ + public int getAddressesCount() { + return addresses_.size(); + } + /** repeated bytes addresses = 1; */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_eventRegister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_eventRegister other = (org.aion.api.server.pb.Message.req_eventRegister) obj; - - boolean result = true; - result = result && getEventsList() - .equals(other.getEventsList()); - result = result && (hasFilter() == other.hasFilter()); - if (hasFilter()) { - result = result && getFilter() - .equals(other.getFilter()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_eventRegister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < addresses_.size(); i++) { + output.writeBytes(1, addresses_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( + addresses_.get(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_eventRegister} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventRegister) - org.aion.api.server.pb.Message.req_eventRegisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventRegister.class, org.aion.api.server.pb.Message.req_eventRegister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_eventRegister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - } - - public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_eventRegister build() { - org.aion.api.server.pb.Message.req_eventRegister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_eventRegister buildPartial() { - org.aion.api.server.pb.Message.req_eventRegister result = new org.aion.api.server.pb.Message.req_eventRegister(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.events_ = events_; - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_eventRegister) { - return mergeFrom((org.aion.api.server.pb.Message.req_eventRegister)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventRegister other) { - if (other == org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance()) return this; - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_eventRegister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_eventRegister) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(events_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string events = 1; - */ - public com.google.protobuf.ProtocolStringList - getEventsList() { - return events_.getUnmodifiableView(); - } - /** - * repeated string events = 1; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated string events = 1; - */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** - * repeated string events = 1; - */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { - return events_.getByteString(index); - } - /** - * repeated string events = 1; - */ - public Builder setEvents( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder addEvents( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder clearEvents() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder addEventsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - - private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> filterBuilder_; - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - if (filterBuilder_ == null) { - return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public Builder setFilter( - org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - org.aion.api.server.pb.Message.t_FilterCt.newBuilder(filter_).mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null ? - org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; - } - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); - filter_ = null; - } - return filterBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventRegister) - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other = + (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) obj; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventRegister) - private static final org.aion.api.server.pb.Message.req_eventRegister DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventRegister(); - } + boolean result = true; + result = result && getAddressesList().equals(other.getAddressesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.req_eventRegister getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_eventRegister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_eventRegister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } - - public interface rsp_eventRegisterOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventRegister) - com.google.protobuf.MessageOrBuilder { - - /** - * bool result = 1; - */ - boolean getResult(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} - */ - public static final class rsp_eventRegister extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventRegister) - rsp_eventRegisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_eventRegister.newBuilder() to construct. - private rsp_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_eventRegister() { - result_ = false; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_eventRegister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - result_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventRegister.class, org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int RESULT_FIELD_NUMBER = 1; - private boolean result_; - /** - * bool result = 1; - */ - public boolean getResult() { - return result_; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - if (result_ != false) { - output.writeBool(1, result_); - } - unknownFields.writeTo(output); - } + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (result_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, result_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventRegister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_eventRegister other = (org.aion.api.server.pb.Message.rsp_eventRegister) obj; - - boolean result = true; - result = result && (getResult() - == other.getResult()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getResult()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_eventRegister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventRegister) - org.aion.api.server.pb.Message.rsp_eventRegisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventRegister.class, org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_eventRegister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - result_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_eventRegister build() { - org.aion.api.server.pb.Message.rsp_eventRegister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_eventRegister buildPartial() { - org.aion.api.server.pb.Message.rsp_eventRegister result = new org.aion.api.server.pb.Message.rsp_eventRegister(this); - result.result_ = result_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_eventRegister) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_eventRegister)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventRegister other) { - if (other == org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance()) return this; - if (other.getResult() != false) { - setResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_eventRegister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_eventRegister) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean result_ ; - /** - * bool result = 1; - */ - public boolean getResult() { - return result_; - } - /** - * bool result = 1; - */ - public Builder setResult(boolean value) { - - result_ = value; - onChanged(); - return this; - } - /** - * bool result = 1; - */ - public Builder clearResult() { - - result_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventRegister) - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventRegister) - private static final org.aion.api.server.pb.Message.rsp_eventRegister DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventRegister(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + .class, + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + .Builder + .class); + } - public static org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // Construct using + // org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_eventRegister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_eventRegister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clear() { + super.clear(); + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - } - - public interface req_eventDeregisterOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventDeregister) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string events = 1; - */ - java.util.List - getEventsList(); - /** - * repeated string events = 1; - */ - int getEventsCount(); - /** - * repeated string events = 1; - */ - java.lang.String getEvents(int index); - /** - * repeated string events = 1; - */ - com.google.protobuf.ByteString - getEventsBytes(int index); - - /** - * bytes contractAddr = 2; - */ - com.google.protobuf.ByteString getContractAddr(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} - */ - public static final class req_eventDeregister extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventDeregister) - req_eventDeregisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_eventDeregister.newBuilder() to construct. - private req_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_eventDeregister() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - contractAddr_ = com.google.protobuf.ByteString.EMPTY; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_eventDeregister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(s); - break; - } - case 18: { - - contractAddr_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - } + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + .getDefaultInstance(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventDeregister.class, org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); - } + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList build() { + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private int bitField0_; - public static final int EVENTS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList events_; - /** - * repeated string events = 1; - */ - public com.google.protobuf.ProtocolStringList - getEventsList() { - return events_; - } - /** - * repeated string events = 1; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated string events = 1; - */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** - * repeated string events = 1; - */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { - return events_.getByteString(index); - } + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + buildPartial() { + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = + new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addresses_ = addresses_; + onBuilt(); + return result; + } - public static final int CONTRACTADDR_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString contractAddr_; - /** - * bytes contractAddr = 2; - */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } + public Builder clone() { + return (Builder) super.clone(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - memoizedIsInitialized = 1; - return true; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < events_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); - } - if (!contractAddr_.isEmpty()) { - output.writeBytes(2, contractAddr_); - } - unknownFields.writeTo(output); - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < events_.size(); i++) { - dataSize += computeStringSizeNoTag(events_.getRaw(i)); - } - size += dataSize; - size += 1 * getEventsList().size(); - } - if (!contractAddr_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, contractAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_eventDeregister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_eventDeregister other = (org.aion.api.server.pb.Message.req_eventDeregister) obj; - - boolean result = true; - result = result && getEventsList() - .equals(other.getEventsList()); - result = result && getContractAddr() - .equals(other.getContractAddr()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other) { + if (other + == org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + .getDefaultInstance()) return this; + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_eventDeregister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventDeregister) - org.aion.api.server.pb.Message.req_eventDeregisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventDeregister.class, org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_eventDeregister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - contractAddr_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - } - - public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_eventDeregister build() { - org.aion.api.server.pb.Message.req_eventDeregister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_eventDeregister buildPartial() { - org.aion.api.server.pb.Message.req_eventDeregister result = new org.aion.api.server.pb.Message.req_eventDeregister(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.events_ = events_; - result.contractAddr_ = contractAddr_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_eventDeregister) { - return mergeFrom((org.aion.api.server.pb.Message.req_eventDeregister)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventDeregister other) { - if (other == org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance()) return this; - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { - setContractAddr(other.getContractAddr()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_eventDeregister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_eventDeregister) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(events_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string events = 1; - */ - public com.google.protobuf.ProtocolStringList - getEventsList() { - return events_.getUnmodifiableView(); - } - /** - * repeated string events = 1; - */ - public int getEventsCount() { - return events_.size(); - } - /** - * repeated string events = 1; - */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** - * repeated string events = 1; - */ - public com.google.protobuf.ByteString - getEventsBytes(int index) { - return events_.getByteString(index); - } - /** - * repeated string events = 1; - */ - public Builder setEvents( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder addEvents( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder addAllEvents( - java.lang.Iterable values) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder clearEvents() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string events = 1; - */ - public Builder addEventsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contractAddr_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes contractAddr = 2; - */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } - /** - * bytes contractAddr = 2; - */ - public Builder setContractAddr(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** - * bytes contractAddr = 2; - */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventDeregister) - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventDeregister) - private static final org.aion.api.server.pb.Message.req_eventDeregister DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventDeregister(); - } + private int bitField0_; - public static org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.util.List addresses_ = + java.util.Collections.emptyList(); - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_eventDeregister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_eventDeregister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = + new java.util.ArrayList(addresses_); + bitField0_ |= 0x00000001; + } + } + /** repeated bytes addresses = 1; */ + public java.util.List getAddressesList() { + return java.util.Collections.unmodifiableList(addresses_); + } + /** repeated bytes addresses = 1; */ + public int getAddressesCount() { + return addresses_.size(); + } + /** repeated bytes addresses = 1; */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } + /** repeated bytes addresses = 1; */ + public Builder setAddresses(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** repeated bytes addresses = 1; */ + public Builder addAddresses(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** repeated bytes addresses = 1; */ + public Builder addAllAddresses( + java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); + onChanged(); + return this; + } + /** repeated bytes addresses = 1; */ + public Builder clearAddresses() { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - } - - public interface rsp_eventDeregisterOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventDeregister) - com.google.protobuf.MessageOrBuilder { - - /** - * bool result = 1; - */ - boolean getResult(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} - */ - public static final class rsp_eventDeregister extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventDeregister) - rsp_eventDeregisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_eventDeregister.newBuilder() to construct. - private rsp_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_eventDeregister() { - result_ = false; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_eventDeregister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - result_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + private static final org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + DEFAULT_INSTANCE; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventDeregister.class, org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); - } + static { + DEFAULT_INSTANCE = + new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(); + } - public static final int RESULT_FIELD_NUMBER = 1; - private boolean result_; - /** - * bool result = 1; - */ - public boolean getResult() { - return result_; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getAccountDetailsByAddressList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getAccountDetailsByAddressList(input, extensionRegistry); + } + }; - memoizedIsInitialized = 1; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (result_ != false) { - output.writeBool(1, result_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (result_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, result_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventDeregister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_eventDeregister other = (org.aion.api.server.pb.Message.rsp_eventDeregister) obj; - - boolean result = true; - result = result && (getResult() - == other.getResult()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public interface rsp_getAccountDetailsByAddressListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getResult()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + java.util.List getAccountsList(); + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index); + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + int getAccountsCount(); + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + java.util.List + getAccountsOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder(int index); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} */ + public static final class rsp_getAccountDetailsByAddressList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + rsp_getAccountDetailsByAddressListOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getAccountDetailsByAddressList.newBuilder() to construct. + private rsp_getAccountDetailsByAddressList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private rsp_getAccountDetailsByAddressList() { + accounts_ = java.util.Collections.emptyList(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_eventDeregister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventDeregister) - org.aion.api.server.pb.Message.rsp_eventDeregisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventDeregister.class, org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_eventDeregister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - result_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_eventDeregister build() { - org.aion.api.server.pb.Message.rsp_eventDeregister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_eventDeregister buildPartial() { - org.aion.api.server.pb.Message.rsp_eventDeregister result = new org.aion.api.server.pb.Message.rsp_eventDeregister(this); - result.result_ = result_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_eventDeregister) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_eventDeregister)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventDeregister other) { - if (other == org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance()) return this; - if (other.getResult() != false) { - setResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_eventDeregister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_eventDeregister) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean result_ ; - /** - * bool result = 1; - */ - public boolean getResult() { - return result_; - } - /** - * bool result = 1; - */ - public Builder setResult(boolean value) { - - result_ = value; - onChanged(); - return this; - } - /** - * bool result = 1; - */ - public Builder clearResult() { - - result_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventDeregister) - } + private rsp_getAccountDetailsByAddressList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message + .t_AccountDetail>(); + mutable_bitField0_ |= 0x00000001; + } + accounts_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_AccountDetail + .parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventDeregister) - private static final org.aion.api.server.pb.Message.rsp_eventDeregister DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventDeregister(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstance() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.class, + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + .Builder + .class); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_eventDeregister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_eventDeregister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int ACCOUNTS_FIELD_NUMBER = 1; + private java.util.List accounts_; + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public java.util.List getAccountsList() { + return accounts_; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public java.util.List + getAccountsOrBuilderList() { + return accounts_; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public int getAccountsCount() { + return accounts_.size(); + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { + return accounts_.get(index); + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( + int index) { + return accounts_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - } - - public interface rsp_EventCtCallbackOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_EventCtCallback) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - java.util.List - getEcList(); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - org.aion.api.server.pb.Message.t_EventCt getEc(int index); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - int getEcCount(); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - java.util.List - getEcOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} - */ - public static final class rsp_EventCtCallback extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_EventCtCallback) - rsp_EventCtCallbackOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_EventCtCallback.newBuilder() to construct. - private rsp_EventCtCallback(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_EventCtCallback() { - ec_ = java.util.Collections.emptyList(); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_EventCtCallback( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ec_.add( - input.readMessage(org.aion.api.server.pb.Message.t_EventCt.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < accounts_.size(); i++) { + output.writeMessage(1, accounts_.get(i)); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_EventCtCallback.class, org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int EC_FIELD_NUMBER = 1; - private java.util.List ec_; - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List getEcList() { - return ec_; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List - getEcOrBuilderList() { - return ec_; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public int getEcCount() { - return ec_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - return ec_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( - int index) { - return ec_.get(index); - } + size = 0; + for (int i = 0; i < accounts_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, accounts_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other = + (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) obj; - memoizedIsInitialized = 1; - return true; - } + boolean result = true; + result = result && getAccountsList().equals(other.getAccountsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ec_.size(); i++) { - output.writeMessage(1, ec_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccountsCount() > 0) { + hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getAccountsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < ec_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, ec_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_EventCtCallback other = (org.aion.api.server.pb.Message.rsp_EventCtCallback) obj; - - boolean result = true; - result = result && getEcList() - .equals(other.getEcList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEcCount() > 0) { - hash = (37 * hash) + EC_FIELD_NUMBER; - hash = (53 * hash) + getEcList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_EventCtCallback prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_EventCtCallback) - org.aion.api.server.pb.Message.rsp_EventCtCallbackOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_EventCtCallback.class, org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_EventCtCallback.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEcFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ecBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_EventCtCallback build() { - org.aion.api.server.pb.Message.rsp_EventCtCallback result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_EventCtCallback buildPartial() { - org.aion.api.server.pb.Message.rsp_EventCtCallback result = new org.aion.api.server.pb.Message.rsp_EventCtCallback(this); - int from_bitField0_ = bitField0_; - if (ecBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ec_ = ec_; - } else { - result.ec_ = ecBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_EventCtCallback)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_EventCtCallback other) { - if (other == org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance()) return this; - if (ecBuilder_ == null) { - if (!other.ec_.isEmpty()) { - if (ec_.isEmpty()) { - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEcIsMutable(); - ec_.addAll(other.ec_); - } - onChanged(); - } - } else { - if (!other.ec_.isEmpty()) { - if (ecBuilder_.isEmpty()) { - ecBuilder_.dispose(); - ecBuilder_ = null; - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - ecBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEcFieldBuilder() : null; - } else { - ecBuilder_.addAllMessages(other.ec_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_EventCtCallback parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_EventCtCallback) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List ec_ = - java.util.Collections.emptyList(); - private void ensureEcIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = new java.util.ArrayList(ec_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> ecBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List getEcList() { - if (ecBuilder_ == null) { - return java.util.Collections.unmodifiableList(ec_); - } else { - return ecBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public int getEcCount() { - if (ecBuilder_ == null) { - return ec_.size(); - } else { - return ecBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - if (ecBuilder_ == null) { - return ec_.get(index); - } else { - return ecBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder setEc( - int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.set(index, value); - onChanged(); - } else { - ecBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder setEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.set(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(value); - onChanged(); - } else { - ecBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc( - int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(index, value); - onChanged(); - } else { - ecBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc( - org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addAllEc( - java.lang.Iterable values) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ec_); - onChanged(); - } else { - ecBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder clearEc() { - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ecBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder removeEc(int index) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.remove(index); - onChanged(); - } else { - ecBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder( - int index) { - return getEcFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( - int index) { - if (ecBuilder_ == null) { - return ec_.get(index); } else { - return ecBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List - getEcOrBuilderList() { - if (ecBuilder_ != null) { - return ecBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ec_); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { - return getEcFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder( - int index) { - return getEcFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List - getEcBuilderList() { - return getEcFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> - getEcFieldBuilder() { - if (ecBuilder_ == null) { - ecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder>( - ec_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - ec_ = null; - } - return ecBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_EventCtCallback) - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_EventCtCallback) - private static final org.aion.api.server.pb.Message.rsp_EventCtCallback DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_EventCtCallback(); - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_EventCtCallback parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_EventCtCallback(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } - - public interface req_accountCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountCreate) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string password = 1; - */ - java.util.List - getPasswordList(); - /** - * repeated string password = 1; - */ - int getPasswordCount(); - /** - * repeated string password = 1; - */ - java.lang.String getPassword(int index); - /** - * repeated string password = 1; - */ - com.google.protobuf.ByteString - getPasswordBytes(int index); - - /** - * bool privateKey = 2; - */ - boolean getPrivateKey(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_accountCreate} - */ - public static final class req_accountCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountCreate) - req_accountCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_accountCreate.newBuilder() to construct. - private req_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_accountCreate() { - password_ = com.google.protobuf.LazyStringArrayList.EMPTY; - privateKey_ = false; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_accountCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - password_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - password_.add(s); - break; - } - case 16: { - - privateKey_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - password_ = password_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - } + public Builder newBuilderForType() { + return newBuilder(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountCreate.class, org.aion.api.server.pb.Message.req_accountCreate.Builder.class); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private int bitField0_; - public static final int PASSWORD_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList password_; - /** - * repeated string password = 1; - */ - public com.google.protobuf.ProtocolStringList - getPasswordList() { - return password_; - } - /** - * repeated string password = 1; - */ - public int getPasswordCount() { - return password_.size(); - } - /** - * repeated string password = 1; - */ - public java.lang.String getPassword(int index) { - return password_.get(index); - } - /** - * repeated string password = 1; - */ - public com.google.protobuf.ByteString - getPasswordBytes(int index) { - return password_.getByteString(index); - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int PRIVATEKEY_FIELD_NUMBER = 2; - private boolean privateKey_; - /** - * bool privateKey = 2; - */ - public boolean getPrivateKey() { - return privateKey_; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + .class, + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + .Builder + .class); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < password_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, password_.getRaw(i)); - } - if (privateKey_ != false) { - output.writeBool(2, privateKey_); - } - unknownFields.writeTo(output); - } + // Construct using + // org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < password_.size(); i++) { - dataSize += computeStringSizeNoTag(password_.getRaw(i)); - } - size += dataSize; - size += 1 * getPasswordList().size(); - } - if (privateKey_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, privateKey_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_accountCreate)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_accountCreate other = (org.aion.api.server.pb.Message.req_accountCreate) obj; - - boolean result = true; - result = result && getPasswordList() - .equals(other.getPasswordList()); - result = result && (getPrivateKey() - == other.getPrivateKey()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAccountsFieldBuilder(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPasswordCount() > 0) { - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPasswordList().hashCode(); - } - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPrivateKey()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder clear() { + super.clear(); + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + accountsBuilder_.clear(); + } + return this; + } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_accountCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + .getDefaultInstance(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_accountCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountCreate) - org.aion.api.server.pb.Message.req_accountCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountCreate.class, org.aion.api.server.pb.Message.req_accountCreate.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_accountCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - password_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - privateKey_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - } - - public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_accountCreate build() { - org.aion.api.server.pb.Message.req_accountCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_accountCreate buildPartial() { - org.aion.api.server.pb.Message.req_accountCreate result = new org.aion.api.server.pb.Message.req_accountCreate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - password_ = password_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.password_ = password_; - result.privateKey_ = privateKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_accountCreate) { - return mergeFrom((org.aion.api.server.pb.Message.req_accountCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountCreate other) { - if (other == org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance()) return this; - if (!other.password_.isEmpty()) { - if (password_.isEmpty()) { - password_ = other.password_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePasswordIsMutable(); - password_.addAll(other.password_); - } - onChanged(); - } - if (other.getPrivateKey() != false) { - setPrivateKey(other.getPrivateKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_accountCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_accountCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList password_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePasswordIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - password_ = new com.google.protobuf.LazyStringArrayList(password_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string password = 1; - */ - public com.google.protobuf.ProtocolStringList - getPasswordList() { - return password_.getUnmodifiableView(); - } - /** - * repeated string password = 1; - */ - public int getPasswordCount() { - return password_.size(); - } - /** - * repeated string password = 1; - */ - public java.lang.String getPassword(int index) { - return password_.get(index); - } - /** - * repeated string password = 1; - */ - public com.google.protobuf.ByteString - getPasswordBytes(int index) { - return password_.getByteString(index); - } - /** - * repeated string password = 1; - */ - public Builder setPassword( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePasswordIsMutable(); - password_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string password = 1; - */ - public Builder addPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePasswordIsMutable(); - password_.add(value); - onChanged(); - return this; - } - /** - * repeated string password = 1; - */ - public Builder addAllPassword( - java.lang.Iterable values) { - ensurePasswordIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, password_); - onChanged(); - return this; - } - /** - * repeated string password = 1; - */ - public Builder clearPassword() { - password_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string password = 1; - */ - public Builder addPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePasswordIsMutable(); - password_.add(value); - onChanged(); - return this; - } - - private boolean privateKey_ ; - /** - * bool privateKey = 2; - */ - public boolean getPrivateKey() { - return privateKey_; - } - /** - * bool privateKey = 2; - */ - public Builder setPrivateKey(boolean value) { - - privateKey_ = value; - onChanged(); - return this; - } - /** - * bool privateKey = 2; - */ - public Builder clearPrivateKey() { - - privateKey_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountCreate) - } + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList build() { + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountCreate) - private static final org.aion.api.server.pb.Message.req_accountCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountCreate(); - } + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + buildPartial() { + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = + new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(this); + int from_bitField0_ = bitField0_; + if (accountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accounts_ = accounts_; + } else { + result.accounts_ = accountsBuilder_.build(); + } + onBuilt(); + return result; + } - public static org.aion.api.server.pb.Message.req_accountCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clone() { + return (Builder) super.clone(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_accountCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_accountCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - } - - public interface rsp_accountCreateOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountCreate) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes address = 1; - */ - java.util.List getAddressList(); - /** - * repeated bytes address = 1; - */ - int getAddressCount(); - /** - * repeated bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(int index); - - /** - * repeated bytes privateKey = 2; - */ - java.util.List getPrivateKeyList(); - /** - * repeated bytes privateKey = 2; - */ - int getPrivateKeyCount(); - /** - * repeated bytes privateKey = 2; - */ - com.google.protobuf.ByteString getPrivateKey(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} - */ - public static final class rsp_accountCreate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountCreate) - rsp_accountCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_accountCreate.newBuilder() to construct. - private rsp_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_accountCreate() { - address_ = java.util.Collections.emptyList(); - privateKey_ = java.util.Collections.emptyList(); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_accountCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - address_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - address_.add(input.readBytes()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - privateKey_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - address_ = java.util.Collections.unmodifiableList(address_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountCreate.class, org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private java.util.List address_; - /** - * repeated bytes address = 1; - */ - public java.util.List - getAddressList() { - return address_; - } - /** - * repeated bytes address = 1; - */ - public int getAddressCount() { - return address_.size(); - } - /** - * repeated bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress(int index) { - return address_.get(index); - } + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other) { + if (other + == org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + .getDefaultInstance()) return this; + if (accountsBuilder_ == null) { + if (!other.accounts_.isEmpty()) { + if (accounts_.isEmpty()) { + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccountsIsMutable(); + accounts_.addAll(other.accounts_); + } + onChanged(); + } + } else { + if (!other.accounts_.isEmpty()) { + if (accountsBuilder_.isEmpty()) { + accountsBuilder_.dispose(); + accountsBuilder_ = null; + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + accountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccountsFieldBuilder() + : null; + } else { + accountsBuilder_.addAllMessages(other.accounts_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static final int PRIVATEKEY_FIELD_NUMBER = 2; - private java.util.List privateKey_; - /** - * repeated bytes privateKey = 2; - */ - public java.util.List - getPrivateKeyList() { - return privateKey_; - } - /** - * repeated bytes privateKey = 2; - */ - public int getPrivateKeyCount() { - return privateKey_.size(); - } - /** - * repeated bytes privateKey = 2; - */ - public com.google.protobuf.ByteString getPrivateKey(int index) { - return privateKey_.get(index); - } + public final boolean isInitialized() { + return true; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - memoizedIsInitialized = 1; - return true; - } + private int bitField0_; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < address_.size(); i++) { - output.writeBytes(1, address_.get(i)); - } - for (int i = 0; i < privateKey_.size(); i++) { - output.writeBytes(2, privateKey_.get(i)); - } - unknownFields.writeTo(output); - } + private java.util.List accounts_ = + java.util.Collections.emptyList(); - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < address_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(address_.get(i)); - } - size += dataSize; - size += 1 * getAddressList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < privateKey_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(privateKey_.get(i)); - } - size += dataSize; - size += 1 * getPrivateKeyList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private void ensureAccountsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = + new java.util.ArrayList( + accounts_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountCreate)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_accountCreate other = (org.aion.api.server.pb.Message.rsp_accountCreate) obj; - - boolean result = true; - result = result && getAddressList() - .equals(other.getAddressList()); - result = result && getPrivateKeyList() - .equals(other.getPrivateKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AccountDetail, + org.aion.api.server.pb.Message.t_AccountDetail.Builder, + org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> + accountsBuilder_; + + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public java.util.List + getAccountsList() { + if (accountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accounts_); + } else { + return accountsBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public int getAccountsCount() { + if (accountsBuilder_ == null) { + return accounts_.size(); + } else { + return accountsBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder setAccounts( + int index, org.aion.api.server.pb.Message.t_AccountDetail value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.set(index, value); + onChanged(); + } else { + accountsBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder setAccounts( + int index, + org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.set(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder addAccounts(org.aion.api.server.pb.Message.t_AccountDetail value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(value); + onChanged(); + } else { + accountsBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder addAccounts( + int index, org.aion.api.server.pb.Message.t_AccountDetail value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(index, value); + onChanged(); + } else { + accountsBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder addAccounts( + org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder addAccounts( + int index, + org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder addAllAccounts( + java.lang.Iterable + values) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accounts_); + onChanged(); + } else { + accountsBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder clearAccounts() { + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accountsBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public Builder removeAccounts(int index) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.remove(index); + onChanged(); + } else { + accountsBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public org.aion.api.server.pb.Message.t_AccountDetail.Builder getAccountsBuilder( + int index) { + return getAccountsFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( + int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public java.util.List + getAccountsOrBuilderList() { + if (accountsBuilder_ != null) { + return accountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accounts_); + } + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder() { + return getAccountsFieldBuilder() + .addBuilder( + org.aion.api.server.pb.Message.t_AccountDetail + .getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder( + int index) { + return getAccountsFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_AccountDetail + .getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ + public java.util.List + getAccountsBuilderList() { + return getAccountsFieldBuilder().getBuilderList(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddressCount() > 0) { - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddressList().hashCode(); - } - if (getPrivateKeyCount() > 0) { - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivateKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AccountDetail, + org.aion.api.server.pb.Message.t_AccountDetail.Builder, + org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> + getAccountsFieldBuilder() { + if (accountsBuilder_ == null) { + accountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AccountDetail, + org.aion.api.server.pb.Message.t_AccountDetail.Builder, + org.aion.api.server.pb.Message.t_AccountDetailOrBuilder>( + accounts_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + accounts_ = null; + } + return accountsBuilder_; + } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accountCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountCreate) - org.aion.api.server.pb.Message.rsp_accountCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountCreate.class, org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_accountCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_accountCreate build() { - org.aion.api.server.pb.Message.rsp_accountCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_accountCreate buildPartial() { - org.aion.api.server.pb.Message.rsp_accountCreate result = new org.aion.api.server.pb.Message.rsp_accountCreate(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - address_ = java.util.Collections.unmodifiableList(address_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.address_ = address_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.privateKey_ = privateKey_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_accountCreate) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_accountCreate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountCreate other) { - if (other == org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance()) return this; - if (!other.address_.isEmpty()) { - if (address_.isEmpty()) { - address_ = other.address_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddressIsMutable(); - address_.addAll(other.address_); - } - onChanged(); - } - if (!other.privateKey_.isEmpty()) { - if (privateKey_.isEmpty()) { - privateKey_ = other.privateKey_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePrivateKeyIsMutable(); - privateKey_.addAll(other.privateKey_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_accountCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_accountCreate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List address_ = java.util.Collections.emptyList(); - private void ensureAddressIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - address_ = new java.util.ArrayList(address_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes address = 1; - */ - public java.util.List - getAddressList() { - return java.util.Collections.unmodifiableList(address_); - } - /** - * repeated bytes address = 1; - */ - public int getAddressCount() { - return address_.size(); - } - /** - * repeated bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress(int index) { - return address_.get(index); - } - /** - * repeated bytes address = 1; - */ - public Builder setAddress( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressIsMutable(); - address_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes address = 1; - */ - public Builder addAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressIsMutable(); - address_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes address = 1; - */ - public Builder addAllAddress( - java.lang.Iterable values) { - ensureAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, address_); - onChanged(); - return this; - } - /** - * repeated bytes address = 1; - */ - public Builder clearAddress() { - address_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List privateKey_ = java.util.Collections.emptyList(); - private void ensurePrivateKeyIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = new java.util.ArrayList(privateKey_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated bytes privateKey = 2; - */ - public java.util.List - getPrivateKeyList() { - return java.util.Collections.unmodifiableList(privateKey_); - } - /** - * repeated bytes privateKey = 2; - */ - public int getPrivateKeyCount() { - return privateKey_.size(); - } - /** - * repeated bytes privateKey = 2; - */ - public com.google.protobuf.ByteString getPrivateKey(int index) { - return privateKey_.get(index); - } - /** - * repeated bytes privateKey = 2; - */ - public Builder setPrivateKey( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes privateKey = 2; - */ - public Builder addPrivateKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes privateKey = 2; - */ - public Builder addAllPrivateKey( - java.lang.Iterable values) { - ensurePrivateKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, privateKey_); - onChanged(); - return this; - } - /** - * repeated bytes privateKey = 2; - */ - public Builder clearPrivateKey() { - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountCreate) - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountCreate) - private static final org.aion.api.server.pb.Message.rsp_accountCreate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountCreate(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + private static final org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + DEFAULT_INSTANCE; - public static org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + static { + DEFAULT_INSTANCE = + new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_accountCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_accountCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getAccountDetailsByAddressList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getAccountDetailsByAddressList(input, extensionRegistry); + } + }; - public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - } - - public interface req_accountlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountlock) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes account = 1; - */ - com.google.protobuf.ByteString getAccount(); - - /** - * string password = 2; - */ - java.lang.String getPassword(); - /** - * string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_accountlock} - */ - public static final class req_accountlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountlock) - req_accountlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_accountlock.newBuilder() to construct. - private req_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_accountlock() { - account_ = com.google.protobuf.ByteString.EMPTY; - password_ = ""; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_accountlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - account_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountlock.class, org.aion.api.server.pb.Message.req_accountlock.Builder.class); - } + public interface req_getBlockSqlByRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockSqlByRange) + com.google.protobuf.MessageOrBuilder { - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString account_; - /** - * bytes account = 1; - */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } + /** uint64 blkNumberStart = 1; */ + long getBlkNumberStart(); - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** uint64 blkNumberEnd = 2; */ + long getBlkNumberEnd(); } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} */ + public static final class req_getBlockSqlByRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockSqlByRange) + req_getBlockSqlByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockSqlByRange.newBuilder() to construct. + private req_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private req_getBlockSqlByRange() { + blkNumberStart_ = 0L; + blkNumberEnd_ = 0L; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!account_.isEmpty()) { - output.writeBytes(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } + private req_getBlockSqlByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blkNumberStart_ = input.readUInt64(); + break; + } + case 16: + { + blkNumberEnd_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!account_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_accountlock)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_accountlock other = (org.aion.api.server.pb.Message.req_accountlock) obj; - - boolean result = true; - result = result && getAccount() - .equals(other.getAccount()); - result = result && getPassword() - .equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, + org.aion.api.server.pb.Message.req_getBlockSqlByRange.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; + private long blkNumberStart_; + /** uint64 blkNumberStart = 1; */ + public long getBlkNumberStart() { + return blkNumberStart_; + } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final int BLKNUMBEREND_FIELD_NUMBER = 2; + private long blkNumberEnd_; + /** uint64 blkNumberEnd = 2; */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_accountlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_accountlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountlock) - org.aion.api.server.pb.Message.req_accountlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountlock.class, org.aion.api.server.pb.Message.req_accountlock.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_accountlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - account_ = com.google.protobuf.ByteString.EMPTY; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_descriptor; - } - - public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_accountlock build() { - org.aion.api.server.pb.Message.req_accountlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_accountlock buildPartial() { - org.aion.api.server.pb.Message.req_accountlock result = new org.aion.api.server.pb.Message.req_accountlock(this); - result.account_ = account_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_accountlock) { - return mergeFrom((org.aion.api.server.pb.Message.req_accountlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountlock other) { - if (other == org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance()) return this; - if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { - setAccount(other.getAccount()); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_accountlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_accountlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes account = 1; - */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } - /** - * bytes account = 1; - */ - public Builder setAccount(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - account_ = value; - onChanged(); - return this; - } - /** - * bytes account = 1; - */ - public Builder clearAccount() { - - account_ = getDefaultInstance().getAccount(); - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountlock) - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountlock) - private static final org.aion.api.server.pb.Message.req_accountlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountlock(); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_accountlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blkNumberStart_ != 0L) { + output.writeUInt64(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + output.writeUInt64(2, blkNumberEnd_); + } + unknownFields.writeTo(output); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_accountlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_accountlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + size = 0; + if (blkNumberStart_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blkNumberEnd_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockSqlByRange other = + (org.aion.api.server.pb.Message.req_getBlockSqlByRange) obj; - } - - public interface rsp_accountlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountlock) - com.google.protobuf.MessageOrBuilder { - - /** - * bool locked = 1; - */ - boolean getLocked(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} - */ - public static final class rsp_accountlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountlock) - rsp_accountlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_accountlock.newBuilder() to construct. - private rsp_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_accountlock() { - locked_ = false; - } + boolean result = true; + result = result && (getBlkNumberStart() == other.getBlkNumberStart()); + result = result && (getBlkNumberEnd() == other.getBlkNumberEnd()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_accountlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - locked_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberStart()); + hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberEnd()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountlock.class, org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int LOCKED_FIELD_NUMBER = 1; - private boolean locked_; - /** - * bool locked = 1; - */ - public boolean getLocked() { - return locked_; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (locked_ != false) { - output.writeBool(1, locked_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (locked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, locked_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountlock)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_accountlock other = (org.aion.api.server.pb.Message.rsp_accountlock) obj; - - boolean result = true; - result = result && (getLocked() - == other.getLocked()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocked()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accountlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountlock) - org.aion.api.server.pb.Message.rsp_accountlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountlock.class, org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_accountlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - locked_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_accountlock build() { - org.aion.api.server.pb.Message.rsp_accountlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_accountlock buildPartial() { - org.aion.api.server.pb.Message.rsp_accountlock result = new org.aion.api.server.pb.Message.rsp_accountlock(this); - result.locked_ = locked_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_accountlock) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_accountlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountlock other) { - if (other == org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance()) return this; - if (other.getLocked() != false) { - setLocked(other.getLocked()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_accountlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_accountlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean locked_ ; - /** - * bool locked = 1; - */ - public boolean getLocked() { - return locked_; - } - /** - * bool locked = 1; - */ - public Builder setLocked(boolean value) { - - locked_ = value; - onChanged(); - return this; - } - /** - * bool locked = 1; - */ - public Builder clearLocked() { - - locked_ = false; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountlock) - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountlock) - private static final org.aion.api.server.pb.Message.rsp_accountlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountlock(); - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder newBuilderForType() { + return newBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_accountlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_accountlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockSqlByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - } - - public interface req_userPrivilegeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_userPrivilege) - com.google.protobuf.MessageOrBuilder { - - /** - * string username = 1; - */ - java.lang.String getUsername(); - /** - * string username = 1; - */ - com.google.protobuf.ByteString - getUsernameBytes(); - - /** - * string password = 2; - */ - java.lang.String getPassword(); - /** - * string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} - */ - public static final class req_userPrivilege extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_userPrivilege) - req_userPrivilegeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_userPrivilege.newBuilder() to construct. - private req_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_userPrivilege() { - username_ = ""; - password_ = ""; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockSqlByRange) + org.aion.api.server.pb.Message.req_getBlockSqlByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_userPrivilege( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, + org.aion.api.server.pb.Message.req_getBlockSqlByRange + .Builder + .class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_userPrivilege.class, org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); - } + // Construct using org.aion.api.server.pb.Message.req_getBlockSqlByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int USERNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object username_; - /** - * string username = 1; - */ - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } - } - /** - * string username = 1; - */ - public com.google.protobuf.ByteString - getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder clear() { + super.clear(); + blkNumberStart_ = 0L; - memoizedIsInitialized = 1; - return true; - } + blkNumberEnd_ = 0L; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getUsernameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUsernameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_userPrivilege)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_userPrivilege other = (org.aion.api.server.pb.Message.req_userPrivilege) obj; - - boolean result = true; - result = result && getUsername() - .equals(other.getUsername()); - result = result && getPassword() - .equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.req_getBlockSqlByRange + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockSqlByRange.getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getUsername().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public org.aion.api.server.pb.Message.req_getBlockSqlByRange build() { + org.aion.api.server.pb.Message.req_getBlockSqlByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public org.aion.api.server.pb.Message.req_getBlockSqlByRange buildPartial() { + org.aion.api.server.pb.Message.req_getBlockSqlByRange result = + new org.aion.api.server.pb.Message.req_getBlockSqlByRange(this); + result.blkNumberStart_ = blkNumberStart_; + result.blkNumberEnd_ = blkNumberEnd_; + onBuilt(); + return result; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_userPrivilege prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder clone() { + return (Builder) super.clone(); + } + + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_userPrivilege) - org.aion.api.server.pb.Message.req_userPrivilegeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_userPrivilege.class, org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_userPrivilege.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - username_ = ""; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - } - - public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_userPrivilege build() { - org.aion.api.server.pb.Message.req_userPrivilege result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_userPrivilege buildPartial() { - org.aion.api.server.pb.Message.req_userPrivilege result = new org.aion.api.server.pb.Message.req_userPrivilege(this); - result.username_ = username_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_userPrivilege) { - return mergeFrom((org.aion.api.server.pb.Message.req_userPrivilege)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_userPrivilege other) { - if (other == org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance()) return this; - if (!other.getUsername().isEmpty()) { - username_ = other.username_; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_userPrivilege parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_userPrivilege) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object username_ = ""; - /** - * string username = 1; - */ - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string username = 1; - */ - public com.google.protobuf.ByteString - getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string username = 1; - */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - onChanged(); - return this; - } - /** - * string username = 1; - */ - public Builder clearUsername() { - - username_ = getDefaultInstance().getUsername(); - onChanged(); - return this; - } - /** - * string username = 1; - */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_userPrivilege) - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockSqlByRange) other); + } else { + super.mergeFrom(other); + return this; + } + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_userPrivilege) - private static final org.aion.api.server.pb.Message.req_userPrivilege DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_userPrivilege(); - } + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockSqlByRange other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockSqlByRange + .getDefaultInstance()) return this; + if (other.getBlkNumberStart() != 0L) { + setBlkNumberStart(other.getBlkNumberStart()); + } + if (other.getBlkNumberEnd() != 0L) { + setBlkNumberEnd(other.getBlkNumberEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public final boolean isInitialized() { + return true; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_userPrivilege parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_userPrivilege(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockSqlByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockSqlByRange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private long blkNumberStart_; + /** uint64 blkNumberStart = 1; */ + public long getBlkNumberStart() { + return blkNumberStart_; + } + /** uint64 blkNumberStart = 1; */ + public Builder setBlkNumberStart(long value) { - public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + blkNumberStart_ = value; + onChanged(); + return this; + } + /** uint64 blkNumberStart = 1; */ + public Builder clearBlkNumberStart() { - } - - public interface rsp_userPrivilegeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_userPrivilege) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string privilege = 1; - */ - java.util.List - getPrivilegeList(); - /** - * repeated string privilege = 1; - */ - int getPrivilegeCount(); - /** - * repeated string privilege = 1; - */ - java.lang.String getPrivilege(int index); - /** - * repeated string privilege = 1; - */ - com.google.protobuf.ByteString - getPrivilegeBytes(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} - */ - public static final class rsp_userPrivilege extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_userPrivilege) - rsp_userPrivilegeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_userPrivilege.newBuilder() to construct. - private rsp_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_userPrivilege() { - privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + blkNumberStart_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_userPrivilege( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - privilege_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = privilege_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - } + private long blkNumberEnd_; + /** uint64 blkNumberEnd = 2; */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } + /** uint64 blkNumberEnd = 2; */ + public Builder setBlkNumberEnd(long value) { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_userPrivilege.class, org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); - } + blkNumberEnd_ = value; + onChanged(); + return this; + } + /** uint64 blkNumberEnd = 2; */ + public Builder clearBlkNumberEnd() { - public static final int PRIVILEGE_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList privilege_; - /** - * repeated string privilege = 1; - */ - public com.google.protobuf.ProtocolStringList - getPrivilegeList() { - return privilege_; - } - /** - * repeated string privilege = 1; - */ - public int getPrivilegeCount() { - return privilege_.size(); - } - /** - * repeated string privilege = 1; - */ - public java.lang.String getPrivilege(int index) { - return privilege_.get(index); - } - /** - * repeated string privilege = 1; - */ - public com.google.protobuf.ByteString - getPrivilegeBytes(int index) { - return privilege_.getByteString(index); - } + blkNumberEnd_ = 0L; + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - memoizedIsInitialized = 1; - return true; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < privilege_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privilege_.getRaw(i)); - } - unknownFields.writeTo(output); - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockSqlByRange) + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < privilege_.size(); i++) { - dataSize += computeStringSizeNoTag(privilege_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrivilegeList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockSqlByRange) + private static final org.aion.api.server.pb.Message.req_getBlockSqlByRange DEFAULT_INSTANCE; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_userPrivilege)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_userPrivilege other = (org.aion.api.server.pb.Message.rsp_userPrivilege) obj; - - boolean result = true; - result = result && getPrivilegeList() - .equals(other.getPrivilegeList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockSqlByRange(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPrivilegeCount() > 0) { - hash = (37 * hash) + PRIVILEGE_FIELD_NUMBER; - hash = (53 * hash) + getPrivilegeList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockSqlByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockSqlByRange(input, extensionRegistry); + } + }; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_userPrivilege prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_userPrivilege) - org.aion.api.server.pb.Message.rsp_userPrivilegeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_userPrivilege.class, org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_userPrivilege.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_userPrivilege build() { - org.aion.api.server.pb.Message.rsp_userPrivilege result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_userPrivilege buildPartial() { - org.aion.api.server.pb.Message.rsp_userPrivilege result = new org.aion.api.server.pb.Message.rsp_userPrivilege(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = privilege_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.privilege_ = privilege_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_userPrivilege) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_userPrivilege)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_userPrivilege other) { - if (other == org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance()) return this; - if (!other.privilege_.isEmpty()) { - if (privilege_.isEmpty()) { - privilege_ = other.privilege_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrivilegeIsMutable(); - privilege_.addAll(other.privilege_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_userPrivilege parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_userPrivilege) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePrivilegeIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = new com.google.protobuf.LazyStringArrayList(privilege_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string privilege = 1; - */ - public com.google.protobuf.ProtocolStringList - getPrivilegeList() { - return privilege_.getUnmodifiableView(); - } - /** - * repeated string privilege = 1; - */ - public int getPrivilegeCount() { - return privilege_.size(); - } - /** - * repeated string privilege = 1; - */ - public java.lang.String getPrivilege(int index) { - return privilege_.get(index); - } - /** - * repeated string privilege = 1; - */ - public com.google.protobuf.ByteString - getPrivilegeBytes(int index) { - return privilege_.getByteString(index); - } - /** - * repeated string privilege = 1; - */ - public Builder setPrivilege( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivilegeIsMutable(); - privilege_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string privilege = 1; - */ - public Builder addPrivilege( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivilegeIsMutable(); - privilege_.add(value); - onChanged(); - return this; - } - /** - * repeated string privilege = 1; - */ - public Builder addAllPrivilege( - java.lang.Iterable values) { - ensurePrivilegeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, privilege_); - onChanged(); - return this; - } - /** - * repeated string privilege = 1; - */ - public Builder clearPrivilege() { - privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string privilege = 1; - */ - public Builder addPrivilegeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrivilegeIsMutable(); - privilege_.add(value); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_userPrivilege) - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_userPrivilege) - private static final org.aion.api.server.pb.Message.rsp_userPrivilege DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_userPrivilege(); + public org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public interface rsp_getBlockSqlByRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockSqlByRange) + com.google.protobuf.MessageOrBuilder { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_userPrivilege parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_userPrivilege(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + java.util.List getBlkSqlList(); + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index); + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + int getBlkSqlCount(); + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + java.util.List + getBlkSqlOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder(int index); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} */ + public static final class rsp_getBlockSqlByRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) + rsp_getBlockSqlByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockSqlByRange.newBuilder() to construct. + private rsp_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private rsp_getBlockSqlByRange() { + blkSql_ = java.util.Collections.emptyList(); + } - public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - } - - public interface req_queryCtEventsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_queryCtEvents) - com.google.protobuf.MessageOrBuilder { - - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - boolean hasFilter(); - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - org.aion.api.server.pb.Message.t_FilterCt getFilter(); - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} - */ - public static final class req_queryCtEvents extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_queryCtEvents) - req_queryCtEventsOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_queryCtEvents.newBuilder() to construct. - private req_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_queryCtEvents() { - } + private rsp_getBlockSqlByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_BlockSql>(); + mutable_bitField0_ |= 0x00000001; + } + blkSql_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_BlockSql.parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = java.util.Collections.unmodifiableList(blkSql_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_queryCtEvents( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); - } - filter_ = input.readMessage(org.aion.api.server.pb.Message.t_FilterCt.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_queryCtEvents.class, org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.Builder.class); + } - public static final int FILTER_FIELD_NUMBER = 1; - private org.aion.api.server.pb.Message.t_FilterCt filter_; - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public boolean hasFilter() { - return filter_ != null; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - return getFilter(); - } + public static final int BLKSQL_FIELD_NUMBER = 1; + private java.util.List blkSql_; + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public java.util.List getBlkSqlList() { + return blkSql_; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public java.util.List + getBlkSqlOrBuilderList() { + return blkSql_; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public int getBlkSqlCount() { + return blkSql_.size(); + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { + return blkSql_.get(index); + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder(int index) { + return blkSql_.get(index); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (filter_ != null) { - output.writeMessage(1, getFilter()); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFilter()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkSql_.size(); i++) { + output.writeMessage(1, blkSql_.get(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_queryCtEvents)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_queryCtEvents other = (org.aion.api.server.pb.Message.req_queryCtEvents) obj; - - boolean result = true; - result = result && (hasFilter() == other.hasFilter()); - if (hasFilter()) { - result = result && getFilter() - .equals(other.getFilter()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + for (int i = 0; i < blkSql_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blkSql_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other = + (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) obj; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_queryCtEvents prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + boolean result = true; + result = result && getBlkSqlList().equals(other.getBlkSqlList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_queryCtEvents) - org.aion.api.server.pb.Message.req_queryCtEventsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_queryCtEvents.class, org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_queryCtEvents.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - if (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - } - - public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_queryCtEvents build() { - org.aion.api.server.pb.Message.req_queryCtEvents result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_queryCtEvents buildPartial() { - org.aion.api.server.pb.Message.req_queryCtEvents result = new org.aion.api.server.pb.Message.req_queryCtEvents(this); - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_queryCtEvents) { - return mergeFrom((org.aion.api.server.pb.Message.req_queryCtEvents)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_queryCtEvents other) { - if (other == org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance()) return this; - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_queryCtEvents parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_queryCtEvents) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> filterBuilder_; - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - if (filterBuilder_ == null) { - return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public Builder setFilter( - org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - org.aion.api.server.pb.Message.t_FilterCt.newBuilder(filter_).mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null ? - org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; - } - } - /** - * .org.aion.api.server.pb.t_FilterCt filter = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); - filter_ = null; - } - return filterBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_queryCtEvents) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkSqlCount() > 0) { + hash = (37 * hash) + BLKSQL_FIELD_NUMBER; + hash = (53 * hash) + getBlkSqlList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_queryCtEvents) - private static final org.aion.api.server.pb.Message.req_queryCtEvents DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_queryCtEvents(); - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_queryCtEvents parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_queryCtEvents(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } - - public interface rsp_queryCtEventsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_queryCtEvents) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - java.util.List - getEcList(); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - org.aion.api.server.pb.Message.t_EventCt getEc(int index); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - int getEcCount(); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - java.util.List - getEcOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} - */ - public static final class rsp_queryCtEvents extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_queryCtEvents) - rsp_queryCtEventsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_queryCtEvents.newBuilder() to construct. - private rsp_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_queryCtEvents() { - ec_ = java.util.Collections.emptyList(); - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_queryCtEvents( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ec_.add( - input.readMessage(org.aion.api.server.pb.Message.t_EventCt.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_queryCtEvents.class, org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int EC_FIELD_NUMBER = 1; - private java.util.List ec_; - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List getEcList() { - return ec_; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List - getEcOrBuilderList() { - return ec_; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public int getEcCount() { - return ec_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - return ec_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( - int index) { - return ec_.get(index); - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ec_.size(); i++) { - output.writeMessage(1, ec_.get(i)); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < ec_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, ec_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_queryCtEvents other = (org.aion.api.server.pb.Message.rsp_queryCtEvents) obj; - - boolean result = true; - result = result && getEcList() - .equals(other.getEcList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEcCount() > 0) { - hash = (37 * hash) + EC_FIELD_NUMBER; - hash = (53 * hash) + getEcList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_queryCtEvents prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) + org.aion.api.server.pb.Message.rsp_getBlockSqlByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_queryCtEvents) - org.aion.api.server.pb.Message.rsp_queryCtEventsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_queryCtEvents.class, org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_queryCtEvents.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEcFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ecBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_queryCtEvents build() { - org.aion.api.server.pb.Message.rsp_queryCtEvents result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_queryCtEvents buildPartial() { - org.aion.api.server.pb.Message.rsp_queryCtEvents result = new org.aion.api.server.pb.Message.rsp_queryCtEvents(this); - int from_bitField0_ = bitField0_; - if (ecBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ec_ = ec_; - } else { - result.ec_ = ecBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_queryCtEvents)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_queryCtEvents other) { - if (other == org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance()) return this; - if (ecBuilder_ == null) { - if (!other.ec_.isEmpty()) { - if (ec_.isEmpty()) { - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEcIsMutable(); - ec_.addAll(other.ec_); - } - onChanged(); - } - } else { - if (!other.ec_.isEmpty()) { - if (ecBuilder_.isEmpty()) { - ecBuilder_.dispose(); - ecBuilder_ = null; - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - ecBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEcFieldBuilder() : null; - } else { - ecBuilder_.addAllMessages(other.ec_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_queryCtEvents parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_queryCtEvents) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List ec_ = - java.util.Collections.emptyList(); - private void ensureEcIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = new java.util.ArrayList(ec_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> ecBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List getEcList() { - if (ecBuilder_ == null) { - return java.util.Collections.unmodifiableList(ec_); - } else { - return ecBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public int getEcCount() { - if (ecBuilder_ == null) { - return ec_.size(); - } else { - return ecBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - if (ecBuilder_ == null) { - return ec_.get(index); - } else { - return ecBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder setEc( - int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.set(index, value); - onChanged(); - } else { - ecBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder setEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.set(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(value); - onChanged(); - } else { - ecBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc( - int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(index, value); - onChanged(); - } else { - ecBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc( - org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder addAllEc( - java.lang.Iterable values) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ec_); - onChanged(); - } else { - ecBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder clearEc() { - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ecBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public Builder removeEc(int index) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.remove(index); - onChanged(); - } else { - ecBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder( - int index) { - return getEcFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( - int index) { - if (ecBuilder_ == null) { - return ec_.get(index); } else { - return ecBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List - getEcOrBuilderList() { - if (ecBuilder_ != null) { - return ecBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ec_); - } - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { - return getEcFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder( - int index) { - return getEcFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_EventCt ec = 1; - */ - public java.util.List - getEcBuilderList() { - return getEcFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> - getEcFieldBuilder() { - if (ecBuilder_ == null) { - ecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder>( - ec_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - ec_ = null; - } - return ecBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_queryCtEvents) - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange + .Builder + .class); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_queryCtEvents) - private static final org.aion.api.server.pb.Message.rsp_queryCtEvents DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_queryCtEvents(); - } + // Construct using org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_queryCtEvents parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_queryCtEvents(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBlkSqlFieldBuilder(); + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder clear() { + super.clear(); + if (blkSqlBuilder_ == null) { + blkSql_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkSqlBuilder_.clear(); + } + return this; + } - public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + } - } - - public interface t_PrivateKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_PrivateKey) - com.google.protobuf.MessageOrBuilder { - - /** - * string privateKey = 1; - */ - java.lang.String getPrivateKey(); - /** - * string privateKey = 1; - */ - com.google.protobuf.ByteString - getPrivateKeyBytes(); - - /** - * string password = 2; - */ - java.lang.String getPassword(); - /** - * string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} - */ - public static final class t_PrivateKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_PrivateKey) - t_PrivateKeyOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_PrivateKey.newBuilder() to construct. - private t_PrivateKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_PrivateKey() { - privateKey_ = ""; - password_ = ""; - } + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_PrivateKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - privateKey_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - } + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange build() { + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_PrivateKey.class, org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); - } + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = + new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(this); + int from_bitField0_ = bitField0_; + if (blkSqlBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = java.util.Collections.unmodifiableList(blkSql_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkSql_ = blkSql_; + } else { + result.blkSql_ = blkSqlBuilder_.build(); + } + onBuilt(); + return result; + } - public static final int PRIVATEKEY_FIELD_NUMBER = 1; - private volatile java.lang.Object privateKey_; - /** - * string privateKey = 1; - */ - public java.lang.String getPrivateKey() { - java.lang.Object ref = privateKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateKey_ = s; - return s; - } - } - /** - * string privateKey = 1; - */ - public com.google.protobuf.ByteString - getPrivateKeyBytes() { - java.lang.Object ref = privateKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privateKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder clone() { + return (Builder) super.clone(); + } - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - memoizedIsInitialized = 1; - return true; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPrivateKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateKey_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPrivateKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateKey_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_PrivateKey)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_PrivateKey other = (org.aion.api.server.pb.Message.t_PrivateKey) obj; - - boolean result = true; - result = result && getPrivateKey() - .equals(other.getPrivateKey()); - result = result && getPassword() - .equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivateKey().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other) { + if (other + == org.aion.api.server.pb.Message.rsp_getBlockSqlByRange + .getDefaultInstance()) return this; + if (blkSqlBuilder_ == null) { + if (!other.blkSql_.isEmpty()) { + if (blkSql_.isEmpty()) { + blkSql_ = other.blkSql_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkSqlIsMutable(); + blkSql_.addAll(other.blkSql_); + } + onChanged(); + } + } else { + if (!other.blkSql_.isEmpty()) { + if (blkSqlBuilder_.isEmpty()) { + blkSqlBuilder_.dispose(); + blkSqlBuilder_ = null; + blkSql_ = other.blkSql_; + bitField0_ = (bitField0_ & ~0x00000001); + blkSqlBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlkSqlFieldBuilder() + : null; + } else { + blkSqlBuilder_.addAllMessages(other.blkSql_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final boolean isInitialized() { + return true; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_PrivateKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_PrivateKey) - org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_PrivateKey.class, org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_PrivateKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - privateKey_ = ""; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - } - - public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_PrivateKey build() { - org.aion.api.server.pb.Message.t_PrivateKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_PrivateKey buildPartial() { - org.aion.api.server.pb.Message.t_PrivateKey result = new org.aion.api.server.pb.Message.t_PrivateKey(this); - result.privateKey_ = privateKey_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_PrivateKey) { - return mergeFrom((org.aion.api.server.pb.Message.t_PrivateKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_PrivateKey other) { - if (other == org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()) return this; - if (!other.getPrivateKey().isEmpty()) { - privateKey_ = other.privateKey_; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_PrivateKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_PrivateKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object privateKey_ = ""; - /** - * string privateKey = 1; - */ - public java.lang.String getPrivateKey() { - java.lang.Object ref = privateKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string privateKey = 1; - */ - public com.google.protobuf.ByteString - getPrivateKeyBytes() { - java.lang.Object ref = privateKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - privateKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string privateKey = 1; - */ - public Builder setPrivateKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privateKey_ = value; - onChanged(); - return this; - } - /** - * string privateKey = 1; - */ - public Builder clearPrivateKey() { - - privateKey_ = getDefaultInstance().getPrivateKey(); - onChanged(); - return this; - } - /** - * string privateKey = 1; - */ - public Builder setPrivateKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privateKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_PrivateKey) - } + private int bitField0_; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_PrivateKey) - private static final org.aion.api.server.pb.Message.t_PrivateKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_PrivateKey(); - } + private java.util.List blkSql_ = + java.util.Collections.emptyList(); - public static org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void ensureBlkSqlIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = + new java.util.ArrayList( + blkSql_); + bitField0_ |= 0x00000001; + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_PrivateKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_PrivateKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockSql, + org.aion.api.server.pb.Message.t_BlockSql.Builder, + org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> + blkSqlBuilder_; + + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public java.util.List getBlkSqlList() { + if (blkSqlBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkSql_); + } else { + return blkSqlBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public int getBlkSqlCount() { + if (blkSqlBuilder_ == null) { + return blkSql_.size(); + } else { + return blkSqlBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { + if (blkSqlBuilder_ == null) { + return blkSql_.get(index); + } else { + return blkSqlBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder setBlkSql(int index, org.aion.api.server.pb.Message.t_BlockSql value) { + if (blkSqlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkSqlIsMutable(); + blkSql_.set(index, value); + onChanged(); + } else { + blkSqlBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder setBlkSql( + int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.set(index, builderForValue.build()); + onChanged(); + } else { + blkSqlBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder addBlkSql(org.aion.api.server.pb.Message.t_BlockSql value) { + if (blkSqlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkSqlIsMutable(); + blkSql_.add(value); + onChanged(); + } else { + blkSqlBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder addBlkSql(int index, org.aion.api.server.pb.Message.t_BlockSql value) { + if (blkSqlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkSqlIsMutable(); + blkSql_.add(index, value); + onChanged(); + } else { + blkSqlBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder addBlkSql( + org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.add(builderForValue.build()); + onChanged(); + } else { + blkSqlBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder addBlkSql( + int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.add(index, builderForValue.build()); + onChanged(); + } else { + blkSqlBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder addAllBlkSql( + java.lang.Iterable + values) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkSql_); + onChanged(); + } else { + blkSqlBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder clearBlkSql() { + if (blkSqlBuilder_ == null) { + blkSql_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkSqlBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public Builder removeBlkSql(int index) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.remove(index); + onChanged(); + } else { + blkSqlBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public org.aion.api.server.pb.Message.t_BlockSql.Builder getBlkSqlBuilder(int index) { + return getBlkSqlFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( + int index) { + if (blkSqlBuilder_ == null) { + return blkSql_.get(index); + } else { + return blkSqlBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public java.util.List + getBlkSqlOrBuilderList() { + if (blkSqlBuilder_ != null) { + return blkSqlBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkSql_); + } + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder() { + return getBlkSqlFieldBuilder() + .addBuilder(org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder(int index) { + return getBlkSqlFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ + public java.util.List + getBlkSqlBuilderList() { + return getBlkSqlFieldBuilder().getBuilderList(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockSql, + org.aion.api.server.pb.Message.t_BlockSql.Builder, + org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> + getBlkSqlFieldBuilder() { + if (blkSqlBuilder_ == null) { + blkSqlBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockSql, + org.aion.api.server.pb.Message.t_BlockSql.Builder, + org.aion.api.server.pb.Message.t_BlockSqlOrBuilder>( + blkSql_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkSql_ = null; + } + return blkSqlBuilder_; + } - public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - } - - public interface req_importAccountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_importAccounts) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - java.util.List - getPrivateKeyList(); - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index); - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - int getPrivateKeyCount(); - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - java.util.List - getPrivateKeyOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_importAccounts} - */ - public static final class req_importAccounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_importAccounts) - req_importAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_importAccounts.newBuilder() to construct. - private req_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_importAccounts() { - privateKey_ = java.util.Collections.emptyList(); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_importAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - privateKey_.add( - input.readMessage(org.aion.api.server.pb.Message.t_PrivateKey.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_importAccounts.class, org.aion.api.server.pb.Message.req_importAccounts.Builder.class); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) + private static final org.aion.api.server.pb.Message.rsp_getBlockSqlByRange DEFAULT_INSTANCE; - public static final int PRIVATEKEY_FIELD_NUMBER = 1; - private java.util.List privateKey_; - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public java.util.List getPrivateKeyList() { - return privateKey_; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public java.util.List - getPrivateKeyOrBuilderList() { - return privateKey_; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public int getPrivateKeyCount() { - return privateKey_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { - return privateKey_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( - int index) { - return privateKey_.get(index); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlockSqlByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockSqlByRange(input, extensionRegistry); + } + }; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < privateKey_.size(); i++) { - output.writeMessage(1, privateKey_.get(i)); - } - unknownFields.writeTo(output); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < privateKey_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, privateKey_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_importAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_importAccounts other = (org.aion.api.server.pb.Message.req_importAccounts) obj; - - boolean result = true; - result = result && getPrivateKeyList() - .equals(other.getPrivateKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPrivateKeyCount() > 0) { - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivateKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public interface req_getBlockDetailsByRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByRange) + com.google.protobuf.MessageOrBuilder { - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** uint64 blkNumberStart = 1; */ + long getBlkNumberStart(); - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_importAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + /** uint64 blkNumberEnd = 2; */ + long getBlkNumberEnd(); } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} */ + public static final class req_getBlockDetailsByRange + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) + req_getBlockDetailsByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockDetailsByRange.newBuilder() to construct. + private req_getBlockDetailsByRange( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_importAccounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_importAccounts) - org.aion.api.server.pb.Message.req_importAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_importAccounts.class, org.aion.api.server.pb.Message.req_importAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_importAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPrivateKeyFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (privateKeyBuilder_ == null) { - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - privateKeyBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_importAccounts build() { - org.aion.api.server.pb.Message.req_importAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_importAccounts buildPartial() { - org.aion.api.server.pb.Message.req_importAccounts result = new org.aion.api.server.pb.Message.req_importAccounts(this); - int from_bitField0_ = bitField0_; - if (privateKeyBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.privateKey_ = privateKey_; - } else { - result.privateKey_ = privateKeyBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_importAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.req_importAccounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_importAccounts other) { - if (other == org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance()) return this; - if (privateKeyBuilder_ == null) { - if (!other.privateKey_.isEmpty()) { - if (privateKey_.isEmpty()) { - privateKey_ = other.privateKey_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrivateKeyIsMutable(); - privateKey_.addAll(other.privateKey_); - } - onChanged(); - } - } else { - if (!other.privateKey_.isEmpty()) { - if (privateKeyBuilder_.isEmpty()) { - privateKeyBuilder_.dispose(); - privateKeyBuilder_ = null; - privateKey_ = other.privateKey_; - bitField0_ = (bitField0_ & ~0x00000001); - privateKeyBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPrivateKeyFieldBuilder() : null; - } else { - privateKeyBuilder_.addAllMessages(other.privateKey_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_importAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_importAccounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List privateKey_ = - java.util.Collections.emptyList(); - private void ensurePrivateKeyIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = new java.util.ArrayList(privateKey_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_PrivateKey, org.aion.api.server.pb.Message.t_PrivateKey.Builder, org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> privateKeyBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public java.util.List getPrivateKeyList() { - if (privateKeyBuilder_ == null) { - return java.util.Collections.unmodifiableList(privateKey_); - } else { - return privateKeyBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public int getPrivateKeyCount() { - if (privateKeyBuilder_ == null) { - return privateKey_.size(); - } else { - return privateKeyBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { - if (privateKeyBuilder_ == null) { - return privateKey_.get(index); - } else { - return privateKeyBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder setPrivateKey( - int index, org.aion.api.server.pb.Message.t_PrivateKey value) { - if (privateKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.set(index, value); - onChanged(); - } else { - privateKeyBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder setPrivateKey( - int index, org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.set(index, builderForValue.build()); - onChanged(); - } else { - privateKeyBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder addPrivateKey(org.aion.api.server.pb.Message.t_PrivateKey value) { - if (privateKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.add(value); - onChanged(); - } else { - privateKeyBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder addPrivateKey( - int index, org.aion.api.server.pb.Message.t_PrivateKey value) { - if (privateKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.add(index, value); - onChanged(); - } else { - privateKeyBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder addPrivateKey( - org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.add(builderForValue.build()); - onChanged(); - } else { - privateKeyBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder addPrivateKey( - int index, org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.add(index, builderForValue.build()); - onChanged(); - } else { - privateKeyBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder addAllPrivateKey( - java.lang.Iterable values) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, privateKey_); - onChanged(); - } else { - privateKeyBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder clearPrivateKey() { - if (privateKeyBuilder_ == null) { - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - privateKeyBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public Builder removePrivateKey(int index) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.remove(index); - onChanged(); - } else { - privateKeyBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public org.aion.api.server.pb.Message.t_PrivateKey.Builder getPrivateKeyBuilder( - int index) { - return getPrivateKeyFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( - int index) { - if (privateKeyBuilder_ == null) { - return privateKey_.get(index); } else { - return privateKeyBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public java.util.List - getPrivateKeyOrBuilderList() { - if (privateKeyBuilder_ != null) { - return privateKeyBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(privateKey_); - } - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder() { - return getPrivateKeyFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder( - int index) { - return getPrivateKeyFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; - */ - public java.util.List - getPrivateKeyBuilderList() { - return getPrivateKeyFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_PrivateKey, org.aion.api.server.pb.Message.t_PrivateKey.Builder, org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> - getPrivateKeyFieldBuilder() { - if (privateKeyBuilder_ == null) { - privateKeyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_PrivateKey, org.aion.api.server.pb.Message.t_PrivateKey.Builder, org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder>( - privateKey_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - privateKey_ = null; - } - return privateKeyBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_importAccounts) - } + private req_getBlockDetailsByRange() { + blkNumberStart_ = 0L; + blkNumberEnd_ = 0L; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_importAccounts) - private static final org.aion.api.server.pb.Message.req_importAccounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_importAccounts(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static org.aion.api.server.pb.Message.req_importAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private req_getBlockDetailsByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + blkNumberStart_ = input.readUInt64(); + break; + } + case 16: + { + blkNumberEnd_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_importAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_importAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, + org.aion.api.server.pb.Message.req_getBlockDetailsByRange + .Builder + .class); + } - public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; + private long blkNumberStart_; + /** uint64 blkNumberStart = 1; */ + public long getBlkNumberStart() { + return blkNumberStart_; + } - } - - public interface rsp_importAccountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_importAccounts) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string invalidKey = 1; - */ - java.util.List - getInvalidKeyList(); - /** - * repeated string invalidKey = 1; - */ - int getInvalidKeyCount(); - /** - * repeated string invalidKey = 1; - */ - java.lang.String getInvalidKey(int index); - /** - * repeated string invalidKey = 1; - */ - com.google.protobuf.ByteString - getInvalidKeyBytes(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} - */ - public static final class rsp_importAccounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_importAccounts) - rsp_importAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_importAccounts.newBuilder() to construct. - private rsp_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_importAccounts() { - invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public static final int BLKNUMBEREND_FIELD_NUMBER = 2; + private long blkNumberEnd_; + /** uint64 blkNumberEnd = 2; */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_importAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - invalidKey_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = invalidKey_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - } + private byte memoizedIsInitialized = -1; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_importAccounts.class, org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int INVALIDKEY_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList invalidKey_; - /** - * repeated string invalidKey = 1; - */ - public com.google.protobuf.ProtocolStringList - getInvalidKeyList() { - return invalidKey_; - } - /** - * repeated string invalidKey = 1; - */ - public int getInvalidKeyCount() { - return invalidKey_.size(); - } - /** - * repeated string invalidKey = 1; - */ - public java.lang.String getInvalidKey(int index) { - return invalidKey_.get(index); - } - /** - * repeated string invalidKey = 1; - */ - public com.google.protobuf.ByteString - getInvalidKeyBytes(int index) { - return invalidKey_.getByteString(index); - } + memoizedIsInitialized = 1; + return true; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blkNumberStart_ != 0L) { + output.writeUInt64(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + output.writeUInt64(2, blkNumberEnd_); + } + unknownFields.writeTo(output); + } - memoizedIsInitialized = 1; - return true; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < invalidKey_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, invalidKey_.getRaw(i)); - } - unknownFields.writeTo(output); - } + size = 0; + if (blkNumberStart_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blkNumberEnd_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < invalidKey_.size(); i++) { - dataSize += computeStringSizeNoTag(invalidKey_.getRaw(i)); - } - size += dataSize; - size += 1 * getInvalidKeyList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockDetailsByRange other = + (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) obj; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_importAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_importAccounts other = (org.aion.api.server.pb.Message.rsp_importAccounts) obj; - - boolean result = true; - result = result && getInvalidKeyList() - .equals(other.getInvalidKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + boolean result = true; + result = result && (getBlkNumberStart() == other.getBlkNumberStart()); + result = result && (getBlkNumberEnd() == other.getBlkNumberEnd()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInvalidKeyCount() > 0) { - hash = (37 * hash) + INVALIDKEY_FIELD_NUMBER; - hash = (53 * hash) + getInvalidKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberStart()); + hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberEnd()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_importAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_importAccounts) - org.aion.api.server.pb.Message.rsp_importAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_importAccounts.class, org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_importAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_importAccounts build() { - org.aion.api.server.pb.Message.rsp_importAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_importAccounts buildPartial() { - org.aion.api.server.pb.Message.rsp_importAccounts result = new org.aion.api.server.pb.Message.rsp_importAccounts(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = invalidKey_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invalidKey_ = invalidKey_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_importAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_importAccounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_importAccounts other) { - if (other == org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance()) return this; - if (!other.invalidKey_.isEmpty()) { - if (invalidKey_.isEmpty()) { - invalidKey_ = other.invalidKey_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvalidKeyIsMutable(); - invalidKey_.addAll(other.invalidKey_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_importAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_importAccounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureInvalidKeyIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = new com.google.protobuf.LazyStringArrayList(invalidKey_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string invalidKey = 1; - */ - public com.google.protobuf.ProtocolStringList - getInvalidKeyList() { - return invalidKey_.getUnmodifiableView(); - } - /** - * repeated string invalidKey = 1; - */ - public int getInvalidKeyCount() { - return invalidKey_.size(); - } - /** - * repeated string invalidKey = 1; - */ - public java.lang.String getInvalidKey(int index) { - return invalidKey_.get(index); - } - /** - * repeated string invalidKey = 1; - */ - public com.google.protobuf.ByteString - getInvalidKeyBytes(int index) { - return invalidKey_.getByteString(index); - } - /** - * repeated string invalidKey = 1; - */ - public Builder setInvalidKey( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvalidKeyIsMutable(); - invalidKey_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string invalidKey = 1; - */ - public Builder addInvalidKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvalidKeyIsMutable(); - invalidKey_.add(value); - onChanged(); - return this; - } - /** - * repeated string invalidKey = 1; - */ - public Builder addAllInvalidKey( - java.lang.Iterable values) { - ensureInvalidKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invalidKey_); - onChanged(); - return this; - } - /** - * repeated string invalidKey = 1; - */ - public Builder clearInvalidKey() { - invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string invalidKey = 1; - */ - public Builder addInvalidKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInvalidKeyIsMutable(); - invalidKey_.add(value); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_importAccounts) - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_importAccounts) - private static final org.aion.api.server.pb.Message.rsp_importAccounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_importAccounts(); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_importAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_importAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - } - - public interface t_KeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Key) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - - /** - * string password = 2; - */ - java.lang.String getPassword(); - /** - * string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Key} - */ - public static final class t_Key extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Key) - t_KeyOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Key.newBuilder() to construct. - private t_Key(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_Key() { - address_ = com.google.protobuf.ByteString.EMPTY; - password_ = ""; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private t_Key( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_descriptor; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Key.class, org.aion.api.server.pb.Message.t_Key.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder newBuilderForType() { + return newBuilder(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder( + org.aion.api.server.pb.Message.req_getBlockDetailsByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) + org.aion.api.server.pb.Message.req_getBlockDetailsByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Key)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_Key other = (org.aion.api.server.pb.Message.t_Key) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && getPassword() - .equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, + org.aion.api.server.pb.Message.req_getBlockDetailsByRange + .Builder + .class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using + // org.aion.api.server.pb.Message.req_getBlockDetailsByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Key prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.t_Key} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Key) - org.aion.api.server.pb.Message.t_KeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Key.class, org.aion.api.server.pb.Message.t_Key.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_Key.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_descriptor; - } - - public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Key.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_Key build() { - org.aion.api.server.pb.Message.t_Key result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_Key buildPartial() { - org.aion.api.server.pb.Message.t_Key result = new org.aion.api.server.pb.Message.t_Key(this); - result.address_ = address_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Key) { - return mergeFrom((org.aion.api.server.pb.Message.t_Key)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Key other) { - if (other == org.aion.api.server.pb.Message.t_Key.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Key parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_Key) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Key) - } + public Builder clear() { + super.clear(); + blkNumberStart_ = 0L; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Key) - private static final org.aion.api.server.pb.Message.t_Key DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Key(); - } + blkNumberEnd_ = 0L; - public static org.aion.api.server.pb.Message.t_Key getDefaultInstance() { - return DEFAULT_INSTANCE; - } + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public t_Key parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Key(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockDetailsByRange + .getDefaultInstance(); + } - public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange build() { + org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - } - - public interface req_exportAccountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_exportAccounts) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - java.util.List - getKeyFileList(); - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - org.aion.api.server.pb.Message.t_Key getKeyFile(int index); - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - int getKeyFileCount(); - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - java.util.List - getKeyFileOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} - */ - public static final class req_exportAccounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_exportAccounts) - req_exportAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_exportAccounts.newBuilder() to construct. - private req_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_exportAccounts() { - keyFile_ = java.util.Collections.emptyList(); - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange buildPartial() { + org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = + new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(this); + result.blkNumberStart_ = blkNumberStart_; + result.blkNumberEnd_ = blkNumberEnd_; + onBuilt(); + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_exportAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keyFile_.add( - input.readMessage(org.aion.api.server.pb.Message.t_Key.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - } + public Builder clone() { + return (Builder) super.clone(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_exportAccounts.class, org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - public static final int KEYFILE_FIELD_NUMBER = 1; - private java.util.List keyFile_; - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public java.util.List getKeyFileList() { - return keyFile_; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public java.util.List - getKeyFileOrBuilderList() { - return keyFile_; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public int getKeyFileCount() { - return keyFile_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { - return keyFile_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder( - int index) { - return keyFile_.get(index); - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - memoizedIsInitialized = 1; - return true; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keyFile_.size(); i++) { - output.writeMessage(1, keyFile_.get(i)); - } - unknownFields.writeTo(output); - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < keyFile_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, keyFile_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange) { + return mergeFrom( + (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_exportAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_exportAccounts other = (org.aion.api.server.pb.Message.req_exportAccounts) obj; - - boolean result = true; - result = result && getKeyFileList() - .equals(other.getKeyFileList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder mergeFrom( + org.aion.api.server.pb.Message.req_getBlockDetailsByRange other) { + if (other + == org.aion.api.server.pb.Message.req_getBlockDetailsByRange + .getDefaultInstance()) return this; + if (other.getBlkNumberStart() != 0L) { + setBlkNumberStart(other.getBlkNumberStart()); + } + if (other.getBlkNumberEnd() != 0L) { + setBlkNumberEnd(other.getBlkNumberEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getKeyFileCount() > 0) { - hash = (37 * hash) + KEYFILE_FIELD_NUMBER; - hash = (53 * hash) + getKeyFileList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public final boolean isInitialized() { + return true; + } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockDetailsByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_exportAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private long blkNumberStart_; + /** uint64 blkNumberStart = 1; */ + public long getBlkNumberStart() { + return blkNumberStart_; + } + /** uint64 blkNumberStart = 1; */ + public Builder setBlkNumberStart(long value) { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_exportAccounts) - org.aion.api.server.pb.Message.req_exportAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_exportAccounts.class, org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_exportAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getKeyFileFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (keyFileBuilder_ == null) { - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - keyFileBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_exportAccounts build() { - org.aion.api.server.pb.Message.req_exportAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_exportAccounts buildPartial() { - org.aion.api.server.pb.Message.req_exportAccounts result = new org.aion.api.server.pb.Message.req_exportAccounts(this); - int from_bitField0_ = bitField0_; - if (keyFileBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keyFile_ = keyFile_; - } else { - result.keyFile_ = keyFileBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_exportAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.req_exportAccounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_exportAccounts other) { - if (other == org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance()) return this; - if (keyFileBuilder_ == null) { - if (!other.keyFile_.isEmpty()) { - if (keyFile_.isEmpty()) { - keyFile_ = other.keyFile_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeyFileIsMutable(); - keyFile_.addAll(other.keyFile_); - } - onChanged(); - } - } else { - if (!other.keyFile_.isEmpty()) { - if (keyFileBuilder_.isEmpty()) { - keyFileBuilder_.dispose(); - keyFileBuilder_ = null; - keyFile_ = other.keyFile_; - bitField0_ = (bitField0_ & ~0x00000001); - keyFileBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeyFileFieldBuilder() : null; - } else { - keyFileBuilder_.addAllMessages(other.keyFile_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_exportAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_exportAccounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List keyFile_ = - java.util.Collections.emptyList(); - private void ensureKeyFileIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = new java.util.ArrayList(keyFile_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Key, org.aion.api.server.pb.Message.t_Key.Builder, org.aion.api.server.pb.Message.t_KeyOrBuilder> keyFileBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public java.util.List getKeyFileList() { - if (keyFileBuilder_ == null) { - return java.util.Collections.unmodifiableList(keyFile_); - } else { - return keyFileBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public int getKeyFileCount() { - if (keyFileBuilder_ == null) { - return keyFile_.size(); - } else { - return keyFileBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { - if (keyFileBuilder_ == null) { - return keyFile_.get(index); - } else { - return keyFileBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder setKeyFile( - int index, org.aion.api.server.pb.Message.t_Key value) { - if (keyFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.set(index, value); - onChanged(); - } else { - keyFileBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder setKeyFile( - int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.set(index, builderForValue.build()); - onChanged(); - } else { - keyFileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder addKeyFile(org.aion.api.server.pb.Message.t_Key value) { - if (keyFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.add(value); - onChanged(); - } else { - keyFileBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder addKeyFile( - int index, org.aion.api.server.pb.Message.t_Key value) { - if (keyFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.add(index, value); - onChanged(); - } else { - keyFileBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder addKeyFile( - org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.add(builderForValue.build()); - onChanged(); - } else { - keyFileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder addKeyFile( - int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.add(index, builderForValue.build()); - onChanged(); - } else { - keyFileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder addAllKeyFile( - java.lang.Iterable values) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keyFile_); - onChanged(); - } else { - keyFileBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder clearKeyFile() { - if (keyFileBuilder_ == null) { - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - keyFileBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public Builder removeKeyFile(int index) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.remove(index); - onChanged(); - } else { - keyFileBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public org.aion.api.server.pb.Message.t_Key.Builder getKeyFileBuilder( - int index) { - return getKeyFileFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder( - int index) { - if (keyFileBuilder_ == null) { - return keyFile_.get(index); } else { - return keyFileBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public java.util.List - getKeyFileOrBuilderList() { - if (keyFileBuilder_ != null) { - return keyFileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(keyFile_); - } - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder() { - return getKeyFileFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder( - int index) { - return getKeyFileFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Key keyFile = 1; - */ - public java.util.List - getKeyFileBuilderList() { - return getKeyFileFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Key, org.aion.api.server.pb.Message.t_Key.Builder, org.aion.api.server.pb.Message.t_KeyOrBuilder> - getKeyFileFieldBuilder() { - if (keyFileBuilder_ == null) { - keyFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Key, org.aion.api.server.pb.Message.t_Key.Builder, org.aion.api.server.pb.Message.t_KeyOrBuilder>( - keyFile_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - keyFile_ = null; - } - return keyFileBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_exportAccounts) - } + blkNumberStart_ = value; + onChanged(); + return this; + } + /** uint64 blkNumberStart = 1; */ + public Builder clearBlkNumberStart() { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_exportAccounts) - private static final org.aion.api.server.pb.Message.req_exportAccounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_exportAccounts(); - } + blkNumberStart_ = 0L; + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private long blkNumberEnd_; + /** uint64 blkNumberEnd = 2; */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } + /** uint64 blkNumberEnd = 2; */ + public Builder setBlkNumberEnd(long value) { - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_exportAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_exportAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + blkNumberEnd_ = value; + onChanged(); + return this; + } + /** uint64 blkNumberEnd = 2; */ + public Builder clearBlkNumberEnd() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + blkNumberEnd_ = 0L; + onChanged(); + return this; + } - public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - } - - public interface rsp_exportAccountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_exportAccounts) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes keyFile = 1; - */ - java.util.List getKeyFileList(); - /** - * repeated bytes keyFile = 1; - */ - int getKeyFileCount(); - /** - * repeated bytes keyFile = 1; - */ - com.google.protobuf.ByteString getKeyFile(int index); - - /** - * repeated bytes failedKey = 2; - */ - java.util.List getFailedKeyList(); - /** - * repeated bytes failedKey = 2; - */ - int getFailedKeyCount(); - /** - * repeated bytes failedKey = 2; - */ - com.google.protobuf.ByteString getFailedKey(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} - */ - public static final class rsp_exportAccounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_exportAccounts) - rsp_exportAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_exportAccounts.newBuilder() to construct. - private rsp_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_exportAccounts() { - keyFile_ = java.util.Collections.emptyList(); - failedKey_ = java.util.Collections.emptyList(); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_exportAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keyFile_.add(input.readBytes()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - failedKey_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = java.util.Collections.unmodifiableList(failedKey_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_exportAccounts.class, org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) + private static final org.aion.api.server.pb.Message.req_getBlockDetailsByRange + DEFAULT_INSTANCE; - public static final int KEYFILE_FIELD_NUMBER = 1; - private java.util.List keyFile_; - /** - * repeated bytes keyFile = 1; - */ - public java.util.List - getKeyFileList() { - return keyFile_; - } - /** - * repeated bytes keyFile = 1; - */ - public int getKeyFileCount() { - return keyFile_.size(); - } - /** - * repeated bytes keyFile = 1; - */ - public com.google.protobuf.ByteString getKeyFile(int index) { - return keyFile_.get(index); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(); + } - public static final int FAILEDKEY_FIELD_NUMBER = 2; - private java.util.List failedKey_; - /** - * repeated bytes failedKey = 2; - */ - public java.util.List - getFailedKeyList() { - return failedKey_; - } - /** - * repeated bytes failedKey = 2; - */ - public int getFailedKeyCount() { - return failedKey_.size(); - } - /** - * repeated bytes failedKey = 2; - */ - public com.google.protobuf.ByteString getFailedKey(int index) { - return failedKey_.get(index); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getBlockDetailsByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockDetailsByRange(input, extensionRegistry); + } + }; - memoizedIsInitialized = 1; - return true; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keyFile_.size(); i++) { - output.writeBytes(1, keyFile_.get(i)); - } - for (int i = 0; i < failedKey_.size(); i++) { - output.writeBytes(2, failedKey_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < keyFile_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(keyFile_.get(i)); - } - size += dataSize; - size += 1 * getKeyFileList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < failedKey_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(failedKey_.get(i)); - } - size += dataSize; - size += 1 * getFailedKeyList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_exportAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_exportAccounts other = (org.aion.api.server.pb.Message.rsp_exportAccounts) obj; - - boolean result = true; - result = result && getKeyFileList() - .equals(other.getKeyFileList()); - result = result && getFailedKeyList() - .equals(other.getFailedKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public interface rsp_getBlockDetailsByRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getKeyFileCount() > 0) { - hash = (37 * hash) + KEYFILE_FIELD_NUMBER; - hash = (53 * hash) + getKeyFileList().hashCode(); - } - if (getFailedKeyCount() > 0) { - hash = (37 * hash) + FAILEDKEY_FIELD_NUMBER; - hash = (53 * hash) + getFailedKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + java.util.List getBlkDetailsList(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + int getBlkDetailsCount(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + java.util.List + getBlkDetailsOrBuilderList(); + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder(int index); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} */ + public static final class rsp_getBlockDetailsByRange + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + rsp_getBlockDetailsByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockDetailsByRange.newBuilder() to construct. + private rsp_getBlockDetailsByRange( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private rsp_getBlockDetailsByRange() { + blkDetails_ = java.util.Collections.emptyList(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_exportAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_exportAccounts) - org.aion.api.server.pb.Message.rsp_exportAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_exportAccounts.class, org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_exportAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - failedKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_exportAccounts build() { - org.aion.api.server.pb.Message.rsp_exportAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_exportAccounts buildPartial() { - org.aion.api.server.pb.Message.rsp_exportAccounts result = new org.aion.api.server.pb.Message.rsp_exportAccounts(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keyFile_ = keyFile_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = java.util.Collections.unmodifiableList(failedKey_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.failedKey_ = failedKey_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_exportAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_exportAccounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_exportAccounts other) { - if (other == org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance()) return this; - if (!other.keyFile_.isEmpty()) { - if (keyFile_.isEmpty()) { - keyFile_ = other.keyFile_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeyFileIsMutable(); - keyFile_.addAll(other.keyFile_); - } - onChanged(); - } - if (!other.failedKey_.isEmpty()) { - if (failedKey_.isEmpty()) { - failedKey_ = other.failedKey_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFailedKeyIsMutable(); - failedKey_.addAll(other.failedKey_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_exportAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_exportAccounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List keyFile_ = java.util.Collections.emptyList(); - private void ensureKeyFileIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = new java.util.ArrayList(keyFile_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes keyFile = 1; - */ - public java.util.List - getKeyFileList() { - return java.util.Collections.unmodifiableList(keyFile_); - } - /** - * repeated bytes keyFile = 1; - */ - public int getKeyFileCount() { - return keyFile_.size(); - } - /** - * repeated bytes keyFile = 1; - */ - public com.google.protobuf.ByteString getKeyFile(int index) { - return keyFile_.get(index); - } - /** - * repeated bytes keyFile = 1; - */ - public Builder setKeyFile( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes keyFile = 1; - */ - public Builder addKeyFile(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes keyFile = 1; - */ - public Builder addAllKeyFile( - java.lang.Iterable values) { - ensureKeyFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keyFile_); - onChanged(); - return this; - } - /** - * repeated bytes keyFile = 1; - */ - public Builder clearKeyFile() { - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List failedKey_ = java.util.Collections.emptyList(); - private void ensureFailedKeyIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = new java.util.ArrayList(failedKey_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated bytes failedKey = 2; - */ - public java.util.List - getFailedKeyList() { - return java.util.Collections.unmodifiableList(failedKey_); - } - /** - * repeated bytes failedKey = 2; - */ - public int getFailedKeyCount() { - return failedKey_.size(); - } - /** - * repeated bytes failedKey = 2; - */ - public com.google.protobuf.ByteString getFailedKey(int index) { - return failedKey_.get(index); - } - /** - * repeated bytes failedKey = 2; - */ - public Builder setFailedKey( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFailedKeyIsMutable(); - failedKey_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes failedKey = 2; - */ - public Builder addFailedKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFailedKeyIsMutable(); - failedKey_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes failedKey = 2; - */ - public Builder addAllFailedKey( - java.lang.Iterable values) { - ensureFailedKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, failedKey_); - onChanged(); - return this; - } - /** - * repeated bytes failedKey = 2; - */ - public Builder clearFailedKey() { - failedKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_exportAccounts) - } + private rsp_getBlockDetailsByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = + new java.util.ArrayList< + org.aion.api.server.pb.Message.t_BlockDetail>(); + mutable_bitField0_ |= 0x00000001; + } + blkDetails_.add( + input.readMessage( + org.aion.api.server.pb.Message.t_BlockDetail + .parser(), + extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_exportAccounts) - private static final org.aion.api.server.pb.Message.rsp_exportAccounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_exportAccounts(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + .Builder + .class); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_exportAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_exportAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int BLKDETAILS_FIELD_NUMBER = 1; + private java.util.List blkDetails_; + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List getBlkDetailsList() { + return blkDetails_; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsOrBuilderList() { + return blkDetails_; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public int getBlkDetailsCount() { + return blkDetails_.size(); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + return blkDetails_.get(index); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + return blkDetails_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - } - - public interface rsp_getCurrentTotalDifficultyOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes totalDiff = 1; - */ - com.google.protobuf.ByteString getTotalDiff(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} - */ - public static final class rsp_getCurrentTotalDifficulty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - rsp_getCurrentTotalDifficultyOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getCurrentTotalDifficulty.newBuilder() to construct. - private rsp_getCurrentTotalDifficulty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getCurrentTotalDifficulty() { - totalDiff_ = com.google.protobuf.ByteString.EMPTY; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getCurrentTotalDifficulty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - totalDiff_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkDetails_.size(); i++) { + output.writeMessage(1, blkDetails_.get(i)); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.Builder.class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int TOTALDIFF_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString totalDiff_; - /** - * bytes totalDiff = 1; - */ - public com.google.protobuf.ByteString getTotalDiff() { - return totalDiff_; - } + size = 0; + for (int i = 0; i < blkDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, blkDetails_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other = + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) obj; - memoizedIsInitialized = 1; - return true; - } + boolean result = true; + result = result && getBlkDetailsList().equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!totalDiff_.isEmpty()) { - output.writeBytes(1, totalDiff_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkDetailsCount() > 0) { + hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBlkDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!totalDiff_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, totalDiff_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other = (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) obj; - - boolean result = true; - result = result && getTotalDiff() - .equals(other.getTotalDiff()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTALDIFF_FIELD_NUMBER; - hash = (53 * hash) + getTotalDiff().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficultyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - totalDiff_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty build() { - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty buildPartial() { - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(this); - result.totalDiff_ = totalDiff_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other) { - if (other == org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.getDefaultInstance()) return this; - if (other.getTotalDiff() != com.google.protobuf.ByteString.EMPTY) { - setTotalDiff(other.getTotalDiff()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString totalDiff_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes totalDiff = 1; - */ - public com.google.protobuf.ByteString getTotalDiff() { - return totalDiff_; - } - /** - * bytes totalDiff = 1; - */ - public Builder setTotalDiff(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDiff_ = value; - onChanged(); - return this; - } - /** - * bytes totalDiff = 1; - */ - public Builder clearTotalDiff() { - - totalDiff_ = getDefaultInstance().getTotalDiff(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - private static final org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getCurrentTotalDifficulty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getCurrentTotalDifficulty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } - - public interface req_getBlockDetailsByNumberOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByNumber) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint64 blkNumbers = 1; - */ - java.util.List getBlkNumbersList(); - /** - * repeated uint64 blkNumbers = 1; - */ - int getBlkNumbersCount(); - /** - * repeated uint64 blkNumbers = 1; - */ - long getBlkNumbers(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} - */ - public static final class req_getBlockDetailsByNumber extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) - req_getBlockDetailsByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockDetailsByNumber.newBuilder() to construct. - private req_getBlockDetailsByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockDetailsByNumber() { - blkNumbers_ = java.util.Collections.emptyList(); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockDetailsByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blkNumbers_.add(input.readUInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - blkNumbers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - blkNumbers_.add(input.readUInt64()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - } + public Builder newBuilderForType() { + return newBuilder(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.Builder.class); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int BLKNUMBERS_FIELD_NUMBER = 1; - private java.util.List blkNumbers_; - /** - * repeated uint64 blkNumbers = 1; - */ - public java.util.List - getBlkNumbersList() { - return blkNumbers_; - } - /** - * repeated uint64 blkNumbers = 1; - */ - public int getBlkNumbersCount() { - return blkNumbers_.size(); - } - /** - * repeated uint64 blkNumbers = 1; - */ - public long getBlkNumbers(int index) { - return blkNumbers_.get(index); - } - private int blkNumbersMemoizedSerializedSize = -1; + public static Builder newBuilder( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getBlkNumbersList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(blkNumbersMemoizedSerializedSize); - } - for (int i = 0; i < blkNumbers_.size(); i++) { - output.writeUInt64NoTag(blkNumbers_.get(i)); - } - unknownFields.writeTo(output); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + .Builder + .class); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < blkNumbers_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(blkNumbers_.get(i)); - } - size += dataSize; - if (!getBlkNumbersList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - blkNumbersMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + // Construct using + // org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other = (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) obj; - - boolean result = true; - result = result && getBlkNumbersList() - .equals(other.getBlkNumbersList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkNumbersCount() > 0) { - hash = (37 * hash) + BLKNUMBERS_FIELD_NUMBER; - hash = (53 * hash) + getBlkNumbersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBlkDetailsFieldBuilder(); + } + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder clear() { + super.clear(); + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockDetailsByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) - org.aion.api.server.pb.Message.req_getBlockDetailsByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blkNumbers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber build() { - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber buildPartial() { - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkNumbers_ = blkNumbers_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockDetailsByNumber)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other) { - if (other == org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.getDefaultInstance()) return this; - if (!other.blkNumbers_.isEmpty()) { - if (blkNumbers_.isEmpty()) { - blkNumbers_ = other.blkNumbers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkNumbersIsMutable(); - blkNumbers_.addAll(other.blkNumbers_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List blkNumbers_ = java.util.Collections.emptyList(); - private void ensureBlkNumbersIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = new java.util.ArrayList(blkNumbers_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated uint64 blkNumbers = 1; - */ - public java.util.List - getBlkNumbersList() { - return java.util.Collections.unmodifiableList(blkNumbers_); - } - /** - * repeated uint64 blkNumbers = 1; - */ - public int getBlkNumbersCount() { - return blkNumbers_.size(); - } - /** - * repeated uint64 blkNumbers = 1; - */ - public long getBlkNumbers(int index) { - return blkNumbers_.get(index); - } - /** - * repeated uint64 blkNumbers = 1; - */ - public Builder setBlkNumbers( - int index, long value) { - ensureBlkNumbersIsMutable(); - blkNumbers_.set(index, value); - onChanged(); - return this; - } - /** - * repeated uint64 blkNumbers = 1; - */ - public Builder addBlkNumbers(long value) { - ensureBlkNumbersIsMutable(); - blkNumbers_.add(value); - onChanged(); - return this; - } - /** - * repeated uint64 blkNumbers = 1; - */ - public Builder addAllBlkNumbers( - java.lang.Iterable values) { - ensureBlkNumbersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blkNumbers_); - onChanged(); - return this; - } - /** - * repeated uint64 blkNumbers = 1; - */ - public Builder clearBlkNumbers() { - blkNumbers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + .getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockDetailsByNumber DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(); - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange build() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = + new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(this); + int from_bitField0_ = bitField0_; + if (blkDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkDetails_ = blkDetails_; + } else { + result.blkDetails_ = blkDetailsBuilder_.build(); + } + onBuilt(); + return result; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockDetailsByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockDetailsByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder clone() { + return (Builder) super.clone(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - } - - public interface rsp_getBlockDetailsByNumberOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - java.util.List - getBlkDetailsList(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - int getBlkDetailsCount(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - java.util.List - getBlkDetailsOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} - */ - public static final class rsp_getBlockDetailsByNumber extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - rsp_getBlockDetailsByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockDetailsByNumber.newBuilder() to construct. - private rsp_getBlockDetailsByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockDetailsByNumber() { - blkDetails_ = java.util.Collections.emptyList(); - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlockDetailsByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blkDetails_.add( - input.readMessage(org.aion.api.server.pb.Message.t_BlockDetail.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.Builder.class); - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - public static final int BLKDETAILS_FIELD_NUMBER = 1; - private java.util.List blkDetails_; - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List getBlkDetailsList() { - return blkDetails_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsOrBuilderList() { - return blkDetails_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public int getBlkDetailsCount() { - return blkDetails_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - return blkDetails_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - return blkDetails_.get(index); - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) { + return mergeFrom( + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other) { + if (other + == org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + .getDefaultInstance()) return this; + if (blkDetailsBuilder_ == null) { + if (!other.blkDetails_.isEmpty()) { + if (blkDetails_.isEmpty()) { + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkDetailsIsMutable(); + blkDetails_.addAll(other.blkDetails_); + } + onChanged(); + } + } else { + if (!other.blkDetails_.isEmpty()) { + if (blkDetailsBuilder_.isEmpty()) { + blkDetailsBuilder_.dispose(); + blkDetailsBuilder_ = null; + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + blkDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlkDetailsFieldBuilder() + : null; + } else { + blkDetailsBuilder_.addAllMessages(other.blkDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + public final boolean isInitialized() { + return true; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkDetails_.size(); i++) { - output.writeMessage(1, blkDetails_.get(i)); - } - unknownFields.writeTo(output); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < blkDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blkDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private int bitField0_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) obj; - - boolean result = true; - result = result && getBlkDetailsList() - .equals(other.getBlkDetailsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private java.util.List blkDetails_ = + java.util.Collections.emptyList(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkDetailsCount() > 0) { - hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getBlkDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private void ensureBlkDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = + new java.util.ArrayList( + blkDetails_); + bitField0_ |= 0x00000001; + } + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + blkDetailsBuilder_; + + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsList() { + if (blkDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkDetails_); + } else { + return blkDetailsBuilder_.getMessageList(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public int getBlkDetailsCount() { + if (blkDetailsBuilder_ == null) { + return blkDetails_.size(); + } else { + return blkDetailsBuilder_.getCount(); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessage(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, value); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder setBlkDetails( + int index, + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addBlkDetails( + int index, + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder addAllBlkDetails( + java.lang.Iterable + values) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkDetails_); + onChanged(); + } else { + blkDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder clearBlkDetails() { + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public Builder removeBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.remove(index); + onChanged(); + } else { + blkDetailsBuilder_.remove(index); + } + return this; + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().getBuilder(index); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsOrBuilderList() { + if (blkDetailsBuilder_ != null) { + return blkDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkDetails_); + } + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { + return getBlkDetailsFieldBuilder() + .addBuilder( + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder() + .addBuilder( + index, + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ + public java.util.List + getBlkDetailsBuilderList() { + return getBlkDetailsFieldBuilder().getBuilderList(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + getBlkDetailsFieldBuilder() { + if (blkDetailsBuilder_ == null) { + blkDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, + org.aion.api.server.pb.Message.t_BlockDetail.Builder, + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( + blkDetails_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkDetails_ = null; + } + return blkDetailsBuilder_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBlkDetailsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber build() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(this); - int from_bitField0_ = bitField0_; - if (blkDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkDetails_ = blkDetails_; - } else { - result.blkDetails_ = blkDetailsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.getDefaultInstance()) return this; - if (blkDetailsBuilder_ == null) { - if (!other.blkDetails_.isEmpty()) { - if (blkDetails_.isEmpty()) { - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkDetailsIsMutable(); - blkDetails_.addAll(other.blkDetails_); - } - onChanged(); - } - } else { - if (!other.blkDetails_.isEmpty()) { - if (blkDetailsBuilder_.isEmpty()) { - blkDetailsBuilder_.dispose(); - blkDetailsBuilder_ = null; - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - blkDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlkDetailsFieldBuilder() : null; - } else { - blkDetailsBuilder_.addAllMessages(other.blkDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List blkDetails_ = - java.util.Collections.emptyList(); - private void ensureBlkDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = new java.util.ArrayList(blkDetails_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> blkDetailsBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List getBlkDetailsList() { - if (blkDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkDetails_); - } else { - return blkDetailsBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public int getBlkDetailsCount() { - if (blkDetailsBuilder_ == null) { - return blkDetails_.size(); - } else { - return blkDetailsBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, value); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addAllBlkDetails( - java.lang.Iterable values) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blkDetails_); - onChanged(); - } else { - blkDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder clearBlkDetails() { - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder removeBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.remove(index); - onChanged(); - } else { - blkDetailsBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); } else { - return blkDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsOrBuilderList() { - if (blkDetailsBuilder_ != null) { - return blkDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkDetails_); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { - return getBlkDetailsFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsBuilderList() { - return getBlkDetailsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - getBlkDetailsFieldBuilder() { - if (blkDetailsBuilder_ == null) { - blkDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( - blkDetails_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkDetails_ = null; - } - return blkDetailsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(); - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlockDetailsByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockDetailsByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + DEFAULT_INSTANCE; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(); + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - } - - public interface req_getBlockDetailsByLatestOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByLatest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 count = 1; - */ - long getCount(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} - */ - public static final class req_getBlockDetailsByLatest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) - req_getBlockDetailsByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockDetailsByLatest.newBuilder() to construct. - private req_getBlockDetailsByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockDetailsByLatest() { - count_ = 0L; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getBlockDetailsByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockDetailsByRange(input, extensionRegistry); + } + }; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockDetailsByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - count_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int COUNT_FIELD_NUMBER = 1; - private long count_; - /** - * uint64 count = 1; - */ - public long getCount() { - return count_; + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public interface req_getNonceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNonce) + com.google.protobuf.MessageOrBuilder { - memoizedIsInitialized = 1; - return true; + /** bytes address = 1; */ + com.google.protobuf.ByteString getAddress(); } + /** Protobuf type {@code org.aion.api.server.pb.req_getNonce} */ + public static final class req_getNonce extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNonce) + req_getNonceOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getNonce.newBuilder() to construct. + private req_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (count_ != 0L) { - output.writeUInt64(1, count_); - } - unknownFields.writeTo(output); - } + private req_getNonce() { + address_ = com.google.protobuf.ByteString.EMPTY; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other = (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) obj; - - boolean result = true; - result = result && (getCount() - == other.getCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private req_getNonce( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + address_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNonce.class, + org.aion.api.server.pb.Message.req_getNonce.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockDetailsByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) - org.aion.api.server.pb.Message.req_getBlockDetailsByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - count_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest build() { - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest buildPartial() { - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(this); - result.count_ = count_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockDetailsByLatest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other) { - if (other == org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.getDefaultInstance()) return this; - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long count_ ; - /** - * uint64 count = 1; - */ - public long getCount() { - return count_; - } - /** - * uint64 count = 1; - */ - public Builder setCount(long value) { - - count_ = value; - onChanged(); - return this; - } - /** - * uint64 count = 1; - */ - public Builder clearCount() { - - count_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + unknownFields.writeTo(output); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) - private static final org.aion.api.server.pb.Message.req_getBlockDetailsByLatest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockDetailsByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockDetailsByLatest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getNonce)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getNonce other = + (org.aion.api.server.pb.Message.req_getNonce) obj; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + boolean result = true; + result = result && getAddress().equals(other.getAddress()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - } - - public interface rsp_getBlockDetailsByLatestOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - java.util.List - getBlkDetailsList(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - int getBlkDetailsCount(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - java.util.List - getBlkDetailsOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} - */ - public static final class rsp_getBlockDetailsByLatest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - rsp_getBlockDetailsByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockDetailsByLatest.newBuilder() to construct. - private rsp_getBlockDetailsByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockDetailsByLatest() { - blkDetails_ = java.util.Collections.emptyList(); - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlockDetailsByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blkDetails_.add( - input.readMessage(org.aion.api.server.pb.Message.t_BlockDetail.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int BLKDETAILS_FIELD_NUMBER = 1; - private java.util.List blkDetails_; - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List getBlkDetailsList() { - return blkDetails_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsOrBuilderList() { - return blkDetails_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public int getBlkDetailsCount() { - return blkDetails_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - return blkDetails_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - return blkDetails_.get(index); - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.req_getNonce parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkDetails_.size(); i++) { - output.writeMessage(1, blkDetails_.get(i)); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < blkDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blkDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) obj; - - boolean result = true; - result = result && getBlkDetailsList() - .equals(other.getBlkDetailsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkDetailsCount() > 0) { - hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getBlkDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBlkDetailsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest build() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(this); - int from_bitField0_ = bitField0_; - if (blkDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkDetails_ = blkDetails_; - } else { - result.blkDetails_ = blkDetailsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.getDefaultInstance()) return this; - if (blkDetailsBuilder_ == null) { - if (!other.blkDetails_.isEmpty()) { - if (blkDetails_.isEmpty()) { - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkDetailsIsMutable(); - blkDetails_.addAll(other.blkDetails_); - } - onChanged(); - } - } else { - if (!other.blkDetails_.isEmpty()) { - if (blkDetailsBuilder_.isEmpty()) { - blkDetailsBuilder_.dispose(); - blkDetailsBuilder_ = null; - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - blkDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlkDetailsFieldBuilder() : null; - } else { - blkDetailsBuilder_.addAllMessages(other.blkDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List blkDetails_ = - java.util.Collections.emptyList(); - private void ensureBlkDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = new java.util.ArrayList(blkDetails_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> blkDetailsBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List getBlkDetailsList() { - if (blkDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkDetails_); - } else { - return blkDetailsBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public int getBlkDetailsCount() { - if (blkDetailsBuilder_ == null) { - return blkDetails_.size(); - } else { - return blkDetailsBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, value); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addAllBlkDetails( - java.lang.Iterable values) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blkDetails_); - onChanged(); - } else { - blkDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder clearBlkDetails() { - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder removeBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.remove(index); - onChanged(); - } else { - blkDetailsBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); } else { - return blkDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsOrBuilderList() { - if (blkDetailsBuilder_ != null) { - return blkDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkDetails_); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { - return getBlkDetailsFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsBuilderList() { - return getBlkDetailsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - getBlkDetailsFieldBuilder() { - if (blkDetailsBuilder_ == null) { - blkDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( - blkDetails_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkDetails_ = null; - } - return blkDetailsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - } + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNonce prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlockDetailsByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockDetailsByLatest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getNonce} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNonce) + org.aion.api.server.pb.Message.req_getNonceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNonce.class, + org.aion.api.server.pb.Message.req_getNonce.Builder.class); + } - } - - public interface req_getBlocksByLatestOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlocksByLatest) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 count = 1; - */ - long getCount(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} - */ - public static final class req_getBlocksByLatest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlocksByLatest) - req_getBlocksByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlocksByLatest.newBuilder() to construct. - private req_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlocksByLatest() { - count_ = 0L; - } + // Construct using org.aion.api.server.pb.Message.req_getNonce.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlocksByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - count_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlocksByLatest.class, org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public static final int COUNT_FIELD_NUMBER = 1; - private long count_; - /** - * uint64 count = 1; - */ - public long getCount() { - return count_; - } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + return this; + } - memoizedIsInitialized = 1; - return true; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (count_ != 0L) { - output.writeUInt64(1, count_); - } - unknownFields.writeTo(output); - } + public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public org.aion.api.server.pb.Message.req_getNonce build() { + org.aion.api.server.pb.Message.req_getNonce result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlocksByLatest other = (org.aion.api.server.pb.Message.req_getBlocksByLatest) obj; - - boolean result = true; - result = result && (getCount() - == other.getCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.req_getNonce buildPartial() { + org.aion.api.server.pb.Message.req_getNonce result = + new org.aion.api.server.pb.Message.req_getNonce(this); + result.address_ = address_; + onBuilt(); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder clone() { + return (Builder) super.clone(); + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlocksByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlocksByLatest) - org.aion.api.server.pb.Message.req_getBlocksByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlocksByLatest.class, org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlocksByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - count_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlocksByLatest.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlocksByLatest build() { - org.aion.api.server.pb.Message.req_getBlocksByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlocksByLatest buildPartial() { - org.aion.api.server.pb.Message.req_getBlocksByLatest result = new org.aion.api.server.pb.Message.req_getBlocksByLatest(this); - result.count_ = count_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlocksByLatest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlocksByLatest other) { - if (other == org.aion.api.server.pb.Message.req_getBlocksByLatest.getDefaultInstance()) return this; - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlocksByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlocksByLatest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long count_ ; - /** - * uint64 count = 1; - */ - public long getCount() { - return count_; - } - /** - * uint64 count = 1; - */ - public Builder setCount(long value) { - - count_ = value; - onChanged(); - return this; - } - /** - * uint64 count = 1; - */ - public Builder clearCount() { - - count_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlocksByLatest) - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlocksByLatest) - private static final org.aion.api.server.pb.Message.req_getBlocksByLatest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlocksByLatest(); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlocksByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlocksByLatest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getNonce) { + return mergeFrom((org.aion.api.server.pb.Message.req_getNonce) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNonce other) { + if (other == org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance()) + return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final boolean isInitialized() { + return true; + } - } - - public interface rsp_getBlocksByLatestOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlocksByLatest) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - java.util.List - getBlksList(); - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - org.aion.api.server.pb.Message.t_Block getBlks(int index); - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - int getBlksCount(); - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - java.util.List - getBlksOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} - */ - public static final class rsp_getBlocksByLatest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) - rsp_getBlocksByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlocksByLatest.newBuilder() to construct. - private rsp_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlocksByLatest() { - blks_ = java.util.Collections.emptyList(); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getNonce parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getNonce) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlocksByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blks_.add( - input.readMessage(org.aion.api.server.pb.Message.t_Block.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = java.util.Collections.unmodifiableList(blks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - } + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** bytes address = 1; */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** bytes address = 1; */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** bytes address = 1; */ + public Builder clearAddress() { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); - } + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } - public static final int BLKS_FIELD_NUMBER = 1; - private java.util.List blks_; - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public java.util.List getBlksList() { - return blks_; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public java.util.List - getBlksOrBuilderList() { - return blks_; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public int getBlksCount() { - return blks_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public org.aion.api.server.pb.Message.t_Block getBlks(int index) { - return blks_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder( - int index) { - return blks_.get(index); - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNonce) + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blks_.size(); i++) { - output.writeMessage(1, blks_.get(i)); - } - unknownFields.writeTo(output); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNonce) + private static final org.aion.api.server.pb.Message.req_getNonce DEFAULT_INSTANCE; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < blks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blks_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNonce(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlocksByLatest other = (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) obj; - - boolean result = true; - result = result && getBlksList() - .equals(other.getBlksList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.req_getNonce getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlksCount() > 0) { - hash = (37 * hash) + BLKS_FIELD_NUMBER; - hash = (53 * hash) + getBlksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getNonce parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getNonce(input, extensionRegistry); + } + }; - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlocksByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) - org.aion.api.server.pb.Message.rsp_getBlocksByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlocksByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBlksFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (blksBuilder_ == null) { - blks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blksBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlocksByLatest.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest build() { - org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(this); - int from_bitField0_ = bitField0_; - if (blksBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = java.util.Collections.unmodifiableList(blks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blks_ = blks_; - } else { - result.blks_ = blksBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlocksByLatest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlocksByLatest other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlocksByLatest.getDefaultInstance()) return this; - if (blksBuilder_ == null) { - if (!other.blks_.isEmpty()) { - if (blks_.isEmpty()) { - blks_ = other.blks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlksIsMutable(); - blks_.addAll(other.blks_); - } - onChanged(); - } - } else { - if (!other.blks_.isEmpty()) { - if (blksBuilder_.isEmpty()) { - blksBuilder_.dispose(); - blksBuilder_ = null; - blks_ = other.blks_; - bitField0_ = (bitField0_ & ~0x00000001); - blksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlksFieldBuilder() : null; - } else { - blksBuilder_.addAllMessages(other.blks_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlocksByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List blks_ = - java.util.Collections.emptyList(); - private void ensureBlksIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = new java.util.ArrayList(blks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Block, org.aion.api.server.pb.Message.t_Block.Builder, org.aion.api.server.pb.Message.t_BlockOrBuilder> blksBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public java.util.List getBlksList() { - if (blksBuilder_ == null) { - return java.util.Collections.unmodifiableList(blks_); - } else { - return blksBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public int getBlksCount() { - if (blksBuilder_ == null) { - return blks_.size(); - } else { - return blksBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public org.aion.api.server.pb.Message.t_Block getBlks(int index) { - if (blksBuilder_ == null) { - return blks_.get(index); - } else { - return blksBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder setBlks( - int index, org.aion.api.server.pb.Message.t_Block value) { - if (blksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlksIsMutable(); - blks_.set(index, value); - onChanged(); - } else { - blksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder setBlks( - int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.set(index, builderForValue.build()); - onChanged(); - } else { - blksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder addBlks(org.aion.api.server.pb.Message.t_Block value) { - if (blksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlksIsMutable(); - blks_.add(value); - onChanged(); - } else { - blksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder addBlks( - int index, org.aion.api.server.pb.Message.t_Block value) { - if (blksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlksIsMutable(); - blks_.add(index, value); - onChanged(); - } else { - blksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder addBlks( - org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.add(builderForValue.build()); - onChanged(); - } else { - blksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder addBlks( - int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.add(index, builderForValue.build()); - onChanged(); - } else { - blksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder addAllBlks( - java.lang.Iterable values) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blks_); - onChanged(); - } else { - blksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder clearBlks() { - if (blksBuilder_ == null) { - blks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blksBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public Builder removeBlks(int index) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.remove(index); - onChanged(); - } else { - blksBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public org.aion.api.server.pb.Message.t_Block.Builder getBlksBuilder( - int index) { - return getBlksFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder( - int index) { - if (blksBuilder_ == null) { - return blks_.get(index); } else { - return blksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public java.util.List - getBlksOrBuilderList() { - if (blksBuilder_ != null) { - return blksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blks_); - } - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder() { - return getBlksFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder( - int index) { - return getBlksFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_Block blks = 1; - */ - public java.util.List - getBlksBuilderList() { - return getBlksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Block, org.aion.api.server.pb.Message.t_Block.Builder, org.aion.api.server.pb.Message.t_BlockOrBuilder> - getBlksFieldBuilder() { - if (blksBuilder_ == null) { - blksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Block, org.aion.api.server.pb.Message.t_Block.Builder, org.aion.api.server.pb.Message.t_BlockOrBuilder>( - blks_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blks_ = null; - } - return blksBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) + public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) - private static final org.aion.api.server.pb.Message.rsp_getBlocksByLatest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(); - } + public interface rsp_getNonceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNonce) + com.google.protobuf.MessageOrBuilder { - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstance() { - return DEFAULT_INSTANCE; + /** bytes nonce = 1; */ + com.google.protobuf.ByteString getNonce(); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} */ + public static final class rsp_getNonce extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNonce) + rsp_getNonceOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getNonce.newBuilder() to construct. + private rsp_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlocksByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlocksByLatest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private rsp_getNonce() { + nonce_ = com.google.protobuf.ByteString.EMPTY; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private rsp_getNonce( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: + { + nonce_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - } - - public interface req_getAccountDetailsByAddressListOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes addresses = 1; - */ - java.util.List getAddressesList(); - /** - * repeated bytes addresses = 1; - */ - int getAddressesCount(); - /** - * repeated bytes addresses = 1; - */ - com.google.protobuf.ByteString getAddresses(int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} - */ - public static final class req_getAccountDetailsByAddressList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - req_getAccountDetailsByAddressListOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getAccountDetailsByAddressList.newBuilder() to construct. - private req_getAccountDetailsByAddressList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getAccountDetailsByAddressList() { - addresses_ = java.util.Collections.emptyList(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getAccountDetailsByAddressList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - addresses_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNonce.class, + org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.Builder.class); - } + public static final int NONCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString nonce_; + /** bytes nonce = 1; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public static final int ADDRESSES_FIELD_NUMBER = 1; - private java.util.List addresses_; - /** - * repeated bytes addresses = 1; - */ - public java.util.List - getAddressesList() { - return addresses_; - } - /** - * repeated bytes addresses = 1; - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - * repeated bytes addresses = 1; - */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } + private byte memoizedIsInitialized = -1; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - memoizedIsInitialized = 1; - return true; - } + memoizedIsInitialized = 1; + return true; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < addresses_.size(); i++) { - output.writeBytes(1, addresses_.get(i)); - } - unknownFields.writeTo(output); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!nonce_.isEmpty()) { + output.writeBytes(1, nonce_); + } + unknownFields.writeTo(output); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < addresses_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(addresses_.get(i)); - } - size += dataSize; - size += 1 * getAddressesList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other = (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) obj; - - boolean result = true; - result = result && getAddressesList() - .equals(other.getAddressesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + size = 0; + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, nonce_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddressesCount() > 0) { - hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getAddressesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNonce)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getNonce other = + (org.aion.api.server.pb.Message.rsp_getNonce) obj; - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + boolean result = true; + result = result && getNonce().equals(other.getNonce()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - } - - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList build() { - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList buildPartial() { - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addresses_ = addresses_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) { - return mergeFrom((org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other) { - if (other == org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.getDefaultInstance()) return this; - if (!other.addresses_.isEmpty()) { - if (addresses_.isEmpty()) { - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddressesIsMutable(); - addresses_.addAll(other.addresses_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List addresses_ = java.util.Collections.emptyList(); - private void ensureAddressesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = new java.util.ArrayList(addresses_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes addresses = 1; - */ - public java.util.List - getAddressesList() { - return java.util.Collections.unmodifiableList(addresses_); - } - /** - * repeated bytes addresses = 1; - */ - public int getAddressesCount() { - return addresses_.size(); - } - /** - * repeated bytes addresses = 1; - */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } - /** - * repeated bytes addresses = 1; - */ - public Builder setAddresses( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes addresses = 1; - */ - public Builder addAddresses(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes addresses = 1; - */ - public Builder addAllAddresses( - java.lang.Iterable values) { - ensureAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addresses_); - onChanged(); - return this; - } - /** - * repeated bytes addresses = 1; - */ - public Builder clearAddresses() { - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - private static final org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(); - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getAccountDetailsByAddressList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getAccountDetailsByAddressList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - } - - public interface rsp_getAccountDetailsByAddressListOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - java.util.List - getAccountsList(); - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index); - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - int getAccountsCount(); - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - java.util.List - getAccountsOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} - */ - public static final class rsp_getAccountDetailsByAddressList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - rsp_getAccountDetailsByAddressListOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getAccountDetailsByAddressList.newBuilder() to construct. - private rsp_getAccountDetailsByAddressList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getAccountDetailsByAddressList() { - accounts_ = java.util.Collections.emptyList(); - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getAccountDetailsByAddressList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - accounts_.add( - input.readMessage(org.aion.api.server.pb.Message.t_AccountDetail.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.Builder.class); - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public static final int ACCOUNTS_FIELD_NUMBER = 1; - private java.util.List accounts_; - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public java.util.List getAccountsList() { - return accounts_; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public int getAccountsCount() { - return accounts_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { - return accounts_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - unknownFields.writeTo(output); - } + public Builder newBuilderForType() { + return newBuilder(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accounts_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other = (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) obj; - - boolean result = true; - result = result && getAccountsList() - .equals(other.getAccountsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNonce prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNonce) + org.aion.api.server.pb.Message.rsp_getNonceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNonce.class, + org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAccountsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - accountsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList build() { - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList buildPartial() { - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(this); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other) { - if (other == org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AccountDetail, org.aion.api.server.pb.Message.t_AccountDetail.Builder, org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> accountsBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder setAccounts( - int index, org.aion.api.server.pb.Message.t_AccountDetail value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder setAccounts( - int index, org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder addAccounts(org.aion.api.server.pb.Message.t_AccountDetail value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder addAccounts( - int index, org.aion.api.server.pb.Message.t_AccountDetail value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder addAccounts( - org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder addAccounts( - int index, org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public org.aion.api.server.pb.Message.t_AccountDetail.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AccountDetail, org.aion.api.server.pb.Message.t_AccountDetail.Builder, org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AccountDetail, org.aion.api.server.pb.Message.t_AccountDetail.Builder, org.aion.api.server.pb.Message.t_AccountDetailOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - } + // Construct using org.aion.api.server.pb.Message.rsp_getNonce.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - private static final org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getAccountDetailsByAddressList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getAccountDetailsByAddressList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder clear() { + super.clear(); + nonce_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + return this; + } - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + } - } - - public interface req_getBlockSqlByRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockSqlByRange) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blkNumberStart = 1; - */ - long getBlkNumberStart(); - - /** - * uint64 blkNumberEnd = 2; - */ - long getBlkNumberEnd(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} - */ - public static final class req_getBlockSqlByRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockSqlByRange) - req_getBlockSqlByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockSqlByRange.newBuilder() to construct. - private req_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockSqlByRange() { - blkNumberStart_ = 0L; - blkNumberEnd_ = 0L; - } + public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockSqlByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blkNumberStart_ = input.readUInt64(); - break; - } - case 16: { - - blkNumberEnd_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - } + public org.aion.api.server.pb.Message.rsp_getNonce build() { + org.aion.api.server.pb.Message.rsp_getNonce result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, org.aion.api.server.pb.Message.req_getBlockSqlByRange.Builder.class); - } + public org.aion.api.server.pb.Message.rsp_getNonce buildPartial() { + org.aion.api.server.pb.Message.rsp_getNonce result = + new org.aion.api.server.pb.Message.rsp_getNonce(this); + result.nonce_ = nonce_; + onBuilt(); + return result; + } - public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; - private long blkNumberStart_; - /** - * uint64 blkNumberStart = 1; - */ - public long getBlkNumberStart() { - return blkNumberStart_; - } + public Builder clone() { + return (Builder) super.clone(); + } - public static final int BLKNUMBEREND_FIELD_NUMBER = 2; - private long blkNumberEnd_; - /** - * uint64 blkNumberEnd = 2; - */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - memoizedIsInitialized = 1; - return true; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blkNumberStart_ != 0L) { - output.writeUInt64(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - output.writeUInt64(2, blkNumberEnd_); - } - unknownFields.writeTo(output); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blkNumberStart_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blkNumberEnd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockSqlByRange other = (org.aion.api.server.pb.Message.req_getBlockSqlByRange) obj; - - boolean result = true; - result = result && (getBlkNumberStart() - == other.getBlkNumberStart()); - result = result && (getBlkNumberEnd() - == other.getBlkNumberEnd()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getNonce) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getNonce) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlkNumberStart()); - hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlkNumberEnd()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNonce other) { + if (other == org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance()) + return this; + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final boolean isInitialized() { + return true; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockSqlByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getNonce parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getNonce) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockSqlByRange) - org.aion.api.server.pb.Message.req_getBlockSqlByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, org.aion.api.server.pb.Message.req_getBlockSqlByRange.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockSqlByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blkNumberStart_ = 0L; - - blkNumberEnd_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockSqlByRange.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockSqlByRange build() { - org.aion.api.server.pb.Message.req_getBlockSqlByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockSqlByRange buildPartial() { - org.aion.api.server.pb.Message.req_getBlockSqlByRange result = new org.aion.api.server.pb.Message.req_getBlockSqlByRange(this); - result.blkNumberStart_ = blkNumberStart_; - result.blkNumberEnd_ = blkNumberEnd_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockSqlByRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockSqlByRange other) { - if (other == org.aion.api.server.pb.Message.req_getBlockSqlByRange.getDefaultInstance()) return this; - if (other.getBlkNumberStart() != 0L) { - setBlkNumberStart(other.getBlkNumberStart()); - } - if (other.getBlkNumberEnd() != 0L) { - setBlkNumberEnd(other.getBlkNumberEnd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockSqlByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockSqlByRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blkNumberStart_ ; - /** - * uint64 blkNumberStart = 1; - */ - public long getBlkNumberStart() { - return blkNumberStart_; - } - /** - * uint64 blkNumberStart = 1; - */ - public Builder setBlkNumberStart(long value) { - - blkNumberStart_ = value; - onChanged(); - return this; - } - /** - * uint64 blkNumberStart = 1; - */ - public Builder clearBlkNumberStart() { - - blkNumberStart_ = 0L; - onChanged(); - return this; - } - - private long blkNumberEnd_ ; - /** - * uint64 blkNumberEnd = 2; - */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } - /** - * uint64 blkNumberEnd = 2; - */ - public Builder setBlkNumberEnd(long value) { - - blkNumberEnd_ = value; - onChanged(); - return this; - } - /** - * uint64 blkNumberEnd = 2; - */ - public Builder clearBlkNumberEnd() { - - blkNumberEnd_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockSqlByRange) - } + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** bytes nonce = 1; */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** bytes nonce = 1; */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** bytes nonce = 1; */ + public Builder clearNonce() { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockSqlByRange) - private static final org.aion.api.server.pb.Message.req_getBlockSqlByRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockSqlByRange(); - } + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockSqlByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockSqlByRange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNonce) + } - public org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNonce) + private static final org.aion.api.server.pb.Message.rsp_getNonce DEFAULT_INSTANCE; - } - - public interface rsp_getBlockSqlByRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockSqlByRange) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - java.util.List - getBlkSqlList(); - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index); - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - int getBlkSqlCount(); - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - java.util.List - getBlkSqlOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} - */ - public static final class rsp_getBlockSqlByRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) - rsp_getBlockSqlByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockSqlByRange.newBuilder() to construct. - private rsp_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockSqlByRange() { - blkSql_ = java.util.Collections.emptyList(); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNonce(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlockSqlByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blkSql_.add( - input.readMessage(org.aion.api.server.pb.Message.t_BlockSql.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = java.util.Collections.unmodifiableList(blkSql_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - } + public static org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstance() { + return DEFAULT_INSTANCE; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.Builder.class); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getNonce parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getNonce(input, extensionRegistry); + } + }; - public static final int BLKSQL_FIELD_NUMBER = 1; - private java.util.List blkSql_; - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public java.util.List getBlkSqlList() { - return blkSql_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public java.util.List - getBlkSqlOrBuilderList() { - return blkSql_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public int getBlkSqlCount() { - return blkSql_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { - return blkSql_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( - int index) { - return blkSql_.get(index); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; + public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkSql_.size(); i++) { - output.writeMessage(1, blkSql_.get(i)); - } - unknownFields.writeTo(output); - } + public interface req_getNrgPriceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNrgPrice) + com.google.protobuf.MessageOrBuilder {} + /** Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} */ + public static final class req_getNrgPrice extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNrgPrice) + req_getNrgPriceOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getNrgPrice.newBuilder() to construct. + private req_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < blkSql_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blkSql_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private req_getNrgPrice() {} - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other = (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) obj; - - boolean result = true; - result = result && getBlkSqlList() - .equals(other.getBlkSqlList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkSqlCount() > 0) { - hash = (37 * hash) + BLKSQL_FIELD_NUMBER; - hash = (53 * hash) + getBlkSqlList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private req_getNrgPrice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockSqlByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNrgPrice.class, + org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) - org.aion.api.server.pb.Message.rsp_getBlockSqlByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBlkSqlFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (blkSqlBuilder_ == null) { - blkSql_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkSqlBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange build() { - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(this); - int from_bitField0_ = bitField0_; - if (blkSqlBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = java.util.Collections.unmodifiableList(blkSql_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkSql_ = blkSql_; - } else { - result.blkSql_ = blkSqlBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockSqlByRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.getDefaultInstance()) return this; - if (blkSqlBuilder_ == null) { - if (!other.blkSql_.isEmpty()) { - if (blkSql_.isEmpty()) { - blkSql_ = other.blkSql_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkSqlIsMutable(); - blkSql_.addAll(other.blkSql_); - } - onChanged(); - } - } else { - if (!other.blkSql_.isEmpty()) { - if (blkSqlBuilder_.isEmpty()) { - blkSqlBuilder_.dispose(); - blkSqlBuilder_ = null; - blkSql_ = other.blkSql_; - bitField0_ = (bitField0_ & ~0x00000001); - blkSqlBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlkSqlFieldBuilder() : null; - } else { - blkSqlBuilder_.addAllMessages(other.blkSql_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List blkSql_ = - java.util.Collections.emptyList(); - private void ensureBlkSqlIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = new java.util.ArrayList(blkSql_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockSql, org.aion.api.server.pb.Message.t_BlockSql.Builder, org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> blkSqlBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public java.util.List getBlkSqlList() { - if (blkSqlBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkSql_); - } else { - return blkSqlBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public int getBlkSqlCount() { - if (blkSqlBuilder_ == null) { - return blkSql_.size(); - } else { - return blkSqlBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { - if (blkSqlBuilder_ == null) { - return blkSql_.get(index); - } else { - return blkSqlBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder setBlkSql( - int index, org.aion.api.server.pb.Message.t_BlockSql value) { - if (blkSqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkSqlIsMutable(); - blkSql_.set(index, value); - onChanged(); - } else { - blkSqlBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder setBlkSql( - int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.set(index, builderForValue.build()); - onChanged(); - } else { - blkSqlBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder addBlkSql(org.aion.api.server.pb.Message.t_BlockSql value) { - if (blkSqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkSqlIsMutable(); - blkSql_.add(value); - onChanged(); - } else { - blkSqlBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder addBlkSql( - int index, org.aion.api.server.pb.Message.t_BlockSql value) { - if (blkSqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkSqlIsMutable(); - blkSql_.add(index, value); - onChanged(); - } else { - blkSqlBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder addBlkSql( - org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.add(builderForValue.build()); - onChanged(); - } else { - blkSqlBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder addBlkSql( - int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.add(index, builderForValue.build()); - onChanged(); - } else { - blkSqlBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder addAllBlkSql( - java.lang.Iterable values) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blkSql_); - onChanged(); - } else { - blkSqlBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder clearBlkSql() { - if (blkSqlBuilder_ == null) { - blkSql_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkSqlBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public Builder removeBlkSql(int index) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.remove(index); - onChanged(); - } else { - blkSqlBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public org.aion.api.server.pb.Message.t_BlockSql.Builder getBlkSqlBuilder( - int index) { - return getBlkSqlFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( - int index) { - if (blkSqlBuilder_ == null) { - return blkSql_.get(index); } else { - return blkSqlBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public java.util.List - getBlkSqlOrBuilderList() { - if (blkSqlBuilder_ != null) { - return blkSqlBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkSql_); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder() { - return getBlkSqlFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder( - int index) { - return getBlkSqlFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; - */ - public java.util.List - getBlkSqlBuilderList() { - return getBlkSqlFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockSql, org.aion.api.server.pb.Message.t_BlockSql.Builder, org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> - getBlkSqlFieldBuilder() { - if (blkSqlBuilder_ == null) { - blkSqlBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockSql, org.aion.api.server.pb.Message.t_BlockSql.Builder, org.aion.api.server.pb.Message.t_BlockSqlOrBuilder>( - blkSql_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkSql_ = null; - } - return blkSqlBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) - } + private byte memoizedIsInitialized = -1; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) - private static final org.aion.api.server.pb.Message.rsp_getBlockSqlByRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlockSqlByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockSqlByRange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - } - - public interface req_getBlockDetailsByRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByRange) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 blkNumberStart = 1; - */ - long getBlkNumberStart(); - - /** - * uint64 blkNumberEnd = 2; - */ - long getBlkNumberEnd(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} - */ - public static final class req_getBlockDetailsByRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) - req_getBlockDetailsByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockDetailsByRange.newBuilder() to construct. - private req_getBlockDetailsByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockDetailsByRange() { - blkNumberStart_ = 0L; - blkNumberEnd_ = 0L; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getNrgPrice)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getNrgPrice other = + (org.aion.api.server.pb.Message.req_getNrgPrice) obj; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getBlockDetailsByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - blkNumberStart_ = input.readUInt64(); - break; - } - case 16: { - - blkNumberEnd_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - } + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.req_getBlockDetailsByRange.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; - private long blkNumberStart_; - /** - * uint64 blkNumberStart = 1; - */ - public long getBlkNumberStart() { - return blkNumberStart_; - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int BLKNUMBEREND_FIELD_NUMBER = 2; - private long blkNumberEnd_; - /** - * uint64 blkNumberEnd = 2; - */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blkNumberStart_ != 0L) { - output.writeUInt64(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - output.writeUInt64(2, blkNumberEnd_); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blkNumberStart_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, blkNumberEnd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockDetailsByRange other = (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) obj; - - boolean result = true; - result = result && (getBlkNumberStart() - == other.getBlkNumberStart()); - result = result && (getBlkNumberEnd() - == other.getBlkNumberEnd()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlkNumberStart()); - hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBlkNumberEnd()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockDetailsByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) - org.aion.api.server.pb.Message.req_getBlockDetailsByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.req_getBlockDetailsByRange.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockDetailsByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - blkNumberStart_ = 0L; - - blkNumberEnd_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockDetailsByRange.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange build() { - org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange buildPartial() { - org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(this); - result.blkNumberStart_ = blkNumberStart_; - result.blkNumberEnd_ = blkNumberEnd_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockDetailsByRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByRange other) { - if (other == org.aion.api.server.pb.Message.req_getBlockDetailsByRange.getDefaultInstance()) return this; - if (other.getBlkNumberStart() != 0L) { - setBlkNumberStart(other.getBlkNumberStart()); - } - if (other.getBlkNumberEnd() != 0L) { - setBlkNumberEnd(other.getBlkNumberEnd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockDetailsByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blkNumberStart_ ; - /** - * uint64 blkNumberStart = 1; - */ - public long getBlkNumberStart() { - return blkNumberStart_; - } - /** - * uint64 blkNumberStart = 1; - */ - public Builder setBlkNumberStart(long value) { - - blkNumberStart_ = value; - onChanged(); - return this; - } - /** - * uint64 blkNumberStart = 1; - */ - public Builder clearBlkNumberStart() { - - blkNumberStart_ = 0L; - onChanged(); - return this; - } - - private long blkNumberEnd_ ; - /** - * uint64 blkNumberEnd = 2; - */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } - /** - * uint64 blkNumberEnd = 2; - */ - public Builder setBlkNumberEnd(long value) { - - blkNumberEnd_ = value; - onChanged(); - return this; - } - /** - * uint64 blkNumberEnd = 2; - */ - public Builder clearBlkNumberEnd() { - - blkNumberEnd_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) - private static final org.aion.api.server.pb.Message.req_getBlockDetailsByRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(); - } + public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder newBuilderForType() { + return newBuilder(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getBlockDetailsByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockDetailsByRange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNrgPrice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - } - - public interface rsp_getBlockDetailsByRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - java.util.List - getBlkDetailsList(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - int getBlkDetailsCount(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - java.util.List - getBlkDetailsOrBuilderList(); - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} - */ - public static final class rsp_getBlockDetailsByRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - rsp_getBlockDetailsByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockDetailsByRange.newBuilder() to construct. - private rsp_getBlockDetailsByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockDetailsByRange() { - blkDetails_ = java.util.Collections.emptyList(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNrgPrice) + org.aion.api.server.pb.Message.req_getNrgPriceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getBlockDetailsByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blkDetails_.add( - input.readMessage(org.aion.api.server.pb.Message.t_BlockDetail.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNrgPrice.class, + org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.Builder.class); - } + // Construct using org.aion.api.server.pb.Message.req_getNrgPrice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int BLKDETAILS_FIELD_NUMBER = 1; - private java.util.List blkDetails_; - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List getBlkDetailsList() { - return blkDetails_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsOrBuilderList() { - return blkDetails_; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public int getBlkDetailsCount() { - return blkDetails_.size(); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - return blkDetails_.get(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - return blkDetails_.get(index); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - memoizedIsInitialized = 1; - return true; - } + public Builder clear() { + super.clear(); + return this; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkDetails_.size(); i++) { - output.writeMessage(1, blkDetails_.get(i)); - } - unknownFields.writeTo(output); - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < blkDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blkDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) obj; - - boolean result = true; - result = result && getBlkDetailsList() - .equals(other.getBlkDetailsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.req_getNrgPrice build() { + org.aion.api.server.pb.Message.req_getNrgPrice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkDetailsCount() > 0) { - hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getBlkDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public org.aion.api.server.pb.Message.req_getNrgPrice buildPartial() { + org.aion.api.server.pb.Message.req_getNrgPrice result = + new org.aion.api.server.pb.Message.req_getNrgPrice(this); + onBuilt(); + return result; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder clone() { + return (Builder) super.clone(); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBlkDetailsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange build() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(this); - int from_bitField0_ = bitField0_; - if (blkDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkDetails_ = blkDetails_; - } else { - result.blkDetails_ = blkDetailsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.getDefaultInstance()) return this; - if (blkDetailsBuilder_ == null) { - if (!other.blkDetails_.isEmpty()) { - if (blkDetails_.isEmpty()) { - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkDetailsIsMutable(); - blkDetails_.addAll(other.blkDetails_); - } - onChanged(); - } - } else { - if (!other.blkDetails_.isEmpty()) { - if (blkDetailsBuilder_.isEmpty()) { - blkDetailsBuilder_.dispose(); - blkDetailsBuilder_ = null; - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - blkDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlkDetailsFieldBuilder() : null; - } else { - blkDetailsBuilder_.addAllMessages(other.blkDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List blkDetails_ = - java.util.Collections.emptyList(); - private void ensureBlkDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = new java.util.ArrayList(blkDetails_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> blkDetailsBuilder_; - - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List getBlkDetailsList() { - if (blkDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkDetails_); - } else { - return blkDetailsBuilder_.getMessageList(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public int getBlkDetailsCount() { - if (blkDetailsBuilder_ == null) { - return blkDetails_.size(); - } else { - return blkDetailsBuilder_.getCount(); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessage(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, value); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder addAllBlkDetails( - java.lang.Iterable values) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blkDetails_); - onChanged(); - } else { - blkDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder clearBlkDetails() { - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public Builder removeBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.remove(index); - onChanged(); - } else { - blkDetailsBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().getBuilder(index); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); } else { - return blkDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsOrBuilderList() { - if (blkDetailsBuilder_ != null) { - return blkDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkDetails_); - } - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { - return getBlkDetailsFieldBuilder().addBuilder( - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().addBuilder( - index, org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; - */ - public java.util.List - getBlkDetailsBuilderList() { - return getBlkDetailsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - getBlkDetailsFieldBuilder() { - if (blkDetailsBuilder_ == null) { - blkDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( - blkDetails_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkDetails_ = null; - } - return blkDetailsBuilder_; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - } + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(); - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlockDetailsByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockDetailsByRange(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getNrgPrice) { + return mergeFrom((org.aion.api.server.pb.Message.req_getNrgPrice) other); + } else { + super.mergeFrom(other); + return this; + } + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNrgPrice other) { + if (other == org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - } - - public interface req_getNonceOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNonce) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes address = 1; - */ - com.google.protobuf.ByteString getAddress(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getNonce} - */ - public static final class req_getNonce extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNonce) - req_getNonceOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getNonce.newBuilder() to construct. - private req_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getNonce() { - address_ = com.google.protobuf.ByteString.EMPTY; - } + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getNonce( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - address_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getNrgPrice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.req_getNrgPrice) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNonce.class, org.aion.api.server.pb.Message.req_getNonce.Builder.class); - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNrgPrice) + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNrgPrice) + private static final org.aion.api.server.pb.Message.req_getNrgPrice DEFAULT_INSTANCE; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - unknownFields.writeTo(output); - } + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNrgPrice(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, address_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getNonce)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getNonce other = (org.aion.api.server.pb.Message.req_getNonce) obj; - - boolean result = true; - result = result && getAddress() - .equals(other.getAddress()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public req_getNrgPrice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getNrgPrice(input, extensionRegistry); + } + }; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNonce prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getNonce} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNonce) - org.aion.api.server.pb.Message.req_getNonceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNonce.class, org.aion.api.server.pb.Message.req_getNonce.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getNonce.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - } - - public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getNonce build() { - org.aion.api.server.pb.Message.req_getNonce result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getNonce buildPartial() { - org.aion.api.server.pb.Message.req_getNonce result = new org.aion.api.server.pb.Message.req_getNonce(this); - result.address_ = address_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getNonce) { - return mergeFrom((org.aion.api.server.pb.Message.req_getNonce)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNonce other) { - if (other == org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getNonce parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getNonce) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes address = 1; - */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** - * bytes address = 1; - */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** - * bytes address = 1; - */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNonce) - } + public interface rsp_getNrgPriceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNrgPrice) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNonce) - private static final org.aion.api.server.pb.Message.req_getNonce DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNonce(); + /** uint64 nrgPrice = 1; */ + long getNrgPrice(); } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} */ + public static final class rsp_getNrgPrice extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNrgPrice) + rsp_getNrgPriceOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getNrgPrice.newBuilder() to construct. + private rsp_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static org.aion.api.server.pb.Message.req_getNonce getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private rsp_getNrgPrice() { + nrgPrice_ = 0L; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getNonce parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getNonce(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private rsp_getNrgPrice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: + { + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } - } - - public interface rsp_getNonceOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNonce) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes nonce = 1; - */ - com.google.protobuf.ByteString getNonce(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} - */ - public static final class rsp_getNonce extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNonce) - rsp_getNonceOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getNonce.newBuilder() to construct. - private rsp_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getNonce() { - nonce_ = com.google.protobuf.ByteString.EMPTY; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNrgPrice.class, + org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getNonce( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - - nonce_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - } + public static final int NRGPRICE_FIELD_NUMBER = 1; + private long nrgPrice_; + /** uint64 nrgPrice = 1; */ + public long getNrgPrice() { + return nrgPrice_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNonce.class, org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); - } + private byte memoizedIsInitialized = -1; - public static final int NONCE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString nonce_; - /** - * bytes nonce = 1; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + memoizedIsInitialized = 1; + return true; + } - memoizedIsInitialized = 1; - return true; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nrgPrice_ != 0L) { + output.writeUInt64(1, nrgPrice_); + } + unknownFields.writeTo(output); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!nonce_.isEmpty()) { - output.writeBytes(1, nonce_); - } - unknownFields.writeTo(output); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, nonce_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + size = 0; + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNonce)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getNonce other = (org.aion.api.server.pb.Message.rsp_getNonce) obj; - - boolean result = true; - result = result && getNonce() - .equals(other.getNonce()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getNrgPrice other = + (org.aion.api.server.pb.Message.rsp_getNrgPrice) obj; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + boolean result = true; + result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNonce prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNonce) - org.aion.api.server.pb.Message.rsp_getNonceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNonce.class, org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getNonce.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - nonce_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getNonce build() { - org.aion.api.server.pb.Message.rsp_getNonce result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getNonce buildPartial() { - org.aion.api.server.pb.Message.rsp_getNonce result = new org.aion.api.server.pb.Message.rsp_getNonce(this); - result.nonce_ = nonce_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getNonce) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getNonce)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNonce other) { - if (other == org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance()) return this; - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getNonce parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getNonce) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes nonce = 1; - */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** - * bytes nonce = 1; - */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** - * bytes nonce = 1; - */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNonce) - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNonce) - private static final org.aion.api.server.pb.Message.rsp_getNonce DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNonce(); - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getNonce parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getNonce(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - } - - public interface req_getNrgPriceOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNrgPrice) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} - */ - public static final class req_getNrgPrice extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNrgPrice) - req_getNrgPriceOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getNrgPrice.newBuilder() to construct. - private req_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getNrgPrice() { - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private req_getNrgPrice( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNrgPrice.class, org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } + public Builder newBuilderForType() { + return newBuilder(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNrgPrice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getNrgPrice)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getNrgPrice other = (org.aion.api.server.pb.Message.req_getNrgPrice) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNrgPrice) + org.aion.api.server.pb.Message.rsp_getNrgPriceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNrgPrice.class, + org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNrgPrice prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using org.aion.api.server.pb.Message.rsp_getNrgPrice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNrgPrice) - org.aion.api.server.pb.Message.req_getNrgPriceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNrgPrice.class, org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getNrgPrice.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - } - - public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getNrgPrice build() { - org.aion.api.server.pb.Message.req_getNrgPrice result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getNrgPrice buildPartial() { - org.aion.api.server.pb.Message.req_getNrgPrice result = new org.aion.api.server.pb.Message.req_getNrgPrice(this); - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getNrgPrice) { - return mergeFrom((org.aion.api.server.pb.Message.req_getNrgPrice)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNrgPrice other) { - if (other == org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getNrgPrice parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.req_getNrgPrice) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNrgPrice) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNrgPrice) - private static final org.aion.api.server.pb.Message.req_getNrgPrice DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNrgPrice(); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - public static org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder clear() { + super.clear(); + nrgPrice_ = 0L; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public req_getNrgPrice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getNrgPrice(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return org.aion.api.server.pb.Message + .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } - public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance(); + } - } - - public interface rsp_getNrgPriceOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNrgPrice) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 nrgPrice = 1; - */ - long getNrgPrice(); - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} - */ - public static final class rsp_getNrgPrice extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNrgPrice) - rsp_getNrgPriceOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getNrgPrice.newBuilder() to construct. - private rsp_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getNrgPrice() { - nrgPrice_ = 0L; - } + public org.aion.api.server.pb.Message.rsp_getNrgPrice build() { + org.aion.api.server.pb.Message.rsp_getNrgPrice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private rsp_getNrgPrice( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - } + public org.aion.api.server.pb.Message.rsp_getNrgPrice buildPartial() { + org.aion.api.server.pb.Message.rsp_getNrgPrice result = + new org.aion.api.server.pb.Message.rsp_getNrgPrice(this); + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNrgPrice.class, org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); - } + public Builder clone() { + return (Builder) super.clone(); + } - public static final int NRGPRICE_FIELD_NUMBER = 1; - private long nrgPrice_; - /** - * uint64 nrgPrice = 1; - */ - public long getNrgPrice() { - return nrgPrice_; - } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } - memoizedIsInitialized = 1; - return true; - } + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nrgPrice_ != 0L) { - output.writeUInt64(1, nrgPrice_); - } - unknownFields.writeTo(output); - } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getNrgPrice other = (org.aion.api.server.pb.Message.rsp_getNrgPrice) obj; - - boolean result = true; - result = result && (getNrgPrice() - == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getNrgPrice) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNrgPrice other) { + if (other == org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance()) + return this; + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final boolean isInitialized() { + return true; + } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNrgPrice prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getNrgPrice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (org.aion.api.server.pb.Message.rsp_getNrgPrice) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNrgPrice) - org.aion.api.server.pb.Message.rsp_getNrgPriceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNrgPrice.class, org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getNrgPrice.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getNrgPrice build() { - org.aion.api.server.pb.Message.rsp_getNrgPrice result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getNrgPrice buildPartial() { - org.aion.api.server.pb.Message.rsp_getNrgPrice result = new org.aion.api.server.pb.Message.rsp_getNrgPrice(this); - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getNrgPrice)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNrgPrice other) { - if (other == org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance()) return this; - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getNrgPrice parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.rsp_getNrgPrice) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nrgPrice_ ; - /** - * uint64 nrgPrice = 1; - */ - public long getNrgPrice() { - return nrgPrice_; - } - /** - * uint64 nrgPrice = 1; - */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** - * uint64 nrgPrice = 1; - */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNrgPrice) - } + private long nrgPrice_; + /** uint64 nrgPrice = 1; */ + public long getNrgPrice() { + return nrgPrice_; + } + /** uint64 nrgPrice = 1; */ + public Builder setNrgPrice(long value) { - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNrgPrice) - private static final org.aion.api.server.pb.Message.rsp_getNrgPrice DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNrgPrice(); - } + nrgPrice_ = value; + onChanged(); + return this; + } + /** uint64 nrgPrice = 1; */ + public Builder clearNrgPrice() { - public static org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstance() { - return DEFAULT_INSTANCE; - } + nrgPrice_ = 0L; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getNrgPrice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getNrgPrice(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNrgPrice) + } + + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNrgPrice) + private static final org.aion.api.server.pb.Message.rsp_getNrgPrice DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNrgPrice(); + } + + public static org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public rsp_getNrgPrice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getNrgPrice(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Contract_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Node_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_EventCt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Block_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_compile_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getCode_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_call_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_call_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Key_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Contract_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_AionTx_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Node_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_EventCt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Block_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_compile_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getCode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_call_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_call_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_accountlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Key_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rmessage.proto\022\026org.aion.api.server.pb\"" + - "\234\001\n\nt_Contract\022\014\n\004code\030\001 \001(\t\022\r\n\005error\030\002 " + - "\001(\t\022\016\n\006source\030\003 \001(\t\022\027\n\017compilerVersion\030\004" + - " \001(\t\022\027\n\017compilerOptions\030\005 \001(\t\022\016\n\006abiDef\030" + - "\006 \001(\014\022\017\n\007userDoc\030\007 \001(\014\022\016\n\006devDoc\030\010 \001(\014\"\207" + - "\001\n\010t_AionTx\022\016\n\006txHash\030\001 \001(\014\022\014\n\004from\030\002 \001(" + - "\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(\014\022\014\n\004data\030\005 \001" + - "(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgConsumed\030\007 \001(\004\022\020" + - "\n\010nrgPrice\030\010 \001(\004\"n\n\006t_Node\022\023\n\013blockNumbe" + - "r\030\001 \001(\004\022\016\n\006nodeId\030\002 \001(\t\022\025\n\rremote_p2p_ip" + - "\030\003 \001(\t\022\027\n\017remote_p2p_port\030\004 \001(\r\022\017\n\007laten" + - "cy\030\005 \001(\r\"8\n\007t_LgEle\022\017\n\007address\030\001 \001(\014\022\014\n\004" + - "data\030\002 \001(\014\022\016\n\006topics\030\003 \003(\t\"s\n\nt_FilterCt" + - "\022\014\n\004from\030\001 \001(\t\022\n\n\002to\030\002 \001(\t\022\024\n\014contractAd" + - "dr\030\003 \001(\014\022\021\n\taddresses\030\004 \003(\014\022\016\n\006topics\030\005 " + - "\003(\t\022\022\n\nexpireTime\030\006 \001(\004\"\251\001\n\tt_EventCt\022\017\n" + - "\007address\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022\021\n\tblockHas" + - "h\030\003 \001(\014\022\023\n\013blockNumber\030\004 \001(\004\022\020\n\010logIndex" + - "\030\005 \001(\r\022\021\n\teventName\030\006 \001(\t\022\017\n\007removed\030\007 \001" + - "(\010\022\017\n\007txIndex\030\010 \001(\r\022\016\n\006txHash\030\t \001(\014\"\233\003\n\r" + - "t_BlockDetail\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tti" + - "mestamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nr" + - "gLimit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014mine" + - "rAddress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxT" + - "rieRoot\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021" + - "\n\tlogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n" + - "\017totalDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(" + - "\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004ha" + - "sh\030\020 \001(\014\022\014\n\004size\030\021 \001(\r\022.\n\002tx\030\022 \003(\0132\".org" + - ".aion.api.server.pb.t_TxDetail\022\021\n\tblockT" + - "ime\030\023 \001(\004\"\375\001\n\nt_TxDetail\022\016\n\006txHash\030\001 \001(\014" + - "\022\014\n\004from\030\002 \001(\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(" + - "\014\022\014\n\004data\030\005 \001(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgCon" + - "sumed\030\007 \001(\004\022\020\n\010nrgPrice\030\010 \001(\004\022\017\n\007txIndex" + - "\030\t \001(\r\022\020\n\010contract\030\n \001(\014\022-\n\004logs\030\013 \003(\0132\037" + - ".org.aion.api.server.pb.t_LgEle\022\021\n\ttimes" + - "tamp\030\014 \001(\004\022\r\n\005error\030\r \001(\t\"3\n\017t_AccountDe" + - "tail\022\017\n\007address\030\001 \001(\014\022\017\n\007balance\030\002 \001(\014\"\342" + - "\002\n\007t_Block\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" + - "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" + - "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" + - "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" + - "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" + - "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n\017to" + - "talDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(\014\022\r" + - "\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004hash\030" + - "\020 \001(\014\022\014\n\004size\030\021 \001(\r\022\016\n\006txHash\030\022 \003(\014\"c\n\nt" + - "_BlockSql\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tblockH" + - "ash\030\002 \001(\t\022\022\n\nparentHash\030\003 \001(\t\022\r\n\005block\030\004" + - " \001(\t\022\n\n\002tx\030\005 \003(\t\" \n\014rsp_errormsg\022\020\n\010erro" + - "rmsg\030\001 \001(\t\"v\n\023rsp_protocolVersion\022\016\n\006ker" + - "nel\030\001 \001(\t\022\013\n\003net\030\002 \001(\t\022\013\n\003api\030\003 \001(\t\022\n\n\002v" + - "m\030\004 \001(\t\022\n\n\002db\030\005 \001(\t\022\r\n\005miner\030\006 \001(\t\022\016\n\006tx" + - "pool\030\007 \001(\t\"%\n\020rsp_minerAddress\022\021\n\tminerA" + - "ddr\030\001 \001(\014\"+\n\024req_getBlockByNumber\022\023\n\013blo" + - "ckNumber\030\001 \001(\004\"\347\002\n\014rsp_getBlock\022\023\n\013block" + - "Number\030\001 \001(\004\022\021\n\ttimestamp\030\002 \001(\004\022\023\n\013nrgCo" + - "nsumed\030\003 \001(\004\022\020\n\010nrgLimit\030\004 \001(\004\022\022\n\nparent" + - "Hash\030\005 \001(\014\022\024\n\014minerAddress\030\006 \001(\014\022\021\n\tstat" + - "eRoot\030\007 \001(\014\022\022\n\ntxTrieRoot\030\010 \001(\014\022\027\n\017recei" + - "ptTrieRoot\030\t \001(\014\022\021\n\tlogsBloom\030\n \001(\014\022\022\n\nd" + - "ifficulty\030\013 \001(\014\022\027\n\017totalDifficulty\030\014 \001(\014" + - "\022\021\n\textraData\030\r \001(\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010so" + - "lution\030\017 \001(\014\022\014\n\004hash\030\020 \001(\014\022\014\n\004size\030\021 \001(\r" + - "\022\016\n\006txHash\030\022 \003(\014\"1\n\032req_getBlockHeaderBy" + - "Number\022\023\n\013blockNumber\030\001 \001(\004\"\304\002\n\022rsp_getB" + - "lockHeader\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" + - "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" + - "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" + - "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" + - "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" + - "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\021\n\tex" + - "traData\030\014 \001(\014\022\r\n\005nonce\030\r \001(\014\022\020\n\010solution" + - "\030\016 \001(\014\022\014\n\004hash\030\017 \001(\014\022\014\n\004size\030\020 \001(\r\"z\n\023re" + - "q_sendTransaction\022\014\n\004from\030\001 \001(\014\022\n\n\002to\030\002 " + - "\001(\014\022\r\n\005value\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005nonc" + - "e\030\005 \001(\014\022\013\n\003nrg\030\006 \001(\004\022\020\n\010nrgPrice\030\007 \001(\004\"%" + - "\n\023rsp_sendTransaction\022\016\n\006txHash\030\001 \001(\014\"*\n" + - "\030req_getTransactionByHash\022\016\n\006txHash\030\001 \001(" + - "\014\"\334\001\n\022rsp_getTransaction\022\017\n\007txIndex\030\001 \001(" + - "\r\022\023\n\013blocknumber\030\002 \001(\004\022\021\n\ttimeStamp\030\003 \001(" + - "\004\022\022\n\nnrgConsume\030\004 \001(\004\022\020\n\010nrgPrice\030\005 \001(\004\022" + - "\021\n\tblockhash\030\006 \001(\014\022\014\n\004from\030\007 \001(\014\022\016\n\006txHa" + - "sh\030\010 \001(\014\022\014\n\004data\030\t \001(\014\022\r\n\005nonce\030\n \001(\014\022\n\n" + - "\002to\030\013 \001(\014\022\r\n\005value\030\014 \001(\014\"H\n\021req_unlockAc" + - "count\022\017\n\007account\030\001 \001(\014\022\020\n\010password\030\002 \001(\t" + - "\022\020\n\010duration\030\003 \001(\r\"\036\n\014rsp_accounts\022\016\n\006ac" + - "cout\030\001 \003(\014\"\033\n\013req_compile\022\014\n\004code\030\001 \001(\t\"" + - "\255\001\n\013rsp_compile\022G\n\nconstracts\030\001 \003(\01323.or" + - "g.aion.api.server.pb.rsp_compile.Constra" + - "ctsEntry\032U\n\017ConstractsEntry\022\013\n\003key\030\001 \001(\t" + - "\0221\n\005value\030\002 \001(\0132\".org.aion.api.server.pb" + - ".t_Contract:\0028\001\"3\n\013req_getCode\022\017\n\007addres" + - "s\030\001 \001(\014\022\023\n\013blocknumber\030\002 \001(\004\"\033\n\013rsp_getC" + - "ode\022\014\n\004code\030\001 \001(\014\"c\n\022req_contractDeploy\022" + - "\020\n\010nrgLimit\030\001 \001(\004\022\020\n\010nrgPrice\030\002 \001(\004\022\014\n\004f" + - "rom\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005value\030\005 \001(\014\"=" + - "\n\022rsp_contractDeploy\022\016\n\006txHash\030\001 \001(\014\022\027\n\017" + - "contractAddress\030\002 \001(\014\"`\n\010req_call\022\014\n\004fro" + - "m\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\014\n\004data\030\003 \001(\014\022\r\n\005val" + - "ue\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 \001(\004\"" + - "\032\n\010rsp_call\022\016\n\006result\030\001 \001(\014\"\'\n\022req_getBl" + - "ockByHash\022\021\n\tblockHash\030\001 \001(\014\"-\n\030req_getB" + - "lockHeaderByHash\022\021\n\tblockHash\030\001 \001(\014\"?\n\027r" + - "eq_getTransactionCount\022\017\n\007address\030\001 \001(\014\022" + - "\023\n\013blocknumber\030\002 \001(\004\"*\n\027rsp_getTransacti" + - "onCount\022\017\n\007txCount\030\001 \001(\004\"/\n\035req_getTrans" + - "actionCountByHash\022\016\n\006txHash\030\001 \001(\014\"&\n\017rsp" + - "_blockNumber\022\023\n\013blocknumber\030\001 \001(\004\"6\n\016req" + - "_getBalance\022\017\n\007address\030\001 \001(\014\022\023\n\013blockNum" + - "ber\030\002 \001(\004\"!\n\016rsp_getBalance\022\017\n\007balance\030\001" + - " \001(\014\"E\n\020req_getStorageAt\022\017\n\007address\030\001 \001(" + - "\014\022\013\n\003key\030\002 \001(\t\022\023\n\013blocknumber\030\003 \001(\004\"#\n\020r" + - "sp_getStorageAt\022\017\n\007storage\030\001 \001(\t\"7\n\"req_" + - "getBlockTransactionCountByHash\022\021\n\tblockH" + - "ash\030\001 \001(\014\"/\n\034rsp_getBlockTransactionCoun" + - "t\022\017\n\007txCount\030\001 \001(\r\";\n$req_getBlockTransa" + - "ctionCountByNumber\022\023\n\013blockNumber\030\001 \001(\004\"" + - "K\n%req_getTransactionByBlockHashAndIndex" + - "\022\021\n\tblockHash\030\001 \001(\014\022\017\n\007txIndex\030\002 \001(\r\"O\n\'" + - "req_getTransactionByBlockNumberAndIndex\022" + - "\023\n\013blockNumber\030\001 \001(\004\022\017\n\007txIndex\030\002 \001(\r\"+\n" + - "\031req_getTransactionReceipt\022\016\n\006txHash\030\001 \001" + - "(\014\"\366\001\n\031rsp_getTransactionReceipt\022\017\n\007txIn" + - "dex\030\001 \001(\r\022\023\n\013blockNumber\030\002 \001(\004\022\023\n\013nrgCon" + - "sumed\030\003 \001(\004\022\031\n\021cumulativeNrgUsed\030\004 \001(\004\022\021" + - "\n\tblockHash\030\005 \001(\014\022\016\n\006txHash\030\006 \001(\014\022\014\n\004fro" + - "m\030\007 \001(\014\022\n\n\002to\030\010 \001(\014\022\027\n\017contractAddress\030\t" + - " \001(\014\022-\n\004logs\030\n \003(\0132\037.org.aion.api.server" + - ".pb.t_LgEle\"C\n\037req_getUncleByBlockHashAn" + - "dIndex\022\021\n\tblockHash\030\001 \001(\014\022\r\n\005index\030\002 \001(\r" + - "\"$\n\020rsp_getCompilers\022\020\n\010compiler\030\001 \003(\t\"%" + - "\n\023req_compileSolidity\022\016\n\006source\030\001 \001(\t\"U\n" + - "\023rsp_compileSolidity\022\014\n\004code\030\001 \001(\t\0220\n\004in" + - "fo\030\002 \001(\0132\".org.aion.api.server.pb.t_Cont" + - "ract\"\033\n\013rsp_getWork\022\014\n\004work\030\001 \003(\t\"A\n\016req" + - "_submitWork\022\r\n\005nonce\030\001 \001(\014\022\020\n\010solution\030\002" + - " \001(\014\022\016\n\006digest\030\003 \001(\014\"&\n\016rsp_submitWork\022\024" + - "\n\014workAccepted\030\001 \001(\010\"K\n\033rsp_fetchQueuedT" + - "ransactions\022,\n\002tx\030\001 \003(\0132 .org.aion.api.s" + - "erver.pb.t_AionTx\"\'\n\022req_rawTransaction\022" + - "\021\n\tencodedTx\030\001 \001(\014\"g\n\017req_estimateNrg\022\014\n" + - "\004from\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022\014" + - "\n\004data\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 " + - "\001(\004\"\036\n\017rsp_estimateNrg\022\013\n\003nrg\030\001 \001(\004\"\034\n\nr" + - "sp_mining\022\016\n\006mining\030\001 \001(\010\"J\n\013rsp_syncing" + - "\022\017\n\007syncing\030\001 \001(\010\022\024\n\014currentBlock\030\002 \001(\004\022" + - "\024\n\014highestBlock\030\003 \001(\004\" \n\014rsp_hashrate\022\020\n" + - "\010hashrate\030\001 \001(\004\"B\n\022rsp_getActiveNodes\022,\n" + - "\004node\030\001 \003(\0132\036.org.aion.api.server.pb.t_N" + - "ode\"B\n\022rsp_getStaticNodes\022,\n\004node\030\001 \003(\0132" + - "\036.org.aion.api.server.pb.t_Node\"!\n\022rsp_g" + - "etSolcVersion\022\013\n\003ver\030\001 \001(\t\" \n\rrsp_isSync" + - "ing\022\017\n\007syncing\030\001 \001(\010\"j\n\014rsp_syncInfo\022\017\n\007" + - "syncing\030\001 \001(\010\022\030\n\020networkBestBlock\030\002 \001(\004\022" + - "\026\n\016chainBestBlock\030\003 \001(\004\022\027\n\017maxImportBloc" + - "ks\030\004 \001(\r\"G\n\016rsp_systemInfo\022\020\n\010cpuUsage\030\001" + - " \001(\002\022\023\n\013memoryUsage\030\002 \001(\004\022\016\n\006DBSize\030\003 \001(" + - "\004\"W\n\021req_eventRegister\022\016\n\006events\030\001 \003(\t\0222" + - "\n\006filter\030\002 \001(\0132\".org.aion.api.server.pb." + - "t_FilterCt\"#\n\021rsp_eventRegister\022\016\n\006resul" + - "t\030\001 \001(\010\";\n\023req_eventDeregister\022\016\n\006events" + - "\030\001 \003(\t\022\024\n\014contractAddr\030\002 \001(\014\"%\n\023rsp_even" + - "tDeregister\022\016\n\006result\030\001 \001(\010\"D\n\023rsp_Event" + - "CtCallback\022-\n\002ec\030\001 \003(\0132!.org.aion.api.se" + - "rver.pb.t_EventCt\"9\n\021req_accountCreate\022\020" + - "\n\010password\030\001 \003(\t\022\022\n\nprivateKey\030\002 \001(\010\"8\n\021" + - "rsp_accountCreate\022\017\n\007address\030\001 \003(\014\022\022\n\npr" + - "ivateKey\030\002 \003(\014\"4\n\017req_accountlock\022\017\n\007acc" + - "ount\030\001 \001(\014\022\020\n\010password\030\002 \001(\t\"!\n\017rsp_acco" + - "untlock\022\016\n\006locked\030\001 \001(\010\"7\n\021req_userPrivi" + - "lege\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t" + - "\"&\n\021rsp_userPrivilege\022\021\n\tprivilege\030\001 \003(\t" + - "\"G\n\021req_queryCtEvents\0222\n\006filter\030\001 \001(\0132\"." + - "org.aion.api.server.pb.t_FilterCt\"B\n\021rsp" + - "_queryCtEvents\022-\n\002ec\030\001 \003(\0132!.org.aion.ap" + - "i.server.pb.t_EventCt\"4\n\014t_PrivateKey\022\022\n" + - "\nprivateKey\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"N\n\022r" + - "eq_importAccounts\0228\n\nprivateKey\030\001 \003(\0132$." + - "org.aion.api.server.pb.t_PrivateKey\"(\n\022r" + - "sp_importAccounts\022\022\n\ninvalidKey\030\001 \003(\t\"*\n" + - "\005t_Key\022\017\n\007address\030\001 \001(\014\022\020\n\010password\030\002 \001(" + - "\t\"D\n\022req_exportAccounts\022.\n\007keyFile\030\001 \003(\013" + - "2\035.org.aion.api.server.pb.t_Key\"8\n\022rsp_e" + - "xportAccounts\022\017\n\007keyFile\030\001 \003(\014\022\021\n\tfailed" + - "Key\030\002 \003(\014\"2\n\035rsp_getCurrentTotalDifficul" + - "ty\022\021\n\ttotalDiff\030\001 \001(\014\"1\n\033req_getBlockDet" + - "ailsByNumber\022\022\n\nblkNumbers\030\001 \003(\004\"X\n\033rsp_" + - "getBlockDetailsByNumber\0229\n\nblkDetails\030\001 " + - "\003(\0132%.org.aion.api.server.pb.t_BlockDeta" + - "il\",\n\033req_getBlockDetailsByLatest\022\r\n\005cou" + - "nt\030\001 \001(\004\"X\n\033rsp_getBlockDetailsByLatest\022" + - "9\n\nblkDetails\030\001 \003(\0132%.org.aion.api.serve" + - "r.pb.t_BlockDetail\"&\n\025req_getBlocksByLat" + - "est\022\r\n\005count\030\001 \001(\004\"F\n\025rsp_getBlocksByLat" + - "est\022-\n\004blks\030\001 \003(\0132\037.org.aion.api.server." + - "pb.t_Block\"7\n\"req_getAccountDetailsByAdd" + - "ressList\022\021\n\taddresses\030\001 \003(\014\"_\n\"rsp_getAc" + - "countDetailsByAddressList\0229\n\010accounts\030\001 " + - "\003(\0132\'.org.aion.api.server.pb.t_AccountDe" + - "tail\"F\n\026req_getBlockSqlByRange\022\026\n\016blkNum" + - "berStart\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"L\n\026" + - "rsp_getBlockSqlByRange\0222\n\006blkSql\030\001 \003(\0132\"" + - ".org.aion.api.server.pb.t_BlockSql\"J\n\032re" + - "q_getBlockDetailsByRange\022\026\n\016blkNumberSta" + - "rt\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"W\n\032rsp_ge" + - "tBlockDetailsByRange\0229\n\nblkDetails\030\001 \003(\013" + - "2%.org.aion.api.server.pb.t_BlockDetail\"" + - "\037\n\014req_getNonce\022\017\n\007address\030\001 \001(\014\"\035\n\014rsp_" + - "getNonce\022\r\n\005nonce\030\001 \001(\014\"\021\n\017req_getNrgPri" + - "ce\"#\n\017rsp_getNrgPrice\022\020\n\010nrgPrice\030\001 \001(\004*" + - "\204\001\n\005Servs\022\010\n\004s_hb\020\000\022\013\n\007s_admin\020\001\022\013\n\007s_ch" + - "ain\020\002\022\r\n\ts_account\020\003\022\010\n\004s_tx\020\004\022\t\n\005s_net\020" + - "\005\022\n\n\006s_mine\020\006\022\017\n\013s_privilege\020\007\022\014\n\010s_wall" + - "et\020\010\022\010\n\004s_NA\020\t*\310\n\n\005Funcs\022\025\n\021f_protocolVe" + - "rsion\020\000\022\022\n\016f_minerAddress\020\001\022\016\n\nf_account" + - "s\020\002\022\021\n\rf_blockNumber\020\003\022\020\n\014f_getBalance\020\004" + - "\022\022\n\016f_getStorageAt\020\005\022\023\n\017f_unlockAccount\020" + - "\006\022\025\n\021f_sendTransaction\020\007\022\032\n\026f_getTransac" + - "tionByHash\020\010\022\r\n\tf_compile\020\t\022\024\n\020f_contrac" + - "tDeploy\020\n\022\031\n\025f_getTransactionCount\020\013\022$\n " + - "f_getBlockTransactionCountByHash\020\014\022&\n\"f_" + - "getBlockTransactionCountByNumber\020\r\022\r\n\tf_" + - "getCode\020\016\022\n\n\006f_call\020\017\022\024\n\020f_getBlockByHas" + - "h\020\020\022\026\n\022f_getBlockByNumber\020\021\022\'\n#f_getTran" + - "sactionByBlockHashAndIndex\020\022\022)\n%f_getTra" + - "nsactionByBlockNumberAndIndex\020\023\022\033\n\027f_get" + - "TransactionReceipt\020\024\022\022\n\016f_getCompilers\020\025" + - "\022\025\n\021f_compileSolidity\020\026\022\r\n\tf_getWork\020\027\022\020" + - "\n\014f_submitWork\020\030\022\035\n\031f_fetchQueuedTransac" + - "tions\020\031\022\027\n\023f_signedTransaction\020\032\022\024\n\020f_ra" + - "wTransaction\020\033\022\021\n\rf_estimateNrg\020\034\022\014\n\010f_m" + - "ining\020\035\022\016\n\nf_hashrate\020\036\022\024\n\020f_getActiveNo" + - "des\020\037\022\024\n\020f_getSolcVersion\020 \022\017\n\013f_isSynci" + - "ng\020!\022\016\n\nf_syncInfo\020\"\022\023\n\017f_getSystemInfo\020" + - "#\022\023\n\017f_eventRegister\020$\022\025\n\021f_eventDeregis" + - "ter\020%\022\023\n\017f_accountCreate\020&\022\021\n\rf_accountL" + - "ock\020\'\022\023\n\017f_userPrivilege\020(\022\020\n\014f_eventQue" + - "ry\020)\022\024\n\020f_importAccounts\020*\022\024\n\020f_exportAc" + - "counts\020+\022\034\n\030f_getBlockHeaderByNumber\020,\022\032" + - "\n\026f_getBlockHeaderByHash\020-\022\037\n\033f_getCurre" + - "ntTotalDifficulty\020.\022\024\n\020f_getStaticNodes\020" + - "/\022\035\n\031f_getBlockDetailsByNumber\0200\022\035\n\031f_ge" + - "tBlockDetailsByLatest\0201\022\027\n\023f_getBlocksBy" + - "Latest\0202\022$\n f_getAccountDetailsByAddress" + - "List\0203\022\024\n\020f_backupAccounts\0204\022\010\n\004f_NA\0205\022\030" + - "\n\024f_getBlockSqlByRange\0206\022\034\n\030f_getBlockDe" + - "tailsByRange\0207\022\016\n\nf_getNonce\0208\022\021\n\rf_getN" + - "rgPrice\0209*\241\007\n\007Retcode\022\n\n\006r_fail\020\000\022\r\n\tr_s" + - "uccess\020\001\022\023\n\017r_wallet_nullcb\020\002\022\025\n\021r_heart" + - "beatReturn\020\003\022\025\n\021r_privilegeReturn\020\004\022\r\n\tr" + - "_tx_Init\020d\022\017\n\013r_tx_Recved\020e\022\020\n\014r_tx_Drop" + - "ped\020f\022\023\n\017r_tx_NewPending\020g\022\020\n\014r_tx_Pendi" + - "ng\020h\022\021\n\rr_tx_Included\020i\022\020\n\014r_tx_eventCb\020" + - "j\022\010\n\004r_NA\020k\022\036\n\021r_fail_header_len\020\377\377\377\377\377\377\377" + - "\377\377\001\022 \n\023r_fail_service_call\020\376\377\377\377\377\377\377\377\377\001\022!\n" + - "\024r_fail_function_call\020\375\377\377\377\377\377\377\377\377\001\022&\n\031r_fa" + - "il_function_exception\020\374\377\377\377\377\377\377\377\377\001\022\037\n\022r_fa" + - "il_api_version\020\373\377\377\377\377\377\377\377\377\001\022\037\n\022r_fail_ct_b" + - "ytecode\020\372\377\377\377\377\377\377\377\377\001\022\034\n\017r_fail_null_rsp\020\371\377" + - "\377\377\377\377\377\377\377\001\022 \n\023r_fail_invalid_addr\020\370\377\377\377\377\377\377\377" + - "\377\001\022\'\n\032r_fail_null_compile_source\020\367\377\377\377\377\377\377" + - "\377\377\001\022$\n\027r_fail_compile_contract\020\366\377\377\377\377\377\377\377\377" + - "\001\022#\n\026r_fail_sendTx_null_rep\020\365\377\377\377\377\377\377\377\377\001\022\036" + - "\n\021r_fail_getcode_to\020\364\377\377\377\377\377\377\377\377\001\022*\n\035r_fail" + - "_getTxReceipt_null_recp\020\363\377\377\377\377\377\377\377\377\001\022(\n\033r_" + - "fail_zmqHandler_exception\020\362\377\377\377\377\377\377\377\377\001\022(\n\033" + - "r_fail_hit_pending_tx_limit\020\361\377\377\377\377\377\377\377\377\001\022%" + - "\n\030r_fail_txqueue_exception\020\360\377\377\377\377\377\377\377\377\001\022&\n" + - "\031r_fail_function_arguments\020\357\377\377\377\377\377\377\377\377\001\022!\n" + - "\024r_fail_unsupport_api\020\356\377\377\377\377\377\377\377\377\001\022\033\n\016r_fa" + - "il_unknown\020\355\377\377\377\377\377\377\377\377\001b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } + static { + java.lang.String[] descriptorData = { + "\n\rmessage.proto\022\026org.aion.api.server.pb\"" + + "\234\001\n\nt_Contract\022\014\n\004code\030\001 \001(\t\022\r\n\005error\030\002 " + + "\001(\t\022\016\n\006source\030\003 \001(\t\022\027\n\017compilerVersion\030\004" + + " \001(\t\022\027\n\017compilerOptions\030\005 \001(\t\022\016\n\006abiDef\030" + + "\006 \001(\014\022\017\n\007userDoc\030\007 \001(\014\022\016\n\006devDoc\030\010 \001(\014\"\207" + + "\001\n\010t_AionTx\022\016\n\006txHash\030\001 \001(\014\022\014\n\004from\030\002 \001(" + + "\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(\014\022\014\n\004data\030\005 \001" + + "(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgConsumed\030\007 \001(\004\022\020" + + "\n\010nrgPrice\030\010 \001(\004\"n\n\006t_Node\022\023\n\013blockNumbe" + + "r\030\001 \001(\004\022\016\n\006nodeId\030\002 \001(\t\022\025\n\rremote_p2p_ip" + + "\030\003 \001(\t\022\027\n\017remote_p2p_port\030\004 \001(\r\022\017\n\007laten" + + "cy\030\005 \001(\r\"8\n\007t_LgEle\022\017\n\007address\030\001 \001(\014\022\014\n\004" + + "data\030\002 \001(\014\022\016\n\006topics\030\003 \003(\t\"s\n\nt_FilterCt" + + "\022\014\n\004from\030\001 \001(\t\022\n\n\002to\030\002 \001(\t\022\024\n\014contractAd" + + "dr\030\003 \001(\014\022\021\n\taddresses\030\004 \003(\014\022\016\n\006topics\030\005 " + + "\003(\t\022\022\n\nexpireTime\030\006 \001(\004\"\251\001\n\tt_EventCt\022\017\n" + + "\007address\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022\021\n\tblockHas" + + "h\030\003 \001(\014\022\023\n\013blockNumber\030\004 \001(\004\022\020\n\010logIndex" + + "\030\005 \001(\r\022\021\n\teventName\030\006 \001(\t\022\017\n\007removed\030\007 \001" + + "(\010\022\017\n\007txIndex\030\010 \001(\r\022\016\n\006txHash\030\t \001(\014\"\233\003\n\r" + + "t_BlockDetail\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tti" + + "mestamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nr" + + "gLimit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014mine" + + "rAddress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxT" + + "rieRoot\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021" + + "\n\tlogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n" + + "\017totalDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(" + + "\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004ha" + + "sh\030\020 \001(\014\022\014\n\004size\030\021 \001(\r\022.\n\002tx\030\022 \003(\0132\".org" + + ".aion.api.server.pb.t_TxDetail\022\021\n\tblockT" + + "ime\030\023 \001(\004\"\375\001\n\nt_TxDetail\022\016\n\006txHash\030\001 \001(\014" + + "\022\014\n\004from\030\002 \001(\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(" + + "\014\022\014\n\004data\030\005 \001(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgCon" + + "sumed\030\007 \001(\004\022\020\n\010nrgPrice\030\010 \001(\004\022\017\n\007txIndex" + + "\030\t \001(\r\022\020\n\010contract\030\n \001(\014\022-\n\004logs\030\013 \003(\0132\037" + + ".org.aion.api.server.pb.t_LgEle\022\021\n\ttimes" + + "tamp\030\014 \001(\004\022\r\n\005error\030\r \001(\t\"3\n\017t_AccountDe" + + "tail\022\017\n\007address\030\001 \001(\014\022\017\n\007balance\030\002 \001(\014\"\342" + + "\002\n\007t_Block\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" + + "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" + + "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" + + "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" + + "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" + + "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n\017to" + + "talDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(\014\022\r" + + "\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004hash\030" + + "\020 \001(\014\022\014\n\004size\030\021 \001(\r\022\016\n\006txHash\030\022 \003(\014\"c\n\nt" + + "_BlockSql\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tblockH" + + "ash\030\002 \001(\t\022\022\n\nparentHash\030\003 \001(\t\022\r\n\005block\030\004" + + " \001(\t\022\n\n\002tx\030\005 \003(\t\" \n\014rsp_errormsg\022\020\n\010erro" + + "rmsg\030\001 \001(\t\"v\n\023rsp_protocolVersion\022\016\n\006ker" + + "nel\030\001 \001(\t\022\013\n\003net\030\002 \001(\t\022\013\n\003api\030\003 \001(\t\022\n\n\002v" + + "m\030\004 \001(\t\022\n\n\002db\030\005 \001(\t\022\r\n\005miner\030\006 \001(\t\022\016\n\006tx" + + "pool\030\007 \001(\t\"%\n\020rsp_minerAddress\022\021\n\tminerA" + + "ddr\030\001 \001(\014\"+\n\024req_getBlockByNumber\022\023\n\013blo" + + "ckNumber\030\001 \001(\004\"\347\002\n\014rsp_getBlock\022\023\n\013block" + + "Number\030\001 \001(\004\022\021\n\ttimestamp\030\002 \001(\004\022\023\n\013nrgCo" + + "nsumed\030\003 \001(\004\022\020\n\010nrgLimit\030\004 \001(\004\022\022\n\nparent" + + "Hash\030\005 \001(\014\022\024\n\014minerAddress\030\006 \001(\014\022\021\n\tstat" + + "eRoot\030\007 \001(\014\022\022\n\ntxTrieRoot\030\010 \001(\014\022\027\n\017recei" + + "ptTrieRoot\030\t \001(\014\022\021\n\tlogsBloom\030\n \001(\014\022\022\n\nd" + + "ifficulty\030\013 \001(\014\022\027\n\017totalDifficulty\030\014 \001(\014" + + "\022\021\n\textraData\030\r \001(\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010so" + + "lution\030\017 \001(\014\022\014\n\004hash\030\020 \001(\014\022\014\n\004size\030\021 \001(\r" + + "\022\016\n\006txHash\030\022 \003(\014\"1\n\032req_getBlockHeaderBy" + + "Number\022\023\n\013blockNumber\030\001 \001(\004\"\304\002\n\022rsp_getB" + + "lockHeader\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" + + "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" + + "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" + + "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" + + "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" + + "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\021\n\tex" + + "traData\030\014 \001(\014\022\r\n\005nonce\030\r \001(\014\022\020\n\010solution" + + "\030\016 \001(\014\022\014\n\004hash\030\017 \001(\014\022\014\n\004size\030\020 \001(\r\"z\n\023re" + + "q_sendTransaction\022\014\n\004from\030\001 \001(\014\022\n\n\002to\030\002 " + + "\001(\014\022\r\n\005value\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005nonc" + + "e\030\005 \001(\014\022\013\n\003nrg\030\006 \001(\004\022\020\n\010nrgPrice\030\007 \001(\004\"%" + + "\n\023rsp_sendTransaction\022\016\n\006txHash\030\001 \001(\014\"*\n" + + "\030req_getTransactionByHash\022\016\n\006txHash\030\001 \001(" + + "\014\"\334\001\n\022rsp_getTransaction\022\017\n\007txIndex\030\001 \001(" + + "\r\022\023\n\013blocknumber\030\002 \001(\004\022\021\n\ttimeStamp\030\003 \001(" + + "\004\022\022\n\nnrgConsume\030\004 \001(\004\022\020\n\010nrgPrice\030\005 \001(\004\022" + + "\021\n\tblockhash\030\006 \001(\014\022\014\n\004from\030\007 \001(\014\022\016\n\006txHa" + + "sh\030\010 \001(\014\022\014\n\004data\030\t \001(\014\022\r\n\005nonce\030\n \001(\014\022\n\n" + + "\002to\030\013 \001(\014\022\r\n\005value\030\014 \001(\014\"H\n\021req_unlockAc" + + "count\022\017\n\007account\030\001 \001(\014\022\020\n\010password\030\002 \001(\t" + + "\022\020\n\010duration\030\003 \001(\r\"\036\n\014rsp_accounts\022\016\n\006ac" + + "cout\030\001 \003(\014\"\033\n\013req_compile\022\014\n\004code\030\001 \001(\t\"" + + "\255\001\n\013rsp_compile\022G\n\nconstracts\030\001 \003(\01323.or" + + "g.aion.api.server.pb.rsp_compile.Constra" + + "ctsEntry\032U\n\017ConstractsEntry\022\013\n\003key\030\001 \001(\t" + + "\0221\n\005value\030\002 \001(\0132\".org.aion.api.server.pb" + + ".t_Contract:\0028\001\"3\n\013req_getCode\022\017\n\007addres" + + "s\030\001 \001(\014\022\023\n\013blocknumber\030\002 \001(\004\"\033\n\013rsp_getC" + + "ode\022\014\n\004code\030\001 \001(\014\"c\n\022req_contractDeploy\022" + + "\020\n\010nrgLimit\030\001 \001(\004\022\020\n\010nrgPrice\030\002 \001(\004\022\014\n\004f" + + "rom\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005value\030\005 \001(\014\"=" + + "\n\022rsp_contractDeploy\022\016\n\006txHash\030\001 \001(\014\022\027\n\017" + + "contractAddress\030\002 \001(\014\"`\n\010req_call\022\014\n\004fro" + + "m\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\014\n\004data\030\003 \001(\014\022\r\n\005val" + + "ue\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 \001(\004\"" + + "\032\n\010rsp_call\022\016\n\006result\030\001 \001(\014\"\'\n\022req_getBl" + + "ockByHash\022\021\n\tblockHash\030\001 \001(\014\"-\n\030req_getB" + + "lockHeaderByHash\022\021\n\tblockHash\030\001 \001(\014\"?\n\027r" + + "eq_getTransactionCount\022\017\n\007address\030\001 \001(\014\022" + + "\023\n\013blocknumber\030\002 \001(\004\"*\n\027rsp_getTransacti" + + "onCount\022\017\n\007txCount\030\001 \001(\004\"/\n\035req_getTrans" + + "actionCountByHash\022\016\n\006txHash\030\001 \001(\014\"&\n\017rsp" + + "_blockNumber\022\023\n\013blocknumber\030\001 \001(\004\"6\n\016req" + + "_getBalance\022\017\n\007address\030\001 \001(\014\022\023\n\013blockNum" + + "ber\030\002 \001(\004\"!\n\016rsp_getBalance\022\017\n\007balance\030\001" + + " \001(\014\"E\n\020req_getStorageAt\022\017\n\007address\030\001 \001(" + + "\014\022\013\n\003key\030\002 \001(\t\022\023\n\013blocknumber\030\003 \001(\004\"#\n\020r" + + "sp_getStorageAt\022\017\n\007storage\030\001 \001(\t\"7\n\"req_" + + "getBlockTransactionCountByHash\022\021\n\tblockH" + + "ash\030\001 \001(\014\"/\n\034rsp_getBlockTransactionCoun" + + "t\022\017\n\007txCount\030\001 \001(\r\";\n$req_getBlockTransa" + + "ctionCountByNumber\022\023\n\013blockNumber\030\001 \001(\004\"" + + "K\n%req_getTransactionByBlockHashAndIndex" + + "\022\021\n\tblockHash\030\001 \001(\014\022\017\n\007txIndex\030\002 \001(\r\"O\n\'" + + "req_getTransactionByBlockNumberAndIndex\022" + + "\023\n\013blockNumber\030\001 \001(\004\022\017\n\007txIndex\030\002 \001(\r\"+\n" + + "\031req_getTransactionReceipt\022\016\n\006txHash\030\001 \001" + + "(\014\"\366\001\n\031rsp_getTransactionReceipt\022\017\n\007txIn" + + "dex\030\001 \001(\r\022\023\n\013blockNumber\030\002 \001(\004\022\023\n\013nrgCon" + + "sumed\030\003 \001(\004\022\031\n\021cumulativeNrgUsed\030\004 \001(\004\022\021" + + "\n\tblockHash\030\005 \001(\014\022\016\n\006txHash\030\006 \001(\014\022\014\n\004fro" + + "m\030\007 \001(\014\022\n\n\002to\030\010 \001(\014\022\027\n\017contractAddress\030\t" + + " \001(\014\022-\n\004logs\030\n \003(\0132\037.org.aion.api.server" + + ".pb.t_LgEle\"C\n\037req_getUncleByBlockHashAn" + + "dIndex\022\021\n\tblockHash\030\001 \001(\014\022\r\n\005index\030\002 \001(\r" + + "\"$\n\020rsp_getCompilers\022\020\n\010compiler\030\001 \003(\t\"%" + + "\n\023req_compileSolidity\022\016\n\006source\030\001 \001(\t\"U\n" + + "\023rsp_compileSolidity\022\014\n\004code\030\001 \001(\t\0220\n\004in" + + "fo\030\002 \001(\0132\".org.aion.api.server.pb.t_Cont" + + "ract\"\033\n\013rsp_getWork\022\014\n\004work\030\001 \003(\t\"A\n\016req" + + "_submitWork\022\r\n\005nonce\030\001 \001(\014\022\020\n\010solution\030\002" + + " \001(\014\022\016\n\006digest\030\003 \001(\014\"&\n\016rsp_submitWork\022\024" + + "\n\014workAccepted\030\001 \001(\010\"K\n\033rsp_fetchQueuedT" + + "ransactions\022,\n\002tx\030\001 \003(\0132 .org.aion.api.s" + + "erver.pb.t_AionTx\"\'\n\022req_rawTransaction\022" + + "\021\n\tencodedTx\030\001 \001(\014\"g\n\017req_estimateNrg\022\014\n" + + "\004from\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022\014" + + "\n\004data\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 " + + "\001(\004\"\036\n\017rsp_estimateNrg\022\013\n\003nrg\030\001 \001(\004\"\034\n\nr" + + "sp_mining\022\016\n\006mining\030\001 \001(\010\"J\n\013rsp_syncing" + + "\022\017\n\007syncing\030\001 \001(\010\022\024\n\014currentBlock\030\002 \001(\004\022" + + "\024\n\014highestBlock\030\003 \001(\004\" \n\014rsp_hashrate\022\020\n" + + "\010hashrate\030\001 \001(\004\"B\n\022rsp_getActiveNodes\022,\n" + + "\004node\030\001 \003(\0132\036.org.aion.api.server.pb.t_N" + + "ode\"B\n\022rsp_getStaticNodes\022,\n\004node\030\001 \003(\0132" + + "\036.org.aion.api.server.pb.t_Node\"!\n\022rsp_g" + + "etSolcVersion\022\013\n\003ver\030\001 \001(\t\" \n\rrsp_isSync" + + "ing\022\017\n\007syncing\030\001 \001(\010\"j\n\014rsp_syncInfo\022\017\n\007" + + "syncing\030\001 \001(\010\022\030\n\020networkBestBlock\030\002 \001(\004\022" + + "\026\n\016chainBestBlock\030\003 \001(\004\022\027\n\017maxImportBloc" + + "ks\030\004 \001(\r\"G\n\016rsp_systemInfo\022\020\n\010cpuUsage\030\001" + + " \001(\002\022\023\n\013memoryUsage\030\002 \001(\004\022\016\n\006DBSize\030\003 \001(" + + "\004\"W\n\021req_eventRegister\022\016\n\006events\030\001 \003(\t\0222" + + "\n\006filter\030\002 \001(\0132\".org.aion.api.server.pb." + + "t_FilterCt\"#\n\021rsp_eventRegister\022\016\n\006resul" + + "t\030\001 \001(\010\";\n\023req_eventDeregister\022\016\n\006events" + + "\030\001 \003(\t\022\024\n\014contractAddr\030\002 \001(\014\"%\n\023rsp_even" + + "tDeregister\022\016\n\006result\030\001 \001(\010\"D\n\023rsp_Event" + + "CtCallback\022-\n\002ec\030\001 \003(\0132!.org.aion.api.se" + + "rver.pb.t_EventCt\"9\n\021req_accountCreate\022\020" + + "\n\010password\030\001 \003(\t\022\022\n\nprivateKey\030\002 \001(\010\"8\n\021" + + "rsp_accountCreate\022\017\n\007address\030\001 \003(\014\022\022\n\npr" + + "ivateKey\030\002 \003(\014\"4\n\017req_accountlock\022\017\n\007acc" + + "ount\030\001 \001(\014\022\020\n\010password\030\002 \001(\t\"!\n\017rsp_acco" + + "untlock\022\016\n\006locked\030\001 \001(\010\"7\n\021req_userPrivi" + + "lege\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t" + + "\"&\n\021rsp_userPrivilege\022\021\n\tprivilege\030\001 \003(\t" + + "\"G\n\021req_queryCtEvents\0222\n\006filter\030\001 \001(\0132\"." + + "org.aion.api.server.pb.t_FilterCt\"B\n\021rsp" + + "_queryCtEvents\022-\n\002ec\030\001 \003(\0132!.org.aion.ap" + + "i.server.pb.t_EventCt\"4\n\014t_PrivateKey\022\022\n" + + "\nprivateKey\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"N\n\022r" + + "eq_importAccounts\0228\n\nprivateKey\030\001 \003(\0132$." + + "org.aion.api.server.pb.t_PrivateKey\"(\n\022r" + + "sp_importAccounts\022\022\n\ninvalidKey\030\001 \003(\t\"*\n" + + "\005t_Key\022\017\n\007address\030\001 \001(\014\022\020\n\010password\030\002 \001(" + + "\t\"D\n\022req_exportAccounts\022.\n\007keyFile\030\001 \003(\013" + + "2\035.org.aion.api.server.pb.t_Key\"8\n\022rsp_e" + + "xportAccounts\022\017\n\007keyFile\030\001 \003(\014\022\021\n\tfailed" + + "Key\030\002 \003(\014\"2\n\035rsp_getCurrentTotalDifficul" + + "ty\022\021\n\ttotalDiff\030\001 \001(\014\"1\n\033req_getBlockDet" + + "ailsByNumber\022\022\n\nblkNumbers\030\001 \003(\004\"X\n\033rsp_" + + "getBlockDetailsByNumber\0229\n\nblkDetails\030\001 " + + "\003(\0132%.org.aion.api.server.pb.t_BlockDeta" + + "il\",\n\033req_getBlockDetailsByLatest\022\r\n\005cou" + + "nt\030\001 \001(\004\"X\n\033rsp_getBlockDetailsByLatest\022" + + "9\n\nblkDetails\030\001 \003(\0132%.org.aion.api.serve" + + "r.pb.t_BlockDetail\"&\n\025req_getBlocksByLat" + + "est\022\r\n\005count\030\001 \001(\004\"F\n\025rsp_getBlocksByLat" + + "est\022-\n\004blks\030\001 \003(\0132\037.org.aion.api.server." + + "pb.t_Block\"7\n\"req_getAccountDetailsByAdd" + + "ressList\022\021\n\taddresses\030\001 \003(\014\"_\n\"rsp_getAc" + + "countDetailsByAddressList\0229\n\010accounts\030\001 " + + "\003(\0132\'.org.aion.api.server.pb.t_AccountDe" + + "tail\"F\n\026req_getBlockSqlByRange\022\026\n\016blkNum" + + "berStart\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"L\n\026" + + "rsp_getBlockSqlByRange\0222\n\006blkSql\030\001 \003(\0132\"" + + ".org.aion.api.server.pb.t_BlockSql\"J\n\032re" + + "q_getBlockDetailsByRange\022\026\n\016blkNumberSta" + + "rt\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"W\n\032rsp_ge" + + "tBlockDetailsByRange\0229\n\nblkDetails\030\001 \003(\013" + + "2%.org.aion.api.server.pb.t_BlockDetail\"" + + "\037\n\014req_getNonce\022\017\n\007address\030\001 \001(\014\"\035\n\014rsp_" + + "getNonce\022\r\n\005nonce\030\001 \001(\014\"\021\n\017req_getNrgPri" + + "ce\"#\n\017rsp_getNrgPrice\022\020\n\010nrgPrice\030\001 \001(\004*" + + "\204\001\n\005Servs\022\010\n\004s_hb\020\000\022\013\n\007s_admin\020\001\022\013\n\007s_ch" + + "ain\020\002\022\r\n\ts_account\020\003\022\010\n\004s_tx\020\004\022\t\n\005s_net\020" + + "\005\022\n\n\006s_mine\020\006\022\017\n\013s_privilege\020\007\022\014\n\010s_wall" + + "et\020\010\022\010\n\004s_NA\020\t*\310\n\n\005Funcs\022\025\n\021f_protocolVe" + + "rsion\020\000\022\022\n\016f_minerAddress\020\001\022\016\n\nf_account" + + "s\020\002\022\021\n\rf_blockNumber\020\003\022\020\n\014f_getBalance\020\004" + + "\022\022\n\016f_getStorageAt\020\005\022\023\n\017f_unlockAccount\020" + + "\006\022\025\n\021f_sendTransaction\020\007\022\032\n\026f_getTransac" + + "tionByHash\020\010\022\r\n\tf_compile\020\t\022\024\n\020f_contrac" + + "tDeploy\020\n\022\031\n\025f_getTransactionCount\020\013\022$\n " + + "f_getBlockTransactionCountByHash\020\014\022&\n\"f_" + + "getBlockTransactionCountByNumber\020\r\022\r\n\tf_" + + "getCode\020\016\022\n\n\006f_call\020\017\022\024\n\020f_getBlockByHas" + + "h\020\020\022\026\n\022f_getBlockByNumber\020\021\022\'\n#f_getTran" + + "sactionByBlockHashAndIndex\020\022\022)\n%f_getTra" + + "nsactionByBlockNumberAndIndex\020\023\022\033\n\027f_get" + + "TransactionReceipt\020\024\022\022\n\016f_getCompilers\020\025" + + "\022\025\n\021f_compileSolidity\020\026\022\r\n\tf_getWork\020\027\022\020" + + "\n\014f_submitWork\020\030\022\035\n\031f_fetchQueuedTransac" + + "tions\020\031\022\027\n\023f_signedTransaction\020\032\022\024\n\020f_ra" + + "wTransaction\020\033\022\021\n\rf_estimateNrg\020\034\022\014\n\010f_m" + + "ining\020\035\022\016\n\nf_hashrate\020\036\022\024\n\020f_getActiveNo" + + "des\020\037\022\024\n\020f_getSolcVersion\020 \022\017\n\013f_isSynci" + + "ng\020!\022\016\n\nf_syncInfo\020\"\022\023\n\017f_getSystemInfo\020" + + "#\022\023\n\017f_eventRegister\020$\022\025\n\021f_eventDeregis" + + "ter\020%\022\023\n\017f_accountCreate\020&\022\021\n\rf_accountL" + + "ock\020\'\022\023\n\017f_userPrivilege\020(\022\020\n\014f_eventQue" + + "ry\020)\022\024\n\020f_importAccounts\020*\022\024\n\020f_exportAc" + + "counts\020+\022\034\n\030f_getBlockHeaderByNumber\020,\022\032" + + "\n\026f_getBlockHeaderByHash\020-\022\037\n\033f_getCurre" + + "ntTotalDifficulty\020.\022\024\n\020f_getStaticNodes\020" + + "/\022\035\n\031f_getBlockDetailsByNumber\0200\022\035\n\031f_ge" + + "tBlockDetailsByLatest\0201\022\027\n\023f_getBlocksBy" + + "Latest\0202\022$\n f_getAccountDetailsByAddress" + + "List\0203\022\024\n\020f_backupAccounts\0204\022\010\n\004f_NA\0205\022\030" + + "\n\024f_getBlockSqlByRange\0206\022\034\n\030f_getBlockDe" + + "tailsByRange\0207\022\016\n\nf_getNonce\0208\022\021\n\rf_getN" + + "rgPrice\0209*\241\007\n\007Retcode\022\n\n\006r_fail\020\000\022\r\n\tr_s" + + "uccess\020\001\022\023\n\017r_wallet_nullcb\020\002\022\025\n\021r_heart" + + "beatReturn\020\003\022\025\n\021r_privilegeReturn\020\004\022\r\n\tr" + + "_tx_Init\020d\022\017\n\013r_tx_Recved\020e\022\020\n\014r_tx_Drop" + + "ped\020f\022\023\n\017r_tx_NewPending\020g\022\020\n\014r_tx_Pendi" + + "ng\020h\022\021\n\rr_tx_Included\020i\022\020\n\014r_tx_eventCb\020" + + "j\022\010\n\004r_NA\020k\022\036\n\021r_fail_header_len\020\377\377\377\377\377\377\377" + + "\377\377\001\022 \n\023r_fail_service_call\020\376\377\377\377\377\377\377\377\377\001\022!\n" + + "\024r_fail_function_call\020\375\377\377\377\377\377\377\377\377\001\022&\n\031r_fa" + + "il_function_exception\020\374\377\377\377\377\377\377\377\377\001\022\037\n\022r_fa" + + "il_api_version\020\373\377\377\377\377\377\377\377\377\001\022\037\n\022r_fail_ct_b" + + "ytecode\020\372\377\377\377\377\377\377\377\377\001\022\034\n\017r_fail_null_rsp\020\371\377" + + "\377\377\377\377\377\377\377\001\022 \n\023r_fail_invalid_addr\020\370\377\377\377\377\377\377\377" + + "\377\001\022\'\n\032r_fail_null_compile_source\020\367\377\377\377\377\377\377" + + "\377\377\001\022$\n\027r_fail_compile_contract\020\366\377\377\377\377\377\377\377\377" + + "\001\022#\n\026r_fail_sendTx_null_rep\020\365\377\377\377\377\377\377\377\377\001\022\036" + + "\n\021r_fail_getcode_to\020\364\377\377\377\377\377\377\377\377\001\022*\n\035r_fail" + + "_getTxReceipt_null_recp\020\363\377\377\377\377\377\377\377\377\001\022(\n\033r_" + + "fail_zmqHandler_exception\020\362\377\377\377\377\377\377\377\377\001\022(\n\033" + + "r_fail_hit_pending_tx_limit\020\361\377\377\377\377\377\377\377\377\001\022%" + + "\n\030r_fail_txqueue_exception\020\360\377\377\377\377\377\377\377\377\001\022&\n" + + "\031r_fail_function_arguments\020\357\377\377\377\377\377\377\377\377\001\022!\n" + + "\024r_fail_unsupport_api\020\356\377\377\377\377\377\377\377\377\001\022\033\n\016r_fa" + + "il_unknown\020\355\377\377\377\377\377\377\377\377\001b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_org_aion_api_server_pb_t_Contract_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Contract_descriptor, - new java.lang.String[] { "Code", "Error", "Source", "CompilerVersion", "CompilerOptions", "AbiDef", "UserDoc", "DevDoc", }); - internal_static_org_aion_api_server_pb_t_AionTx_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_AionTx_descriptor, - new java.lang.String[] { "TxHash", "From", "To", "Value", "Data", "Nonce", "NrgConsumed", "NrgPrice", }); - internal_static_org_aion_api_server_pb_t_Node_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Node_descriptor, - new java.lang.String[] { "BlockNumber", "NodeId", "RemoteP2PIp", "RemoteP2PPort", "Latency", }); - internal_static_org_aion_api_server_pb_t_LgEle_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_LgEle_descriptor, - new java.lang.String[] { "Address", "Data", "Topics", }); - internal_static_org_aion_api_server_pb_t_FilterCt_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_FilterCt_descriptor, - new java.lang.String[] { "From", "To", "ContractAddr", "Addresses", "Topics", "ExpireTime", }); - internal_static_org_aion_api_server_pb_t_EventCt_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_EventCt_descriptor, - new java.lang.String[] { "Address", "Data", "BlockHash", "BlockNumber", "LogIndex", "EventName", "Removed", "TxIndex", "TxHash", }); - internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor, - new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "TotalDifficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", "Tx", "BlockTime", }); - internal_static_org_aion_api_server_pb_t_TxDetail_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_TxDetail_descriptor, - new java.lang.String[] { "TxHash", "From", "To", "Value", "Data", "Nonce", "NrgConsumed", "NrgPrice", "TxIndex", "Contract", "Logs", "Timestamp", "Error", }); - internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor, - new java.lang.String[] { "Address", "Balance", }); - internal_static_org_aion_api_server_pb_t_Block_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Block_descriptor, - new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "TotalDifficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", "TxHash", }); - internal_static_org_aion_api_server_pb_t_BlockSql_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_BlockSql_descriptor, - new java.lang.String[] { "BlockNumber", "BlockHash", "ParentHash", "Block", "Tx", }); - internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor, - new java.lang.String[] { "Errormsg", }); - internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor, - new java.lang.String[] { "Kernel", "Net", "Api", "Vm", "Db", "Miner", "Txpool", }); - internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor, - new java.lang.String[] { "MinerAddr", }); - internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor, - new java.lang.String[] { "BlockNumber", }); - internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor, - new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "TotalDifficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", "TxHash", }); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor, - new java.lang.String[] { "BlockNumber", }); - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor, - new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", }); - internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor, - new java.lang.String[] { "From", "To", "Value", "Data", "Nonce", "Nrg", "NrgPrice", }); - internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor, - new java.lang.String[] { "TxHash", }); - internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor, - new java.lang.String[] { "TxHash", }); - internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor, - new java.lang.String[] { "TxIndex", "Blocknumber", "TimeStamp", "NrgConsume", "NrgPrice", "Blockhash", "From", "TxHash", "Data", "Nonce", "To", "Value", }); - internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor, - new java.lang.String[] { "Account", "Password", "Duration", }); - internal_static_org_aion_api_server_pb_rsp_accounts_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_accounts_descriptor, - new java.lang.String[] { "Accout", }); - internal_static_org_aion_api_server_pb_req_compile_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_compile_descriptor, - new java.lang.String[] { "Code", }); - internal_static_org_aion_api_server_pb_rsp_compile_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_compile_descriptor, - new java.lang.String[] { "Constracts", }); - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor = - internal_static_org_aion_api_server_pb_rsp_compile_descriptor.getNestedTypes().get(0); - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_org_aion_api_server_pb_req_getCode_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getCode_descriptor, - new java.lang.String[] { "Address", "Blocknumber", }); - internal_static_org_aion_api_server_pb_rsp_getCode_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getCode_descriptor, - new java.lang.String[] { "Code", }); - internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor, - new java.lang.String[] { "NrgLimit", "NrgPrice", "From", "Data", "Value", }); - internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor, - new java.lang.String[] { "TxHash", "ContractAddress", }); - internal_static_org_aion_api_server_pb_req_call_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_call_descriptor, - new java.lang.String[] { "From", "To", "Data", "Value", "Nrg", "NrgPrice", }); - internal_static_org_aion_api_server_pb_rsp_call_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_call_descriptor, - new java.lang.String[] { "Result", }); - internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor, - new java.lang.String[] { "BlockHash", }); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor, - new java.lang.String[] { "BlockHash", }); - internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor, - new java.lang.String[] { "Address", "Blocknumber", }); - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor, - new java.lang.String[] { "TxCount", }); - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor, - new java.lang.String[] { "TxHash", }); - internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor, - new java.lang.String[] { "Blocknumber", }); - internal_static_org_aion_api_server_pb_req_getBalance_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBalance_descriptor, - new java.lang.String[] { "Address", "BlockNumber", }); - internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor, - new java.lang.String[] { "Balance", }); - internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor, - new java.lang.String[] { "Address", "Key", "Blocknumber", }); - internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor, - new java.lang.String[] { "Storage", }); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor, - new java.lang.String[] { "BlockHash", }); - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor, - new java.lang.String[] { "TxCount", }); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor, - new java.lang.String[] { "BlockNumber", }); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor, - new java.lang.String[] { "BlockHash", "TxIndex", }); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor, - new java.lang.String[] { "BlockNumber", "TxIndex", }); - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor, - new java.lang.String[] { "TxHash", }); - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor, - new java.lang.String[] { "TxIndex", "BlockNumber", "NrgConsumed", "CumulativeNrgUsed", "BlockHash", "TxHash", "From", "To", "ContractAddress", "Logs", }); - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor, - new java.lang.String[] { "BlockHash", "Index", }); - internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor, - new java.lang.String[] { "Compiler", }); - internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor, - new java.lang.String[] { "Source", }); - internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor, - new java.lang.String[] { "Code", "Info", }); - internal_static_org_aion_api_server_pb_rsp_getWork_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getWork_descriptor, - new java.lang.String[] { "Work", }); - internal_static_org_aion_api_server_pb_req_submitWork_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_submitWork_descriptor, - new java.lang.String[] { "Nonce", "Solution", "Digest", }); - internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor, - new java.lang.String[] { "WorkAccepted", }); - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor, - new java.lang.String[] { "Tx", }); - internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor, - new java.lang.String[] { "EncodedTx", }); - internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor, - new java.lang.String[] { "From", "To", "Value", "Data", "Nrg", "NrgPrice", }); - internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor, - new java.lang.String[] { "Nrg", }); - internal_static_org_aion_api_server_pb_rsp_mining_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_mining_descriptor, - new java.lang.String[] { "Mining", }); - internal_static_org_aion_api_server_pb_rsp_syncing_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_syncing_descriptor, - new java.lang.String[] { "Syncing", "CurrentBlock", "HighestBlock", }); - internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor, - new java.lang.String[] { "Hashrate", }); - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor, - new java.lang.String[] { "Node", }); - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor, - new java.lang.String[] { "Node", }); - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor, - new java.lang.String[] { "Ver", }); - internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor, - new java.lang.String[] { "Syncing", }); - internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor, - new java.lang.String[] { "Syncing", "NetworkBestBlock", "ChainBestBlock", "MaxImportBlocks", }); - internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor, - new java.lang.String[] { "CpuUsage", "MemoryUsage", "DBSize", }); - internal_static_org_aion_api_server_pb_req_eventRegister_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_eventRegister_descriptor, - new java.lang.String[] { "Events", "Filter", }); - internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor, - new java.lang.String[] { "Result", }); - internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor, - new java.lang.String[] { "Events", "ContractAddr", }); - internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor = - getDescriptor().getMessageTypes().get(72); - internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor, - new java.lang.String[] { "Result", }); - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor = - getDescriptor().getMessageTypes().get(73); - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor, - new java.lang.String[] { "Ec", }); - internal_static_org_aion_api_server_pb_req_accountCreate_descriptor = - getDescriptor().getMessageTypes().get(74); - internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_accountCreate_descriptor, - new java.lang.String[] { "Password", "PrivateKey", }); - internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor = - getDescriptor().getMessageTypes().get(75); - internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor, - new java.lang.String[] { "Address", "PrivateKey", }); - internal_static_org_aion_api_server_pb_req_accountlock_descriptor = - getDescriptor().getMessageTypes().get(76); - internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_accountlock_descriptor, - new java.lang.String[] { "Account", "Password", }); - internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor = - getDescriptor().getMessageTypes().get(77); - internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor, - new java.lang.String[] { "Locked", }); - internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor = - getDescriptor().getMessageTypes().get(78); - internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor, - new java.lang.String[] { "Username", "Password", }); - internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor = - getDescriptor().getMessageTypes().get(79); - internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor, - new java.lang.String[] { "Privilege", }); - internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor = - getDescriptor().getMessageTypes().get(80); - internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor, - new java.lang.String[] { "Filter", }); - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor = - getDescriptor().getMessageTypes().get(81); - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor, - new java.lang.String[] { "Ec", }); - internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor = - getDescriptor().getMessageTypes().get(82); - internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor, - new java.lang.String[] { "PrivateKey", "Password", }); - internal_static_org_aion_api_server_pb_req_importAccounts_descriptor = - getDescriptor().getMessageTypes().get(83); - internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_importAccounts_descriptor, - new java.lang.String[] { "PrivateKey", }); - internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor = - getDescriptor().getMessageTypes().get(84); - internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor, - new java.lang.String[] { "InvalidKey", }); - internal_static_org_aion_api_server_pb_t_Key_descriptor = - getDescriptor().getMessageTypes().get(85); - internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Key_descriptor, - new java.lang.String[] { "Address", "Password", }); - internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor = - getDescriptor().getMessageTypes().get(86); - internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor, - new java.lang.String[] { "KeyFile", }); - internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor = - getDescriptor().getMessageTypes().get(87); - internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor, - new java.lang.String[] { "KeyFile", "FailedKey", }); - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor = - getDescriptor().getMessageTypes().get(88); - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor, - new java.lang.String[] { "TotalDiff", }); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor = - getDescriptor().getMessageTypes().get(89); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor, - new java.lang.String[] { "BlkNumbers", }); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor = - getDescriptor().getMessageTypes().get(90); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor, - new java.lang.String[] { "BlkDetails", }); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor = - getDescriptor().getMessageTypes().get(91); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor, - new java.lang.String[] { "Count", }); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor = - getDescriptor().getMessageTypes().get(92); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor, - new java.lang.String[] { "BlkDetails", }); - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor = - getDescriptor().getMessageTypes().get(93); - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor, - new java.lang.String[] { "Count", }); - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor = - getDescriptor().getMessageTypes().get(94); - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor, - new java.lang.String[] { "Blks", }); - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor = - getDescriptor().getMessageTypes().get(95); - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor, - new java.lang.String[] { "Addresses", }); - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor = - getDescriptor().getMessageTypes().get(96); - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor, - new java.lang.String[] { "Accounts", }); - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor = - getDescriptor().getMessageTypes().get(97); - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor, - new java.lang.String[] { "BlkNumberStart", "BlkNumberEnd", }); - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor = - getDescriptor().getMessageTypes().get(98); - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor, - new java.lang.String[] { "BlkSql", }); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor = - getDescriptor().getMessageTypes().get(99); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor, - new java.lang.String[] { "BlkNumberStart", "BlkNumberEnd", }); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor = - getDescriptor().getMessageTypes().get(100); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor, - new java.lang.String[] { "BlkDetails", }); - internal_static_org_aion_api_server_pb_req_getNonce_descriptor = - getDescriptor().getMessageTypes().get(101); - internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getNonce_descriptor, - new java.lang.String[] { "Address", }); - internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor = - getDescriptor().getMessageTypes().get(102); - internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor, - new java.lang.String[] { "Nonce", }); - internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor = - getDescriptor().getMessageTypes().get(103); - internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor, - new java.lang.String[] { }); - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor = - getDescriptor().getMessageTypes().get(104); - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor, - new java.lang.String[] { "NrgPrice", }); - } - - // @@protoc_insertion_point(outer_class_scope) + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); + internal_static_org_aion_api_server_pb_t_Contract_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Contract_descriptor, + new java.lang.String[] { + "Code", + "Error", + "Source", + "CompilerVersion", + "CompilerOptions", + "AbiDef", + "UserDoc", + "DevDoc", + }); + internal_static_org_aion_api_server_pb_t_AionTx_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_AionTx_descriptor, + new java.lang.String[] { + "TxHash", + "From", + "To", + "Value", + "Data", + "Nonce", + "NrgConsumed", + "NrgPrice", + }); + internal_static_org_aion_api_server_pb_t_Node_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Node_descriptor, + new java.lang.String[] { + "BlockNumber", "NodeId", "RemoteP2PIp", "RemoteP2PPort", "Latency", + }); + internal_static_org_aion_api_server_pb_t_LgEle_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_LgEle_descriptor, + new java.lang.String[] { + "Address", "Data", "Topics", + }); + internal_static_org_aion_api_server_pb_t_FilterCt_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_FilterCt_descriptor, + new java.lang.String[] { + "From", "To", "ContractAddr", "Addresses", "Topics", "ExpireTime", + }); + internal_static_org_aion_api_server_pb_t_EventCt_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_EventCt_descriptor, + new java.lang.String[] { + "Address", + "Data", + "BlockHash", + "BlockNumber", + "LogIndex", + "EventName", + "Removed", + "TxIndex", + "TxHash", + }); + internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor, + new java.lang.String[] { + "BlockNumber", + "Timestamp", + "NrgConsumed", + "NrgLimit", + "ParentHash", + "MinerAddress", + "StateRoot", + "TxTrieRoot", + "ReceiptTrieRoot", + "LogsBloom", + "Difficulty", + "TotalDifficulty", + "ExtraData", + "Nonce", + "Solution", + "Hash", + "Size", + "Tx", + "BlockTime", + }); + internal_static_org_aion_api_server_pb_t_TxDetail_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_TxDetail_descriptor, + new java.lang.String[] { + "TxHash", + "From", + "To", + "Value", + "Data", + "Nonce", + "NrgConsumed", + "NrgPrice", + "TxIndex", + "Contract", + "Logs", + "Timestamp", + "Error", + }); + internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor, + new java.lang.String[] { + "Address", "Balance", + }); + internal_static_org_aion_api_server_pb_t_Block_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Block_descriptor, + new java.lang.String[] { + "BlockNumber", + "Timestamp", + "NrgConsumed", + "NrgLimit", + "ParentHash", + "MinerAddress", + "StateRoot", + "TxTrieRoot", + "ReceiptTrieRoot", + "LogsBloom", + "Difficulty", + "TotalDifficulty", + "ExtraData", + "Nonce", + "Solution", + "Hash", + "Size", + "TxHash", + }); + internal_static_org_aion_api_server_pb_t_BlockSql_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_BlockSql_descriptor, + new java.lang.String[] { + "BlockNumber", "BlockHash", "ParentHash", "Block", "Tx", + }); + internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor, + new java.lang.String[] { + "Errormsg", + }); + internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor, + new java.lang.String[] { + "Kernel", "Net", "Api", "Vm", "Db", "Miner", "Txpool", + }); + internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor, + new java.lang.String[] { + "MinerAddr", + }); + internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor, + new java.lang.String[] { + "BlockNumber", + }); + internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor, + new java.lang.String[] { + "BlockNumber", + "Timestamp", + "NrgConsumed", + "NrgLimit", + "ParentHash", + "MinerAddress", + "StateRoot", + "TxTrieRoot", + "ReceiptTrieRoot", + "LogsBloom", + "Difficulty", + "TotalDifficulty", + "ExtraData", + "Nonce", + "Solution", + "Hash", + "Size", + "TxHash", + }); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor, + new java.lang.String[] { + "BlockNumber", + }); + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor, + new java.lang.String[] { + "BlockNumber", + "Timestamp", + "NrgConsumed", + "NrgLimit", + "ParentHash", + "MinerAddress", + "StateRoot", + "TxTrieRoot", + "ReceiptTrieRoot", + "LogsBloom", + "Difficulty", + "ExtraData", + "Nonce", + "Solution", + "Hash", + "Size", + }); + internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor, + new java.lang.String[] { + "From", "To", "Value", "Data", "Nonce", "Nrg", "NrgPrice", + }); + internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor, + new java.lang.String[] { + "TxHash", + }); + internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor, + new java.lang.String[] { + "TxHash", + }); + internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor, + new java.lang.String[] { + "TxIndex", + "Blocknumber", + "TimeStamp", + "NrgConsume", + "NrgPrice", + "Blockhash", + "From", + "TxHash", + "Data", + "Nonce", + "To", + "Value", + }); + internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor, + new java.lang.String[] { + "Account", "Password", "Duration", + }); + internal_static_org_aion_api_server_pb_rsp_accounts_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_accounts_descriptor, + new java.lang.String[] { + "Accout", + }); + internal_static_org_aion_api_server_pb_req_compile_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_compile_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_org_aion_api_server_pb_rsp_compile_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_compile_descriptor, + new java.lang.String[] { + "Constracts", + }); + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor = + internal_static_org_aion_api_server_pb_rsp_compile_descriptor + .getNestedTypes() + .get(0); + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_org_aion_api_server_pb_req_getCode_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getCode_descriptor, + new java.lang.String[] { + "Address", "Blocknumber", + }); + internal_static_org_aion_api_server_pb_rsp_getCode_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getCode_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor, + new java.lang.String[] { + "NrgLimit", "NrgPrice", "From", "Data", "Value", + }); + internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor, + new java.lang.String[] { + "TxHash", "ContractAddress", + }); + internal_static_org_aion_api_server_pb_req_call_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_call_descriptor, + new java.lang.String[] { + "From", "To", "Data", "Value", "Nrg", "NrgPrice", + }); + internal_static_org_aion_api_server_pb_rsp_call_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_call_descriptor, + new java.lang.String[] { + "Result", + }); + internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor, + new java.lang.String[] { + "BlockHash", + }); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor, + new java.lang.String[] { + "BlockHash", + }); + internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor, + new java.lang.String[] { + "Address", "Blocknumber", + }); + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor, + new java.lang.String[] { + "TxCount", + }); + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor, + new java.lang.String[] { + "TxHash", + }); + internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor, + new java.lang.String[] { + "Blocknumber", + }); + internal_static_org_aion_api_server_pb_req_getBalance_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBalance_descriptor, + new java.lang.String[] { + "Address", "BlockNumber", + }); + internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor, + new java.lang.String[] { + "Balance", + }); + internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor, + new java.lang.String[] { + "Address", "Key", "Blocknumber", + }); + internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor, + new java.lang.String[] { + "Storage", + }); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor, + new java.lang.String[] { + "BlockHash", + }); + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor, + new java.lang.String[] { + "TxCount", + }); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor, + new java.lang.String[] { + "BlockNumber", + }); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor, + new java.lang.String[] { + "BlockHash", "TxIndex", + }); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor, + new java.lang.String[] { + "BlockNumber", "TxIndex", + }); + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor, + new java.lang.String[] { + "TxHash", + }); + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor, + new java.lang.String[] { + "TxIndex", + "BlockNumber", + "NrgConsumed", + "CumulativeNrgUsed", + "BlockHash", + "TxHash", + "From", + "To", + "ContractAddress", + "Logs", + }); + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor, + new java.lang.String[] { + "BlockHash", "Index", + }); + internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor, + new java.lang.String[] { + "Compiler", + }); + internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor, + new java.lang.String[] { + "Source", + }); + internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor, + new java.lang.String[] { + "Code", "Info", + }); + internal_static_org_aion_api_server_pb_rsp_getWork_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getWork_descriptor, + new java.lang.String[] { + "Work", + }); + internal_static_org_aion_api_server_pb_req_submitWork_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_submitWork_descriptor, + new java.lang.String[] { + "Nonce", "Solution", "Digest", + }); + internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor, + new java.lang.String[] { + "WorkAccepted", + }); + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor, + new java.lang.String[] { + "Tx", + }); + internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor, + new java.lang.String[] { + "EncodedTx", + }); + internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor, + new java.lang.String[] { + "From", "To", "Value", "Data", "Nrg", "NrgPrice", + }); + internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor, + new java.lang.String[] { + "Nrg", + }); + internal_static_org_aion_api_server_pb_rsp_mining_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_mining_descriptor, + new java.lang.String[] { + "Mining", + }); + internal_static_org_aion_api_server_pb_rsp_syncing_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_syncing_descriptor, + new java.lang.String[] { + "Syncing", "CurrentBlock", "HighestBlock", + }); + internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor, + new java.lang.String[] { + "Hashrate", + }); + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor, + new java.lang.String[] { + "Node", + }); + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor, + new java.lang.String[] { + "Node", + }); + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor, + new java.lang.String[] { + "Ver", + }); + internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor, + new java.lang.String[] { + "Syncing", + }); + internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor, + new java.lang.String[] { + "Syncing", "NetworkBestBlock", "ChainBestBlock", "MaxImportBlocks", + }); + internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor, + new java.lang.String[] { + "CpuUsage", "MemoryUsage", "DBSize", + }); + internal_static_org_aion_api_server_pb_req_eventRegister_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_eventRegister_descriptor, + new java.lang.String[] { + "Events", "Filter", + }); + internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor, + new java.lang.String[] { + "Result", + }); + internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor, + new java.lang.String[] { + "Events", "ContractAddr", + }); + internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor, + new java.lang.String[] { + "Result", + }); + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor, + new java.lang.String[] { + "Ec", + }); + internal_static_org_aion_api_server_pb_req_accountCreate_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_accountCreate_descriptor, + new java.lang.String[] { + "Password", "PrivateKey", + }); + internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor = + getDescriptor().getMessageTypes().get(75); + internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor, + new java.lang.String[] { + "Address", "PrivateKey", + }); + internal_static_org_aion_api_server_pb_req_accountlock_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_accountlock_descriptor, + new java.lang.String[] { + "Account", "Password", + }); + internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor, + new java.lang.String[] { + "Locked", + }); + internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor, + new java.lang.String[] { + "Username", "Password", + }); + internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor, + new java.lang.String[] { + "Privilege", + }); + internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor, + new java.lang.String[] { + "Filter", + }); + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor, + new java.lang.String[] { + "Ec", + }); + internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor = + getDescriptor().getMessageTypes().get(82); + internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor, + new java.lang.String[] { + "PrivateKey", "Password", + }); + internal_static_org_aion_api_server_pb_req_importAccounts_descriptor = + getDescriptor().getMessageTypes().get(83); + internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_importAccounts_descriptor, + new java.lang.String[] { + "PrivateKey", + }); + internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor = + getDescriptor().getMessageTypes().get(84); + internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor, + new java.lang.String[] { + "InvalidKey", + }); + internal_static_org_aion_api_server_pb_t_Key_descriptor = + getDescriptor().getMessageTypes().get(85); + internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Key_descriptor, + new java.lang.String[] { + "Address", "Password", + }); + internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor = + getDescriptor().getMessageTypes().get(86); + internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor, + new java.lang.String[] { + "KeyFile", + }); + internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor = + getDescriptor().getMessageTypes().get(87); + internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor, + new java.lang.String[] { + "KeyFile", "FailedKey", + }); + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor = + getDescriptor().getMessageTypes().get(88); + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor, + new java.lang.String[] { + "TotalDiff", + }); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor = + getDescriptor().getMessageTypes().get(89); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor, + new java.lang.String[] { + "BlkNumbers", + }); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor = + getDescriptor().getMessageTypes().get(90); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor, + new java.lang.String[] { + "BlkDetails", + }); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor = + getDescriptor().getMessageTypes().get(91); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor, + new java.lang.String[] { + "Count", + }); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor = + getDescriptor().getMessageTypes().get(92); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor, + new java.lang.String[] { + "BlkDetails", + }); + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor = + getDescriptor().getMessageTypes().get(93); + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor, + new java.lang.String[] { + "Count", + }); + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor = + getDescriptor().getMessageTypes().get(94); + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor, + new java.lang.String[] { + "Blks", + }); + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor = + getDescriptor().getMessageTypes().get(95); + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor, + new java.lang.String[] { + "Addresses", + }); + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor = + getDescriptor().getMessageTypes().get(96); + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor, + new java.lang.String[] { + "Accounts", + }); + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor = + getDescriptor().getMessageTypes().get(97); + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor, + new java.lang.String[] { + "BlkNumberStart", "BlkNumberEnd", + }); + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor = + getDescriptor().getMessageTypes().get(98); + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor, + new java.lang.String[] { + "BlkSql", + }); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor = + getDescriptor().getMessageTypes().get(99); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor, + new java.lang.String[] { + "BlkNumberStart", "BlkNumberEnd", + }); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor = + getDescriptor().getMessageTypes().get(100); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor, + new java.lang.String[] { + "BlkDetails", + }); + internal_static_org_aion_api_server_pb_req_getNonce_descriptor = + getDescriptor().getMessageTypes().get(101); + internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getNonce_descriptor, + new java.lang.String[] { + "Address", + }); + internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor = + getDescriptor().getMessageTypes().get(102); + internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor, + new java.lang.String[] { + "Nonce", + }); + internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor = + getDescriptor().getMessageTypes().get(103); + internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor, + new java.lang.String[] {}); + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor = + getDescriptor().getMessageTypes().get(104); + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor, + new java.lang.String[] { + "NrgPrice", + }); + } + + // @@protoc_insertion_point(outer_class_scope) } From 3b6ac0be33df0ac5ba4c9c9a4fd40296eb8b139d Mon Sep 17 00:00:00 2001 From: aionick Date: Tue, 22 May 2018 16:17:20 -0400 Subject: [PATCH 049/129] removed req method for getNrgPrice --- .../src/org/aion/api/server/pb/Message.java | 138873 ++++++++------- 1 file changed, 70310 insertions(+), 68563 deletions(-) diff --git a/modApiServer/src/org/aion/api/server/pb/Message.java b/modApiServer/src/org/aion/api/server/pb/Message.java index 7b2efb2c31..1a83c8a259 100644 --- a/modApiServer/src/org/aion/api/server/pb/Message.java +++ b/modApiServer/src/org/aion/api/server/pb/Message.java @@ -4,70896 +4,72643 @@ package org.aion.api.server.pb; public final class Message { - private Message() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - /** Protobuf enum {@code org.aion.api.server.pb.Servs} */ - public enum Servs implements com.google.protobuf.ProtocolMessageEnum { - /** s_hb = 0; */ - s_hb(0), - /** s_admin = 1; */ - s_admin(1), - /** s_chain = 2; */ - s_chain(2), - /** s_account = 3; */ - s_account(3), - /** s_tx = 4; */ - s_tx(4), - /** s_net = 5; */ - s_net(5), - /** s_mine = 6; */ - s_mine(6), - /** s_privilege = 7; */ - s_privilege(7), - /** s_wallet = 8; */ - s_wallet(8), - /** s_NA = 9; */ - s_NA(9), - UNRECOGNIZED(-1), - ; - - /** s_hb = 0; */ - public static final int s_hb_VALUE = 0; - /** s_admin = 1; */ - public static final int s_admin_VALUE = 1; - /** s_chain = 2; */ - public static final int s_chain_VALUE = 2; - /** s_account = 3; */ - public static final int s_account_VALUE = 3; - /** s_tx = 4; */ - public static final int s_tx_VALUE = 4; - /** s_net = 5; */ - public static final int s_net_VALUE = 5; - /** s_mine = 6; */ - public static final int s_mine_VALUE = 6; - /** s_privilege = 7; */ - public static final int s_privilege_VALUE = 7; - /** s_wallet = 8; */ - public static final int s_wallet_VALUE = 8; - /** s_NA = 9; */ - public static final int s_NA_VALUE = 9; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static Servs valueOf(int value) { - return forNumber(value); - } - - public static Servs forNumber(int value) { - switch (value) { - case 0: - return s_hb; - case 1: - return s_admin; - case 2: - return s_chain; - case 3: - return s_account; - case 4: - return s_tx; - case 5: - return s_net; - case 6: - return s_mine; - case 7: - return s_privilege; - case 8: - return s_wallet; - case 9: - return s_NA; - default: - return null; - } - } + private Message() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code org.aion.api.server.pb.Servs} + */ + public enum Servs + implements com.google.protobuf.ProtocolMessageEnum { + /** + * s_hb = 0; + */ + s_hb(0), + /** + * s_admin = 1; + */ + s_admin(1), + /** + * s_chain = 2; + */ + s_chain(2), + /** + * s_account = 3; + */ + s_account(3), + /** + * s_tx = 4; + */ + s_tx(4), + /** + * s_net = 5; + */ + s_net(5), + /** + * s_mine = 6; + */ + s_mine(6), + /** + * s_privilege = 7; + */ + s_privilege(7), + /** + * s_wallet = 8; + */ + s_wallet(8), + /** + * s_NA = 9; + */ + s_NA(9), + UNRECOGNIZED(-1), + ; + + /** + * s_hb = 0; + */ + public static final int s_hb_VALUE = 0; + /** + * s_admin = 1; + */ + public static final int s_admin_VALUE = 1; + /** + * s_chain = 2; + */ + public static final int s_chain_VALUE = 2; + /** + * s_account = 3; + */ + public static final int s_account_VALUE = 3; + /** + * s_tx = 4; + */ + public static final int s_tx_VALUE = 4; + /** + * s_net = 5; + */ + public static final int s_net_VALUE = 5; + /** + * s_mine = 6; + */ + public static final int s_mine_VALUE = 6; + /** + * s_privilege = 7; + */ + public static final int s_privilege_VALUE = 7; + /** + * s_wallet = 8; + */ + public static final int s_wallet_VALUE = 8; + /** + * s_NA = 9; + */ + public static final int s_NA_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Servs valueOf(int value) { + return forNumber(value); + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Servs findValueByNumber(int number) { - return Servs.forNumber(number); - } - }; + public static Servs forNumber(int value) { + switch (value) { + case 0: return s_hb; + case 1: return s_admin; + case 2: return s_chain; + case 3: return s_account; + case 4: return s_tx; + case 5: return s_net; + case 6: return s_mine; + case 7: return s_privilege; + case 8: return s_wallet; + case 9: return s_NA; + default: return null; + } + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Servs> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Servs findValueByNumber(int number) { + return Servs.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(0); + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(0); - } + private static final Servs[] VALUES = values(); + + public static Servs valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } - private static final Servs[] VALUES = values(); + private final int value; - public static Servs valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Servs(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Servs) - } - - /** Protobuf enum {@code org.aion.api.server.pb.Funcs} */ - public enum Funcs implements com.google.protobuf.ProtocolMessageEnum { - /** f_protocolVersion = 0; */ - f_protocolVersion(0), - /** f_minerAddress = 1; */ - f_minerAddress(1), - /** f_accounts = 2; */ - f_accounts(2), - /** f_blockNumber = 3; */ - f_blockNumber(3), - /** f_getBalance = 4; */ - f_getBalance(4), - /** f_getStorageAt = 5; */ - f_getStorageAt(5), - /** f_unlockAccount = 6; */ - f_unlockAccount(6), - /** f_sendTransaction = 7; */ - f_sendTransaction(7), - /** f_getTransactionByHash = 8; */ - f_getTransactionByHash(8), - /** f_compile = 9; */ - f_compile(9), - /** f_contractDeploy = 10; */ - f_contractDeploy(10), - /** f_getTransactionCount = 11; */ - f_getTransactionCount(11), - /** f_getBlockTransactionCountByHash = 12; */ - f_getBlockTransactionCountByHash(12), - /** f_getBlockTransactionCountByNumber = 13; */ - f_getBlockTransactionCountByNumber(13), - /** f_getCode = 14; */ - f_getCode(14), - /** f_call = 15; */ - f_call(15), - /** f_getBlockByHash = 16; */ - f_getBlockByHash(16), - /** f_getBlockByNumber = 17; */ - f_getBlockByNumber(17), - /** f_getTransactionByBlockHashAndIndex = 18; */ - f_getTransactionByBlockHashAndIndex(18), - /** f_getTransactionByBlockNumberAndIndex = 19; */ - f_getTransactionByBlockNumberAndIndex(19), - /** f_getTransactionReceipt = 20; */ - f_getTransactionReceipt(20), - /** f_getCompilers = 21; */ - f_getCompilers(21), - /** f_compileSolidity = 22; */ - f_compileSolidity(22), - /** f_getWork = 23; */ - f_getWork(23), - /** f_submitWork = 24; */ - f_submitWork(24), - /** f_fetchQueuedTransactions = 25; */ - f_fetchQueuedTransactions(25), - /** f_signedTransaction = 26; */ - f_signedTransaction(26), - /** f_rawTransaction = 27; */ - f_rawTransaction(27), - /** f_estimateNrg = 28; */ - f_estimateNrg(28), - /** f_mining = 29; */ - f_mining(29), - /** f_hashrate = 30; */ - f_hashrate(30), - /** f_getActiveNodes = 31; */ - f_getActiveNodes(31), - /** f_getSolcVersion = 32; */ - f_getSolcVersion(32), - /** f_isSyncing = 33; */ - f_isSyncing(33), - /** f_syncInfo = 34; */ - f_syncInfo(34), - /** f_getSystemInfo = 35; */ - f_getSystemInfo(35), - /** f_eventRegister = 36; */ - f_eventRegister(36), - /** f_eventDeregister = 37; */ - f_eventDeregister(37), - /** f_accountCreate = 38; */ - f_accountCreate(38), - /** f_accountLock = 39; */ - f_accountLock(39), - /** f_userPrivilege = 40; */ - f_userPrivilege(40), - /** f_eventQuery = 41; */ - f_eventQuery(41), - /** f_importAccounts = 42; */ - f_importAccounts(42), - /** f_exportAccounts = 43; */ - f_exportAccounts(43), - /** f_getBlockHeaderByNumber = 44; */ - f_getBlockHeaderByNumber(44), - /** f_getBlockHeaderByHash = 45; */ - f_getBlockHeaderByHash(45), - /** f_getCurrentTotalDifficulty = 46; */ - f_getCurrentTotalDifficulty(46), - /** f_getStaticNodes = 47; */ - f_getStaticNodes(47), - /** f_getBlockDetailsByNumber = 48; */ - f_getBlockDetailsByNumber(48), - /** f_getBlockDetailsByLatest = 49; */ - f_getBlockDetailsByLatest(49), - /** f_getBlocksByLatest = 50; */ - f_getBlocksByLatest(50), - /** f_getAccountDetailsByAddressList = 51; */ - f_getAccountDetailsByAddressList(51), - /** f_backupAccounts = 52; */ - f_backupAccounts(52), - /** f_NA = 53; */ - f_NA(53), - /** f_getBlockSqlByRange = 54; */ - f_getBlockSqlByRange(54), - /** f_getBlockDetailsByRange = 55; */ - f_getBlockDetailsByRange(55), - /** f_getNonce = 56; */ - f_getNonce(56), - /** f_getNrgPrice = 57; */ - f_getNrgPrice(57), - UNRECOGNIZED(-1), - ; - - /** f_protocolVersion = 0; */ - public static final int f_protocolVersion_VALUE = 0; - /** f_minerAddress = 1; */ - public static final int f_minerAddress_VALUE = 1; - /** f_accounts = 2; */ - public static final int f_accounts_VALUE = 2; - /** f_blockNumber = 3; */ - public static final int f_blockNumber_VALUE = 3; - /** f_getBalance = 4; */ - public static final int f_getBalance_VALUE = 4; - /** f_getStorageAt = 5; */ - public static final int f_getStorageAt_VALUE = 5; - /** f_unlockAccount = 6; */ - public static final int f_unlockAccount_VALUE = 6; - /** f_sendTransaction = 7; */ - public static final int f_sendTransaction_VALUE = 7; - /** f_getTransactionByHash = 8; */ - public static final int f_getTransactionByHash_VALUE = 8; - /** f_compile = 9; */ - public static final int f_compile_VALUE = 9; - /** f_contractDeploy = 10; */ - public static final int f_contractDeploy_VALUE = 10; - /** f_getTransactionCount = 11; */ - public static final int f_getTransactionCount_VALUE = 11; - /** f_getBlockTransactionCountByHash = 12; */ - public static final int f_getBlockTransactionCountByHash_VALUE = 12; - /** f_getBlockTransactionCountByNumber = 13; */ - public static final int f_getBlockTransactionCountByNumber_VALUE = 13; - /** f_getCode = 14; */ - public static final int f_getCode_VALUE = 14; - /** f_call = 15; */ - public static final int f_call_VALUE = 15; - /** f_getBlockByHash = 16; */ - public static final int f_getBlockByHash_VALUE = 16; - /** f_getBlockByNumber = 17; */ - public static final int f_getBlockByNumber_VALUE = 17; - /** f_getTransactionByBlockHashAndIndex = 18; */ - public static final int f_getTransactionByBlockHashAndIndex_VALUE = 18; - /** f_getTransactionByBlockNumberAndIndex = 19; */ - public static final int f_getTransactionByBlockNumberAndIndex_VALUE = 19; - /** f_getTransactionReceipt = 20; */ - public static final int f_getTransactionReceipt_VALUE = 20; - /** f_getCompilers = 21; */ - public static final int f_getCompilers_VALUE = 21; - /** f_compileSolidity = 22; */ - public static final int f_compileSolidity_VALUE = 22; - /** f_getWork = 23; */ - public static final int f_getWork_VALUE = 23; - /** f_submitWork = 24; */ - public static final int f_submitWork_VALUE = 24; - /** f_fetchQueuedTransactions = 25; */ - public static final int f_fetchQueuedTransactions_VALUE = 25; - /** f_signedTransaction = 26; */ - public static final int f_signedTransaction_VALUE = 26; - /** f_rawTransaction = 27; */ - public static final int f_rawTransaction_VALUE = 27; - /** f_estimateNrg = 28; */ - public static final int f_estimateNrg_VALUE = 28; - /** f_mining = 29; */ - public static final int f_mining_VALUE = 29; - /** f_hashrate = 30; */ - public static final int f_hashrate_VALUE = 30; - /** f_getActiveNodes = 31; */ - public static final int f_getActiveNodes_VALUE = 31; - /** f_getSolcVersion = 32; */ - public static final int f_getSolcVersion_VALUE = 32; - /** f_isSyncing = 33; */ - public static final int f_isSyncing_VALUE = 33; - /** f_syncInfo = 34; */ - public static final int f_syncInfo_VALUE = 34; - /** f_getSystemInfo = 35; */ - public static final int f_getSystemInfo_VALUE = 35; - /** f_eventRegister = 36; */ - public static final int f_eventRegister_VALUE = 36; - /** f_eventDeregister = 37; */ - public static final int f_eventDeregister_VALUE = 37; - /** f_accountCreate = 38; */ - public static final int f_accountCreate_VALUE = 38; - /** f_accountLock = 39; */ - public static final int f_accountLock_VALUE = 39; - /** f_userPrivilege = 40; */ - public static final int f_userPrivilege_VALUE = 40; - /** f_eventQuery = 41; */ - public static final int f_eventQuery_VALUE = 41; - /** f_importAccounts = 42; */ - public static final int f_importAccounts_VALUE = 42; - /** f_exportAccounts = 43; */ - public static final int f_exportAccounts_VALUE = 43; - /** f_getBlockHeaderByNumber = 44; */ - public static final int f_getBlockHeaderByNumber_VALUE = 44; - /** f_getBlockHeaderByHash = 45; */ - public static final int f_getBlockHeaderByHash_VALUE = 45; - /** f_getCurrentTotalDifficulty = 46; */ - public static final int f_getCurrentTotalDifficulty_VALUE = 46; - /** f_getStaticNodes = 47; */ - public static final int f_getStaticNodes_VALUE = 47; - /** f_getBlockDetailsByNumber = 48; */ - public static final int f_getBlockDetailsByNumber_VALUE = 48; - /** f_getBlockDetailsByLatest = 49; */ - public static final int f_getBlockDetailsByLatest_VALUE = 49; - /** f_getBlocksByLatest = 50; */ - public static final int f_getBlocksByLatest_VALUE = 50; - /** f_getAccountDetailsByAddressList = 51; */ - public static final int f_getAccountDetailsByAddressList_VALUE = 51; - /** f_backupAccounts = 52; */ - public static final int f_backupAccounts_VALUE = 52; - /** f_NA = 53; */ - public static final int f_NA_VALUE = 53; - /** f_getBlockSqlByRange = 54; */ - public static final int f_getBlockSqlByRange_VALUE = 54; - /** f_getBlockDetailsByRange = 55; */ - public static final int f_getBlockDetailsByRange_VALUE = 55; - /** f_getNonce = 56; */ - public static final int f_getNonce_VALUE = 56; - /** f_getNrgPrice = 57; */ - public static final int f_getNrgPrice_VALUE = 57; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static Funcs valueOf(int value) { - return forNumber(value); - } - - public static Funcs forNumber(int value) { - switch (value) { - case 0: - return f_protocolVersion; - case 1: - return f_minerAddress; - case 2: - return f_accounts; - case 3: - return f_blockNumber; - case 4: - return f_getBalance; - case 5: - return f_getStorageAt; - case 6: - return f_unlockAccount; - case 7: - return f_sendTransaction; - case 8: - return f_getTransactionByHash; - case 9: - return f_compile; - case 10: - return f_contractDeploy; - case 11: - return f_getTransactionCount; - case 12: - return f_getBlockTransactionCountByHash; - case 13: - return f_getBlockTransactionCountByNumber; - case 14: - return f_getCode; - case 15: - return f_call; - case 16: - return f_getBlockByHash; - case 17: - return f_getBlockByNumber; - case 18: - return f_getTransactionByBlockHashAndIndex; - case 19: - return f_getTransactionByBlockNumberAndIndex; - case 20: - return f_getTransactionReceipt; - case 21: - return f_getCompilers; - case 22: - return f_compileSolidity; - case 23: - return f_getWork; - case 24: - return f_submitWork; - case 25: - return f_fetchQueuedTransactions; - case 26: - return f_signedTransaction; - case 27: - return f_rawTransaction; - case 28: - return f_estimateNrg; - case 29: - return f_mining; - case 30: - return f_hashrate; - case 31: - return f_getActiveNodes; - case 32: - return f_getSolcVersion; - case 33: - return f_isSyncing; - case 34: - return f_syncInfo; - case 35: - return f_getSystemInfo; - case 36: - return f_eventRegister; - case 37: - return f_eventDeregister; - case 38: - return f_accountCreate; - case 39: - return f_accountLock; - case 40: - return f_userPrivilege; - case 41: - return f_eventQuery; - case 42: - return f_importAccounts; - case 43: - return f_exportAccounts; - case 44: - return f_getBlockHeaderByNumber; - case 45: - return f_getBlockHeaderByHash; - case 46: - return f_getCurrentTotalDifficulty; - case 47: - return f_getStaticNodes; - case 48: - return f_getBlockDetailsByNumber; - case 49: - return f_getBlockDetailsByLatest; - case 50: - return f_getBlocksByLatest; - case 51: - return f_getAccountDetailsByAddressList; - case 52: - return f_backupAccounts; - case 53: - return f_NA; - case 54: - return f_getBlockSqlByRange; - case 55: - return f_getBlockDetailsByRange; - case 56: - return f_getNonce; - case 57: - return f_getNrgPrice; - default: - return null; - } - } + private Servs(int value) { + this.value = value; + } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Servs) + } + + /** + * Protobuf enum {@code org.aion.api.server.pb.Funcs} + */ + public enum Funcs + implements com.google.protobuf.ProtocolMessageEnum { + /** + * f_protocolVersion = 0; + */ + f_protocolVersion(0), + /** + * f_minerAddress = 1; + */ + f_minerAddress(1), + /** + * f_accounts = 2; + */ + f_accounts(2), + /** + * f_blockNumber = 3; + */ + f_blockNumber(3), + /** + * f_getBalance = 4; + */ + f_getBalance(4), + /** + * f_getStorageAt = 5; + */ + f_getStorageAt(5), + /** + * f_unlockAccount = 6; + */ + f_unlockAccount(6), + /** + * f_sendTransaction = 7; + */ + f_sendTransaction(7), + /** + * f_getTransactionByHash = 8; + */ + f_getTransactionByHash(8), + /** + * f_compile = 9; + */ + f_compile(9), + /** + * f_contractDeploy = 10; + */ + f_contractDeploy(10), + /** + * f_getTransactionCount = 11; + */ + f_getTransactionCount(11), + /** + * f_getBlockTransactionCountByHash = 12; + */ + f_getBlockTransactionCountByHash(12), + /** + * f_getBlockTransactionCountByNumber = 13; + */ + f_getBlockTransactionCountByNumber(13), + /** + * f_getCode = 14; + */ + f_getCode(14), + /** + * f_call = 15; + */ + f_call(15), + /** + * f_getBlockByHash = 16; + */ + f_getBlockByHash(16), + /** + * f_getBlockByNumber = 17; + */ + f_getBlockByNumber(17), + /** + * f_getTransactionByBlockHashAndIndex = 18; + */ + f_getTransactionByBlockHashAndIndex(18), + /** + * f_getTransactionByBlockNumberAndIndex = 19; + */ + f_getTransactionByBlockNumberAndIndex(19), + /** + * f_getTransactionReceipt = 20; + */ + f_getTransactionReceipt(20), + /** + * f_getCompilers = 21; + */ + f_getCompilers(21), + /** + * f_compileSolidity = 22; + */ + f_compileSolidity(22), + /** + * f_getWork = 23; + */ + f_getWork(23), + /** + * f_submitWork = 24; + */ + f_submitWork(24), + /** + * f_fetchQueuedTransactions = 25; + */ + f_fetchQueuedTransactions(25), + /** + * f_signedTransaction = 26; + */ + f_signedTransaction(26), + /** + * f_rawTransaction = 27; + */ + f_rawTransaction(27), + /** + * f_estimateNrg = 28; + */ + f_estimateNrg(28), + /** + * f_mining = 29; + */ + f_mining(29), + /** + * f_hashrate = 30; + */ + f_hashrate(30), + /** + * f_getActiveNodes = 31; + */ + f_getActiveNodes(31), + /** + * f_getSolcVersion = 32; + */ + f_getSolcVersion(32), + /** + * f_isSyncing = 33; + */ + f_isSyncing(33), + /** + * f_syncInfo = 34; + */ + f_syncInfo(34), + /** + * f_getSystemInfo = 35; + */ + f_getSystemInfo(35), + /** + * f_eventRegister = 36; + */ + f_eventRegister(36), + /** + * f_eventDeregister = 37; + */ + f_eventDeregister(37), + /** + * f_accountCreate = 38; + */ + f_accountCreate(38), + /** + * f_accountLock = 39; + */ + f_accountLock(39), + /** + * f_userPrivilege = 40; + */ + f_userPrivilege(40), + /** + * f_eventQuery = 41; + */ + f_eventQuery(41), + /** + * f_importAccounts = 42; + */ + f_importAccounts(42), + /** + * f_exportAccounts = 43; + */ + f_exportAccounts(43), + /** + * f_getBlockHeaderByNumber = 44; + */ + f_getBlockHeaderByNumber(44), + /** + * f_getBlockHeaderByHash = 45; + */ + f_getBlockHeaderByHash(45), + /** + * f_getCurrentTotalDifficulty = 46; + */ + f_getCurrentTotalDifficulty(46), + /** + * f_getStaticNodes = 47; + */ + f_getStaticNodes(47), + /** + * f_getBlockDetailsByNumber = 48; + */ + f_getBlockDetailsByNumber(48), + /** + * f_getBlockDetailsByLatest = 49; + */ + f_getBlockDetailsByLatest(49), + /** + * f_getBlocksByLatest = 50; + */ + f_getBlocksByLatest(50), + /** + * f_getAccountDetailsByAddressList = 51; + */ + f_getAccountDetailsByAddressList(51), + /** + * f_backupAccounts = 52; + */ + f_backupAccounts(52), + /** + * f_NA = 53; + */ + f_NA(53), + /** + * f_getBlockSqlByRange = 54; + */ + f_getBlockSqlByRange(54), + /** + * f_getBlockDetailsByRange = 55; + */ + f_getBlockDetailsByRange(55), + /** + * f_getNonce = 56; + */ + f_getNonce(56), + /** + * f_getNrgPrice = 57; + */ + f_getNrgPrice(57), + UNRECOGNIZED(-1), + ; + + /** + * f_protocolVersion = 0; + */ + public static final int f_protocolVersion_VALUE = 0; + /** + * f_minerAddress = 1; + */ + public static final int f_minerAddress_VALUE = 1; + /** + * f_accounts = 2; + */ + public static final int f_accounts_VALUE = 2; + /** + * f_blockNumber = 3; + */ + public static final int f_blockNumber_VALUE = 3; + /** + * f_getBalance = 4; + */ + public static final int f_getBalance_VALUE = 4; + /** + * f_getStorageAt = 5; + */ + public static final int f_getStorageAt_VALUE = 5; + /** + * f_unlockAccount = 6; + */ + public static final int f_unlockAccount_VALUE = 6; + /** + * f_sendTransaction = 7; + */ + public static final int f_sendTransaction_VALUE = 7; + /** + * f_getTransactionByHash = 8; + */ + public static final int f_getTransactionByHash_VALUE = 8; + /** + * f_compile = 9; + */ + public static final int f_compile_VALUE = 9; + /** + * f_contractDeploy = 10; + */ + public static final int f_contractDeploy_VALUE = 10; + /** + * f_getTransactionCount = 11; + */ + public static final int f_getTransactionCount_VALUE = 11; + /** + * f_getBlockTransactionCountByHash = 12; + */ + public static final int f_getBlockTransactionCountByHash_VALUE = 12; + /** + * f_getBlockTransactionCountByNumber = 13; + */ + public static final int f_getBlockTransactionCountByNumber_VALUE = 13; + /** + * f_getCode = 14; + */ + public static final int f_getCode_VALUE = 14; + /** + * f_call = 15; + */ + public static final int f_call_VALUE = 15; + /** + * f_getBlockByHash = 16; + */ + public static final int f_getBlockByHash_VALUE = 16; + /** + * f_getBlockByNumber = 17; + */ + public static final int f_getBlockByNumber_VALUE = 17; + /** + * f_getTransactionByBlockHashAndIndex = 18; + */ + public static final int f_getTransactionByBlockHashAndIndex_VALUE = 18; + /** + * f_getTransactionByBlockNumberAndIndex = 19; + */ + public static final int f_getTransactionByBlockNumberAndIndex_VALUE = 19; + /** + * f_getTransactionReceipt = 20; + */ + public static final int f_getTransactionReceipt_VALUE = 20; + /** + * f_getCompilers = 21; + */ + public static final int f_getCompilers_VALUE = 21; + /** + * f_compileSolidity = 22; + */ + public static final int f_compileSolidity_VALUE = 22; + /** + * f_getWork = 23; + */ + public static final int f_getWork_VALUE = 23; + /** + * f_submitWork = 24; + */ + public static final int f_submitWork_VALUE = 24; + /** + * f_fetchQueuedTransactions = 25; + */ + public static final int f_fetchQueuedTransactions_VALUE = 25; + /** + * f_signedTransaction = 26; + */ + public static final int f_signedTransaction_VALUE = 26; + /** + * f_rawTransaction = 27; + */ + public static final int f_rawTransaction_VALUE = 27; + /** + * f_estimateNrg = 28; + */ + public static final int f_estimateNrg_VALUE = 28; + /** + * f_mining = 29; + */ + public static final int f_mining_VALUE = 29; + /** + * f_hashrate = 30; + */ + public static final int f_hashrate_VALUE = 30; + /** + * f_getActiveNodes = 31; + */ + public static final int f_getActiveNodes_VALUE = 31; + /** + * f_getSolcVersion = 32; + */ + public static final int f_getSolcVersion_VALUE = 32; + /** + * f_isSyncing = 33; + */ + public static final int f_isSyncing_VALUE = 33; + /** + * f_syncInfo = 34; + */ + public static final int f_syncInfo_VALUE = 34; + /** + * f_getSystemInfo = 35; + */ + public static final int f_getSystemInfo_VALUE = 35; + /** + * f_eventRegister = 36; + */ + public static final int f_eventRegister_VALUE = 36; + /** + * f_eventDeregister = 37; + */ + public static final int f_eventDeregister_VALUE = 37; + /** + * f_accountCreate = 38; + */ + public static final int f_accountCreate_VALUE = 38; + /** + * f_accountLock = 39; + */ + public static final int f_accountLock_VALUE = 39; + /** + * f_userPrivilege = 40; + */ + public static final int f_userPrivilege_VALUE = 40; + /** + * f_eventQuery = 41; + */ + public static final int f_eventQuery_VALUE = 41; + /** + * f_importAccounts = 42; + */ + public static final int f_importAccounts_VALUE = 42; + /** + * f_exportAccounts = 43; + */ + public static final int f_exportAccounts_VALUE = 43; + /** + * f_getBlockHeaderByNumber = 44; + */ + public static final int f_getBlockHeaderByNumber_VALUE = 44; + /** + * f_getBlockHeaderByHash = 45; + */ + public static final int f_getBlockHeaderByHash_VALUE = 45; + /** + * f_getCurrentTotalDifficulty = 46; + */ + public static final int f_getCurrentTotalDifficulty_VALUE = 46; + /** + * f_getStaticNodes = 47; + */ + public static final int f_getStaticNodes_VALUE = 47; + /** + * f_getBlockDetailsByNumber = 48; + */ + public static final int f_getBlockDetailsByNumber_VALUE = 48; + /** + * f_getBlockDetailsByLatest = 49; + */ + public static final int f_getBlockDetailsByLatest_VALUE = 49; + /** + * f_getBlocksByLatest = 50; + */ + public static final int f_getBlocksByLatest_VALUE = 50; + /** + * f_getAccountDetailsByAddressList = 51; + */ + public static final int f_getAccountDetailsByAddressList_VALUE = 51; + /** + * f_backupAccounts = 52; + */ + public static final int f_backupAccounts_VALUE = 52; + /** + * f_NA = 53; + */ + public static final int f_NA_VALUE = 53; + /** + * f_getBlockSqlByRange = 54; + */ + public static final int f_getBlockSqlByRange_VALUE = 54; + /** + * f_getBlockDetailsByRange = 55; + */ + public static final int f_getBlockDetailsByRange_VALUE = 55; + /** + * f_getNonce = 56; + */ + public static final int f_getNonce_VALUE = 56; + /** + * f_getNrgPrice = 57; + */ + public static final int f_getNrgPrice_VALUE = 57; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Funcs findValueByNumber(int number) { - return Funcs.forNumber(number); - } - }; + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Funcs valueOf(int value) { + return forNumber(value); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } + public static Funcs forNumber(int value) { + switch (value) { + case 0: return f_protocolVersion; + case 1: return f_minerAddress; + case 2: return f_accounts; + case 3: return f_blockNumber; + case 4: return f_getBalance; + case 5: return f_getStorageAt; + case 6: return f_unlockAccount; + case 7: return f_sendTransaction; + case 8: return f_getTransactionByHash; + case 9: return f_compile; + case 10: return f_contractDeploy; + case 11: return f_getTransactionCount; + case 12: return f_getBlockTransactionCountByHash; + case 13: return f_getBlockTransactionCountByNumber; + case 14: return f_getCode; + case 15: return f_call; + case 16: return f_getBlockByHash; + case 17: return f_getBlockByNumber; + case 18: return f_getTransactionByBlockHashAndIndex; + case 19: return f_getTransactionByBlockNumberAndIndex; + case 20: return f_getTransactionReceipt; + case 21: return f_getCompilers; + case 22: return f_compileSolidity; + case 23: return f_getWork; + case 24: return f_submitWork; + case 25: return f_fetchQueuedTransactions; + case 26: return f_signedTransaction; + case 27: return f_rawTransaction; + case 28: return f_estimateNrg; + case 29: return f_mining; + case 30: return f_hashrate; + case 31: return f_getActiveNodes; + case 32: return f_getSolcVersion; + case 33: return f_isSyncing; + case 34: return f_syncInfo; + case 35: return f_getSystemInfo; + case 36: return f_eventRegister; + case 37: return f_eventDeregister; + case 38: return f_accountCreate; + case 39: return f_accountLock; + case 40: return f_userPrivilege; + case 41: return f_eventQuery; + case 42: return f_importAccounts; + case 43: return f_exportAccounts; + case 44: return f_getBlockHeaderByNumber; + case 45: return f_getBlockHeaderByHash; + case 46: return f_getCurrentTotalDifficulty; + case 47: return f_getStaticNodes; + case 48: return f_getBlockDetailsByNumber; + case 49: return f_getBlockDetailsByLatest; + case 50: return f_getBlocksByLatest; + case 51: return f_getAccountDetailsByAddressList; + case 52: return f_backupAccounts; + case 53: return f_NA; + case 54: return f_getBlockSqlByRange; + case 55: return f_getBlockDetailsByRange; + case 56: return f_getNonce; + case 57: return f_getNrgPrice; + default: return null; + } + } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Funcs> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Funcs findValueByNumber(int number) { + return Funcs.forNumber(number); + } + }; - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(1); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(1); + } - private static final Funcs[] VALUES = values(); + private static final Funcs[] VALUES = values(); + + public static Funcs valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } - public static Funcs valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Funcs(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Funcs) - } - - /** Protobuf enum {@code org.aion.api.server.pb.Retcode} */ - public enum Retcode implements com.google.protobuf.ProtocolMessageEnum { - /** r_fail = 0; */ - r_fail(0), - /** r_success = 1; */ - r_success(1), - /** r_wallet_nullcb = 2; */ - r_wallet_nullcb(2), - /** r_heartbeatReturn = 3; */ - r_heartbeatReturn(3), - /** r_privilegeReturn = 4; */ - r_privilegeReturn(4), - /** r_tx_Init = 100; */ - r_tx_Init(100), - /** r_tx_Recved = 101; */ - r_tx_Recved(101), - /** r_tx_Dropped = 102; */ - r_tx_Dropped(102), - /** r_tx_NewPending = 103; */ - r_tx_NewPending(103), - /** r_tx_Pending = 104; */ - r_tx_Pending(104), - /** r_tx_Included = 105; */ - r_tx_Included(105), - /** r_tx_eventCb = 106; */ - r_tx_eventCb(106), - /** r_NA = 107; */ - r_NA(107), - /** r_fail_header_len = -1; */ - r_fail_header_len(-1), - /** r_fail_service_call = -2; */ - r_fail_service_call(-2), - /** r_fail_function_call = -3; */ - r_fail_function_call(-3), - /** r_fail_function_exception = -4; */ - r_fail_function_exception(-4), - /** r_fail_api_version = -5; */ - r_fail_api_version(-5), - /** r_fail_ct_bytecode = -6; */ - r_fail_ct_bytecode(-6), - /** r_fail_null_rsp = -7; */ - r_fail_null_rsp(-7), - /** r_fail_invalid_addr = -8; */ - r_fail_invalid_addr(-8), - /** r_fail_null_compile_source = -9; */ - r_fail_null_compile_source(-9), - /** r_fail_compile_contract = -10; */ - r_fail_compile_contract(-10), - /** r_fail_sendTx_null_rep = -11; */ - r_fail_sendTx_null_rep(-11), - /** r_fail_getcode_to = -12; */ - r_fail_getcode_to(-12), - /** r_fail_getTxReceipt_null_recp = -13; */ - r_fail_getTxReceipt_null_recp(-13), - /** r_fail_zmqHandler_exception = -14; */ - r_fail_zmqHandler_exception(-14), - /** r_fail_hit_pending_tx_limit = -15; */ - r_fail_hit_pending_tx_limit(-15), - /** r_fail_txqueue_exception = -16; */ - r_fail_txqueue_exception(-16), - /** r_fail_function_arguments = -17; */ - r_fail_function_arguments(-17), - /** r_fail_unsupport_api = -18; */ - r_fail_unsupport_api(-18), - /** r_fail_unknown = -19; */ - r_fail_unknown(-19), - UNRECOGNIZED(-1), - ; - - /** r_fail = 0; */ - public static final int r_fail_VALUE = 0; - /** r_success = 1; */ - public static final int r_success_VALUE = 1; - /** r_wallet_nullcb = 2; */ - public static final int r_wallet_nullcb_VALUE = 2; - /** r_heartbeatReturn = 3; */ - public static final int r_heartbeatReturn_VALUE = 3; - /** r_privilegeReturn = 4; */ - public static final int r_privilegeReturn_VALUE = 4; - /** r_tx_Init = 100; */ - public static final int r_tx_Init_VALUE = 100; - /** r_tx_Recved = 101; */ - public static final int r_tx_Recved_VALUE = 101; - /** r_tx_Dropped = 102; */ - public static final int r_tx_Dropped_VALUE = 102; - /** r_tx_NewPending = 103; */ - public static final int r_tx_NewPending_VALUE = 103; - /** r_tx_Pending = 104; */ - public static final int r_tx_Pending_VALUE = 104; - /** r_tx_Included = 105; */ - public static final int r_tx_Included_VALUE = 105; - /** r_tx_eventCb = 106; */ - public static final int r_tx_eventCb_VALUE = 106; - /** r_NA = 107; */ - public static final int r_NA_VALUE = 107; - /** r_fail_header_len = -1; */ - public static final int r_fail_header_len_VALUE = -1; - /** r_fail_service_call = -2; */ - public static final int r_fail_service_call_VALUE = -2; - /** r_fail_function_call = -3; */ - public static final int r_fail_function_call_VALUE = -3; - /** r_fail_function_exception = -4; */ - public static final int r_fail_function_exception_VALUE = -4; - /** r_fail_api_version = -5; */ - public static final int r_fail_api_version_VALUE = -5; - /** r_fail_ct_bytecode = -6; */ - public static final int r_fail_ct_bytecode_VALUE = -6; - /** r_fail_null_rsp = -7; */ - public static final int r_fail_null_rsp_VALUE = -7; - /** r_fail_invalid_addr = -8; */ - public static final int r_fail_invalid_addr_VALUE = -8; - /** r_fail_null_compile_source = -9; */ - public static final int r_fail_null_compile_source_VALUE = -9; - /** r_fail_compile_contract = -10; */ - public static final int r_fail_compile_contract_VALUE = -10; - /** r_fail_sendTx_null_rep = -11; */ - public static final int r_fail_sendTx_null_rep_VALUE = -11; - /** r_fail_getcode_to = -12; */ - public static final int r_fail_getcode_to_VALUE = -12; - /** r_fail_getTxReceipt_null_recp = -13; */ - public static final int r_fail_getTxReceipt_null_recp_VALUE = -13; - /** r_fail_zmqHandler_exception = -14; */ - public static final int r_fail_zmqHandler_exception_VALUE = -14; - /** r_fail_hit_pending_tx_limit = -15; */ - public static final int r_fail_hit_pending_tx_limit_VALUE = -15; - /** r_fail_txqueue_exception = -16; */ - public static final int r_fail_txqueue_exception_VALUE = -16; - /** r_fail_function_arguments = -17; */ - public static final int r_fail_function_arguments_VALUE = -17; - /** r_fail_unsupport_api = -18; */ - public static final int r_fail_unsupport_api_VALUE = -18; - /** r_fail_unknown = -19; */ - public static final int r_fail_unknown_VALUE = -19; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static Retcode valueOf(int value) { - return forNumber(value); - } - - public static Retcode forNumber(int value) { - switch (value) { - case 0: - return r_fail; - case 1: - return r_success; - case 2: - return r_wallet_nullcb; - case 3: - return r_heartbeatReturn; - case 4: - return r_privilegeReturn; - case 100: - return r_tx_Init; - case 101: - return r_tx_Recved; - case 102: - return r_tx_Dropped; - case 103: - return r_tx_NewPending; - case 104: - return r_tx_Pending; - case 105: - return r_tx_Included; - case 106: - return r_tx_eventCb; - case 107: - return r_NA; - case -1: - return r_fail_header_len; - case -2: - return r_fail_service_call; - case -3: - return r_fail_function_call; - case -4: - return r_fail_function_exception; - case -5: - return r_fail_api_version; - case -6: - return r_fail_ct_bytecode; - case -7: - return r_fail_null_rsp; - case -8: - return r_fail_invalid_addr; - case -9: - return r_fail_null_compile_source; - case -10: - return r_fail_compile_contract; - case -11: - return r_fail_sendTx_null_rep; - case -12: - return r_fail_getcode_to; - case -13: - return r_fail_getTxReceipt_null_recp; - case -14: - return r_fail_zmqHandler_exception; - case -15: - return r_fail_hit_pending_tx_limit; - case -16: - return r_fail_txqueue_exception; - case -17: - return r_fail_function_arguments; - case -18: - return r_fail_unsupport_api; - case -19: - return r_fail_unknown; - default: - return null; - } - } + private final int value; - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + private Funcs(int value) { + this.value = value; + } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Retcode findValueByNumber(int number) { - return Retcode.forNumber(number); - } - }; + // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Funcs) + } + + /** + * Protobuf enum {@code org.aion.api.server.pb.Retcode} + */ + public enum Retcode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * r_fail = 0; + */ + r_fail(0), + /** + * r_success = 1; + */ + r_success(1), + /** + * r_wallet_nullcb = 2; + */ + r_wallet_nullcb(2), + /** + * r_heartbeatReturn = 3; + */ + r_heartbeatReturn(3), + /** + * r_privilegeReturn = 4; + */ + r_privilegeReturn(4), + /** + * r_tx_Init = 100; + */ + r_tx_Init(100), + /** + * r_tx_Recved = 101; + */ + r_tx_Recved(101), + /** + * r_tx_Dropped = 102; + */ + r_tx_Dropped(102), + /** + * r_tx_NewPending = 103; + */ + r_tx_NewPending(103), + /** + * r_tx_Pending = 104; + */ + r_tx_Pending(104), + /** + * r_tx_Included = 105; + */ + r_tx_Included(105), + /** + * r_tx_eventCb = 106; + */ + r_tx_eventCb(106), + /** + * r_NA = 107; + */ + r_NA(107), + /** + * r_fail_header_len = -1; + */ + r_fail_header_len(-1), + /** + * r_fail_service_call = -2; + */ + r_fail_service_call(-2), + /** + * r_fail_function_call = -3; + */ + r_fail_function_call(-3), + /** + * r_fail_function_exception = -4; + */ + r_fail_function_exception(-4), + /** + * r_fail_api_version = -5; + */ + r_fail_api_version(-5), + /** + * r_fail_ct_bytecode = -6; + */ + r_fail_ct_bytecode(-6), + /** + * r_fail_null_rsp = -7; + */ + r_fail_null_rsp(-7), + /** + * r_fail_invalid_addr = -8; + */ + r_fail_invalid_addr(-8), + /** + * r_fail_null_compile_source = -9; + */ + r_fail_null_compile_source(-9), + /** + * r_fail_compile_contract = -10; + */ + r_fail_compile_contract(-10), + /** + * r_fail_sendTx_null_rep = -11; + */ + r_fail_sendTx_null_rep(-11), + /** + * r_fail_getcode_to = -12; + */ + r_fail_getcode_to(-12), + /** + * r_fail_getTxReceipt_null_recp = -13; + */ + r_fail_getTxReceipt_null_recp(-13), + /** + * r_fail_zmqHandler_exception = -14; + */ + r_fail_zmqHandler_exception(-14), + /** + * r_fail_hit_pending_tx_limit = -15; + */ + r_fail_hit_pending_tx_limit(-15), + /** + * r_fail_txqueue_exception = -16; + */ + r_fail_txqueue_exception(-16), + /** + * r_fail_function_arguments = -17; + */ + r_fail_function_arguments(-17), + /** + * r_fail_unsupport_api = -18; + */ + r_fail_unsupport_api(-18), + /** + * r_fail_unknown = -19; + */ + r_fail_unknown(-19), + UNRECOGNIZED(-1), + ; + + /** + * r_fail = 0; + */ + public static final int r_fail_VALUE = 0; + /** + * r_success = 1; + */ + public static final int r_success_VALUE = 1; + /** + * r_wallet_nullcb = 2; + */ + public static final int r_wallet_nullcb_VALUE = 2; + /** + * r_heartbeatReturn = 3; + */ + public static final int r_heartbeatReturn_VALUE = 3; + /** + * r_privilegeReturn = 4; + */ + public static final int r_privilegeReturn_VALUE = 4; + /** + * r_tx_Init = 100; + */ + public static final int r_tx_Init_VALUE = 100; + /** + * r_tx_Recved = 101; + */ + public static final int r_tx_Recved_VALUE = 101; + /** + * r_tx_Dropped = 102; + */ + public static final int r_tx_Dropped_VALUE = 102; + /** + * r_tx_NewPending = 103; + */ + public static final int r_tx_NewPending_VALUE = 103; + /** + * r_tx_Pending = 104; + */ + public static final int r_tx_Pending_VALUE = 104; + /** + * r_tx_Included = 105; + */ + public static final int r_tx_Included_VALUE = 105; + /** + * r_tx_eventCb = 106; + */ + public static final int r_tx_eventCb_VALUE = 106; + /** + * r_NA = 107; + */ + public static final int r_NA_VALUE = 107; + /** + * r_fail_header_len = -1; + */ + public static final int r_fail_header_len_VALUE = -1; + /** + * r_fail_service_call = -2; + */ + public static final int r_fail_service_call_VALUE = -2; + /** + * r_fail_function_call = -3; + */ + public static final int r_fail_function_call_VALUE = -3; + /** + * r_fail_function_exception = -4; + */ + public static final int r_fail_function_exception_VALUE = -4; + /** + * r_fail_api_version = -5; + */ + public static final int r_fail_api_version_VALUE = -5; + /** + * r_fail_ct_bytecode = -6; + */ + public static final int r_fail_ct_bytecode_VALUE = -6; + /** + * r_fail_null_rsp = -7; + */ + public static final int r_fail_null_rsp_VALUE = -7; + /** + * r_fail_invalid_addr = -8; + */ + public static final int r_fail_invalid_addr_VALUE = -8; + /** + * r_fail_null_compile_source = -9; + */ + public static final int r_fail_null_compile_source_VALUE = -9; + /** + * r_fail_compile_contract = -10; + */ + public static final int r_fail_compile_contract_VALUE = -10; + /** + * r_fail_sendTx_null_rep = -11; + */ + public static final int r_fail_sendTx_null_rep_VALUE = -11; + /** + * r_fail_getcode_to = -12; + */ + public static final int r_fail_getcode_to_VALUE = -12; + /** + * r_fail_getTxReceipt_null_recp = -13; + */ + public static final int r_fail_getTxReceipt_null_recp_VALUE = -13; + /** + * r_fail_zmqHandler_exception = -14; + */ + public static final int r_fail_zmqHandler_exception_VALUE = -14; + /** + * r_fail_hit_pending_tx_limit = -15; + */ + public static final int r_fail_hit_pending_tx_limit_VALUE = -15; + /** + * r_fail_txqueue_exception = -16; + */ + public static final int r_fail_txqueue_exception_VALUE = -16; + /** + * r_fail_function_arguments = -17; + */ + public static final int r_fail_function_arguments_VALUE = -17; + /** + * r_fail_unsupport_api = -18; + */ + public static final int r_fail_unsupport_api_VALUE = -18; + /** + * r_fail_unknown = -19; + */ + public static final int r_fail_unknown_VALUE = -19; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Retcode valueOf(int value) { + return forNumber(value); + } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public static Retcode forNumber(int value) { + switch (value) { + case 0: return r_fail; + case 1: return r_success; + case 2: return r_wallet_nullcb; + case 3: return r_heartbeatReturn; + case 4: return r_privilegeReturn; + case 100: return r_tx_Init; + case 101: return r_tx_Recved; + case 102: return r_tx_Dropped; + case 103: return r_tx_NewPending; + case 104: return r_tx_Pending; + case 105: return r_tx_Included; + case 106: return r_tx_eventCb; + case 107: return r_NA; + case -1: return r_fail_header_len; + case -2: return r_fail_service_call; + case -3: return r_fail_function_call; + case -4: return r_fail_function_exception; + case -5: return r_fail_api_version; + case -6: return r_fail_ct_bytecode; + case -7: return r_fail_null_rsp; + case -8: return r_fail_invalid_addr; + case -9: return r_fail_null_compile_source; + case -10: return r_fail_compile_contract; + case -11: return r_fail_sendTx_null_rep; + case -12: return r_fail_getcode_to; + case -13: return r_fail_getTxReceipt_null_recp; + case -14: return r_fail_zmqHandler_exception; + case -15: return r_fail_hit_pending_tx_limit; + case -16: return r_fail_txqueue_exception; + case -17: return r_fail_function_arguments; + case -18: return r_fail_unsupport_api; + case -19: return r_fail_unknown; + default: return null; + } + } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(2); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Retcode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Retcode findValueByNumber(int number) { + return Retcode.forNumber(number); + } + }; - private static final Retcode[] VALUES = values(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.aion.api.server.pb.Message.getDescriptor().getEnumTypes().get(2); + } - public static Retcode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } + private static final Retcode[] VALUES = values(); + + public static Retcode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } - private final int value; + private final int value; - private Retcode(int value) { - this.value = value; - } + private Retcode(int value) { + this.value = value; + } - // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Retcode) + // @@protoc_insertion_point(enum_scope:org.aion.api.server.pb.Retcode) + } + + public interface t_ContractOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Contract) + com.google.protobuf.MessageOrBuilder { + + /** + * string code = 1; + */ + java.lang.String getCode(); + /** + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + * string error = 2; + */ + java.lang.String getError(); + /** + * string error = 2; + */ + com.google.protobuf.ByteString + getErrorBytes(); + + /** + * string source = 3; + */ + java.lang.String getSource(); + /** + * string source = 3; + */ + com.google.protobuf.ByteString + getSourceBytes(); + + /** + * string compilerVersion = 4; + */ + java.lang.String getCompilerVersion(); + /** + * string compilerVersion = 4; + */ + com.google.protobuf.ByteString + getCompilerVersionBytes(); + + /** + * string compilerOptions = 5; + */ + java.lang.String getCompilerOptions(); + /** + * string compilerOptions = 5; + */ + com.google.protobuf.ByteString + getCompilerOptionsBytes(); + + /** + * bytes abiDef = 6; + */ + com.google.protobuf.ByteString getAbiDef(); + + /** + * bytes userDoc = 7; + */ + com.google.protobuf.ByteString getUserDoc(); + + /** + * bytes devDoc = 8; + */ + com.google.protobuf.ByteString getDevDoc(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Contract} + */ + public static final class t_Contract extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Contract) + t_ContractOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Contract.newBuilder() to construct. + private t_Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_Contract() { + code_ = ""; + error_ = ""; + source_ = ""; + compilerVersion_ = ""; + compilerOptions_ = ""; + abiDef_ = com.google.protobuf.ByteString.EMPTY; + userDoc_ = com.google.protobuf.ByteString.EMPTY; + devDoc_ = com.google.protobuf.ByteString.EMPTY; } - public interface t_ContractOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Contract) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_Contract( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + compilerVersion_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + compilerOptions_ = s; + break; + } + case 50: { + + abiDef_ = input.readBytes(); + break; + } + case 58: { + + userDoc_ = input.readBytes(); + break; + } + case 66: { + + devDoc_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_descriptor; + } - /** string code = 1; */ - java.lang.String getCode(); - /** string code = 1; */ - com.google.protobuf.ByteString getCodeBytes(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Contract.class, org.aion.api.server.pb.Message.t_Contract.Builder.class); + } - /** string error = 2; */ - java.lang.String getError(); - /** string error = 2; */ - com.google.protobuf.ByteString getErrorBytes(); + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** string source = 3; */ - java.lang.String getSource(); - /** string source = 3; */ - com.google.protobuf.ByteString getSourceBytes(); + public static final int ERROR_FIELD_NUMBER = 2; + private volatile java.lang.Object error_; + /** + * string error = 2; + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + * string error = 2; + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** string compilerVersion = 4; */ - java.lang.String getCompilerVersion(); - /** string compilerVersion = 4; */ - com.google.protobuf.ByteString getCompilerVersionBytes(); + public static final int SOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object source_; + /** + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * string source = 3; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** string compilerOptions = 5; */ - java.lang.String getCompilerOptions(); - /** string compilerOptions = 5; */ - com.google.protobuf.ByteString getCompilerOptionsBytes(); + public static final int COMPILERVERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object compilerVersion_; + /** + * string compilerVersion = 4; + */ + public java.lang.String getCompilerVersion() { + java.lang.Object ref = compilerVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerVersion_ = s; + return s; + } + } + /** + * string compilerVersion = 4; + */ + public com.google.protobuf.ByteString + getCompilerVersionBytes() { + java.lang.Object ref = compilerVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compilerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** bytes abiDef = 6; */ - com.google.protobuf.ByteString getAbiDef(); + public static final int COMPILEROPTIONS_FIELD_NUMBER = 5; + private volatile java.lang.Object compilerOptions_; + /** + * string compilerOptions = 5; + */ + public java.lang.String getCompilerOptions() { + java.lang.Object ref = compilerOptions_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerOptions_ = s; + return s; + } + } + /** + * string compilerOptions = 5; + */ + public com.google.protobuf.ByteString + getCompilerOptionsBytes() { + java.lang.Object ref = compilerOptions_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compilerOptions_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** bytes userDoc = 7; */ - com.google.protobuf.ByteString getUserDoc(); + public static final int ABIDEF_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString abiDef_; + /** + * bytes abiDef = 6; + */ + public com.google.protobuf.ByteString getAbiDef() { + return abiDef_; + } - /** bytes devDoc = 8; */ - com.google.protobuf.ByteString getDevDoc(); + public static final int USERDOC_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString userDoc_; + /** + * bytes userDoc = 7; + */ + public com.google.protobuf.ByteString getUserDoc() { + return userDoc_; } - /** Protobuf type {@code org.aion.api.server.pb.t_Contract} */ - public static final class t_Contract extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Contract) - t_ContractOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Contract.newBuilder() to construct. - private t_Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_Contract() { - code_ = ""; - error_ = ""; - source_ = ""; - compilerVersion_ = ""; - compilerOptions_ = ""; - abiDef_ = com.google.protobuf.ByteString.EMPTY; - userDoc_ = com.google.protobuf.ByteString.EMPTY; - devDoc_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int DEVDOC_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString devDoc_; + /** + * bytes devDoc = 8; + */ + public com.google.protobuf.ByteString getDevDoc() { + return devDoc_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private t_Contract( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - compilerVersion_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - compilerOptions_ = s; - break; - } - case 50: - { - abiDef_ = input.readBytes(); - break; - } - case 58: - { - userDoc_ = input.readBytes(); - break; - } - case 66: - { - devDoc_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + memoizedIsInitialized = 1; + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Contract_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getErrorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); + } + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + if (!getCompilerVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, compilerVersion_); + } + if (!getCompilerOptionsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, compilerOptions_); + } + if (!abiDef_.isEmpty()) { + output.writeBytes(6, abiDef_); + } + if (!userDoc_.isEmpty()) { + output.writeBytes(7, userDoc_); + } + if (!devDoc_.isEmpty()) { + output.writeBytes(8, devDoc_); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Contract.class, - org.aion.api.server.pb.Message.t_Contract.Builder.class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getErrorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); + } + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + if (!getCompilerVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, compilerVersion_); + } + if (!getCompilerOptionsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, compilerOptions_); + } + if (!abiDef_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, abiDef_); + } + if (!userDoc_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, userDoc_); + } + if (!devDoc_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, devDoc_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** string code = 1; */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** string code = 1; */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Contract)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_Contract other = (org.aion.api.server.pb.Message.t_Contract) obj; + + boolean result = true; + result = result && getCode() + .equals(other.getCode()); + result = result && getError() + .equals(other.getError()); + result = result && getSource() + .equals(other.getSource()); + result = result && getCompilerVersion() + .equals(other.getCompilerVersion()); + result = result && getCompilerOptions() + .equals(other.getCompilerOptions()); + result = result && getAbiDef() + .equals(other.getAbiDef()); + result = result && getUserDoc() + .equals(other.getUserDoc()); + result = result && getDevDoc() + .equals(other.getDevDoc()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int ERROR_FIELD_NUMBER = 2; - private volatile java.lang.Object error_; - /** string error = 2; */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** string error = 2; */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + COMPILERVERSION_FIELD_NUMBER; + hash = (53 * hash) + getCompilerVersion().hashCode(); + hash = (37 * hash) + COMPILEROPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCompilerOptions().hashCode(); + hash = (37 * hash) + ABIDEF_FIELD_NUMBER; + hash = (53 * hash) + getAbiDef().hashCode(); + hash = (37 * hash) + USERDOC_FIELD_NUMBER; + hash = (53 * hash) + getUserDoc().hashCode(); + hash = (37 * hash) + DEVDOC_FIELD_NUMBER; + hash = (53 * hash) + getDevDoc().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int SOURCE_FIELD_NUMBER = 3; - private volatile java.lang.Object source_; - /** string source = 3; */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } - } - /** string source = 3; */ - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Contract parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int COMPILERVERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object compilerVersion_; - /** string compilerVersion = 4; */ - public java.lang.String getCompilerVersion() { - java.lang.Object ref = compilerVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerVersion_ = s; - return s; - } - } - /** string compilerVersion = 4; */ - public com.google.protobuf.ByteString getCompilerVersionBytes() { - java.lang.Object ref = compilerVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilerVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Contract prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int COMPILEROPTIONS_FIELD_NUMBER = 5; - private volatile java.lang.Object compilerOptions_; - /** string compilerOptions = 5; */ - public java.lang.String getCompilerOptions() { - java.lang.Object ref = compilerOptions_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerOptions_ = s; - return s; - } - } - /** string compilerOptions = 5; */ - public com.google.protobuf.ByteString getCompilerOptionsBytes() { - java.lang.Object ref = compilerOptions_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilerOptions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Contract} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Contract) + org.aion.api.server.pb.Message.t_ContractOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Contract.class, org.aion.api.server.pb.Message.t_Contract.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_Contract.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = ""; + + error_ = ""; + + source_ = ""; + + compilerVersion_ = ""; + + compilerOptions_ = ""; + + abiDef_ = com.google.protobuf.ByteString.EMPTY; + + userDoc_ = com.google.protobuf.ByteString.EMPTY; + + devDoc_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Contract_descriptor; + } + + public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Contract.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_Contract build() { + org.aion.api.server.pb.Message.t_Contract result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_Contract buildPartial() { + org.aion.api.server.pb.Message.t_Contract result = new org.aion.api.server.pb.Message.t_Contract(this); + result.code_ = code_; + result.error_ = error_; + result.source_ = source_; + result.compilerVersion_ = compilerVersion_; + result.compilerOptions_ = compilerOptions_; + result.abiDef_ = abiDef_; + result.userDoc_ = userDoc_; + result.devDoc_ = devDoc_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Contract) { + return mergeFrom((org.aion.api.server.pb.Message.t_Contract)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Contract other) { + if (other == org.aion.api.server.pb.Message.t_Contract.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + if (!other.getCompilerVersion().isEmpty()) { + compilerVersion_ = other.compilerVersion_; + onChanged(); + } + if (!other.getCompilerOptions().isEmpty()) { + compilerOptions_ = other.compilerOptions_; + onChanged(); + } + if (other.getAbiDef() != com.google.protobuf.ByteString.EMPTY) { + setAbiDef(other.getAbiDef()); + } + if (other.getUserDoc() != com.google.protobuf.ByteString.EMPTY) { + setUserDoc(other.getUserDoc()); + } + if (other.getDevDoc() != com.google.protobuf.ByteString.EMPTY) { + setDevDoc(other.getDevDoc()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Contract parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_Contract) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 2; + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 2; + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 2; + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + * string error = 2; + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + * string error = 2; + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * string source = 3; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string source = 3; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string source = 3; + */ + public Builder setSource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** + * string source = 3; + */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * string source = 3; + */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object compilerVersion_ = ""; + /** + * string compilerVersion = 4; + */ + public java.lang.String getCompilerVersion() { + java.lang.Object ref = compilerVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string compilerVersion = 4; + */ + public com.google.protobuf.ByteString + getCompilerVersionBytes() { + java.lang.Object ref = compilerVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compilerVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string compilerVersion = 4; + */ + public Builder setCompilerVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + compilerVersion_ = value; + onChanged(); + return this; + } + /** + * string compilerVersion = 4; + */ + public Builder clearCompilerVersion() { + + compilerVersion_ = getDefaultInstance().getCompilerVersion(); + onChanged(); + return this; + } + /** + * string compilerVersion = 4; + */ + public Builder setCompilerVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + compilerVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object compilerOptions_ = ""; + /** + * string compilerOptions = 5; + */ + public java.lang.String getCompilerOptions() { + java.lang.Object ref = compilerOptions_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compilerOptions_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string compilerOptions = 5; + */ + public com.google.protobuf.ByteString + getCompilerOptionsBytes() { + java.lang.Object ref = compilerOptions_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compilerOptions_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string compilerOptions = 5; + */ + public Builder setCompilerOptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + compilerOptions_ = value; + onChanged(); + return this; + } + /** + * string compilerOptions = 5; + */ + public Builder clearCompilerOptions() { + + compilerOptions_ = getDefaultInstance().getCompilerOptions(); + onChanged(); + return this; + } + /** + * string compilerOptions = 5; + */ + public Builder setCompilerOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + compilerOptions_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString abiDef_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes abiDef = 6; + */ + public com.google.protobuf.ByteString getAbiDef() { + return abiDef_; + } + /** + * bytes abiDef = 6; + */ + public Builder setAbiDef(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + abiDef_ = value; + onChanged(); + return this; + } + /** + * bytes abiDef = 6; + */ + public Builder clearAbiDef() { + + abiDef_ = getDefaultInstance().getAbiDef(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString userDoc_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes userDoc = 7; + */ + public com.google.protobuf.ByteString getUserDoc() { + return userDoc_; + } + /** + * bytes userDoc = 7; + */ + public Builder setUserDoc(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + userDoc_ = value; + onChanged(); + return this; + } + /** + * bytes userDoc = 7; + */ + public Builder clearUserDoc() { + + userDoc_ = getDefaultInstance().getUserDoc(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString devDoc_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes devDoc = 8; + */ + public com.google.protobuf.ByteString getDevDoc() { + return devDoc_; + } + /** + * bytes devDoc = 8; + */ + public Builder setDevDoc(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + devDoc_ = value; + onChanged(); + return this; + } + /** + * bytes devDoc = 8; + */ + public Builder clearDevDoc() { + + devDoc_ = getDefaultInstance().getDevDoc(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Contract) + } - public static final int ABIDEF_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString abiDef_; - /** bytes abiDef = 6; */ - public com.google.protobuf.ByteString getAbiDef() { - return abiDef_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Contract) + private static final org.aion.api.server.pb.Message.t_Contract DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Contract(); + } - public static final int USERDOC_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString userDoc_; - /** bytes userDoc = 7; */ - public com.google.protobuf.ByteString getUserDoc() { - return userDoc_; - } + public static org.aion.api.server.pb.Message.t_Contract getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int DEVDOC_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString devDoc_; - /** bytes devDoc = 8; */ - public com.google.protobuf.ByteString getDevDoc() { - return devDoc_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_Contract parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Contract(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + } + + public interface t_AionTxOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AionTx) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * bytes from = 2; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes to = 3; + */ + com.google.protobuf.ByteString getTo(); + + /** + * bytes value = 4; + */ + com.google.protobuf.ByteString getValue(); + + /** + * bytes data = 5; + */ + com.google.protobuf.ByteString getData(); + + /** + * bytes nonce = 6; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * uint64 nrgConsumed = 7; + */ + long getNrgConsumed(); + + /** + * uint64 nrgPrice = 8; + */ + long getNrgPrice(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_AionTx} + */ + public static final class t_AionTx extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AionTx) + t_AionTxOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_AionTx.newBuilder() to construct. + private t_AionTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_AionTx() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + nrgConsumed_ = 0L; + nrgPrice_ = 0L; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); - } - if (!getSourceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); - } - if (!getCompilerVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, compilerVersion_); - } - if (!getCompilerOptionsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, compilerOptions_); - } - if (!abiDef_.isEmpty()) { - output.writeBytes(6, abiDef_); - } - if (!userDoc_.isEmpty()) { - output.writeBytes(7, userDoc_); - } - if (!devDoc_.isEmpty()) { - output.writeBytes(8, devDoc_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_AionTx( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + txHash_ = input.readBytes(); + break; + } + case 18: { + + from_ = input.readBytes(); + break; + } + case 26: { + + to_ = input.readBytes(); + break; + } + case 34: { + + value_ = input.readBytes(); + break; + } + case 42: { + + data_ = input.readBytes(); + break; + } + case 50: { + + nonce_ = input.readBytes(); + break; + } + case 56: { + + nrgConsumed_ = input.readUInt64(); + break; + } + case 64: { + + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AionTx.class, org.aion.api.server.pb.Message.t_AionTx.Builder.class); + } - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); - } - if (!getSourceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); - } - if (!getCompilerVersionBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 4, compilerVersion_); - } - if (!getCompilerOptionsBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 5, compilerOptions_); - } - if (!abiDef_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, abiDef_); - } - if (!userDoc_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, userDoc_); - } - if (!devDoc_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, devDoc_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Contract)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_Contract other = - (org.aion.api.server.pb.Message.t_Contract) obj; - - boolean result = true; - result = result && getCode().equals(other.getCode()); - result = result && getError().equals(other.getError()); - result = result && getSource().equals(other.getSource()); - result = result && getCompilerVersion().equals(other.getCompilerVersion()); - result = result && getCompilerOptions().equals(other.getCompilerOptions()); - result = result && getAbiDef().equals(other.getAbiDef()); - result = result && getUserDoc().equals(other.getUserDoc()); - result = result && getDevDoc().equals(other.getDevDoc()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - hash = (37 * hash) + COMPILERVERSION_FIELD_NUMBER; - hash = (53 * hash) + getCompilerVersion().hashCode(); - hash = (37 * hash) + COMPILEROPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getCompilerOptions().hashCode(); - hash = (37 * hash) + ABIDEF_FIELD_NUMBER; - hash = (53 * hash) + getAbiDef().hashCode(); - hash = (37 * hash) + USERDOC_FIELD_NUMBER; - hash = (53 * hash) + getUserDoc().hashCode(); - hash = (37 * hash) + DEVDOC_FIELD_NUMBER; - hash = (53 * hash) + getDevDoc().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int FROM_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 2; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int TO_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString to_; + /** + * bytes to = 3; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 4; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int DATA_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 5; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int NONCE_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 6; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int NRGCONSUMED_FIELD_NUMBER = 7; + private long nrgConsumed_; + /** + * uint64 nrgConsumed = 7; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int NRGPRICE_FIELD_NUMBER = 8; + private long nrgPrice_; + /** + * uint64 nrgPrice = 8; + */ + public long getNrgPrice() { + return nrgPrice_; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + if (!from_.isEmpty()) { + output.writeBytes(2, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(3, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(4, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(5, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(6, nonce_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(7, nrgConsumed_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(8, nrgPrice_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.t_Contract parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, txHash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, nonce_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, nrgConsumed_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_AionTx)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_AionTx other = (org.aion.api.server.pb.Message.t_AionTx) obj; + + boolean result = true; + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTo() + .equals(other.getTo()); + result = result && getValue() + .equals(other.getValue()); + result = result && getData() + .equals(other.getData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && (getNrgConsumed() + == other.getNrgConsumed()); + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.t_Contract parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsumed()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_AionTx parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_AionTx prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Contract prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_AionTx} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AionTx) + org.aion.api.server.pb.Message.t_AionTxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AionTx.class, org.aion.api.server.pb.Message.t_AionTx.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_AionTx.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + nrgConsumed_ = 0L; + + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + } + + public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_AionTx build() { + org.aion.api.server.pb.Message.t_AionTx result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_AionTx buildPartial() { + org.aion.api.server.pb.Message.t_AionTx result = new org.aion.api.server.pb.Message.t_AionTx(this); + result.txHash_ = txHash_; + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nonce_ = nonce_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_AionTx) { + return mergeFrom((org.aion.api.server.pb.Message.t_AionTx)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_AionTx other) { + if (other == org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_AionTx parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_AionTx) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 1; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 1; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 2; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 2; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 2; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes to = 3; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** + * bytes to = 3; + */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * bytes to = 3; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 4; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 4; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 4; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 5; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 5; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 5; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 6; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 6; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 6; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private long nrgConsumed_ ; + /** + * uint64 nrgConsumed = 7; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** + * uint64 nrgConsumed = 7; + */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsumed = 7; + */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 8; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 8; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 8; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AionTx) + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AionTx) + private static final org.aion.api.server.pb.Message.t_AionTx DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AionTx(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_Contract} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Contract) - org.aion.api.server.pb.Message.t_ContractOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Contract_descriptor; - } + public static org.aion.api.server.pb.Message.t_AionTx getDefaultInstance() { + return DEFAULT_INSTANCE; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Contract.class, - org.aion.api.server.pb.Message.t_Contract.Builder.class); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_AionTx parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_AionTx(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // Construct using org.aion.api.server.pb.Message.t_Contract.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + } + + public interface t_NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Node) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + + /** + * string nodeId = 2; + */ + java.lang.String getNodeId(); + /** + * string nodeId = 2; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + * string remote_p2p_ip = 3; + */ + java.lang.String getRemoteP2PIp(); + /** + * string remote_p2p_ip = 3; + */ + com.google.protobuf.ByteString + getRemoteP2PIpBytes(); + + /** + * uint32 remote_p2p_port = 4; + */ + int getRemoteP2PPort(); + + /** + * uint32 latency = 5; + */ + int getLatency(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Node} + */ + public static final class t_Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Node) + t_NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Node.newBuilder() to construct. + private t_Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_Node() { + blockNumber_ = 0L; + nodeId_ = ""; + remoteP2PIp_ = ""; + remoteP2PPort_ = 0; + latency_ = 0; + } - public Builder clear() { - super.clear(); - code_ = ""; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_Node( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blockNumber_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + remoteP2PIp_ = s; + break; + } + case 32: { + + remoteP2PPort_ = input.readUInt32(); + break; + } + case 40: { + + latency_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_descriptor; + } - error_ = ""; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Node.class, org.aion.api.server.pb.Message.t_Node.Builder.class); + } - source_ = ""; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - compilerVersion_ = ""; + public static final int NODEID_FIELD_NUMBER = 2; + private volatile java.lang.Object nodeId_; + /** + * string nodeId = 2; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } + } + /** + * string nodeId = 2; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - compilerOptions_ = ""; + public static final int REMOTE_P2P_IP_FIELD_NUMBER = 3; + private volatile java.lang.Object remoteP2PIp_; + /** + * string remote_p2p_ip = 3; + */ + public java.lang.String getRemoteP2PIp() { + java.lang.Object ref = remoteP2PIp_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteP2PIp_ = s; + return s; + } + } + /** + * string remote_p2p_ip = 3; + */ + public com.google.protobuf.ByteString + getRemoteP2PIpBytes() { + java.lang.Object ref = remoteP2PIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteP2PIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - abiDef_ = com.google.protobuf.ByteString.EMPTY; + public static final int REMOTE_P2P_PORT_FIELD_NUMBER = 4; + private int remoteP2PPort_; + /** + * uint32 remote_p2p_port = 4; + */ + public int getRemoteP2PPort() { + return remoteP2PPort_; + } - userDoc_ = com.google.protobuf.ByteString.EMPTY; + public static final int LATENCY_FIELD_NUMBER = 5; + private int latency_; + /** + * uint32 latency = 5; + */ + public int getLatency() { + return latency_; + } - devDoc_ = com.google.protobuf.ByteString.EMPTY; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - return this; - } + memoizedIsInitialized = 1; + return true; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Contract_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); + } + if (!getRemoteP2PIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, remoteP2PIp_); + } + if (remoteP2PPort_ != 0) { + output.writeUInt32(4, remoteP2PPort_); + } + if (latency_ != 0) { + output.writeUInt32(5, latency_); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Contract.getDefaultInstance(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); + } + if (!getRemoteP2PIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, remoteP2PIp_); + } + if (remoteP2PPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, remoteP2PPort_); + } + if (latency_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, latency_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public org.aion.api.server.pb.Message.t_Contract build() { - org.aion.api.server.pb.Message.t_Contract result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Node)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_Node other = (org.aion.api.server.pb.Message.t_Node) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && getNodeId() + .equals(other.getNodeId()); + result = result && getRemoteP2PIp() + .equals(other.getRemoteP2PIp()); + result = result && (getRemoteP2PPort() + == other.getRemoteP2PPort()); + result = result && (getLatency() + == other.getLatency()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.t_Contract buildPartial() { - org.aion.api.server.pb.Message.t_Contract result = - new org.aion.api.server.pb.Message.t_Contract(this); - result.code_ = code_; - result.error_ = error_; - result.source_ = source_; - result.compilerVersion_ = compilerVersion_; - result.compilerOptions_ = compilerOptions_; - result.abiDef_ = abiDef_; - result.userDoc_ = userDoc_; - result.devDoc_ = devDoc_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Contract) { - return mergeFrom((org.aion.api.server.pb.Message.t_Contract) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Contract other) { - if (other == org.aion.api.server.pb.Message.t_Contract.getDefaultInstance()) - return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - if (!other.getSource().isEmpty()) { - source_ = other.source_; - onChanged(); - } - if (!other.getCompilerVersion().isEmpty()) { - compilerVersion_ = other.compilerVersion_; - onChanged(); - } - if (!other.getCompilerOptions().isEmpty()) { - compilerOptions_ = other.compilerOptions_; - onChanged(); - } - if (other.getAbiDef() != com.google.protobuf.ByteString.EMPTY) { - setAbiDef(other.getAbiDef()); - } - if (other.getUserDoc() != com.google.protobuf.ByteString.EMPTY) { - setUserDoc(other.getUserDoc()); - } - if (other.getDevDoc() != com.google.protobuf.ByteString.EMPTY) { - setDevDoc(other.getDevDoc()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + NODEID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + REMOTE_P2P_IP_FIELD_NUMBER; + hash = (53 * hash) + getRemoteP2PIp().hashCode(); + hash = (37 * hash) + REMOTE_P2P_PORT_FIELD_NUMBER; + hash = (53 * hash) + getRemoteP2PPort(); + hash = (37 * hash) + LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getLatency(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Contract parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_Contract) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Node parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private java.lang.Object code_ = ""; - /** string code = 1; */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string code = 1; */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string code = 1; */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** string code = 1; */ - public Builder clearCode() { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Node prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** string code = 1; */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Node) + org.aion.api.server.pb.Message.t_NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Node.class, org.aion.api.server.pb.Message.t_Node.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_Node.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + nodeId_ = ""; + + remoteP2PIp_ = ""; + + remoteP2PPort_ = 0; + + latency_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Node_descriptor; + } + + public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Node.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_Node build() { + org.aion.api.server.pb.Message.t_Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_Node buildPartial() { + org.aion.api.server.pb.Message.t_Node result = new org.aion.api.server.pb.Message.t_Node(this); + result.blockNumber_ = blockNumber_; + result.nodeId_ = nodeId_; + result.remoteP2PIp_ = remoteP2PIp_; + result.remoteP2PPort_ = remoteP2PPort_; + result.latency_ = latency_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Node) { + return mergeFrom((org.aion.api.server.pb.Message.t_Node)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Node other) { + if (other == org.aion.api.server.pb.Message.t_Node.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getRemoteP2PIp().isEmpty()) { + remoteP2PIp_ = other.remoteP2PIp_; + onChanged(); + } + if (other.getRemoteP2PPort() != 0) { + setRemoteP2PPort(other.getRemoteP2PPort()); + } + if (other.getLatency() != 0) { + setLatency(other.getLatency()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Node parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_Node) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + * string nodeId = 2; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string nodeId = 2; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string nodeId = 2; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + * string nodeId = 2; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + * string nodeId = 2; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object remoteP2PIp_ = ""; + /** + * string remote_p2p_ip = 3; + */ + public java.lang.String getRemoteP2PIp() { + java.lang.Object ref = remoteP2PIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteP2PIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string remote_p2p_ip = 3; + */ + public com.google.protobuf.ByteString + getRemoteP2PIpBytes() { + java.lang.Object ref = remoteP2PIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteP2PIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remote_p2p_ip = 3; + */ + public Builder setRemoteP2PIp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteP2PIp_ = value; + onChanged(); + return this; + } + /** + * string remote_p2p_ip = 3; + */ + public Builder clearRemoteP2PIp() { + + remoteP2PIp_ = getDefaultInstance().getRemoteP2PIp(); + onChanged(); + return this; + } + /** + * string remote_p2p_ip = 3; + */ + public Builder setRemoteP2PIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteP2PIp_ = value; + onChanged(); + return this; + } + + private int remoteP2PPort_ ; + /** + * uint32 remote_p2p_port = 4; + */ + public int getRemoteP2PPort() { + return remoteP2PPort_; + } + /** + * uint32 remote_p2p_port = 4; + */ + public Builder setRemoteP2PPort(int value) { + + remoteP2PPort_ = value; + onChanged(); + return this; + } + /** + * uint32 remote_p2p_port = 4; + */ + public Builder clearRemoteP2PPort() { + + remoteP2PPort_ = 0; + onChanged(); + return this; + } + + private int latency_ ; + /** + * uint32 latency = 5; + */ + public int getLatency() { + return latency_; + } + /** + * uint32 latency = 5; + */ + public Builder setLatency(int value) { + + latency_ = value; + onChanged(); + return this; + } + /** + * uint32 latency = 5; + */ + public Builder clearLatency() { + + latency_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Node) + } - private java.lang.Object error_ = ""; - /** string error = 2; */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string error = 2; */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string error = 2; */ - public Builder setError(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** string error = 2; */ - public Builder clearError() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Node) + private static final org.aion.api.server.pb.Message.t_Node DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Node(); + } - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** string error = 2; */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.t_Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private java.lang.Object source_ = ""; - /** string source = 3; */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string source = 3; */ - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string source = 3; */ - public Builder setSource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - source_ = value; - onChanged(); - return this; - } - /** string source = 3; */ - public Builder clearSource() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Node(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - source_ = getDefaultInstance().getSource(); - onChanged(); - return this; - } - /** string source = 3; */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - source_ = value; - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private java.lang.Object compilerVersion_ = ""; - /** string compilerVersion = 4; */ - public java.lang.String getCompilerVersion() { - java.lang.Object ref = compilerVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string compilerVersion = 4; */ - public com.google.protobuf.ByteString getCompilerVersionBytes() { - java.lang.Object ref = compilerVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilerVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string compilerVersion = 4; */ - public Builder setCompilerVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - compilerVersion_ = value; - onChanged(); - return this; - } - /** string compilerVersion = 4; */ - public Builder clearCompilerVersion() { + public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - compilerVersion_ = getDefaultInstance().getCompilerVersion(); - onChanged(); - return this; - } - /** string compilerVersion = 4; */ - public Builder setCompilerVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - compilerVersion_ = value; - onChanged(); - return this; - } + } + + public interface t_LgEleOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_LgEle) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * bytes data = 2; + */ + com.google.protobuf.ByteString getData(); + + /** + * repeated string topics = 3; + */ + java.util.List + getTopicsList(); + /** + * repeated string topics = 3; + */ + int getTopicsCount(); + /** + * repeated string topics = 3; + */ + java.lang.String getTopics(int index); + /** + * repeated string topics = 3; + */ + com.google.protobuf.ByteString + getTopicsBytes(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_LgEle} + */ + public static final class t_LgEle extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_LgEle) + t_LgEleOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_LgEle.newBuilder() to construct. + private t_LgEle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_LgEle() { + address_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - private java.lang.Object compilerOptions_ = ""; - /** string compilerOptions = 5; */ - public java.lang.String getCompilerOptions() { - java.lang.Object ref = compilerOptions_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compilerOptions_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string compilerOptions = 5; */ - public com.google.protobuf.ByteString getCompilerOptionsBytes() { - java.lang.Object ref = compilerOptions_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compilerOptions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string compilerOptions = 5; */ - public Builder setCompilerOptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - compilerOptions_ = value; - onChanged(); - return this; - } - /** string compilerOptions = 5; */ - public Builder clearCompilerOptions() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_LgEle( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + case 18: { + + data_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + topics_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = topics_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + } - compilerOptions_ = getDefaultInstance().getCompilerOptions(); - onChanged(); - return this; - } - /** string compilerOptions = 5; */ - public Builder setCompilerOptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - compilerOptions_ = value; - onChanged(); - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_LgEle.class, org.aion.api.server.pb.Message.t_LgEle.Builder.class); + } - private com.google.protobuf.ByteString abiDef_ = com.google.protobuf.ByteString.EMPTY; - /** bytes abiDef = 6; */ - public com.google.protobuf.ByteString getAbiDef() { - return abiDef_; - } - /** bytes abiDef = 6; */ - public Builder setAbiDef(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - abiDef_ = value; - onChanged(); - return this; - } - /** bytes abiDef = 6; */ - public Builder clearAbiDef() { + private int bitField0_; + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - abiDef_ = getDefaultInstance().getAbiDef(); - onChanged(); - return this; - } + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - private com.google.protobuf.ByteString userDoc_ = com.google.protobuf.ByteString.EMPTY; - /** bytes userDoc = 7; */ - public com.google.protobuf.ByteString getUserDoc() { - return userDoc_; - } - /** bytes userDoc = 7; */ - public Builder setUserDoc(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - userDoc_ = value; - onChanged(); - return this; - } - /** bytes userDoc = 7; */ - public Builder clearUserDoc() { + public static final int TOPICS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList topics_; + /** + * repeated string topics = 3; + */ + public com.google.protobuf.ProtocolStringList + getTopicsList() { + return topics_; + } + /** + * repeated string topics = 3; + */ + public int getTopicsCount() { + return topics_.size(); + } + /** + * repeated string topics = 3; + */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** + * repeated string topics = 3; + */ + public com.google.protobuf.ByteString + getTopicsBytes(int index) { + return topics_.getByteString(index); + } - userDoc_ = getDefaultInstance().getUserDoc(); - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private com.google.protobuf.ByteString devDoc_ = com.google.protobuf.ByteString.EMPTY; - /** bytes devDoc = 8; */ - public com.google.protobuf.ByteString getDevDoc() { - return devDoc_; - } - /** bytes devDoc = 8; */ - public Builder setDevDoc(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - devDoc_ = value; - onChanged(); - return this; - } - /** bytes devDoc = 8; */ - public Builder clearDevDoc() { + memoizedIsInitialized = 1; + return true; + } - devDoc_ = getDefaultInstance().getDevDoc(); - onChanged(); - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + for (int i = 0; i < topics_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topics_.getRaw(i)); + } + unknownFields.writeTo(output); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + { + int dataSize = 0; + for (int i = 0; i < topics_.size(); i++) { + dataSize += computeStringSizeNoTag(topics_.getRaw(i)); + } + size += dataSize; + size += 1 * getTopicsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_LgEle)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_LgEle other = (org.aion.api.server.pb.Message.t_LgEle) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && getData() + .equals(other.getData()); + result = result && getTopicsList() + .equals(other.getTopicsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Contract) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + if (getTopicsCount() > 0) { + hash = (37 * hash) + TOPICS_FIELD_NUMBER; + hash = (53 * hash) + getTopicsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Contract) - private static final org.aion.api.server.pb.Message.t_Contract DEFAULT_INSTANCE; + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_LgEle parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Contract(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_LgEle prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_Contract getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_LgEle} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_LgEle) + org.aion.api.server.pb.Message.t_LgEleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_LgEle.class, org.aion.api.server.pb.Message.t_LgEle.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_LgEle.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + } + + public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_LgEle build() { + org.aion.api.server.pb.Message.t_LgEle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_LgEle buildPartial() { + org.aion.api.server.pb.Message.t_LgEle result = new org.aion.api.server.pb.Message.t_LgEle(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.address_ = address_; + result.data_ = data_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = topics_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.topics_ = topics_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_LgEle) { + return mergeFrom((org.aion.api.server.pb.Message.t_LgEle)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_LgEle other) { + if (other == org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (!other.topics_.isEmpty()) { + if (topics_.isEmpty()) { + topics_ = other.topics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTopicsIsMutable(); + topics_.addAll(other.topics_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_LgEle parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_LgEle) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 2; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 2; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTopicsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + topics_ = new com.google.protobuf.LazyStringArrayList(topics_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string topics = 3; + */ + public com.google.protobuf.ProtocolStringList + getTopicsList() { + return topics_.getUnmodifiableView(); + } + /** + * repeated string topics = 3; + */ + public int getTopicsCount() { + return topics_.size(); + } + /** + * repeated string topics = 3; + */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** + * repeated string topics = 3; + */ + public com.google.protobuf.ByteString + getTopicsBytes(int index) { + return topics_.getByteString(index); + } + /** + * repeated string topics = 3; + */ + public Builder setTopics( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string topics = 3; + */ + public Builder addTopics( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } + /** + * repeated string topics = 3; + */ + public Builder addAllTopics( + java.lang.Iterable values) { + ensureTopicsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topics_); + onChanged(); + return this; + } + /** + * repeated string topics = 3; + */ + public Builder clearTopics() { + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string topics = 3; + */ + public Builder addTopicsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_LgEle) + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_Contract parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Contract(input, extensionRegistry); - } - }; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_LgEle) + private static final org.aion.api.server.pb.Message.t_LgEle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_LgEle(); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.t_LgEle getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_LgEle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_LgEle(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.t_Contract getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public interface t_AionTxOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AionTx) - com.google.protobuf.MessageOrBuilder { + public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** bytes txHash = 1; */ - com.google.protobuf.ByteString getTxHash(); + } + + public interface t_FilterCtOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_FilterCt) + com.google.protobuf.MessageOrBuilder { + + /** + * string from = 1; + */ + java.lang.String getFrom(); + /** + * string from = 1; + */ + com.google.protobuf.ByteString + getFromBytes(); + + /** + * string to = 2; + */ + java.lang.String getTo(); + /** + * string to = 2; + */ + com.google.protobuf.ByteString + getToBytes(); + + /** + * bytes contractAddr = 3; + */ + com.google.protobuf.ByteString getContractAddr(); + + /** + * repeated bytes addresses = 4; + */ + java.util.List getAddressesList(); + /** + * repeated bytes addresses = 4; + */ + int getAddressesCount(); + /** + * repeated bytes addresses = 4; + */ + com.google.protobuf.ByteString getAddresses(int index); + + /** + * repeated string topics = 5; + */ + java.util.List + getTopicsList(); + /** + * repeated string topics = 5; + */ + int getTopicsCount(); + /** + * repeated string topics = 5; + */ + java.lang.String getTopics(int index); + /** + * repeated string topics = 5; + */ + com.google.protobuf.ByteString + getTopicsBytes(int index); + + /** + * uint64 expireTime = 6; + */ + long getExpireTime(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_FilterCt} + */ + public static final class t_FilterCt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_FilterCt) + t_FilterCtOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_FilterCt.newBuilder() to construct. + private t_FilterCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_FilterCt() { + from_ = ""; + to_ = ""; + contractAddr_ = com.google.protobuf.ByteString.EMPTY; + addresses_ = java.util.Collections.emptyList(); + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + expireTime_ = 0L; + } - /** bytes from = 2; */ - com.google.protobuf.ByteString getFrom(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_FilterCt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + from_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + to_ = s; + break; + } + case 26: { + + contractAddr_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + addresses_.add(input.readBytes()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + topics_.add(s); + break; + } + case 48: { + + expireTime_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = topics_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + } - /** bytes to = 3; */ - com.google.protobuf.ByteString getTo(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_FilterCt.class, org.aion.api.server.pb.Message.t_FilterCt.Builder.class); + } - /** bytes value = 4; */ - com.google.protobuf.ByteString getValue(); + private int bitField0_; + public static final int FROM_FIELD_NUMBER = 1; + private volatile java.lang.Object from_; + /** + * string from = 1; + */ + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } + } + /** + * string from = 1; + */ + public com.google.protobuf.ByteString + getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** bytes data = 5; */ - com.google.protobuf.ByteString getData(); + public static final int TO_FIELD_NUMBER = 2; + private volatile java.lang.Object to_; + /** + * string to = 2; + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } + } + /** + * string to = 2; + */ + public com.google.protobuf.ByteString + getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** bytes nonce = 6; */ - com.google.protobuf.ByteString getNonce(); + public static final int CONTRACTADDR_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString contractAddr_; + /** + * bytes contractAddr = 3; + */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } - /** uint64 nrgConsumed = 7; */ - long getNrgConsumed(); + public static final int ADDRESSES_FIELD_NUMBER = 4; + private java.util.List addresses_; + /** + * repeated bytes addresses = 4; + */ + public java.util.List + getAddressesList() { + return addresses_; + } + /** + * repeated bytes addresses = 4; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * repeated bytes addresses = 4; + */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } - /** uint64 nrgPrice = 8; */ - long getNrgPrice(); + public static final int TOPICS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList topics_; + /** + * repeated string topics = 5; + */ + public com.google.protobuf.ProtocolStringList + getTopicsList() { + return topics_; + } + /** + * repeated string topics = 5; + */ + public int getTopicsCount() { + return topics_.size(); + } + /** + * repeated string topics = 5; + */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** + * repeated string topics = 5; + */ + public com.google.protobuf.ByteString + getTopicsBytes(int index) { + return topics_.getByteString(index); } - /** Protobuf type {@code org.aion.api.server.pb.t_AionTx} */ - public static final class t_AionTx extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AionTx) - t_AionTxOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_AionTx.newBuilder() to construct. - private t_AionTx(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_AionTx() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - nrgConsumed_ = 0L; - nrgPrice_ = 0L; - } + public static final int EXPIRETIME_FIELD_NUMBER = 6; + private long expireTime_; + /** + * uint64 expireTime = 6; + */ + public long getExpireTime() { + return expireTime_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private t_AionTx( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - txHash_ = input.readBytes(); - break; - } - case 18: - { - from_ = input.readBytes(); - break; - } - case 26: - { - to_ = input.readBytes(); - break; - } - case 34: - { - value_ = input.readBytes(); - break; - } - case 42: - { - data_ = input.readBytes(); - break; - } - case 50: - { - nonce_ = input.readBytes(); - break; - } - case 56: - { - nrgConsumed_ = input.readUInt64(); - break; - } - case 64: - { - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + memoizedIsInitialized = 1; + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AionTx_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFromBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, from_); + } + if (!getToBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, to_); + } + if (!contractAddr_.isEmpty()) { + output.writeBytes(3, contractAddr_); + } + for (int i = 0; i < addresses_.size(); i++) { + output.writeBytes(4, addresses_.get(i)); + } + for (int i = 0; i < topics_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, topics_.getRaw(i)); + } + if (expireTime_ != 0L) { + output.writeUInt64(6, expireTime_); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AionTx.class, - org.aion.api.server.pb.Message.t_AionTx.Builder.class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFromBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, from_); + } + if (!getToBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, to_); + } + if (!contractAddr_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, contractAddr_); + } + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(addresses_.get(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < topics_.size(); i++) { + dataSize += computeStringSizeNoTag(topics_.getRaw(i)); + } + size += dataSize; + size += 1 * getTopicsList().size(); + } + if (expireTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, expireTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_FilterCt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_FilterCt other = (org.aion.api.server.pb.Message.t_FilterCt) obj; + + boolean result = true; + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTo() + .equals(other.getTo()); + result = result && getContractAddr() + .equals(other.getContractAddr()); + result = result && getAddressesList() + .equals(other.getAddressesList()); + result = result && getTopicsList() + .equals(other.getTopicsList()); + result = result && (getExpireTime() + == other.getExpireTime()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int FROM_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString from_; - /** bytes from = 2; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (getTopicsCount() > 0) { + hash = (37 * hash) + TOPICS_FIELD_NUMBER; + hash = (53 * hash) + getTopicsList().hashCode(); + } + hash = (37 * hash) + EXPIRETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExpireTime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int TO_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString to_; - /** bytes to = 3; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int VALUE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString value_; - /** bytes value = 4; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_FilterCt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int DATA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString data_; - /** bytes data = 5; */ - public com.google.protobuf.ByteString getData() { - return data_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_FilterCt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_FilterCt) + org.aion.api.server.pb.Message.t_FilterCtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_FilterCt.class, org.aion.api.server.pb.Message.t_FilterCt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_FilterCt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + from_ = ""; + + to_ = ""; + + contractAddr_ = com.google.protobuf.ByteString.EMPTY; + + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + expireTime_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + } + + public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_FilterCt build() { + org.aion.api.server.pb.Message.t_FilterCt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_FilterCt buildPartial() { + org.aion.api.server.pb.Message.t_FilterCt result = new org.aion.api.server.pb.Message.t_FilterCt(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.from_ = from_; + result.to_ = to_; + result.contractAddr_ = contractAddr_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.addresses_ = addresses_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = topics_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.topics_ = topics_; + result.expireTime_ = expireTime_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_FilterCt) { + return mergeFrom((org.aion.api.server.pb.Message.t_FilterCt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_FilterCt other) { + if (other == org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance()) return this; + if (!other.getFrom().isEmpty()) { + from_ = other.from_; + onChanged(); + } + if (!other.getTo().isEmpty()) { + to_ = other.to_; + onChanged(); + } + if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { + setContractAddr(other.getContractAddr()); + } + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + if (!other.topics_.isEmpty()) { + if (topics_.isEmpty()) { + topics_ = other.topics_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTopicsIsMutable(); + topics_.addAll(other.topics_); + } + onChanged(); + } + if (other.getExpireTime() != 0L) { + setExpireTime(other.getExpireTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_FilterCt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_FilterCt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object from_ = ""; + /** + * string from = 1; + */ + public java.lang.String getFrom() { + java.lang.Object ref = from_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + from_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string from = 1; + */ + public com.google.protobuf.ByteString + getFromBytes() { + java.lang.Object ref = from_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + from_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string from = 1; + */ + public Builder setFrom( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * string from = 1; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + /** + * string from = 1; + */ + public Builder setFromBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + from_ = value; + onChanged(); + return this; + } + + private java.lang.Object to_ = ""; + /** + * string to = 2; + */ + public java.lang.String getTo() { + java.lang.Object ref = to_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + to_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string to = 2; + */ + public com.google.protobuf.ByteString + getToBytes() { + java.lang.Object ref = to_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + to_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string to = 2; + */ + public Builder setTo( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * string to = 2; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + /** + * string to = 2; + */ + public Builder setToBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + to_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contractAddr_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes contractAddr = 3; + */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } + /** + * bytes contractAddr = 3; + */ + public Builder setContractAddr(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + /** + * bytes contractAddr = 3; + */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + + private java.util.List addresses_ = java.util.Collections.emptyList(); + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + addresses_ = new java.util.ArrayList(addresses_); + bitField0_ |= 0x00000008; + } + } + /** + * repeated bytes addresses = 4; + */ + public java.util.List + getAddressesList() { + return java.util.Collections.unmodifiableList(addresses_); + } + /** + * repeated bytes addresses = 4; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * repeated bytes addresses = 4; + */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } + /** + * repeated bytes addresses = 4; + */ + public Builder setAddresses( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes addresses = 4; + */ + public Builder addAddresses(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes addresses = 4; + */ + public Builder addAllAddresses( + java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, addresses_); + onChanged(); + return this; + } + /** + * repeated bytes addresses = 4; + */ + public Builder clearAddresses() { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTopicsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + topics_ = new com.google.protobuf.LazyStringArrayList(topics_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated string topics = 5; + */ + public com.google.protobuf.ProtocolStringList + getTopicsList() { + return topics_.getUnmodifiableView(); + } + /** + * repeated string topics = 5; + */ + public int getTopicsCount() { + return topics_.size(); + } + /** + * repeated string topics = 5; + */ + public java.lang.String getTopics(int index) { + return topics_.get(index); + } + /** + * repeated string topics = 5; + */ + public com.google.protobuf.ByteString + getTopicsBytes(int index) { + return topics_.getByteString(index); + } + /** + * repeated string topics = 5; + */ + public Builder setTopics( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string topics = 5; + */ + public Builder addTopics( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } + /** + * repeated string topics = 5; + */ + public Builder addAllTopics( + java.lang.Iterable values) { + ensureTopicsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topics_); + onChanged(); + return this; + } + /** + * repeated string topics = 5; + */ + public Builder clearTopics() { + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * repeated string topics = 5; + */ + public Builder addTopicsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + return this; + } + + private long expireTime_ ; + /** + * uint64 expireTime = 6; + */ + public long getExpireTime() { + return expireTime_; + } + /** + * uint64 expireTime = 6; + */ + public Builder setExpireTime(long value) { + + expireTime_ = value; + onChanged(); + return this; + } + /** + * uint64 expireTime = 6; + */ + public Builder clearExpireTime() { + + expireTime_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_FilterCt) + } - public static final int NONCE_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 6; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_FilterCt) + private static final org.aion.api.server.pb.Message.t_FilterCt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_FilterCt(); + } - public static final int NRGCONSUMED_FIELD_NUMBER = 7; - private long nrgConsumed_; - /** uint64 nrgConsumed = 7; */ - public long getNrgConsumed() { - return nrgConsumed_; - } + public static org.aion.api.server.pb.Message.t_FilterCt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int NRGPRICE_FIELD_NUMBER = 8; - private long nrgPrice_; - /** uint64 nrgPrice = 8; */ - public long getNrgPrice() { - return nrgPrice_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_FilterCt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_FilterCt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + } + + public interface t_EventCtOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_EventCt) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * bytes data = 2; + */ + com.google.protobuf.ByteString getData(); + + /** + * bytes blockHash = 3; + */ + com.google.protobuf.ByteString getBlockHash(); + + /** + * uint64 blockNumber = 4; + */ + long getBlockNumber(); + + /** + * uint32 logIndex = 5; + */ + int getLogIndex(); + + /** + * string eventName = 6; + */ + java.lang.String getEventName(); + /** + * string eventName = 6; + */ + com.google.protobuf.ByteString + getEventNameBytes(); + + /** + * bool removed = 7; + */ + boolean getRemoved(); + + /** + * uint32 txIndex = 8; + */ + int getTxIndex(); + + /** + * bytes txHash = 9; + */ + com.google.protobuf.ByteString getTxHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_EventCt} + */ + public static final class t_EventCt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_EventCt) + t_EventCtOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_EventCt.newBuilder() to construct. + private t_EventCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_EventCt() { + address_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + blockHash_ = com.google.protobuf.ByteString.EMPTY; + blockNumber_ = 0L; + logIndex_ = 0; + eventName_ = ""; + removed_ = false; + txIndex_ = 0; + txHash_ = com.google.protobuf.ByteString.EMPTY; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - if (!from_.isEmpty()) { - output.writeBytes(2, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(3, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(4, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(5, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(6, nonce_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(7, nrgConsumed_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(8, nrgPrice_); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_EventCt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + case 10: { - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, nonce_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(7, nrgConsumed_); + address_ = input.readBytes(); + break; } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(8, nrgPrice_); + case 18: { + + data_ = input.readBytes(); + break; } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + case 26: { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + blockHash_ = input.readBytes(); + break; } - if (!(obj instanceof org.aion.api.server.pb.Message.t_AionTx)) { - return super.equals(obj); + case 32: { + + blockNumber_ = input.readUInt64(); + break; } - org.aion.api.server.pb.Message.t_AionTx other = - (org.aion.api.server.pb.Message.t_AionTx) obj; - - boolean result = true; - result = result && getTxHash().equals(other.getTxHash()); - result = result && getFrom().equals(other.getFrom()); - result = result && getTo().equals(other.getTo()); - result = result && getValue().equals(other.getValue()); - result = result && getData().equals(other.getData()); - result = result && getNonce().equals(other.getNonce()); - result = result && (getNrgConsumed() == other.getNrgConsumed()); - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + case 40: { + + logIndex_ = input.readUInt32(); + break; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - public static org.aion.api.server.pb.Message.t_AionTx parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + eventName_ = s; + break; + } + case 56: { - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + removed_ = input.readBool(); + break; + } + case 64: { - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + txIndex_ = input.readUInt32(); + break; + } + case 74: { - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + txHash_ = input.readBytes(); + break; + } + } } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_descriptor; + } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_EventCt.class, org.aion.api.server.pb.Message.t_EventCt.Builder.class); + } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int BLOCKHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString blockHash_; + /** + * bytes blockHash = 3; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 4; + private long blockNumber_; + /** + * uint64 blockNumber = 4; + */ + public long getBlockNumber() { + return blockNumber_; + } - public static org.aion.api.server.pb.Message.t_AionTx parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final int LOGINDEX_FIELD_NUMBER = 5; + private int logIndex_; + /** + * uint32 logIndex = 5; + */ + public int getLogIndex() { + return logIndex_; + } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int EVENTNAME_FIELD_NUMBER = 6; + private volatile java.lang.Object eventName_; + /** + * string eventName = 6; + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } + } + /** + * string eventName = 6; + */ + public com.google.protobuf.ByteString + getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.t_AionTx parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int REMOVED_FIELD_NUMBER = 7; + private boolean removed_; + /** + * bool removed = 7; + */ + public boolean getRemoved() { + return removed_; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int TXINDEX_FIELD_NUMBER = 8; + private int txIndex_; + /** + * uint32 txIndex = 8; + */ + public int getTxIndex() { + return txIndex_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static final int TXHASH_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 9; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_AionTx prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_AionTx} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AionTx) - org.aion.api.server.pb.Message.t_AionTxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AionTx_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + if (!blockHash_.isEmpty()) { + output.writeBytes(3, blockHash_); + } + if (blockNumber_ != 0L) { + output.writeUInt64(4, blockNumber_); + } + if (logIndex_ != 0) { + output.writeUInt32(5, logIndex_); + } + if (!getEventNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, eventName_); + } + if (removed_ != false) { + output.writeBool(7, removed_); + } + if (txIndex_ != 0) { + output.writeUInt32(8, txIndex_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(9, txHash_); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AionTx.class, - org.aion.api.server.pb.Message.t_AionTx.Builder.class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, blockHash_); + } + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, blockNumber_); + } + if (logIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, logIndex_); + } + if (!getEventNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, eventName_); + } + if (removed_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, removed_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, txIndex_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - // Construct using org.aion.api.server.pb.Message.t_AionTx.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_EventCt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_EventCt other = (org.aion.api.server.pb.Message.t_EventCt) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && getData() + .equals(other.getData()); + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && (getLogIndex() + == other.getLogIndex()); + result = result && getEventName() + .equals(other.getEventName()); + result = result && (getRemoved() + == other.getRemoved()); + result = result && (getTxIndex() + == other.getTxIndex()); + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + LOGINDEX_FIELD_NUMBER; + hash = (53 * hash) + getLogIndex(); + hash = (37 * hash) + EVENTNAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + hash = (37 * hash) + REMOVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRemoved()); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_EventCt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_EventCt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - from_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_EventCt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_EventCt) + org.aion.api.server.pb.Message.t_EventCtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_EventCt.class, org.aion.api.server.pb.Message.t_EventCt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_EventCt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + blockNumber_ = 0L; + + logIndex_ = 0; + + eventName_ = ""; + + removed_ = false; + + txIndex_ = 0; + + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_EventCt_descriptor; + } + + public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_EventCt build() { + org.aion.api.server.pb.Message.t_EventCt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_EventCt buildPartial() { + org.aion.api.server.pb.Message.t_EventCt result = new org.aion.api.server.pb.Message.t_EventCt(this); + result.address_ = address_; + result.data_ = data_; + result.blockHash_ = blockHash_; + result.blockNumber_ = blockNumber_; + result.logIndex_ = logIndex_; + result.eventName_ = eventName_; + result.removed_ = removed_; + result.txIndex_ = txIndex_; + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_EventCt) { + return mergeFrom((org.aion.api.server.pb.Message.t_EventCt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_EventCt other) { + if (other == org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getLogIndex() != 0) { + setLogIndex(other.getLogIndex()); + } + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + onChanged(); + } + if (other.getRemoved() != false) { + setRemoved(other.getRemoved()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_EventCt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_EventCt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 2; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 2; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockHash = 3; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** + * bytes blockHash = 3; + */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * bytes blockHash = 3; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 4; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 4; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 4; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private int logIndex_ ; + /** + * uint32 logIndex = 5; + */ + public int getLogIndex() { + return logIndex_; + } + /** + * uint32 logIndex = 5; + */ + public Builder setLogIndex(int value) { + + logIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 logIndex = 5; + */ + public Builder clearLogIndex() { + + logIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object eventName_ = ""; + /** + * string eventName = 6; + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string eventName = 6; + */ + public com.google.protobuf.ByteString + getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string eventName = 6; + */ + public Builder setEventName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventName_ = value; + onChanged(); + return this; + } + /** + * string eventName = 6; + */ + public Builder clearEventName() { + + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** + * string eventName = 6; + */ + public Builder setEventNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventName_ = value; + onChanged(); + return this; + } + + private boolean removed_ ; + /** + * bool removed = 7; + */ + public boolean getRemoved() { + return removed_; + } + /** + * bool removed = 7; + */ + public Builder setRemoved(boolean value) { + + removed_ = value; + onChanged(); + return this; + } + /** + * bool removed = 7; + */ + public Builder clearRemoved() { + + removed_ = false; + onChanged(); + return this; + } + + private int txIndex_ ; + /** + * uint32 txIndex = 8; + */ + public int getTxIndex() { + return txIndex_; + } + /** + * uint32 txIndex = 8; + */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 txIndex = 8; + */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 9; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 9; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 9; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_EventCt) + } - to_ = com.google.protobuf.ByteString.EMPTY; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_EventCt) + private static final org.aion.api.server.pb.Message.t_EventCt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_EventCt(); + } - value_ = com.google.protobuf.ByteString.EMPTY; + public static org.aion.api.server.pb.Message.t_EventCt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - data_ = com.google.protobuf.ByteString.EMPTY; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_EventCt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_EventCt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - nonce_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - nrgConsumed_ = 0L; + public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - nrgPrice_ = 0L; + } + + public interface t_BlockDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + + /** + * uint64 timestamp = 2; + */ + long getTimestamp(); + + /** + * uint64 nrgConsumed = 3; + */ + long getNrgConsumed(); + + /** + * uint64 nrgLimit = 4; + */ + long getNrgLimit(); + + /** + * bytes parentHash = 5; + */ + com.google.protobuf.ByteString getParentHash(); + + /** + * bytes minerAddress = 6; + */ + com.google.protobuf.ByteString getMinerAddress(); + + /** + * bytes stateRoot = 7; + */ + com.google.protobuf.ByteString getStateRoot(); + + /** + * bytes txTrieRoot = 8; + */ + com.google.protobuf.ByteString getTxTrieRoot(); + + /** + * bytes receiptTrieRoot = 9; + */ + com.google.protobuf.ByteString getReceiptTrieRoot(); + + /** + * bytes logsBloom = 10; + */ + com.google.protobuf.ByteString getLogsBloom(); + + /** + * bytes difficulty = 11; + */ + com.google.protobuf.ByteString getDifficulty(); + + /** + * bytes totalDifficulty = 12; + */ + com.google.protobuf.ByteString getTotalDifficulty(); + + /** + * bytes extraData = 13; + */ + com.google.protobuf.ByteString getExtraData(); + + /** + * bytes nonce = 14; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * bytes solution = 15; + */ + com.google.protobuf.ByteString getSolution(); + + /** + * bytes hash = 16; + */ + com.google.protobuf.ByteString getHash(); + + /** + * uint32 size = 17; + */ + int getSize(); + + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + java.util.List + getTxList(); + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + org.aion.api.server.pb.Message.t_TxDetail getTx(int index); + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + int getTxCount(); + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + java.util.List + getTxOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( + int index); + + /** + * uint64 blockTime = 19; + */ + long getBlockTime(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} + */ + public static final class t_BlockDetail extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockDetail) + t_BlockDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_BlockDetail.newBuilder() to construct. + private t_BlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_BlockDetail() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + tx_ = java.util.Collections.emptyList(); + blockTime_ = 0L; + } - return this; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_BlockDetail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } + case 8: { - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + blockNumber_ = input.readUInt64(); + break; } + case 16: { - public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance(); + timestamp_ = input.readUInt64(); + break; } + case 24: { - public org.aion.api.server.pb.Message.t_AionTx build() { - org.aion.api.server.pb.Message.t_AionTx result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + nrgConsumed_ = input.readUInt64(); + break; } + case 32: { - public org.aion.api.server.pb.Message.t_AionTx buildPartial() { - org.aion.api.server.pb.Message.t_AionTx result = - new org.aion.api.server.pb.Message.t_AionTx(this); - result.txHash_ = txHash_; - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nonce_ = nonce_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; + nrgLimit_ = input.readUInt64(); + break; } + case 42: { - public Builder clone() { - return (Builder) super.clone(); + parentHash_ = input.readBytes(); + break; } + case 50: { - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + minerAddress_ = input.readBytes(); + break; } + case 58: { - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + stateRoot_ = input.readBytes(); + break; } + case 66: { - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + txTrieRoot_ = input.readBytes(); + break; } + case 74: { - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + receiptTrieRoot_ = input.readBytes(); + break; } + case 82: { - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + logsBloom_ = input.readBytes(); + break; } + case 90: { - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_AionTx) { - return mergeFrom((org.aion.api.server.pb.Message.t_AionTx) other); - } else { - super.mergeFrom(other); - return this; - } + difficulty_ = input.readBytes(); + break; } + case 98: { - public Builder mergeFrom(org.aion.api.server.pb.Message.t_AionTx other) { - if (other == org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()) - return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; + totalDifficulty_ = input.readBytes(); + break; } + case 106: { - public final boolean isInitialized() { - return true; + extraData_ = input.readBytes(); + break; } + case 114: { - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_AionTx parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_AionTx) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; + nonce_ = input.readBytes(); + break; } + case 122: { - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 1; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; + solution_ = input.readBytes(); + break; } - /** bytes txHash = 1; */ - public Builder clearTxHash() { + case 130: { - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; + hash_ = input.readBytes(); + break; } + case 136: { - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 2; */ - public com.google.protobuf.ByteString getFrom() { - return from_; + size_ = input.readUInt32(); + break; } - /** bytes from = 2; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; + case 146: { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + tx_.add( + input.readMessage(org.aion.api.server.pb.Message.t_TxDetail.parser(), extensionRegistry)); + break; } - /** bytes from = 2; */ - public Builder clearFrom() { + case 152: { - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; + blockTime_ = input.readUInt64(); + break; } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + } - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** bytes to = 3; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** bytes to = 3; */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** bytes to = 3; */ - public Builder clearTo() { + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockDetail.class, org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); + } - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** bytes value = 4; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** bytes value = 4; */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** bytes value = 4; */ - public Builder clearValue() { + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 5; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 5; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 5; */ - public Builder clearData() { + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 6; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 6; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 6; */ - public Builder clearNonce() { + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } - private long nrgConsumed_; - /** uint64 nrgConsumed = 7; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** uint64 nrgConsumed = 7; */ - public Builder setNrgConsumed(long value) { + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } - nrgConsumed_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsumed = 7; */ - public Builder clearNrgConsumed() { + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } - nrgConsumed_ = 0L; - onChanged(); - return this; - } + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } - private long nrgPrice_; - /** uint64 nrgPrice = 8; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 8; */ - public Builder setNrgPrice(long value) { + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 8; */ - public Builder clearNrgPrice() { + public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString totalDifficulty_; + /** + * bytes totalDifficulty = 12; + */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } - nrgPrice_ = 0L; - onChanged(); - return this; - } + public static final int EXTRADATA_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString extraData_; + /** + * bytes extraData = 13; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static final int NONCE_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 14; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static final int SOLUTION_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString solution_; + /** + * bytes solution = 15; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AionTx) - } + public static final int HASH_FIELD_NUMBER = 16; + private com.google.protobuf.ByteString hash_; + /** + * bytes hash = 16; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AionTx) - private static final org.aion.api.server.pb.Message.t_AionTx DEFAULT_INSTANCE; + public static final int SIZE_FIELD_NUMBER = 17; + private int size_; + /** + * uint32 size = 17; + */ + public int getSize() { + return size_; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AionTx(); - } + public static final int TX_FIELD_NUMBER = 18; + private java.util.List tx_; + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public java.util.List getTxList() { + return tx_; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public java.util.List + getTxOrBuilderList() { + return tx_; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public int getTxCount() { + return tx_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { + return tx_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( + int index) { + return tx_.get(index); + } - public static org.aion.api.server.pb.Message.t_AionTx getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int BLOCKTIME_FIELD_NUMBER = 19; + private long blockTime_; + /** + * uint64 blockTime = 19; + */ + public long getBlockTime() { + return blockTime_; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_AionTx parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_AionTx(input, extensionRegistry); - } - }; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + output.writeBytes(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(13, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(14, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(15, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(16, hash_); + } + if (size_ != 0) { + output.writeUInt32(17, size_); + } + for (int i = 0; i < tx_.size(); i++) { + output.writeMessage(18, tx_.get(i)); + } + if (blockTime_ != 0L) { + output.writeUInt64(19, blockTime_); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.t_AionTx getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(13, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(14, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(15, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(16, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(17, size_); + } + for (int i = 0; i < tx_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, tx_.get(i)); + } + if (blockTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(19, blockTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - public interface t_NodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Node) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockDetail)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_BlockDetail other = (org.aion.api.server.pb.Message.t_BlockDetail) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && (getTimestamp() + == other.getTimestamp()); + result = result && (getNrgConsumed() + == other.getNrgConsumed()); + result = result && (getNrgLimit() + == other.getNrgLimit()); + result = result && getParentHash() + .equals(other.getParentHash()); + result = result && getMinerAddress() + .equals(other.getMinerAddress()); + result = result && getStateRoot() + .equals(other.getStateRoot()); + result = result && getTxTrieRoot() + .equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot() + .equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom() + .equals(other.getLogsBloom()); + result = result && getDifficulty() + .equals(other.getDifficulty()); + result = result && getTotalDifficulty() + .equals(other.getTotalDifficulty()); + result = result && getExtraData() + .equals(other.getExtraData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && getSolution() + .equals(other.getSolution()); + result = result && getHash() + .equals(other.getHash()); + result = result && (getSize() + == other.getSize()); + result = result && getTxList() + .equals(other.getTxList()); + result = result && (getBlockTime() + == other.getBlockTime()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - /** uint64 blockNumber = 1; */ - long getBlockNumber(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getTotalDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + if (getTxCount() > 0) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTxList().hashCode(); + } + hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockTime()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** string nodeId = 2; */ - java.lang.String getNodeId(); - /** string nodeId = 2; */ - com.google.protobuf.ByteString getNodeIdBytes(); + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - /** string remote_p2p_ip = 3; */ - java.lang.String getRemoteP2PIp(); - /** string remote_p2p_ip = 3; */ - com.google.protobuf.ByteString getRemoteP2PIpBytes(); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - /** uint32 remote_p2p_port = 4; */ - int getRemoteP2PPort(); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockDetail) + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + } - /** uint32 latency = 5; */ - int getLatency(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockDetail.class, org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_BlockDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTxFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + timestamp_ = 0L; + + nrgConsumed_ = 0L; + + nrgLimit_ = 0L; + + parentHash_ = com.google.protobuf.ByteString.EMPTY; + + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + + difficulty_ = com.google.protobuf.ByteString.EMPTY; + + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + + extraData_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + size_ = 0; + + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + } else { + txBuilder_.clear(); + } + blockTime_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + } + + public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_BlockDetail build() { + org.aion.api.server.pb.Message.t_BlockDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_BlockDetail buildPartial() { + org.aion.api.server.pb.Message.t_BlockDetail result = new org.aion.api.server.pb.Message.t_BlockDetail(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.totalDifficulty_ = totalDifficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + if (txBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + result.blockTime_ = blockTime_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_BlockDetail) { + return mergeFrom((org.aion.api.server.pb.Message.t_BlockDetail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockDetail other) { + if (other == org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setTotalDifficulty(other.getTotalDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (txBuilder_ == null) { + if (!other.tx_.isEmpty()) { + if (tx_.isEmpty()) { + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureTxIsMutable(); + tx_.addAll(other.tx_); + } + onChanged(); + } + } else { + if (!other.tx_.isEmpty()) { + if (txBuilder_.isEmpty()) { + txBuilder_.dispose(); + txBuilder_ = null; + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00020000); + txBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTxFieldBuilder() : null; + } else { + txBuilder_.addAllMessages(other.tx_); + } + } + } + if (other.getBlockTime() != 0L) { + setBlockTime(other.getBlockTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_BlockDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_BlockDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * uint64 timestamp = 2; + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * uint64 timestamp = 2; + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_ ; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgLimit_ ; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** + * bytes parentHash = 5; + */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** + * bytes parentHash = 5; + */ + public Builder clearParentHash() { + + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** + * bytes minerAddress = 6; + */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** + * bytes minerAddress = 6; + */ + public Builder clearMinerAddress() { + + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** + * bytes stateRoot = 7; + */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** + * bytes stateRoot = 7; + */ + public Builder clearStateRoot() { + + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder clearTxTrieRoot() { + + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder clearReceiptTrieRoot() { + + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** + * bytes logsBloom = 10; + */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** + * bytes logsBloom = 10; + */ + public Builder clearLogsBloom() { + + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** + * bytes difficulty = 11; + */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** + * bytes difficulty = 11; + */ + public Builder clearDifficulty() { + + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes totalDifficulty = 12; + */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } + /** + * bytes totalDifficulty = 12; + */ + public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDifficulty_ = value; + onChanged(); + return this; + } + /** + * bytes totalDifficulty = 12; + */ + public Builder clearTotalDifficulty() { + + totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes extraData = 13; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** + * bytes extraData = 13; + */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** + * bytes extraData = 13; + */ + public Builder clearExtraData() { + + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 14; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 14; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 14; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes solution = 15; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** + * bytes solution = 15; + */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** + * bytes solution = 15; + */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes hash = 16; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** + * bytes hash = 16; + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** + * bytes hash = 16; + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private int size_ ; + /** + * uint32 size = 17; + */ + public int getSize() { + return size_; + } + /** + * uint32 size = 17; + */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** + * uint32 size = 17; + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.util.List tx_ = + java.util.Collections.emptyList(); + private void ensureTxIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + tx_ = new java.util.ArrayList(tx_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_TxDetail, org.aion.api.server.pb.Message.t_TxDetail.Builder, org.aion.api.server.pb.Message.t_TxDetailOrBuilder> txBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public java.util.List getTxList() { + if (txBuilder_ == null) { + return java.util.Collections.unmodifiableList(tx_); + } else { + return txBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public int getTxCount() { + if (txBuilder_ == null) { + return tx_.size(); + } else { + return txBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { + if (txBuilder_ == null) { + return tx_.get(index); + } else { + return txBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder setTx( + int index, org.aion.api.server.pb.Message.t_TxDetail value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.set(index, value); + onChanged(); + } else { + txBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder setTx( + int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.set(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder addTx(org.aion.api.server.pb.Message.t_TxDetail value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + } else { + txBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder addTx( + int index, org.aion.api.server.pb.Message.t_TxDetail value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(index, value); + onChanged(); + } else { + txBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder addTx( + org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder addTx( + int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder addAllTx( + java.lang.Iterable values) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tx_); + onChanged(); + } else { + txBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + txBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public Builder removeTx(int index) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.remove(index); + onChanged(); + } else { + txBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public org.aion.api.server.pb.Message.t_TxDetail.Builder getTxBuilder( + int index) { + return getTxFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( + int index) { + if (txBuilder_ == null) { + return tx_.get(index); } else { + return txBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public java.util.List + getTxOrBuilderList() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tx_); + } + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder() { + return getTxFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder( + int index) { + return getTxFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_TxDetail tx = 18; + */ + public java.util.List + getTxBuilderList() { + return getTxFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_TxDetail, org.aion.api.server.pb.Message.t_TxDetail.Builder, org.aion.api.server.pb.Message.t_TxDetailOrBuilder> + getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_TxDetail, org.aion.api.server.pb.Message.t_TxDetail.Builder, org.aion.api.server.pb.Message.t_TxDetailOrBuilder>( + tx_, + ((bitField0_ & 0x00020000) == 0x00020000), + getParentForChildren(), + isClean()); + tx_ = null; + } + return txBuilder_; + } + + private long blockTime_ ; + /** + * uint64 blockTime = 19; + */ + public long getBlockTime() { + return blockTime_; + } + /** + * uint64 blockTime = 19; + */ + public Builder setBlockTime(long value) { + + blockTime_ = value; + onChanged(); + return this; + } + /** + * uint64 blockTime = 19; + */ + public Builder clearBlockTime() { + + blockTime_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockDetail) } - /** Protobuf type {@code org.aion.api.server.pb.t_Node} */ - public static final class t_Node extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Node) - t_NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Node.newBuilder() to construct. - private t_Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_Node() { - blockNumber_ = 0L; - nodeId_ = ""; - remoteP2PIp_ = ""; - remoteP2PPort_ = 0; - latency_ = 0; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockDetail) + private static final org.aion.api.server.pb.Message.t_BlockDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockDetail(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public static org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private t_Node( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodeId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - remoteP2PIp_ = s; - break; - } - case 32: - { - remoteP2PPort_ = input.readUInt32(); - break; - } - case 40: - { - latency_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_BlockDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_BlockDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Node_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Node.class, - org.aion.api.server.pb.Message.t_Node.Builder.class); - } + public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } + } + + public interface t_TxDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_TxDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * bytes from = 2; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes to = 3; + */ + com.google.protobuf.ByteString getTo(); + + /** + * bytes value = 4; + */ + com.google.protobuf.ByteString getValue(); + + /** + * bytes data = 5; + */ + com.google.protobuf.ByteString getData(); + + /** + * bytes nonce = 6; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * uint64 nrgConsumed = 7; + */ + long getNrgConsumed(); + + /** + * uint64 nrgPrice = 8; + */ + long getNrgPrice(); + + /** + * uint32 txIndex = 9; + */ + int getTxIndex(); + + /** + * bytes contract = 10; + */ + com.google.protobuf.ByteString getContract(); + + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + java.util.List + getLogsList(); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + org.aion.api.server.pb.Message.t_LgEle getLogs(int index); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + int getLogsCount(); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + java.util.List + getLogsOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( + int index); + + /** + * uint64 timestamp = 12; + */ + long getTimestamp(); + + /** + * string error = 13; + */ + java.lang.String getError(); + /** + * string error = 13; + */ + com.google.protobuf.ByteString + getErrorBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_TxDetail} + */ + public static final class t_TxDetail extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_TxDetail) + t_TxDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_TxDetail.newBuilder() to construct. + private t_TxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_TxDetail() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + nrgConsumed_ = 0L; + nrgPrice_ = 0L; + txIndex_ = 0; + contract_ = com.google.protobuf.ByteString.EMPTY; + logs_ = java.util.Collections.emptyList(); + timestamp_ = 0L; + error_ = ""; + } - public static final int NODEID_FIELD_NUMBER = 2; - private volatile java.lang.Object nodeId_; - /** string nodeId = 2; */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } - } - /** string nodeId = 2; */ - public com.google.protobuf.ByteString getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_TxDetail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - } + case 10: { - public static final int REMOTE_P2P_IP_FIELD_NUMBER = 3; - private volatile java.lang.Object remoteP2PIp_; - /** string remote_p2p_ip = 3; */ - public java.lang.String getRemoteP2PIp() { - java.lang.Object ref = remoteP2PIp_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteP2PIp_ = s; - return s; - } - } - /** string remote_p2p_ip = 3; */ - public com.google.protobuf.ByteString getRemoteP2PIpBytes() { - java.lang.Object ref = remoteP2PIp_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteP2PIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + txHash_ = input.readBytes(); + break; } - } - - public static final int REMOTE_P2P_PORT_FIELD_NUMBER = 4; - private int remoteP2PPort_; - /** uint32 remote_p2p_port = 4; */ - public int getRemoteP2PPort() { - return remoteP2PPort_; - } - - public static final int LATENCY_FIELD_NUMBER = 5; - private int latency_; - /** uint32 latency = 5; */ - public int getLatency() { - return latency_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + case 18: { - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); + from_ = input.readBytes(); + break; } - if (!getRemoteP2PIpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, remoteP2PIp_); + case 26: { + + to_ = input.readBytes(); + break; } - if (remoteP2PPort_ != 0) { - output.writeUInt32(4, remoteP2PPort_); + case 34: { + + value_ = input.readBytes(); + break; } - if (latency_ != 0) { - output.writeUInt32(5, latency_); + case 42: { + + data_ = input.readBytes(); + break; } - unknownFields.writeTo(output); - } + case 50: { - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + nonce_ = input.readBytes(); + break; + } + case 56: { - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); + nrgConsumed_ = input.readUInt64(); + break; } - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); + case 64: { + + nrgPrice_ = input.readUInt64(); + break; } - if (!getRemoteP2PIpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, remoteP2PIp_); + case 72: { + + txIndex_ = input.readUInt32(); + break; } - if (remoteP2PPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, remoteP2PPort_); + case 82: { + + contract_ = input.readBytes(); + break; } - if (latency_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, latency_); + case 90: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + logs_.add( + input.readMessage(org.aion.api.server.pb.Message.t_LgEle.parser(), extensionRegistry)); + break; } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + case 96: { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Node)) { - return super.equals(obj); + timestamp_ = input.readUInt64(); + break; } - org.aion.api.server.pb.Message.t_Node other = - (org.aion.api.server.pb.Message.t_Node) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && getNodeId().equals(other.getNodeId()); - result = result && getRemoteP2PIp().equals(other.getRemoteP2PIp()); - result = result && (getRemoteP2PPort() == other.getRemoteP2PPort()); - result = result && (getLatency() == other.getLatency()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + NODEID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - hash = (37 * hash) + REMOTE_P2P_IP_FIELD_NUMBER; - hash = (53 * hash) + getRemoteP2PIp().hashCode(); - hash = (37 * hash) + REMOTE_P2P_PORT_FIELD_NUMBER; - hash = (53 * hash) + getRemoteP2PPort(); - hash = (37 * hash) + LATENCY_FIELD_NUMBER; - hash = (53 * hash) + getLatency(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; + } } - - public static org.aion.api.server.pb.Message.t_Node parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = java.util.Collections.unmodifiableList(logs_); } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_TxDetail.class, org.aion.api.server.pb.Message.t_TxDetail.Builder.class); + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private int bitField0_; + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int FROM_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 2; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int TO_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString to_; + /** + * bytes to = 3; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 4; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int DATA_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 5; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int NONCE_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 6; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public static final int NRGCONSUMED_FIELD_NUMBER = 7; + private long nrgConsumed_; + /** + * uint64 nrgConsumed = 7; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } - public static org.aion.api.server.pb.Message.t_Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final int NRGPRICE_FIELD_NUMBER = 8; + private long nrgPrice_; + /** + * uint64 nrgPrice = 8; + */ + public long getNrgPrice() { + return nrgPrice_; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int TXINDEX_FIELD_NUMBER = 9; + private int txIndex_; + /** + * uint32 txIndex = 9; + */ + public int getTxIndex() { + return txIndex_; + } - public static org.aion.api.server.pb.Message.t_Node parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int CONTRACT_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString contract_; + /** + * bytes contract = 10; + */ + public com.google.protobuf.ByteString getContract() { + return contract_; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int LOGS_FIELD_NUMBER = 11; + private java.util.List logs_; + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + return logs_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static final int TIMESTAMP_FIELD_NUMBER = 12; + private long timestamp_; + /** + * uint64 timestamp = 12; + */ + public long getTimestamp() { + return timestamp_; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Node prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final int ERROR_FIELD_NUMBER = 13; + private volatile java.lang.Object error_; + /** + * string error = 13; + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + * string error = 13; + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_Node} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Node) - org.aion.api.server.pb.Message.t_NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Node_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Node.class, - org.aion.api.server.pb.Message.t_Node.Builder.class); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + if (!from_.isEmpty()) { + output.writeBytes(2, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(3, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(4, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(5, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(6, nonce_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(7, nrgConsumed_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(8, nrgPrice_); + } + if (txIndex_ != 0) { + output.writeUInt32(9, txIndex_); + } + if (!contract_.isEmpty()) { + output.writeBytes(10, contract_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(11, logs_.get(i)); + } + if (timestamp_ != 0L) { + output.writeUInt64(12, timestamp_); + } + if (!getErrorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, error_); + } + unknownFields.writeTo(output); + } - // Construct using org.aion.api.server.pb.Message.t_Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, txHash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, nonce_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, nrgConsumed_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, nrgPrice_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, txIndex_); + } + if (!contract_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, contract_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, logs_.get(i)); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(12, timestamp_); + } + if (!getErrorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, error_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_TxDetail)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_TxDetail other = (org.aion.api.server.pb.Message.t_TxDetail) obj; + + boolean result = true; + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTo() + .equals(other.getTo()); + result = result && getValue() + .equals(other.getValue()); + result = result && getData() + .equals(other.getData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && (getNrgConsumed() + == other.getNrgConsumed()); + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && (getTxIndex() + == other.getTxIndex()); + result = result && getContract() + .equals(other.getContract()); + result = result && getLogsList() + .equals(other.getLogsList()); + result = result && (getTimestamp() + == other.getTimestamp()); + result = result && getError() + .equals(other.getError()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsumed()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + CONTRACT_FIELD_NUMBER; + hash = (53 * hash) + getContract().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - nodeId_ = ""; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_TxDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - remoteP2PIp_ = ""; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_TxDetail} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_TxDetail) + org.aion.api.server.pb.Message.t_TxDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_TxDetail.class, org.aion.api.server.pb.Message.t_TxDetail.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_TxDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + nrgConsumed_ = 0L; + + nrgPrice_ = 0L; + + txIndex_ = 0; + + contract_ = com.google.protobuf.ByteString.EMPTY; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + logsBuilder_.clear(); + } + timestamp_ = 0L; + + error_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + } + + public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_TxDetail build() { + org.aion.api.server.pb.Message.t_TxDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_TxDetail buildPartial() { + org.aion.api.server.pb.Message.t_TxDetail result = new org.aion.api.server.pb.Message.t_TxDetail(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.txHash_ = txHash_; + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nonce_ = nonce_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgPrice_ = nrgPrice_; + result.txIndex_ = txIndex_; + result.contract_ = contract_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + result.timestamp_ = timestamp_; + result.error_ = error_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_TxDetail) { + return mergeFrom((org.aion.api.server.pb.Message.t_TxDetail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_TxDetail other) { + if (other == org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getContract() != com.google.protobuf.ByteString.EMPTY) { + setContract(other.getContract()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000400); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_TxDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_TxDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 1; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 1; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 2; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 2; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 2; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes to = 3; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** + * bytes to = 3; + */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * bytes to = 3; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 4; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 4; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 4; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 5; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 5; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 5; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 6; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 6; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 6; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private long nrgConsumed_ ; + /** + * uint64 nrgConsumed = 7; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** + * uint64 nrgConsumed = 7; + */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsumed = 7; + */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 8; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 8; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 8; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + private int txIndex_ ; + /** + * uint32 txIndex = 9; + */ + public int getTxIndex() { + return txIndex_; + } + /** + * uint32 txIndex = 9; + */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 txIndex = 9; + */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contract_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes contract = 10; + */ + public com.google.protobuf.ByteString getContract() { + return contract_; + } + /** + * bytes contract = 10; + */ + public Builder setContract(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contract_ = value; + onChanged(); + return this; + } + /** + * bytes contract = 10; + */ + public Builder clearContract() { + + contract_ = getDefaultInstance().getContract(); + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> logsBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder setLogs( + int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder setLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder addLogs( + int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder addLogs( + org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder addLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 11; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder>( + logs_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private long timestamp_ ; + /** + * uint64 timestamp = 12; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * uint64 timestamp = 12; + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * uint64 timestamp = 12; + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 13; + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 13; + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 13; + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + * string error = 13; + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + * string error = 13; + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_TxDetail) + } - remoteP2PPort_ = 0; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_TxDetail) + private static final org.aion.api.server.pb.Message.t_TxDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_TxDetail(); + } - latency_ = 0; + public static org.aion.api.server.pb.Message.t_TxDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } - return this; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_TxDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_TxDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Node_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Node.getDefaultInstance(); - } + public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.t_Node build() { - org.aion.api.server.pb.Message.t_Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + } + + public interface t_AccountDetailOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AccountDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * bytes balance = 2; + */ + com.google.protobuf.ByteString getBalance(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} + */ + public static final class t_AccountDetail extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AccountDetail) + t_AccountDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_AccountDetail.newBuilder() to construct. + private t_AccountDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_AccountDetail() { + address_ = com.google.protobuf.ByteString.EMPTY; + balance_ = com.google.protobuf.ByteString.EMPTY; + } - public org.aion.api.server.pb.Message.t_Node buildPartial() { - org.aion.api.server.pb.Message.t_Node result = - new org.aion.api.server.pb.Message.t_Node(this); - result.blockNumber_ = blockNumber_; - result.nodeId_ = nodeId_; - result.remoteP2PIp_ = remoteP2PIp_; - result.remoteP2PPort_ = remoteP2PPort_; - result.latency_ = latency_; - onBuilt(); - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_AccountDetail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + case 18: { + + balance_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + } - public Builder clone() { - return (Builder) super.clone(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AccountDetail.class, org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public static final int BALANCE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString balance_; + /** + * bytes balance = 2; + */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + memoizedIsInitialized = 1; + return true; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!balance_.isEmpty()) { + output.writeBytes(2, balance_); + } + unknownFields.writeTo(output); + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Node) { - return mergeFrom((org.aion.api.server.pb.Message.t_Node) other); - } else { - super.mergeFrom(other); - return this; - } - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (!balance_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, balance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Node other) { - if (other == org.aion.api.server.pb.Message.t_Node.getDefaultInstance()) - return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (!other.getRemoteP2PIp().isEmpty()) { - remoteP2PIp_ = other.remoteP2PIp_; - onChanged(); - } - if (other.getRemoteP2PPort() != 0) { - setRemoteP2PPort(other.getRemoteP2PPort()); - } - if (other.getLatency() != 0) { - setLatency(other.getLatency()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_AccountDetail)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_AccountDetail other = (org.aion.api.server.pb.Message.t_AccountDetail) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && getBalance() + .equals(other.getBalance()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + getBalance().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Node parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_Node) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_AccountDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AccountDetail) + org.aion.api.server.pb.Message.t_AccountDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_AccountDetail.class, org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_AccountDetail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + balance_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + } + + public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_AccountDetail build() { + org.aion.api.server.pb.Message.t_AccountDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_AccountDetail buildPartial() { + org.aion.api.server.pb.Message.t_AccountDetail result = new org.aion.api.server.pb.Message.t_AccountDetail(this); + result.address_ = address_; + result.balance_ = balance_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_AccountDetail) { + return mergeFrom((org.aion.api.server.pb.Message.t_AccountDetail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_AccountDetail other) { + if (other == org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { + setBalance(other.getBalance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_AccountDetail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_AccountDetail) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes balance = 2; + */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } + /** + * bytes balance = 2; + */ + public Builder setBalance(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + balance_ = value; + onChanged(); + return this; + } + /** + * bytes balance = 2; + */ + public Builder clearBalance() { + + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AccountDetail) + } - blockNumber_ = 0L; - onChanged(); - return this; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AccountDetail) + private static final org.aion.api.server.pb.Message.t_AccountDetail DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AccountDetail(); + } - private java.lang.Object nodeId_ = ""; - /** string nodeId = 2; */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string nodeId = 2; */ - public com.google.protobuf.ByteString getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_AccountDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_AccountDetail(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface t_BlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Block) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + + /** + * uint64 timestamp = 2; + */ + long getTimestamp(); + + /** + * uint64 nrgConsumed = 3; + */ + long getNrgConsumed(); + + /** + * uint64 nrgLimit = 4; + */ + long getNrgLimit(); + + /** + * bytes parentHash = 5; + */ + com.google.protobuf.ByteString getParentHash(); + + /** + * bytes minerAddress = 6; + */ + com.google.protobuf.ByteString getMinerAddress(); + + /** + * bytes stateRoot = 7; + */ + com.google.protobuf.ByteString getStateRoot(); + + /** + * bytes txTrieRoot = 8; + */ + com.google.protobuf.ByteString getTxTrieRoot(); + + /** + * bytes receiptTrieRoot = 9; + */ + com.google.protobuf.ByteString getReceiptTrieRoot(); + + /** + * bytes logsBloom = 10; + */ + com.google.protobuf.ByteString getLogsBloom(); + + /** + * bytes difficulty = 11; + */ + com.google.protobuf.ByteString getDifficulty(); + + /** + * bytes totalDifficulty = 12; + */ + com.google.protobuf.ByteString getTotalDifficulty(); + + /** + * bytes extraData = 13; + */ + com.google.protobuf.ByteString getExtraData(); + + /** + * bytes nonce = 14; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * bytes solution = 15; + */ + com.google.protobuf.ByteString getSolution(); + + /** + * bytes hash = 16; + */ + com.google.protobuf.ByteString getHash(); + + /** + * uint32 size = 17; + */ + int getSize(); + + /** + * repeated bytes txHash = 18; + */ + java.util.List getTxHashList(); + /** + * repeated bytes txHash = 18; + */ + int getTxHashCount(); + /** + * repeated bytes txHash = 18; + */ + com.google.protobuf.ByteString getTxHash(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Block} + */ + public static final class t_Block extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Block) + t_BlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Block.newBuilder() to construct. + private t_Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_Block() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + txHash_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_Block( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - /** string nodeId = 2; */ - public Builder setNodeId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; + case 8: { + + blockNumber_ = input.readUInt64(); + break; } - /** string nodeId = 2; */ - public Builder clearNodeId() { + case 16: { - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; + timestamp_ = input.readUInt64(); + break; } - /** string nodeId = 2; */ - public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; + case 24: { + + nrgConsumed_ = input.readUInt64(); + break; } + case 32: { - private java.lang.Object remoteP2PIp_ = ""; - /** string remote_p2p_ip = 3; */ - public java.lang.String getRemoteP2PIp() { - java.lang.Object ref = remoteP2PIp_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteP2PIp_ = s; - return s; - } else { - return (java.lang.String) ref; - } + nrgLimit_ = input.readUInt64(); + break; } - /** string remote_p2p_ip = 3; */ - public com.google.protobuf.ByteString getRemoteP2PIpBytes() { - java.lang.Object ref = remoteP2PIp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - remoteP2PIp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + case 42: { + + parentHash_ = input.readBytes(); + break; } - /** string remote_p2p_ip = 3; */ - public Builder setRemoteP2PIp(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - remoteP2PIp_ = value; - onChanged(); - return this; + case 50: { + + minerAddress_ = input.readBytes(); + break; } - /** string remote_p2p_ip = 3; */ - public Builder clearRemoteP2PIp() { + case 58: { - remoteP2PIp_ = getDefaultInstance().getRemoteP2PIp(); - onChanged(); - return this; + stateRoot_ = input.readBytes(); + break; } - /** string remote_p2p_ip = 3; */ - public Builder setRemoteP2PIpBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - remoteP2PIp_ = value; - onChanged(); - return this; + case 66: { + + txTrieRoot_ = input.readBytes(); + break; } + case 74: { - private int remoteP2PPort_; - /** uint32 remote_p2p_port = 4; */ - public int getRemoteP2PPort() { - return remoteP2PPort_; + receiptTrieRoot_ = input.readBytes(); + break; } - /** uint32 remote_p2p_port = 4; */ - public Builder setRemoteP2PPort(int value) { + case 82: { - remoteP2PPort_ = value; - onChanged(); - return this; + logsBloom_ = input.readBytes(); + break; } - /** uint32 remote_p2p_port = 4; */ - public Builder clearRemoteP2PPort() { + case 90: { - remoteP2PPort_ = 0; - onChanged(); - return this; + difficulty_ = input.readBytes(); + break; } + case 98: { - private int latency_; - /** uint32 latency = 5; */ - public int getLatency() { - return latency_; + totalDifficulty_ = input.readBytes(); + break; } - /** uint32 latency = 5; */ - public Builder setLatency(int value) { + case 106: { - latency_ = value; - onChanged(); - return this; + extraData_ = input.readBytes(); + break; } - /** uint32 latency = 5; */ - public Builder clearLatency() { + case 114: { - latency_ = 0; - onChanged(); - return this; + nonce_ = input.readBytes(); + break; } + case 122: { - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + solution_ = input.readBytes(); + break; } + case 130: { - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + hash_ = input.readBytes(); + break; } + case 136: { - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Node) + size_ = input.readUInt32(); + break; + } + case 146: { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + txHash_.add(input.readBytes()); + break; + } + } } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_descriptor; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Node) - private static final org.aion.api.server.pb.Message.t_Node DEFAULT_INSTANCE; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Block.class, org.aion.api.server.pb.Message.t_Block.Builder.class); + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Node(); - } + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - public static org.aion.api.server.pb.Message.t_Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Node(input, extensionRegistry); - } - }; + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - public org.aion.api.server.pb.Message.t_Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; } - public interface t_LgEleOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_LgEle) - com.google.protobuf.MessageOrBuilder { + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } - /** bytes data = 2; */ - com.google.protobuf.ByteString getData(); + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } - /** repeated string topics = 3; */ - java.util.List getTopicsList(); - /** repeated string topics = 3; */ - int getTopicsCount(); - /** repeated string topics = 3; */ - java.lang.String getTopics(int index); - /** repeated string topics = 3; */ - com.google.protobuf.ByteString getTopicsBytes(int index); + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; } - /** Protobuf type {@code org.aion.api.server.pb.t_LgEle} */ - public static final class t_LgEle extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_LgEle) - t_LgEleOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_LgEle.newBuilder() to construct. - private t_LgEle(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_LgEle() { - address_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString totalDifficulty_; + /** + * bytes totalDifficulty = 12; + */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } - private t_LgEle( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 18: - { - data_ = input.readBytes(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - topics_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = topics_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final int EXTRADATA_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString extraData_; + /** + * bytes extraData = 13; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - } + public static final int NONCE_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 14; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_LgEle.class, - org.aion.api.server.pb.Message.t_LgEle.Builder.class); - } + public static final int SOLUTION_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString solution_; + /** + * bytes solution = 15; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } - private int bitField0_; - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + public static final int HASH_FIELD_NUMBER = 16; + private com.google.protobuf.ByteString hash_; + /** + * bytes hash = 16; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** bytes data = 2; */ - public com.google.protobuf.ByteString getData() { - return data_; - } + public static final int SIZE_FIELD_NUMBER = 17; + private int size_; + /** + * uint32 size = 17; + */ + public int getSize() { + return size_; + } - public static final int TOPICS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList topics_; - /** repeated string topics = 3; */ - public com.google.protobuf.ProtocolStringList getTopicsList() { - return topics_; - } - /** repeated string topics = 3; */ - public int getTopicsCount() { - return topics_.size(); - } - /** repeated string topics = 3; */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** repeated string topics = 3; */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { - return topics_.getByteString(index); - } + public static final int TXHASH_FIELD_NUMBER = 18; + private java.util.List txHash_; + /** + * repeated bytes txHash = 18; + */ + public java.util.List + getTxHashList() { + return txHash_; + } + /** + * repeated bytes txHash = 18; + */ + public int getTxHashCount() { + return txHash_.size(); + } + /** + * repeated bytes txHash = 18; + */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } - private byte memoizedIsInitialized = -1; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + memoizedIsInitialized = 1; + return true; + } - memoizedIsInitialized = 1; - return true; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + output.writeBytes(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(13, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(14, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(15, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(16, hash_); + } + if (size_ != 0) { + output.writeUInt32(17, size_); + } + for (int i = 0; i < txHash_.size(); i++) { + output.writeBytes(18, txHash_.get(i)); + } + unknownFields.writeTo(output); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - for (int i = 0; i < topics_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topics_.getRaw(i)); - } - unknownFields.writeTo(output); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(13, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(14, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(15, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(16, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(17, size_); + } + { + int dataSize = 0; + for (int i = 0; i < txHash_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(txHash_.get(i)); + } + size += dataSize; + size += 2 * getTxHashList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Block)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_Block other = (org.aion.api.server.pb.Message.t_Block) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && (getTimestamp() + == other.getTimestamp()); + result = result && (getNrgConsumed() + == other.getNrgConsumed()); + result = result && (getNrgLimit() + == other.getNrgLimit()); + result = result && getParentHash() + .equals(other.getParentHash()); + result = result && getMinerAddress() + .equals(other.getMinerAddress()); + result = result && getStateRoot() + .equals(other.getStateRoot()); + result = result && getTxTrieRoot() + .equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot() + .equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom() + .equals(other.getLogsBloom()); + result = result && getDifficulty() + .equals(other.getDifficulty()); + result = result && getTotalDifficulty() + .equals(other.getTotalDifficulty()); + result = result && getExtraData() + .equals(other.getExtraData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && getSolution() + .equals(other.getSolution()); + result = result && getHash() + .equals(other.getHash()); + result = result && (getSize() + == other.getSize()); + result = result && getTxHashList() + .equals(other.getTxHashList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); - } - { - int dataSize = 0; - for (int i = 0; i < topics_.size(); i++) { - dataSize += computeStringSizeNoTag(topics_.getRaw(i)); - } - size += dataSize; - size += 1 * getTopicsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getTotalDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + if (getTxHashCount() > 0) { + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHashList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_LgEle)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_LgEle other = - (org.aion.api.server.pb.Message.t_LgEle) obj; + public static org.aion.api.server.pb.Message.t_Block parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Block parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && getData().equals(other.getData()); - result = result && getTopicsList().equals(other.getTopicsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Block prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - if (getTopicsCount() > 0) { - hash = (37 * hash) + TOPICS_FIELD_NUMBER; - hash = (53 * hash) + getTopicsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Block} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Block) + org.aion.api.server.pb.Message.t_BlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Block.class, org.aion.api.server.pb.Message.t_Block.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_Block.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + timestamp_ = 0L; + + nrgConsumed_ = 0L; + + nrgLimit_ = 0L; + + parentHash_ = com.google.protobuf.ByteString.EMPTY; + + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + + difficulty_ = com.google.protobuf.ByteString.EMPTY; + + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + + extraData_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + size_ = 0; + + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Block_descriptor; + } + + public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Block.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_Block build() { + org.aion.api.server.pb.Message.t_Block result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_Block buildPartial() { + org.aion.api.server.pb.Message.t_Block result = new org.aion.api.server.pb.Message.t_Block(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.totalDifficulty_ = totalDifficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + if (((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.txHash_ = txHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Block) { + return mergeFrom((org.aion.api.server.pb.Message.t_Block)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Block other) { + if (other == org.aion.api.server.pb.Message.t_Block.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setTotalDifficulty(other.getTotalDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (!other.txHash_.isEmpty()) { + if (txHash_.isEmpty()) { + txHash_ = other.txHash_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureTxHashIsMutable(); + txHash_.addAll(other.txHash_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Block parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_Block) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * uint64 timestamp = 2; + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * uint64 timestamp = 2; + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_ ; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgLimit_ ; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** + * bytes parentHash = 5; + */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** + * bytes parentHash = 5; + */ + public Builder clearParentHash() { + + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** + * bytes minerAddress = 6; + */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** + * bytes minerAddress = 6; + */ + public Builder clearMinerAddress() { + + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** + * bytes stateRoot = 7; + */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** + * bytes stateRoot = 7; + */ + public Builder clearStateRoot() { + + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder clearTxTrieRoot() { + + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder clearReceiptTrieRoot() { + + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** + * bytes logsBloom = 10; + */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** + * bytes logsBloom = 10; + */ + public Builder clearLogsBloom() { + + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** + * bytes difficulty = 11; + */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** + * bytes difficulty = 11; + */ + public Builder clearDifficulty() { + + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes totalDifficulty = 12; + */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } + /** + * bytes totalDifficulty = 12; + */ + public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDifficulty_ = value; + onChanged(); + return this; + } + /** + * bytes totalDifficulty = 12; + */ + public Builder clearTotalDifficulty() { + + totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes extraData = 13; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** + * bytes extraData = 13; + */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** + * bytes extraData = 13; + */ + public Builder clearExtraData() { + + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 14; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 14; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 14; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes solution = 15; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** + * bytes solution = 15; + */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** + * bytes solution = 15; + */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes hash = 16; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** + * bytes hash = 16; + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** + * bytes hash = 16; + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private int size_ ; + /** + * uint32 size = 17; + */ + public int getSize() { + return size_; + } + /** + * uint32 size = 17; + */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** + * uint32 size = 17; + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.util.List txHash_ = java.util.Collections.emptyList(); + private void ensureTxHashIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = new java.util.ArrayList(txHash_); + bitField0_ |= 0x00020000; + } + } + /** + * repeated bytes txHash = 18; + */ + public java.util.List + getTxHashList() { + return java.util.Collections.unmodifiableList(txHash_); + } + /** + * repeated bytes txHash = 18; + */ + public int getTxHashCount() { + return txHash_.size(); + } + /** + * repeated bytes txHash = 18; + */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } + /** + * repeated bytes txHash = 18; + */ + public Builder setTxHash( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes txHash = 18; + */ + public Builder addTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes txHash = 18; + */ + public Builder addAllTxHash( + java.lang.Iterable values) { + ensureTxHashIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, txHash_); + onChanged(); + return this; + } + /** + * repeated bytes txHash = 18; + */ + public Builder clearTxHash() { + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Block) + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Block) + private static final org.aion.api.server.pb.Message.t_Block DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Block(); + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.t_Block getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_Block parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Block(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + } + + public interface t_BlockSqlOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockSql) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + + /** + * string blockHash = 2; + */ + java.lang.String getBlockHash(); + /** + * string blockHash = 2; + */ + com.google.protobuf.ByteString + getBlockHashBytes(); + + /** + * string parentHash = 3; + */ + java.lang.String getParentHash(); + /** + * string parentHash = 3; + */ + com.google.protobuf.ByteString + getParentHashBytes(); + + /** + * string block = 4; + */ + java.lang.String getBlock(); + /** + * string block = 4; + */ + com.google.protobuf.ByteString + getBlockBytes(); + + /** + * repeated string tx = 5; + */ + java.util.List + getTxList(); + /** + * repeated string tx = 5; + */ + int getTxCount(); + /** + * repeated string tx = 5; + */ + java.lang.String getTx(int index); + /** + * repeated string tx = 5; + */ + com.google.protobuf.ByteString + getTxBytes(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_BlockSql} + */ + public static final class t_BlockSql extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockSql) + t_BlockSqlOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_BlockSql.newBuilder() to construct. + private t_BlockSql(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_BlockSql() { + blockNumber_ = 0L; + blockHash_ = ""; + parentHash_ = ""; + block_ = ""; + tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_BlockSql( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blockNumber_ = input.readUInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + blockHash_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + parentHash_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + block_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + tx_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = tx_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockSql.class, org.aion.api.server.pb.Message.t_BlockSql.Builder.class); + } - public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - public static org.aion.api.server.pb.Message.t_LgEle parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final int BLOCKHASH_FIELD_NUMBER = 2; + private volatile java.lang.Object blockHash_; + /** + * string blockHash = 2; + */ + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } + } + /** + * string blockHash = 2; + */ + public com.google.protobuf.ByteString + getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int PARENTHASH_FIELD_NUMBER = 3; + private volatile java.lang.Object parentHash_; + /** + * string parentHash = 3; + */ + public java.lang.String getParentHash() { + java.lang.Object ref = parentHash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentHash_ = s; + return s; + } + } + /** + * string parentHash = 3; + */ + public com.google.protobuf.ByteString + getParentHashBytes() { + java.lang.Object ref = parentHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parentHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.t_LgEle parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int BLOCK_FIELD_NUMBER = 4; + private volatile java.lang.Object block_; + /** + * string block = 4; + */ + public java.lang.String getBlock() { + java.lang.Object ref = block_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + block_ = s; + return s; + } + } + /** + * string block = 4; + */ + public com.google.protobuf.ByteString + getBlockBytes() { + java.lang.Object ref = block_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + block_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int TX_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList tx_; + /** + * repeated string tx = 5; + */ + public com.google.protobuf.ProtocolStringList + getTxList() { + return tx_; + } + /** + * repeated string tx = 5; + */ + public int getTxCount() { + return tx_.size(); + } + /** + * repeated string tx = 5; + */ + public java.lang.String getTx(int index) { + return tx_.get(index); + } + /** + * repeated string tx = 5; + */ + public com.google.protobuf.ByteString + getTxBytes(int index) { + return tx_.getByteString(index); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static Builder newBuilder(org.aion.api.server.pb.Message.t_LgEle prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + memoizedIsInitialized = 1; + return true; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (!getBlockHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blockHash_); + } + if (!getParentHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentHash_); + } + if (!getBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, block_); + } + for (int i = 0; i < tx_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tx_.getRaw(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_LgEle} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_LgEle) - org.aion.api.server.pb.Message.t_LgEleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + if (!getBlockHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blockHash_); + } + if (!getParentHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentHash_); + } + if (!getBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, block_); + } + { + int dataSize = 0; + for (int i = 0; i < tx_.size(); i++) { + dataSize += computeStringSizeNoTag(tx_.getRaw(i)); + } + size += dataSize; + size += 1 * getTxList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_LgEle.class, - org.aion.api.server.pb.Message.t_LgEle.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockSql)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_BlockSql other = (org.aion.api.server.pb.Message.t_BlockSql) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && getParentHash() + .equals(other.getParentHash()); + result = result && getBlock() + .equals(other.getBlock()); + result = result && getTxList() + .equals(other.getTxList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - // Construct using org.aion.api.server.pb.Message.t_LgEle.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getBlock().hashCode(); + if (getTxCount() > 0) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTxList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockSql prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_BlockSql} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockSql) + org.aion.api.server.pb.Message.t_BlockSqlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_BlockSql.class, org.aion.api.server.pb.Message.t_BlockSql.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_BlockSql.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + blockHash_ = ""; + + parentHash_ = ""; + + block_ = ""; + + tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + } + + public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_BlockSql build() { + org.aion.api.server.pb.Message.t_BlockSql result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_BlockSql buildPartial() { + org.aion.api.server.pb.Message.t_BlockSql result = new org.aion.api.server.pb.Message.t_BlockSql(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.blockHash_ = blockHash_; + result.parentHash_ = parentHash_; + result.block_ = block_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = tx_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.tx_ = tx_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_BlockSql) { + return mergeFrom((org.aion.api.server.pb.Message.t_BlockSql)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockSql other) { + if (other == org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (!other.getBlockHash().isEmpty()) { + blockHash_ = other.blockHash_; + onChanged(); + } + if (!other.getParentHash().isEmpty()) { + parentHash_ = other.parentHash_; + onChanged(); + } + if (!other.getBlock().isEmpty()) { + block_ = other.block_; + onChanged(); + } + if (!other.tx_.isEmpty()) { + if (tx_.isEmpty()) { + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTxIsMutable(); + tx_.addAll(other.tx_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_BlockSql parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_BlockSql) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object blockHash_ = ""; + /** + * string blockHash = 2; + */ + public java.lang.String getBlockHash() { + java.lang.Object ref = blockHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string blockHash = 2; + */ + public com.google.protobuf.ByteString + getBlockHashBytes() { + java.lang.Object ref = blockHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + blockHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string blockHash = 2; + */ + public Builder setBlockHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * string blockHash = 2; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + /** + * string blockHash = 2; + */ + public Builder setBlockHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + blockHash_ = value; + onChanged(); + return this; + } + + private java.lang.Object parentHash_ = ""; + /** + * string parentHash = 3; + */ + public java.lang.String getParentHash() { + java.lang.Object ref = parentHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string parentHash = 3; + */ + public com.google.protobuf.ByteString + getParentHashBytes() { + java.lang.Object ref = parentHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parentHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string parentHash = 3; + */ + public Builder setParentHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** + * string parentHash = 3; + */ + public Builder clearParentHash() { + + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + /** + * string parentHash = 3; + */ + public Builder setParentHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parentHash_ = value; + onChanged(); + return this; + } + + private java.lang.Object block_ = ""; + /** + * string block = 4; + */ + public java.lang.String getBlock() { + java.lang.Object ref = block_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + block_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string block = 4; + */ + public com.google.protobuf.ByteString + getBlockBytes() { + java.lang.Object ref = block_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + block_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string block = 4; + */ + public Builder setBlock( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + block_ = value; + onChanged(); + return this; + } + /** + * string block = 4; + */ + public Builder clearBlock() { + + block_ = getDefaultInstance().getBlock(); + onChanged(); + return this; + } + /** + * string block = 4; + */ + public Builder setBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + block_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTxIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + tx_ = new com.google.protobuf.LazyStringArrayList(tx_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated string tx = 5; + */ + public com.google.protobuf.ProtocolStringList + getTxList() { + return tx_.getUnmodifiableView(); + } + /** + * repeated string tx = 5; + */ + public int getTxCount() { + return tx_.size(); + } + /** + * repeated string tx = 5; + */ + public java.lang.String getTx(int index) { + return tx_.get(index); + } + /** + * repeated string tx = 5; + */ + public com.google.protobuf.ByteString + getTxBytes(int index) { + return tx_.getByteString(index); + } + /** + * repeated string tx = 5; + */ + public Builder setTx( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tx = 5; + */ + public Builder addTx( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + return this; + } + /** + * repeated string tx = 5; + */ + public Builder addAllTx( + java.lang.Iterable values) { + ensureTxIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tx_); + onChanged(); + return this; + } + /** + * repeated string tx = 5; + */ + public Builder clearTx() { + tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * repeated string tx = 5; + */ + public Builder addTxBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockSql) + } - data_ = com.google.protobuf.ByteString.EMPTY; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockSql) + private static final org.aion.api.server.pb.Message.t_BlockSql DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockSql(); + } - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } + public static org.aion.api.server.pb.Message.t_BlockSql getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_BlockSql parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_BlockSql(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public org.aion.api.server.pb.Message.t_LgEle build() { - org.aion.api.server.pb.Message.t_LgEle result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.t_LgEle buildPartial() { - org.aion.api.server.pb.Message.t_LgEle result = - new org.aion.api.server.pb.Message.t_LgEle(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.address_ = address_; - result.data_ = data_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = topics_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.topics_ = topics_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } + } + + public interface rsp_errormsgOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_errormsg) + com.google.protobuf.MessageOrBuilder { + + /** + * string errormsg = 1; + */ + java.lang.String getErrormsg(); + /** + * string errormsg = 1; + */ + com.google.protobuf.ByteString + getErrormsgBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} + */ + public static final class rsp_errormsg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_errormsg) + rsp_errormsgOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_errormsg.newBuilder() to construct. + private rsp_errormsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_errormsg() { + errormsg_ = ""; + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_errormsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + errormsg_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_errormsg.class, org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public static final int ERRORMSG_FIELD_NUMBER = 1; + private volatile java.lang.Object errormsg_; + /** + * string errormsg = 1; + */ + public java.lang.String getErrormsg() { + java.lang.Object ref = errormsg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errormsg_ = s; + return s; + } + } + /** + * string errormsg = 1; + */ + public com.google.protobuf.ByteString + getErrormsgBytes() { + java.lang.Object ref = errormsg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errormsg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + memoizedIsInitialized = 1; + return true; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getErrormsgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errormsg_); + } + unknownFields.writeTo(output); + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_LgEle) { - return mergeFrom((org.aion.api.server.pb.Message.t_LgEle) other); - } else { - super.mergeFrom(other); - return this; - } - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getErrormsgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errormsg_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.t_LgEle other) { - if (other == org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()) - return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (!other.topics_.isEmpty()) { - if (topics_.isEmpty()) { - topics_ = other.topics_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTopicsIsMutable(); - topics_.addAll(other.topics_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_errormsg)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_errormsg other = (org.aion.api.server.pb.Message.rsp_errormsg) obj; + + boolean result = true; + result = result && getErrormsg() + .equals(other.getErrormsg()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ERRORMSG_FIELD_NUMBER; + hash = (53 * hash) + getErrormsg().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_LgEle parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_LgEle) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private int bitField0_; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_errormsg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_errormsg) + org.aion.api.server.pb.Message.rsp_errormsgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_errormsg.class, org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_errormsg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + errormsg_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_errormsg build() { + org.aion.api.server.pb.Message.rsp_errormsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_errormsg buildPartial() { + org.aion.api.server.pb.Message.rsp_errormsg result = new org.aion.api.server.pb.Message.rsp_errormsg(this); + result.errormsg_ = errormsg_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_errormsg) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_errormsg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_errormsg other) { + if (other == org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance()) return this; + if (!other.getErrormsg().isEmpty()) { + errormsg_ = other.errormsg_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_errormsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_errormsg) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object errormsg_ = ""; + /** + * string errormsg = 1; + */ + public java.lang.String getErrormsg() { + java.lang.Object ref = errormsg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errormsg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string errormsg = 1; + */ + public com.google.protobuf.ByteString + getErrormsgBytes() { + java.lang.Object ref = errormsg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errormsg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string errormsg = 1; + */ + public Builder setErrormsg( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errormsg_ = value; + onChanged(); + return this; + } + /** + * string errormsg = 1; + */ + public Builder clearErrormsg() { + + errormsg_ = getDefaultInstance().getErrormsg(); + onChanged(); + return this; + } + /** + * string errormsg = 1; + */ + public Builder setErrormsgBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errormsg_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_errormsg) + } - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_errormsg) + private static final org.aion.api.server.pb.Message.rsp_errormsg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_errormsg(); + } - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 2; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 2; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 2; */ - public Builder clearData() { + public static org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstance() { + return DEFAULT_INSTANCE; + } - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_errormsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_errormsg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private com.google.protobuf.LazyStringList topics_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private void ensureTopicsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - topics_ = new com.google.protobuf.LazyStringArrayList(topics_); - bitField0_ |= 0x00000004; - } - } - /** repeated string topics = 3; */ - public com.google.protobuf.ProtocolStringList getTopicsList() { - return topics_.getUnmodifiableView(); - } - /** repeated string topics = 3; */ - public int getTopicsCount() { - return topics_.size(); - } - /** repeated string topics = 3; */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** repeated string topics = 3; */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { - return topics_.getByteString(index); - } - /** repeated string topics = 3; */ - public Builder setTopics(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.set(index, value); - onChanged(); - return this; - } - /** repeated string topics = 3; */ - public Builder addTopics(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } - /** repeated string topics = 3; */ - public Builder addAllTopics(java.lang.Iterable values) { - ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); - onChanged(); - return this; - } - /** repeated string topics = 3; */ - public Builder clearTopics() { - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** repeated string topics = 3; */ - public Builder addTopicsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } + public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + } + + public interface rsp_protocolVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_protocolVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * string kernel = 1; + */ + java.lang.String getKernel(); + /** + * string kernel = 1; + */ + com.google.protobuf.ByteString + getKernelBytes(); + + /** + * string net = 2; + */ + java.lang.String getNet(); + /** + * string net = 2; + */ + com.google.protobuf.ByteString + getNetBytes(); + + /** + * string api = 3; + */ + java.lang.String getApi(); + /** + * string api = 3; + */ + com.google.protobuf.ByteString + getApiBytes(); + + /** + * string vm = 4; + */ + java.lang.String getVm(); + /** + * string vm = 4; + */ + com.google.protobuf.ByteString + getVmBytes(); + + /** + * string db = 5; + */ + java.lang.String getDb(); + /** + * string db = 5; + */ + com.google.protobuf.ByteString + getDbBytes(); + + /** + * string miner = 6; + */ + java.lang.String getMiner(); + /** + * string miner = 6; + */ + com.google.protobuf.ByteString + getMinerBytes(); + + /** + * string txpool = 7; + */ + java.lang.String getTxpool(); + /** + * string txpool = 7; + */ + com.google.protobuf.ByteString + getTxpoolBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} + */ + public static final class rsp_protocolVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_protocolVersion) + rsp_protocolVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_protocolVersion.newBuilder() to construct. + private rsp_protocolVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_protocolVersion() { + kernel_ = ""; + net_ = ""; + api_ = ""; + vm_ = ""; + db_ = ""; + miner_ = ""; + txpool_ = ""; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_protocolVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + kernel_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + net_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + api_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + vm_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + db_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + miner_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + txpool_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_LgEle) - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_protocolVersion.class, org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_LgEle) - private static final org.aion.api.server.pb.Message.t_LgEle DEFAULT_INSTANCE; + public static final int KERNEL_FIELD_NUMBER = 1; + private volatile java.lang.Object kernel_; + /** + * string kernel = 1; + */ + public java.lang.String getKernel() { + java.lang.Object ref = kernel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernel_ = s; + return s; + } + } + /** + * string kernel = 1; + */ + public com.google.protobuf.ByteString + getKernelBytes() { + java.lang.Object ref = kernel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_LgEle(); - } + public static final int NET_FIELD_NUMBER = 2; + private volatile java.lang.Object net_; + /** + * string net = 2; + */ + public java.lang.String getNet() { + java.lang.Object ref = net_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + net_ = s; + return s; + } + } + /** + * string net = 2; + */ + public com.google.protobuf.ByteString + getNetBytes() { + java.lang.Object ref = net_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + net_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.t_LgEle getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int API_FIELD_NUMBER = 3; + private volatile java.lang.Object api_; + /** + * string api = 3; + */ + public java.lang.String getApi() { + java.lang.Object ref = api_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + api_ = s; + return s; + } + } + /** + * string api = 3; + */ + public com.google.protobuf.ByteString + getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_LgEle parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_LgEle(input, extensionRegistry); - } - }; + public static final int VM_FIELD_NUMBER = 4; + private volatile java.lang.Object vm_; + /** + * string vm = 4; + */ + public java.lang.String getVm() { + java.lang.Object ref = vm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vm_ = s; + return s; + } + } + /** + * string vm = 4; + */ + public com.google.protobuf.ByteString + getVmBytes() { + java.lang.Object ref = vm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int DB_FIELD_NUMBER = 5; + private volatile java.lang.Object db_; + /** + * string db = 5; + */ + public java.lang.String getDb() { + java.lang.Object ref = db_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + db_ = s; + return s; + } + } + /** + * string db = 5; + */ + public com.google.protobuf.ByteString + getDbBytes() { + java.lang.Object ref = db_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + db_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int MINER_FIELD_NUMBER = 6; + private volatile java.lang.Object miner_; + /** + * string miner = 6; + */ + public java.lang.String getMiner() { + java.lang.Object ref = miner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + miner_ = s; + return s; + } + } + /** + * string miner = 6; + */ + public com.google.protobuf.ByteString + getMinerBytes() { + java.lang.Object ref = miner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + miner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public org.aion.api.server.pb.Message.t_LgEle getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int TXPOOL_FIELD_NUMBER = 7; + private volatile java.lang.Object txpool_; + /** + * string txpool = 7; + */ + public java.lang.String getTxpool() { + java.lang.Object ref = txpool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txpool_ = s; + return s; + } + } + /** + * string txpool = 7; + */ + public com.google.protobuf.ByteString + getTxpoolBytes() { + java.lang.Object ref = txpool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + txpool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public interface t_FilterCtOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_FilterCt) - com.google.protobuf.MessageOrBuilder { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** string from = 1; */ - java.lang.String getFrom(); - /** string from = 1; */ - com.google.protobuf.ByteString getFromBytes(); + memoizedIsInitialized = 1; + return true; + } - /** string to = 2; */ - java.lang.String getTo(); - /** string to = 2; */ - com.google.protobuf.ByteString getToBytes(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKernelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kernel_); + } + if (!getNetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, net_); + } + if (!getApiBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, api_); + } + if (!getVmBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vm_); + } + if (!getDbBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, db_); + } + if (!getMinerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, miner_); + } + if (!getTxpoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, txpool_); + } + unknownFields.writeTo(output); + } - /** bytes contractAddr = 3; */ - com.google.protobuf.ByteString getContractAddr(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKernelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kernel_); + } + if (!getNetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, net_); + } + if (!getApiBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, api_); + } + if (!getVmBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vm_); + } + if (!getDbBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, db_); + } + if (!getMinerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, miner_); + } + if (!getTxpoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, txpool_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** repeated bytes addresses = 4; */ - java.util.List getAddressesList(); - /** repeated bytes addresses = 4; */ - int getAddressesCount(); - /** repeated bytes addresses = 4; */ - com.google.protobuf.ByteString getAddresses(int index); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_protocolVersion)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_protocolVersion other = (org.aion.api.server.pb.Message.rsp_protocolVersion) obj; + + boolean result = true; + result = result && getKernel() + .equals(other.getKernel()); + result = result && getNet() + .equals(other.getNet()); + result = result && getApi() + .equals(other.getApi()); + result = result && getVm() + .equals(other.getVm()); + result = result && getDb() + .equals(other.getDb()); + result = result && getMiner() + .equals(other.getMiner()); + result = result && getTxpool() + .equals(other.getTxpool()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - /** repeated string topics = 5; */ - java.util.List getTopicsList(); - /** repeated string topics = 5; */ - int getTopicsCount(); - /** repeated string topics = 5; */ - java.lang.String getTopics(int index); - /** repeated string topics = 5; */ - com.google.protobuf.ByteString getTopicsBytes(int index); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KERNEL_FIELD_NUMBER; + hash = (53 * hash) + getKernel().hashCode(); + hash = (37 * hash) + NET_FIELD_NUMBER; + hash = (53 * hash) + getNet().hashCode(); + hash = (37 * hash) + API_FIELD_NUMBER; + hash = (53 * hash) + getApi().hashCode(); + hash = (37 * hash) + VM_FIELD_NUMBER; + hash = (53 * hash) + getVm().hashCode(); + hash = (37 * hash) + DB_FIELD_NUMBER; + hash = (53 * hash) + getDb().hashCode(); + hash = (37 * hash) + MINER_FIELD_NUMBER; + hash = (53 * hash) + getMiner().hashCode(); + hash = (37 * hash) + TXPOOL_FIELD_NUMBER; + hash = (53 * hash) + getTxpool().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** uint64 expireTime = 6; */ - long getExpireTime(); + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - /** Protobuf type {@code org.aion.api.server.pb.t_FilterCt} */ - public static final class t_FilterCt extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_FilterCt) - t_FilterCtOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_FilterCt.newBuilder() to construct. - private t_FilterCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_FilterCt() { - from_ = ""; - to_ = ""; - contractAddr_ = com.google.protobuf.ByteString.EMPTY; - addresses_ = java.util.Collections.emptyList(); - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - expireTime_ = 0L; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_protocolVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_protocolVersion) + org.aion.api.server.pb.Message.rsp_protocolVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_protocolVersion.class, org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_protocolVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + kernel_ = ""; + + net_ = ""; + + api_ = ""; + + vm_ = ""; + + db_ = ""; + + miner_ = ""; + + txpool_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_protocolVersion build() { + org.aion.api.server.pb.Message.rsp_protocolVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_protocolVersion buildPartial() { + org.aion.api.server.pb.Message.rsp_protocolVersion result = new org.aion.api.server.pb.Message.rsp_protocolVersion(this); + result.kernel_ = kernel_; + result.net_ = net_; + result.api_ = api_; + result.vm_ = vm_; + result.db_ = db_; + result.miner_ = miner_; + result.txpool_ = txpool_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_protocolVersion) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_protocolVersion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_protocolVersion other) { + if (other == org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance()) return this; + if (!other.getKernel().isEmpty()) { + kernel_ = other.kernel_; + onChanged(); + } + if (!other.getNet().isEmpty()) { + net_ = other.net_; + onChanged(); + } + if (!other.getApi().isEmpty()) { + api_ = other.api_; + onChanged(); + } + if (!other.getVm().isEmpty()) { + vm_ = other.vm_; + onChanged(); + } + if (!other.getDb().isEmpty()) { + db_ = other.db_; + onChanged(); + } + if (!other.getMiner().isEmpty()) { + miner_ = other.miner_; + onChanged(); + } + if (!other.getTxpool().isEmpty()) { + txpool_ = other.txpool_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_protocolVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_protocolVersion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object kernel_ = ""; + /** + * string kernel = 1; + */ + public java.lang.String getKernel() { + java.lang.Object ref = kernel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kernel = 1; + */ + public com.google.protobuf.ByteString + getKernelBytes() { + java.lang.Object ref = kernel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kernel = 1; + */ + public Builder setKernel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kernel_ = value; + onChanged(); + return this; + } + /** + * string kernel = 1; + */ + public Builder clearKernel() { + + kernel_ = getDefaultInstance().getKernel(); + onChanged(); + return this; + } + /** + * string kernel = 1; + */ + public Builder setKernelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kernel_ = value; + onChanged(); + return this; + } + + private java.lang.Object net_ = ""; + /** + * string net = 2; + */ + public java.lang.String getNet() { + java.lang.Object ref = net_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + net_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string net = 2; + */ + public com.google.protobuf.ByteString + getNetBytes() { + java.lang.Object ref = net_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + net_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string net = 2; + */ + public Builder setNet( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + net_ = value; + onChanged(); + return this; + } + /** + * string net = 2; + */ + public Builder clearNet() { + + net_ = getDefaultInstance().getNet(); + onChanged(); + return this; + } + /** + * string net = 2; + */ + public Builder setNetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + net_ = value; + onChanged(); + return this; + } + + private java.lang.Object api_ = ""; + /** + * string api = 3; + */ + public java.lang.String getApi() { + java.lang.Object ref = api_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + api_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string api = 3; + */ + public com.google.protobuf.ByteString + getApiBytes() { + java.lang.Object ref = api_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + api_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string api = 3; + */ + public Builder setApi( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + api_ = value; + onChanged(); + return this; + } + /** + * string api = 3; + */ + public Builder clearApi() { + + api_ = getDefaultInstance().getApi(); + onChanged(); + return this; + } + /** + * string api = 3; + */ + public Builder setApiBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + api_ = value; + onChanged(); + return this; + } + + private java.lang.Object vm_ = ""; + /** + * string vm = 4; + */ + public java.lang.String getVm() { + java.lang.Object ref = vm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string vm = 4; + */ + public com.google.protobuf.ByteString + getVmBytes() { + java.lang.Object ref = vm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string vm = 4; + */ + public Builder setVm( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vm_ = value; + onChanged(); + return this; + } + /** + * string vm = 4; + */ + public Builder clearVm() { + + vm_ = getDefaultInstance().getVm(); + onChanged(); + return this; + } + /** + * string vm = 4; + */ + public Builder setVmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vm_ = value; + onChanged(); + return this; + } + + private java.lang.Object db_ = ""; + /** + * string db = 5; + */ + public java.lang.String getDb() { + java.lang.Object ref = db_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + db_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string db = 5; + */ + public com.google.protobuf.ByteString + getDbBytes() { + java.lang.Object ref = db_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + db_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string db = 5; + */ + public Builder setDb( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + db_ = value; + onChanged(); + return this; + } + /** + * string db = 5; + */ + public Builder clearDb() { + + db_ = getDefaultInstance().getDb(); + onChanged(); + return this; + } + /** + * string db = 5; + */ + public Builder setDbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + db_ = value; + onChanged(); + return this; + } + + private java.lang.Object miner_ = ""; + /** + * string miner = 6; + */ + public java.lang.String getMiner() { + java.lang.Object ref = miner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + miner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string miner = 6; + */ + public com.google.protobuf.ByteString + getMinerBytes() { + java.lang.Object ref = miner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + miner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string miner = 6; + */ + public Builder setMiner( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + miner_ = value; + onChanged(); + return this; + } + /** + * string miner = 6; + */ + public Builder clearMiner() { + + miner_ = getDefaultInstance().getMiner(); + onChanged(); + return this; + } + /** + * string miner = 6; + */ + public Builder setMinerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + miner_ = value; + onChanged(); + return this; + } + + private java.lang.Object txpool_ = ""; + /** + * string txpool = 7; + */ + public java.lang.String getTxpool() { + java.lang.Object ref = txpool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + txpool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string txpool = 7; + */ + public com.google.protobuf.ByteString + getTxpoolBytes() { + java.lang.Object ref = txpool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + txpool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string txpool = 7; + */ + public Builder setTxpool( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + txpool_ = value; + onChanged(); + return this; + } + /** + * string txpool = 7; + */ + public Builder clearTxpool() { + + txpool_ = getDefaultInstance().getTxpool(); + onChanged(); + return this; + } + /** + * string txpool = 7; + */ + public Builder setTxpoolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + txpool_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_protocolVersion) + } - private t_FilterCt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - from_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - to_ = s; - break; - } - case 26: - { - contractAddr_ = input.readBytes(); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00000008; - } - addresses_.add(input.readBytes()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - topics_.add(s); - break; - } - case 48: - { - expireTime_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = topics_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_protocolVersion) + private static final org.aion.api.server.pb.Message.rsp_protocolVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_protocolVersion(); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; - } + public static org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_FilterCt.class, - org.aion.api.server.pb.Message.t_FilterCt.Builder.class); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_protocolVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_protocolVersion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private int bitField0_; - public static final int FROM_FIELD_NUMBER = 1; - private volatile java.lang.Object from_; - /** string from = 1; */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } - } - /** string from = 1; */ - public com.google.protobuf.ByteString getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int TO_FIELD_NUMBER = 2; - private volatile java.lang.Object to_; - /** string to = 2; */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } - } - /** string to = 2; */ - public com.google.protobuf.ByteString getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int CONTRACTADDR_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString contractAddr_; - /** bytes contractAddr = 3; */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } + } + + public interface rsp_minerAddressOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_minerAddress) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes minerAddr = 1; + */ + com.google.protobuf.ByteString getMinerAddr(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} + */ + public static final class rsp_minerAddress extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_minerAddress) + rsp_minerAddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_minerAddress.newBuilder() to construct. + private rsp_minerAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_minerAddress() { + minerAddr_ = com.google.protobuf.ByteString.EMPTY; + } - public static final int ADDRESSES_FIELD_NUMBER = 4; - private java.util.List addresses_; - /** repeated bytes addresses = 4; */ - public java.util.List getAddressesList() { - return addresses_; - } - /** repeated bytes addresses = 4; */ - public int getAddressesCount() { - return addresses_.size(); - } - /** repeated bytes addresses = 4; */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_minerAddress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + minerAddr_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + } - public static final int TOPICS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList topics_; - /** repeated string topics = 5; */ - public com.google.protobuf.ProtocolStringList getTopicsList() { - return topics_; - } - /** repeated string topics = 5; */ - public int getTopicsCount() { - return topics_.size(); - } - /** repeated string topics = 5; */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** repeated string topics = 5; */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { - return topics_.getByteString(index); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_minerAddress.class, org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); + } - public static final int EXPIRETIME_FIELD_NUMBER = 6; - private long expireTime_; - /** uint64 expireTime = 6; */ - public long getExpireTime() { - return expireTime_; - } + public static final int MINERADDR_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString minerAddr_; + /** + * bytes minerAddr = 1; + */ + public com.google.protobuf.ByteString getMinerAddr() { + return minerAddr_; + } - private byte memoizedIsInitialized = -1; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + memoizedIsInitialized = 1; + return true; + } - memoizedIsInitialized = 1; - return true; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!minerAddr_.isEmpty()) { + output.writeBytes(1, minerAddr_); + } + unknownFields.writeTo(output); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getFromBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, from_); - } - if (!getToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, to_); - } - if (!contractAddr_.isEmpty()) { - output.writeBytes(3, contractAddr_); - } - for (int i = 0; i < addresses_.size(); i++) { - output.writeBytes(4, addresses_.get(i)); - } - for (int i = 0; i < topics_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, topics_.getRaw(i)); - } - if (expireTime_ != 0L) { - output.writeUInt64(6, expireTime_); - } - unknownFields.writeTo(output); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!minerAddr_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, minerAddr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_minerAddress)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_minerAddress other = (org.aion.api.server.pb.Message.rsp_minerAddress) obj; + + boolean result = true; + result = result && getMinerAddr() + .equals(other.getMinerAddr()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - size = 0; - if (!getFromBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, from_); - } - if (!getToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, to_); - } - if (!contractAddr_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, contractAddr_); - } - { - int dataSize = 0; - for (int i = 0; i < addresses_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - addresses_.get(i)); - } - size += dataSize; - size += 1 * getAddressesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < topics_.size(); i++) { - dataSize += computeStringSizeNoTag(topics_.getRaw(i)); - } - size += dataSize; - size += 1 * getTopicsList().size(); - } - if (expireTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, expireTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MINERADDR_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_FilterCt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_FilterCt other = - (org.aion.api.server.pb.Message.t_FilterCt) obj; - - boolean result = true; - result = result && getFrom().equals(other.getFrom()); - result = result && getTo().equals(other.getTo()); - result = result && getContractAddr().equals(other.getContractAddr()); - result = result && getAddressesList().equals(other.getAddressesList()); - result = result && getTopicsList().equals(other.getTopicsList()); - result = result && (getExpireTime() == other.getExpireTime()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - if (getAddressesCount() > 0) { - hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getAddressesList().hashCode(); - } - if (getTopicsCount() > 0) { - hash = (37 * hash) + TOPICS_FIELD_NUMBER; - hash = (53 * hash) + getTopicsList().hashCode(); - } - hash = (37 * hash) + EXPIRETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpireTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_minerAddress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_minerAddress) + org.aion.api.server.pb.Message.rsp_minerAddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_minerAddress.class, org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_minerAddress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + minerAddr_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_minerAddress build() { + org.aion.api.server.pb.Message.rsp_minerAddress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_minerAddress buildPartial() { + org.aion.api.server.pb.Message.rsp_minerAddress result = new org.aion.api.server.pb.Message.rsp_minerAddress(this); + result.minerAddr_ = minerAddr_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_minerAddress) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_minerAddress)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_minerAddress other) { + if (other == org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance()) return this; + if (other.getMinerAddr() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddr(other.getMinerAddr()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_minerAddress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_minerAddress) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString minerAddr_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes minerAddr = 1; + */ + public com.google.protobuf.ByteString getMinerAddr() { + return minerAddr_; + } + /** + * bytes minerAddr = 1; + */ + public Builder setMinerAddr(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddr_ = value; + onChanged(); + return this; + } + /** + * bytes minerAddr = 1; + */ + public Builder clearMinerAddr() { + + minerAddr_ = getDefaultInstance().getMinerAddr(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_minerAddress) + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_minerAddress) + private static final org.aion.api.server.pb.Message.rsp_minerAddress DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_minerAddress(); + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_minerAddress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_minerAddress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + } + + public interface req_getBlockByNumberOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByNumber) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} + */ + public static final class req_getBlockByNumber extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByNumber) + req_getBlockByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockByNumber.newBuilder() to construct. + private req_getBlockByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockByNumber() { + blockNumber_ = 0L; + } - public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + } - public static org.aion.api.server.pb.Message.t_FilterCt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByNumber.class, org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - public static org.aion.api.server.pb.Message.t_FilterCt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder newBuilderForType() { - return newBuilder(); - } + memoizedIsInitialized = 1; + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + unknownFields.writeTo(output); + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_FilterCt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockByNumber other = (org.aion.api.server.pb.Message.req_getBlockByNumber) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_FilterCt} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_FilterCt) - org.aion.api.server.pb.Message.t_FilterCtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_FilterCt.class, - org.aion.api.server.pb.Message.t_FilterCt.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - // Construct using org.aion.api.server.pb.Message.t_FilterCt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByNumber) + org.aion.api.server.pb.Message.req_getBlockByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByNumber.class, org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockByNumber build() { + org.aion.api.server.pb.Message.req_getBlockByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockByNumber buildPartial() { + org.aion.api.server.pb.Message.req_getBlockByNumber result = new org.aion.api.server.pb.Message.req_getBlockByNumber(this); + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockByNumber) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByNumber)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByNumber other) { + if (other == org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockByNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByNumber) + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockByNumber DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByNumber(); + } - public Builder clear() { - super.clear(); - from_ = ""; + public static org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } - to_ = ""; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - contractAddr_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - expireTime_ = 0L; + public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - return this; - } + } + + public interface rsp_getBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + + /** + * uint64 timestamp = 2; + */ + long getTimestamp(); + + /** + * uint64 nrgConsumed = 3; + */ + long getNrgConsumed(); + + /** + * uint64 nrgLimit = 4; + */ + long getNrgLimit(); + + /** + * bytes parentHash = 5; + */ + com.google.protobuf.ByteString getParentHash(); + + /** + * bytes minerAddress = 6; + */ + com.google.protobuf.ByteString getMinerAddress(); + + /** + * bytes stateRoot = 7; + */ + com.google.protobuf.ByteString getStateRoot(); + + /** + * bytes txTrieRoot = 8; + */ + com.google.protobuf.ByteString getTxTrieRoot(); + + /** + * bytes receiptTrieRoot = 9; + */ + com.google.protobuf.ByteString getReceiptTrieRoot(); + + /** + * bytes logsBloom = 10; + */ + com.google.protobuf.ByteString getLogsBloom(); + + /** + * bytes difficulty = 11; + */ + com.google.protobuf.ByteString getDifficulty(); + + /** + * bytes totalDifficulty = 12; + */ + com.google.protobuf.ByteString getTotalDifficulty(); + + /** + * bytes extraData = 13; + */ + com.google.protobuf.ByteString getExtraData(); + + /** + * bytes nonce = 14; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * bytes solution = 15; + */ + com.google.protobuf.ByteString getSolution(); + + /** + * bytes hash = 16; + */ + com.google.protobuf.ByteString getHash(); + + /** + * uint32 size = 17; + */ + int getSize(); + + /** + * repeated bytes txHash = 18; + */ + java.util.List getTxHashList(); + /** + * repeated bytes txHash = 18; + */ + int getTxHashCount(); + /** + * repeated bytes txHash = 18; + */ + com.google.protobuf.ByteString getTxHash(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} + */ + public static final class rsp_getBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlock) + rsp_getBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlock.newBuilder() to construct. + private rsp_getBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlock() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + txHash_ = java.util.Collections.emptyList(); + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } + case 8: { - public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance(); + blockNumber_ = input.readUInt64(); + break; } + case 16: { - public org.aion.api.server.pb.Message.t_FilterCt build() { - org.aion.api.server.pb.Message.t_FilterCt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + timestamp_ = input.readUInt64(); + break; } + case 24: { - public org.aion.api.server.pb.Message.t_FilterCt buildPartial() { - org.aion.api.server.pb.Message.t_FilterCt result = - new org.aion.api.server.pb.Message.t_FilterCt(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.from_ = from_; - result.to_ = to_; - result.contractAddr_ = contractAddr_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.addresses_ = addresses_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = topics_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.topics_ = topics_; - result.expireTime_ = expireTime_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + nrgConsumed_ = input.readUInt64(); + break; } + case 32: { - public Builder clone() { - return (Builder) super.clone(); + nrgLimit_ = input.readUInt64(); + break; } + case 42: { - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + parentHash_ = input.readBytes(); + break; } + case 50: { - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + minerAddress_ = input.readBytes(); + break; } + case 58: { - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + stateRoot_ = input.readBytes(); + break; } + case 66: { - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + txTrieRoot_ = input.readBytes(); + break; } + case 74: { - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + receiptTrieRoot_ = input.readBytes(); + break; } + case 82: { - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_FilterCt) { - return mergeFrom((org.aion.api.server.pb.Message.t_FilterCt) other); - } else { - super.mergeFrom(other); - return this; - } + logsBloom_ = input.readBytes(); + break; } + case 90: { - public Builder mergeFrom(org.aion.api.server.pb.Message.t_FilterCt other) { - if (other == org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance()) - return this; - if (!other.getFrom().isEmpty()) { - from_ = other.from_; - onChanged(); - } - if (!other.getTo().isEmpty()) { - to_ = other.to_; - onChanged(); - } - if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { - setContractAddr(other.getContractAddr()); - } - if (!other.addresses_.isEmpty()) { - if (addresses_.isEmpty()) { - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAddressesIsMutable(); - addresses_.addAll(other.addresses_); - } - onChanged(); - } - if (!other.topics_.isEmpty()) { - if (topics_.isEmpty()) { - topics_ = other.topics_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTopicsIsMutable(); - topics_.addAll(other.topics_); - } - onChanged(); - } - if (other.getExpireTime() != 0L) { - setExpireTime(other.getExpireTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; + difficulty_ = input.readBytes(); + break; } + case 98: { - public final boolean isInitialized() { - return true; + totalDifficulty_ = input.readBytes(); + break; } + case 106: { - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_FilterCt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_FilterCt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; + extraData_ = input.readBytes(); + break; } + case 114: { - private int bitField0_; - - private java.lang.Object from_ = ""; - /** string from = 1; */ - public java.lang.String getFrom() { - java.lang.Object ref = from_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - from_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string from = 1; */ - public com.google.protobuf.ByteString getFromBytes() { - java.lang.Object ref = from_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - from_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string from = 1; */ - public Builder setFrom(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; + nonce_ = input.readBytes(); + break; } - /** string from = 1; */ - public Builder clearFrom() { + case 122: { - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - /** string from = 1; */ - public Builder setFromBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - from_ = value; - onChanged(); - return this; + solution_ = input.readBytes(); + break; } + case 130: { - private java.lang.Object to_ = ""; - /** string to = 2; */ - public java.lang.String getTo() { - java.lang.Object ref = to_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - to_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string to = 2; */ - public com.google.protobuf.ByteString getToBytes() { - java.lang.Object ref = to_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - to_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + hash_ = input.readBytes(); + break; } - /** string to = 2; */ - public Builder setTo(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** string to = 2; */ - public Builder clearTo() { + case 136: { - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; + size_ = input.readUInt32(); + break; } - /** string to = 2; */ - public Builder setToBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - to_ = value; - onChanged(); - return this; + case 146: { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + txHash_.add(input.readBytes()); + break; } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + } - private com.google.protobuf.ByteString contractAddr_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes contractAddr = 3; */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } - /** bytes contractAddr = 3; */ - public Builder setContractAddr(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** bytes contractAddr = 3; */ - public Builder clearContractAddr() { + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlock.class, org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); + } - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } + private int bitField0_; + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - private java.util.List addresses_ = - java.util.Collections.emptyList(); + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } - private void ensureAddressesIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - addresses_ = - new java.util.ArrayList(addresses_); - bitField0_ |= 0x00000008; - } - } - /** repeated bytes addresses = 4; */ - public java.util.List getAddressesList() { - return java.util.Collections.unmodifiableList(addresses_); - } - /** repeated bytes addresses = 4; */ - public int getAddressesCount() { - return addresses_.size(); - } - /** repeated bytes addresses = 4; */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } - /** repeated bytes addresses = 4; */ - public Builder setAddresses(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes addresses = 4; */ - public Builder addAddresses(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - /** repeated bytes addresses = 4; */ - public Builder addAllAddresses( - java.lang.Iterable values) { - ensureAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); - onChanged(); - return this; - } - /** repeated bytes addresses = 4; */ - public Builder clearAddresses() { - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } - private com.google.protobuf.LazyStringList topics_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } - private void ensureTopicsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - topics_ = new com.google.protobuf.LazyStringArrayList(topics_); - bitField0_ |= 0x00000010; - } - } - /** repeated string topics = 5; */ - public com.google.protobuf.ProtocolStringList getTopicsList() { - return topics_.getUnmodifiableView(); - } - /** repeated string topics = 5; */ - public int getTopicsCount() { - return topics_.size(); - } - /** repeated string topics = 5; */ - public java.lang.String getTopics(int index) { - return topics_.get(index); - } - /** repeated string topics = 5; */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { - return topics_.getByteString(index); - } - /** repeated string topics = 5; */ - public Builder setTopics(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.set(index, value); - onChanged(); - return this; - } - /** repeated string topics = 5; */ - public Builder addTopics(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } - /** repeated string topics = 5; */ - public Builder addAllTopics(java.lang.Iterable values) { - ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); - onChanged(); - return this; - } - /** repeated string topics = 5; */ - public Builder clearTopics() { - topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** repeated string topics = 5; */ - public Builder addTopicsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTopicsIsMutable(); - topics_.add(value); - onChanged(); - return this; - } + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - private long expireTime_; - /** uint64 expireTime = 6; */ - public long getExpireTime() { - return expireTime_; - } - /** uint64 expireTime = 6; */ - public Builder setExpireTime(long value) { + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } - expireTime_ = value; - onChanged(); - return this; - } - /** uint64 expireTime = 6; */ - public Builder clearExpireTime() { + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } - expireTime_ = 0L; - onChanged(); - return this; - } + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_FilterCt) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_FilterCt) - private static final org.aion.api.server.pb.Message.t_FilterCt DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_FilterCt(); - } - - public static org.aion.api.server.pb.Message.t_FilterCt getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_FilterCt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_FilterCt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.t_FilterCt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; } - public interface t_EventCtOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_EventCt) - com.google.protobuf.MessageOrBuilder { - - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); - - /** bytes data = 2; */ - com.google.protobuf.ByteString getData(); - - /** bytes blockHash = 3; */ - com.google.protobuf.ByteString getBlockHash(); - - /** uint64 blockNumber = 4; */ - long getBlockNumber(); - - /** uint32 logIndex = 5; */ - int getLogIndex(); - - /** string eventName = 6; */ - java.lang.String getEventName(); - /** string eventName = 6; */ - com.google.protobuf.ByteString getEventNameBytes(); - - /** bool removed = 7; */ - boolean getRemoved(); - - /** uint32 txIndex = 8; */ - int getTxIndex(); + public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString totalDifficulty_; + /** + * bytes totalDifficulty = 12; + */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } - /** bytes txHash = 9; */ - com.google.protobuf.ByteString getTxHash(); + public static final int EXTRADATA_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString extraData_; + /** + * bytes extraData = 13; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; } - /** Protobuf type {@code org.aion.api.server.pb.t_EventCt} */ - public static final class t_EventCt extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_EventCt) - t_EventCtOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_EventCt.newBuilder() to construct. - private t_EventCt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_EventCt() { - address_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - blockHash_ = com.google.protobuf.ByteString.EMPTY; - blockNumber_ = 0L; - logIndex_ = 0; - eventName_ = ""; - removed_ = false; - txIndex_ = 0; - txHash_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int NONCE_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 14; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public static final int SOLUTION_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString solution_; + /** + * bytes solution = 15; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } - private t_EventCt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 18: - { - data_ = input.readBytes(); - break; - } - case 26: - { - blockHash_ = input.readBytes(); - break; - } - case 32: - { - blockNumber_ = input.readUInt64(); - break; - } - case 40: - { - logIndex_ = input.readUInt32(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - eventName_ = s; - break; - } - case 56: - { - removed_ = input.readBool(); - break; - } - case 64: - { - txIndex_ = input.readUInt32(); - break; - } - case 74: - { - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final int HASH_FIELD_NUMBER = 16; + private com.google.protobuf.ByteString hash_; + /** + * bytes hash = 16; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_EventCt_descriptor; - } + public static final int SIZE_FIELD_NUMBER = 17; + private int size_; + /** + * uint32 size = 17; + */ + public int getSize() { + return size_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_EventCt.class, - org.aion.api.server.pb.Message.t_EventCt.Builder.class); - } + public static final int TXHASH_FIELD_NUMBER = 18; + private java.util.List txHash_; + /** + * repeated bytes txHash = 18; + */ + public java.util.List + getTxHashList() { + return txHash_; + } + /** + * repeated bytes txHash = 18; + */ + public int getTxHashCount() { + return txHash_.size(); + } + /** + * repeated bytes txHash = 18; + */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString data_; - /** bytes data = 2; */ - public com.google.protobuf.ByteString getData() { - return data_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int BLOCKHASH_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString blockHash_; - /** bytes blockHash = 3; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + output.writeBytes(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(13, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(14, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(15, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(16, hash_); + } + if (size_ != 0) { + output.writeUInt32(17, size_); + } + for (int i = 0; i < txHash_.size(); i++) { + output.writeBytes(18, txHash_.get(i)); + } + unknownFields.writeTo(output); + } - public static final int BLOCKNUMBER_FIELD_NUMBER = 4; - private long blockNumber_; - /** uint64 blockNumber = 4; */ - public long getBlockNumber() { - return blockNumber_; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, difficulty_); + } + if (!totalDifficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, totalDifficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(13, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(14, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(15, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(16, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(17, size_); + } + { + int dataSize = 0; + for (int i = 0; i < txHash_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(txHash_.get(i)); + } + size += dataSize; + size += 2 * getTxHashList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int LOGINDEX_FIELD_NUMBER = 5; - private int logIndex_; - /** uint32 logIndex = 5; */ - public int getLogIndex() { - return logIndex_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlock)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlock other = (org.aion.api.server.pb.Message.rsp_getBlock) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && (getTimestamp() + == other.getTimestamp()); + result = result && (getNrgConsumed() + == other.getNrgConsumed()); + result = result && (getNrgLimit() + == other.getNrgLimit()); + result = result && getParentHash() + .equals(other.getParentHash()); + result = result && getMinerAddress() + .equals(other.getMinerAddress()); + result = result && getStateRoot() + .equals(other.getStateRoot()); + result = result && getTxTrieRoot() + .equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot() + .equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom() + .equals(other.getLogsBloom()); + result = result && getDifficulty() + .equals(other.getDifficulty()); + result = result && getTotalDifficulty() + .equals(other.getTotalDifficulty()); + result = result && getExtraData() + .equals(other.getExtraData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && getSolution() + .equals(other.getSolution()); + result = result && getHash() + .equals(other.getHash()); + result = result && (getSize() + == other.getSize()); + result = result && getTxHashList() + .equals(other.getTxHashList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int EVENTNAME_FIELD_NUMBER = 6; - private volatile java.lang.Object eventName_; - /** string eventName = 6; */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } - } - /** string eventName = 6; */ - public com.google.protobuf.ByteString getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getTotalDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + if (getTxHashCount() > 0) { + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHashList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int REMOVED_FIELD_NUMBER = 7; - private boolean removed_; - /** bool removed = 7; */ - public boolean getRemoved() { - return removed_; - } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int TXINDEX_FIELD_NUMBER = 8; - private int txIndex_; - /** uint32 txIndex = 8; */ - public int getTxIndex() { - return txIndex_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int TXHASH_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 9; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlock) + org.aion.api.server.pb.Message.rsp_getBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlock.class, org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + timestamp_ = 0L; + + nrgConsumed_ = 0L; + + nrgLimit_ = 0L; + + parentHash_ = com.google.protobuf.ByteString.EMPTY; + + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + + difficulty_ = com.google.protobuf.ByteString.EMPTY; + + totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + + extraData_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + size_ = 0; + + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlock build() { + org.aion.api.server.pb.Message.rsp_getBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlock buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlock result = new org.aion.api.server.pb.Message.rsp_getBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.totalDifficulty_ = totalDifficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + if (((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = java.util.Collections.unmodifiableList(txHash_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.txHash_ = txHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlock) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlock other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setTotalDifficulty(other.getTotalDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (!other.txHash_.isEmpty()) { + if (txHash_.isEmpty()) { + txHash_ = other.txHash_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureTxHashIsMutable(); + txHash_.addAll(other.txHash_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * uint64 timestamp = 2; + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * uint64 timestamp = 2; + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_ ; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgLimit_ ; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** + * bytes parentHash = 5; + */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** + * bytes parentHash = 5; + */ + public Builder clearParentHash() { + + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** + * bytes minerAddress = 6; + */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** + * bytes minerAddress = 6; + */ + public Builder clearMinerAddress() { + + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** + * bytes stateRoot = 7; + */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** + * bytes stateRoot = 7; + */ + public Builder clearStateRoot() { + + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder clearTxTrieRoot() { + + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder clearReceiptTrieRoot() { + + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** + * bytes logsBloom = 10; + */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** + * bytes logsBloom = 10; + */ + public Builder clearLogsBloom() { + + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** + * bytes difficulty = 11; + */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** + * bytes difficulty = 11; + */ + public Builder clearDifficulty() { + + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes totalDifficulty = 12; + */ + public com.google.protobuf.ByteString getTotalDifficulty() { + return totalDifficulty_; + } + /** + * bytes totalDifficulty = 12; + */ + public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDifficulty_ = value; + onChanged(); + return this; + } + /** + * bytes totalDifficulty = 12; + */ + public Builder clearTotalDifficulty() { + + totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes extraData = 13; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** + * bytes extraData = 13; + */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** + * bytes extraData = 13; + */ + public Builder clearExtraData() { + + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 14; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 14; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 14; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes solution = 15; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** + * bytes solution = 15; + */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** + * bytes solution = 15; + */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes hash = 16; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** + * bytes hash = 16; + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** + * bytes hash = 16; + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private int size_ ; + /** + * uint32 size = 17; + */ + public int getSize() { + return size_; + } + /** + * uint32 size = 17; + */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** + * uint32 size = 17; + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.util.List txHash_ = java.util.Collections.emptyList(); + private void ensureTxHashIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + txHash_ = new java.util.ArrayList(txHash_); + bitField0_ |= 0x00020000; + } + } + /** + * repeated bytes txHash = 18; + */ + public java.util.List + getTxHashList() { + return java.util.Collections.unmodifiableList(txHash_); + } + /** + * repeated bytes txHash = 18; + */ + public int getTxHashCount() { + return txHash_.size(); + } + /** + * repeated bytes txHash = 18; + */ + public com.google.protobuf.ByteString getTxHash(int index) { + return txHash_.get(index); + } + /** + * repeated bytes txHash = 18; + */ + public Builder setTxHash( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes txHash = 18; + */ + public Builder addTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxHashIsMutable(); + txHash_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes txHash = 18; + */ + public Builder addAllTxHash( + java.lang.Iterable values) { + ensureTxHashIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, txHash_); + onChanged(); + return this; + } + /** + * repeated bytes txHash = 18; + */ + public Builder clearTxHash() { + txHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlock) + } - private byte memoizedIsInitialized = -1; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlock) + private static final org.aion.api.server.pb.Message.rsp_getBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlock(); + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!data_.isEmpty()) { - output.writeBytes(2, data_); - } - if (!blockHash_.isEmpty()) { - output.writeBytes(3, blockHash_); - } - if (blockNumber_ != 0L) { - output.writeUInt64(4, blockNumber_); - } - if (logIndex_ != 0) { - output.writeUInt32(5, logIndex_); - } - if (!getEventNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, eventName_); - } - if (removed_ != false) { - output.writeBool(7, removed_); - } - if (txIndex_ != 0) { - output.writeUInt32(8, txIndex_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(9, txHash_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); - } - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, blockHash_); - } - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, blockNumber_); - } - if (logIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, logIndex_); - } - if (!getEventNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, eventName_); - } - if (removed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, removed_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(8, txIndex_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + } + + public interface req_getBlockHeaderByNumberOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByNumber) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} + */ + public static final class req_getBlockHeaderByNumber extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) + req_getBlockHeaderByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockHeaderByNumber.newBuilder() to construct. + private req_getBlockHeaderByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockHeaderByNumber() { + blockNumber_ = 0L; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_EventCt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_EventCt other = - (org.aion.api.server.pb.Message.t_EventCt) obj; - - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && getData().equals(other.getData()); - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && (getLogIndex() == other.getLogIndex()); - result = result && getEventName().equals(other.getEventName()); - result = result && (getRemoved() == other.getRemoved()); - result = result && (getTxIndex() == other.getTxIndex()); - result = result && getTxHash().equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + LOGINDEX_FIELD_NUMBER; - hash = (53 * hash) + getLogIndex(); - hash = (37 * hash) + EVENTNAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - hash = (37 * hash) + REMOVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRemoved()); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockHeaderByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.Builder.class); + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other = (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.t_EventCt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockHeaderByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) + org.aion.api.server.pb.Message.req_getBlockHeaderByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber build() { + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber buildPartial() { + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(this); + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockHeaderByNumber)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other) { + if (other == org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) + } - public static org.aion.api.server.pb.Message.t_EventCt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockHeaderByNumber DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(); + } - public Builder newBuilderForType() { - return newBuilder(); - } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockHeaderByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockHeaderByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_EventCt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_EventCt} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_EventCt) - org.aion.api.server.pb.Message.t_EventCtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_EventCt_descriptor; - } + } + + public interface rsp_getBlockHeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + + /** + * uint64 timestamp = 2; + */ + long getTimestamp(); + + /** + * uint64 nrgConsumed = 3; + */ + long getNrgConsumed(); + + /** + * uint64 nrgLimit = 4; + */ + long getNrgLimit(); + + /** + * bytes parentHash = 5; + */ + com.google.protobuf.ByteString getParentHash(); + + /** + * bytes minerAddress = 6; + */ + com.google.protobuf.ByteString getMinerAddress(); + + /** + * bytes stateRoot = 7; + */ + com.google.protobuf.ByteString getStateRoot(); + + /** + * bytes txTrieRoot = 8; + */ + com.google.protobuf.ByteString getTxTrieRoot(); + + /** + * bytes receiptTrieRoot = 9; + */ + com.google.protobuf.ByteString getReceiptTrieRoot(); + + /** + * bytes logsBloom = 10; + */ + com.google.protobuf.ByteString getLogsBloom(); + + /** + * bytes difficulty = 11; + */ + com.google.protobuf.ByteString getDifficulty(); + + /** + * bytes extraData = 12; + */ + com.google.protobuf.ByteString getExtraData(); + + /** + * bytes nonce = 13; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * bytes solution = 14; + */ + com.google.protobuf.ByteString getSolution(); + + /** + * bytes hash = 15; + */ + com.google.protobuf.ByteString getHash(); + + /** + * uint32 size = 16; + */ + int getSize(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} + */ + public static final class rsp_getBlockHeader extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockHeader) + rsp_getBlockHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockHeader.newBuilder() to construct. + private rsp_getBlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlockHeader() { + blockNumber_ = 0L; + timestamp_ = 0L; + nrgConsumed_ = 0L; + nrgLimit_ = 0L; + parentHash_ = com.google.protobuf.ByteString.EMPTY; + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + difficulty_ = com.google.protobuf.ByteString.EMPTY; + extraData_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + hash_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_EventCt.class, - org.aion.api.server.pb.Message.t_EventCt.Builder.class); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlockHeader( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } + case 8: { - // Construct using org.aion.api.server.pb.Message.t_EventCt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + blockNumber_ = input.readUInt64(); + break; } + case 16: { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + timestamp_ = input.readUInt64(); + break; } + case 24: { - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + nrgConsumed_ = input.readUInt64(); + break; } + case 32: { - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - blockNumber_ = 0L; - - logIndex_ = 0; - - eventName_ = ""; - - removed_ = false; - - txIndex_ = 0; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; + nrgLimit_ = input.readUInt64(); + break; } + case 42: { - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_EventCt_descriptor; + parentHash_ = input.readBytes(); + break; } + case 50: { - public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance(); + minerAddress_ = input.readBytes(); + break; } + case 58: { - public org.aion.api.server.pb.Message.t_EventCt build() { - org.aion.api.server.pb.Message.t_EventCt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + stateRoot_ = input.readBytes(); + break; } + case 66: { - public org.aion.api.server.pb.Message.t_EventCt buildPartial() { - org.aion.api.server.pb.Message.t_EventCt result = - new org.aion.api.server.pb.Message.t_EventCt(this); - result.address_ = address_; - result.data_ = data_; - result.blockHash_ = blockHash_; - result.blockNumber_ = blockNumber_; - result.logIndex_ = logIndex_; - result.eventName_ = eventName_; - result.removed_ = removed_; - result.txIndex_ = txIndex_; - result.txHash_ = txHash_; - onBuilt(); - return result; + txTrieRoot_ = input.readBytes(); + break; } + case 74: { - public Builder clone() { - return (Builder) super.clone(); + receiptTrieRoot_ = input.readBytes(); + break; } + case 82: { - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + logsBloom_ = input.readBytes(); + break; } + case 90: { - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + difficulty_ = input.readBytes(); + break; } + case 98: { - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + extraData_ = input.readBytes(); + break; } + case 106: { - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + nonce_ = input.readBytes(); + break; } + case 114: { - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + solution_ = input.readBytes(); + break; } + case 122: { - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_EventCt) { - return mergeFrom((org.aion.api.server.pb.Message.t_EventCt) other); - } else { - super.mergeFrom(other); - return this; - } + hash_ = input.readBytes(); + break; } + case 128: { - public Builder mergeFrom(org.aion.api.server.pb.Message.t_EventCt other) { - if (other == org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()) - return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getLogIndex() != 0) { - setLogIndex(other.getLogIndex()); - } - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - onChanged(); - } - if (other.getRemoved() != false) { - setRemoved(other.getRemoved()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; + size_ = input.readUInt32(); + break; } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + } - public final boolean isInitialized() { - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockHeader.class, org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_EventCt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_EventCt) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 2; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 2; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 2; */ - public Builder clearData() { + public static final int NRGLIMIT_FIELD_NUMBER = 4; + private long nrgLimit_; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } + public static final int PARENTHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString parentHash_; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } - private com.google.protobuf.ByteString blockHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockHash = 3; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** bytes blockHash = 3; */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** bytes blockHash = 3; */ - public Builder clearBlockHash() { + public static final int MINERADDRESS_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString minerAddress_; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } + public static final int STATEROOT_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString stateRoot_; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } - private long blockNumber_; - /** uint64 blockNumber = 4; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 4; */ - public Builder setBlockNumber(long value) { + public static final int TXTRIEROOT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txTrieRoot_; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 4; */ - public Builder clearBlockNumber() { + public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString receiptTrieRoot_; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } - blockNumber_ = 0L; - onChanged(); - return this; - } + public static final int LOGSBLOOM_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString logsBloom_; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } - private int logIndex_; - /** uint32 logIndex = 5; */ - public int getLogIndex() { - return logIndex_; - } - /** uint32 logIndex = 5; */ - public Builder setLogIndex(int value) { + public static final int DIFFICULTY_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString difficulty_; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } - logIndex_ = value; - onChanged(); - return this; - } - /** uint32 logIndex = 5; */ - public Builder clearLogIndex() { + public static final int EXTRADATA_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString extraData_; + /** + * bytes extraData = 12; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } - logIndex_ = 0; - onChanged(); - return this; - } + public static final int NONCE_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 13; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - private java.lang.Object eventName_ = ""; - /** string eventName = 6; */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string eventName = 6; */ - public com.google.protobuf.ByteString getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string eventName = 6; */ - public Builder setEventName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - eventName_ = value; - onChanged(); - return this; - } - /** string eventName = 6; */ - public Builder clearEventName() { + public static final int SOLUTION_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString solution_; + /** + * bytes solution = 14; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } - eventName_ = getDefaultInstance().getEventName(); - onChanged(); - return this; - } - /** string eventName = 6; */ - public Builder setEventNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - eventName_ = value; - onChanged(); - return this; - } + public static final int HASH_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString hash_; + /** + * bytes hash = 15; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } - private boolean removed_; - /** bool removed = 7; */ - public boolean getRemoved() { - return removed_; - } - /** bool removed = 7; */ - public Builder setRemoved(boolean value) { + public static final int SIZE_FIELD_NUMBER = 16; + private int size_; + /** + * uint32 size = 16; + */ + public int getSize() { + return size_; + } - removed_ = value; - onChanged(); - return this; - } - /** bool removed = 7; */ - public Builder clearRemoved() { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - removed_ = false; - onChanged(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - private int txIndex_; - /** uint32 txIndex = 8; */ - public int getTxIndex() { - return txIndex_; - } - /** uint32 txIndex = 8; */ - public Builder setTxIndex(int value) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (timestamp_ != 0L) { + output.writeUInt64(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + output.writeUInt64(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + output.writeBytes(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + output.writeBytes(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + output.writeBytes(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + output.writeBytes(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + output.writeBytes(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + output.writeBytes(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + output.writeBytes(11, difficulty_); + } + if (!extraData_.isEmpty()) { + output.writeBytes(12, extraData_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(13, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(14, solution_); + } + if (!hash_.isEmpty()) { + output.writeBytes(15, hash_); + } + if (size_ != 0) { + output.writeUInt32(16, size_); + } + unknownFields.writeTo(output); + } - txIndex_ = value; - onChanged(); - return this; - } - /** uint32 txIndex = 8; */ - public Builder clearTxIndex() { + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, timestamp_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, nrgConsumed_); + } + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, nrgLimit_); + } + if (!parentHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, parentHash_); + } + if (!minerAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, minerAddress_); + } + if (!stateRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, stateRoot_); + } + if (!txTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, txTrieRoot_); + } + if (!receiptTrieRoot_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, receiptTrieRoot_); + } + if (!logsBloom_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, logsBloom_); + } + if (!difficulty_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, difficulty_); + } + if (!extraData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, extraData_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(13, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(14, solution_); + } + if (!hash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(15, hash_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(16, size_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - txIndex_ = 0; - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockHeader other = (org.aion.api.server.pb.Message.rsp_getBlockHeader) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && (getTimestamp() + == other.getTimestamp()); + result = result && (getNrgConsumed() + == other.getNrgConsumed()); + result = result && (getNrgLimit() + == other.getNrgLimit()); + result = result && getParentHash() + .equals(other.getParentHash()); + result = result && getMinerAddress() + .equals(other.getMinerAddress()); + result = result && getStateRoot() + .equals(other.getStateRoot()); + result = result && getTxTrieRoot() + .equals(other.getTxTrieRoot()); + result = result && getReceiptTrieRoot() + .equals(other.getReceiptTrieRoot()); + result = result && getLogsBloom() + .equals(other.getLogsBloom()); + result = result && getDifficulty() + .equals(other.getDifficulty()); + result = result && getExtraData() + .equals(other.getExtraData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && getSolution() + .equals(other.getSolution()); + result = result && getHash() + .equals(other.getHash()); + result = result && (getSize() + == other.getSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 9; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 9; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 9; */ - public Builder clearTxHash() { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsumed()); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgLimit()); + hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; + hash = (53 * hash) + getParentHash().hashCode(); + hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMinerAddress().hashCode(); + hash = (37 * hash) + STATEROOT_FIELD_NUMBER; + hash = (53 * hash) + getStateRoot().hashCode(); + hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getTxTrieRoot().hashCode(); + hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; + hash = (53 * hash) + getReceiptTrieRoot().hashCode(); + hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; + hash = (53 * hash) + getLogsBloom().hashCode(); + hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; + hash = (53 * hash) + getDifficulty().hashCode(); + hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; + hash = (53 * hash) + getExtraData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockHeader) + org.aion.api.server.pb.Message.rsp_getBlockHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockHeader.class, org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlockHeader.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + timestamp_ = 0L; + + nrgConsumed_ = 0L; + + nrgLimit_ = 0L; + + parentHash_ = com.google.protobuf.ByteString.EMPTY; + + minerAddress_ = com.google.protobuf.ByteString.EMPTY; + + stateRoot_ = com.google.protobuf.ByteString.EMPTY; + + txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + + logsBloom_ = com.google.protobuf.ByteString.EMPTY; + + difficulty_ = com.google.protobuf.ByteString.EMPTY; + + extraData_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + hash_ = com.google.protobuf.ByteString.EMPTY; + + size_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockHeader build() { + org.aion.api.server.pb.Message.rsp_getBlockHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockHeader buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockHeader result = new org.aion.api.server.pb.Message.rsp_getBlockHeader(this); + result.blockNumber_ = blockNumber_; + result.timestamp_ = timestamp_; + result.nrgConsumed_ = nrgConsumed_; + result.nrgLimit_ = nrgLimit_; + result.parentHash_ = parentHash_; + result.minerAddress_ = minerAddress_; + result.stateRoot_ = stateRoot_; + result.txTrieRoot_ = txTrieRoot_; + result.receiptTrieRoot_ = receiptTrieRoot_; + result.logsBloom_ = logsBloom_; + result.difficulty_ = difficulty_; + result.extraData_ = extraData_; + result.nonce_ = nonce_; + result.solution_ = solution_; + result.hash_ = hash_; + result.size_ = size_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockHeader)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockHeader other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { + setParentHash(other.getParentHash()); + } + if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { + setMinerAddress(other.getMinerAddress()); + } + if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { + setStateRoot(other.getStateRoot()); + } + if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setTxTrieRoot(other.getTxTrieRoot()); + } + if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { + setReceiptTrieRoot(other.getReceiptTrieRoot()); + } + if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { + setLogsBloom(other.getLogsBloom()); + } + if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { + setDifficulty(other.getDifficulty()); + } + if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { + setExtraData(other.getExtraData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { + setHash(other.getHash()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockHeader) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + * uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * uint64 timestamp = 2; + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * uint64 timestamp = 2; + */ + public Builder clearTimestamp() { + + timestamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_ ; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long nrgLimit_ ; + /** + * uint64 nrgLimit = 4; + */ + public long getNrgLimit() { + return nrgLimit_; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgLimit = 4; + */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes parentHash = 5; + */ + public com.google.protobuf.ByteString getParentHash() { + return parentHash_; + } + /** + * bytes parentHash = 5; + */ + public Builder setParentHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + parentHash_ = value; + onChanged(); + return this; + } + /** + * bytes parentHash = 5; + */ + public Builder clearParentHash() { + + parentHash_ = getDefaultInstance().getParentHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes minerAddress = 6; + */ + public com.google.protobuf.ByteString getMinerAddress() { + return minerAddress_; + } + /** + * bytes minerAddress = 6; + */ + public Builder setMinerAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + minerAddress_ = value; + onChanged(); + return this; + } + /** + * bytes minerAddress = 6; + */ + public Builder clearMinerAddress() { + + minerAddress_ = getDefaultInstance().getMinerAddress(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes stateRoot = 7; + */ + public com.google.protobuf.ByteString getStateRoot() { + return stateRoot_; + } + /** + * bytes stateRoot = 7; + */ + public Builder setStateRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + stateRoot_ = value; + onChanged(); + return this; + } + /** + * bytes stateRoot = 7; + */ + public Builder clearStateRoot() { + + stateRoot_ = getDefaultInstance().getStateRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txTrieRoot = 8; + */ + public com.google.protobuf.ByteString getTxTrieRoot() { + return txTrieRoot_; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes txTrieRoot = 8; + */ + public Builder clearTxTrieRoot() { + + txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes receiptTrieRoot = 9; + */ + public com.google.protobuf.ByteString getReceiptTrieRoot() { + return receiptTrieRoot_; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + receiptTrieRoot_ = value; + onChanged(); + return this; + } + /** + * bytes receiptTrieRoot = 9; + */ + public Builder clearReceiptTrieRoot() { + + receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes logsBloom = 10; + */ + public com.google.protobuf.ByteString getLogsBloom() { + return logsBloom_; + } + /** + * bytes logsBloom = 10; + */ + public Builder setLogsBloom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBloom_ = value; + onChanged(); + return this; + } + /** + * bytes logsBloom = 10; + */ + public Builder clearLogsBloom() { + + logsBloom_ = getDefaultInstance().getLogsBloom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes difficulty = 11; + */ + public com.google.protobuf.ByteString getDifficulty() { + return difficulty_; + } + /** + * bytes difficulty = 11; + */ + public Builder setDifficulty(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + difficulty_ = value; + onChanged(); + return this; + } + /** + * bytes difficulty = 11; + */ + public Builder clearDifficulty() { + + difficulty_ = getDefaultInstance().getDifficulty(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes extraData = 12; + */ + public com.google.protobuf.ByteString getExtraData() { + return extraData_; + } + /** + * bytes extraData = 12; + */ + public Builder setExtraData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + extraData_ = value; + onChanged(); + return this; + } + /** + * bytes extraData = 12; + */ + public Builder clearExtraData() { + + extraData_ = getDefaultInstance().getExtraData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 13; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 13; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 13; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes solution = 14; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** + * bytes solution = 14; + */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** + * bytes solution = 14; + */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes hash = 15; + */ + public com.google.protobuf.ByteString getHash() { + return hash_; + } + /** + * bytes hash = 15; + */ + public Builder setHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** + * bytes hash = 15; + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + + private int size_ ; + /** + * uint32 size = 16; + */ + public int getSize() { + return size_; + } + /** + * uint32 size = 16; + */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** + * uint32 size = 16; + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockHeader) + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_EventCt) - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockHeader) + private static final org.aion.api.server.pb.Message.rsp_getBlockHeader DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockHeader(); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_EventCt) - private static final org.aion.api.server.pb.Message.t_EventCt DEFAULT_INSTANCE; + public static org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_EventCt(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlockHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockHeader(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_EventCt getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_EventCt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_EventCt(input, extensionRegistry); - } - }; + public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + } + + public interface req_sendTransactionOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_sendTransaction) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes from = 1; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes to = 2; + */ + com.google.protobuf.ByteString getTo(); + + /** + * bytes value = 3; + */ + com.google.protobuf.ByteString getValue(); + + /** + * bytes data = 4; + */ + com.google.protobuf.ByteString getData(); + + /** + * bytes nonce = 5; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * uint64 nrg = 6; + */ + long getNrg(); + + /** + * uint64 nrgPrice = 7; + */ + long getNrgPrice(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} + */ + public static final class req_sendTransaction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_sendTransaction) + req_sendTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_sendTransaction.newBuilder() to construct. + private req_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_sendTransaction() { + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + nrg_ = 0L; + nrgPrice_ = 0L; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_sendTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + from_ = input.readBytes(); + break; + } + case 18: { + + to_ = input.readBytes(); + break; + } + case 26: { + + value_ = input.readBytes(); + break; + } + case 34: { + + data_ = input.readBytes(); + break; + } + case 42: { + + nonce_ = input.readBytes(); + break; + } + case 48: { + + nrg_ = input.readUInt64(); + break; + } + case 56: { + + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + } - public org.aion.api.server.pb.Message.t_EventCt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_sendTransaction.class, org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); } - public interface t_BlockDetailOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockDetail) - com.google.protobuf.MessageOrBuilder { + public static final int FROM_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 1; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - /** uint64 blockNumber = 1; */ - long getBlockNumber(); + public static final int TO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString to_; + /** + * bytes to = 2; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - /** uint64 timestamp = 2; */ - long getTimestamp(); + public static final int VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 3; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - /** uint64 nrgConsumed = 3; */ - long getNrgConsumed(); + public static final int DATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - /** uint64 nrgLimit = 4; */ - long getNrgLimit(); + public static final int NONCE_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 5; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - /** bytes parentHash = 5; */ - com.google.protobuf.ByteString getParentHash(); + public static final int NRG_FIELD_NUMBER = 6; + private long nrg_; + /** + * uint64 nrg = 6; + */ + public long getNrg() { + return nrg_; + } - /** bytes minerAddress = 6; */ - com.google.protobuf.ByteString getMinerAddress(); + public static final int NRGPRICE_FIELD_NUMBER = 7; + private long nrgPrice_; + /** + * uint64 nrgPrice = 7; + */ + public long getNrgPrice() { + return nrgPrice_; + } - /** bytes stateRoot = 7; */ - com.google.protobuf.ByteString getStateRoot(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** bytes txTrieRoot = 8; */ - com.google.protobuf.ByteString getTxTrieRoot(); + memoizedIsInitialized = 1; + return true; + } - /** bytes receiptTrieRoot = 9; */ - com.google.protobuf.ByteString getReceiptTrieRoot(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!from_.isEmpty()) { + output.writeBytes(1, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(2, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(3, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(4, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(5, nonce_); + } + if (nrg_ != 0L) { + output.writeUInt64(6, nrg_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(7, nrgPrice_); + } + unknownFields.writeTo(output); + } - /** bytes logsBloom = 10; */ - com.google.protobuf.ByteString getLogsBloom(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, nonce_); + } + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, nrg_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** bytes difficulty = 11; */ - com.google.protobuf.ByteString getDifficulty(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_sendTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_sendTransaction other = (org.aion.api.server.pb.Message.req_sendTransaction) obj; + + boolean result = true; + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTo() + .equals(other.getTo()); + result = result && getValue() + .equals(other.getValue()); + result = result && getData() + .equals(other.getData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && (getNrg() + == other.getNrg()); + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - /** bytes totalDifficulty = 12; */ - com.google.protobuf.ByteString getTotalDifficulty(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrg()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** bytes extraData = 13; */ - com.google.protobuf.ByteString getExtraData(); + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - /** bytes nonce = 14; */ - com.google.protobuf.ByteString getNonce(); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_sendTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - /** bytes solution = 15; */ - com.google.protobuf.ByteString getSolution(); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_sendTransaction) + org.aion.api.server.pb.Message.req_sendTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_sendTransaction.class, org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_sendTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + nrg_ = 0L; + + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_sendTransaction build() { + org.aion.api.server.pb.Message.req_sendTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_sendTransaction buildPartial() { + org.aion.api.server.pb.Message.req_sendTransaction result = new org.aion.api.server.pb.Message.req_sendTransaction(this); + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nonce_ = nonce_; + result.nrg_ = nrg_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_sendTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.req_sendTransaction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_sendTransaction other) { + if (other == org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance()) return this; + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_sendTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_sendTransaction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 1; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 1; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 1; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes to = 2; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** + * bytes to = 2; + */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * bytes to = 2; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 3; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 3; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 3; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 4; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 4; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 5; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 5; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 5; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private long nrg_ ; + /** + * uint64 nrg = 6; + */ + public long getNrg() { + return nrg_; + } + /** + * uint64 nrg = 6; + */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** + * uint64 nrg = 6; + */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 7; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 7; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 7; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_sendTransaction) + } - /** bytes hash = 16; */ - com.google.protobuf.ByteString getHash(); + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_sendTransaction) + private static final org.aion.api.server.pb.Message.req_sendTransaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_sendTransaction(); + } - /** uint32 size = 17; */ - int getSize(); + public static org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - java.util.List getTxList(); - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - org.aion.api.server.pb.Message.t_TxDetail getTx(int index); - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - int getTxCount(); - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - java.util.List - getTxOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder(int index); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_sendTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_sendTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** uint64 blockTime = 19; */ - long getBlockTime(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} */ - public static final class t_BlockDetail extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockDetail) - t_BlockDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_BlockDetail.newBuilder() to construct. - private t_BlockDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_BlockDetail() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - tx_ = java.util.Collections.emptyList(); - blockTime_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private t_BlockDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - case 16: - { - timestamp_ = input.readUInt64(); - break; - } - case 24: - { - nrgConsumed_ = input.readUInt64(); - break; - } - case 32: - { - nrgLimit_ = input.readUInt64(); - break; - } - case 42: - { - parentHash_ = input.readBytes(); - break; - } - case 50: - { - minerAddress_ = input.readBytes(); - break; - } - case 58: - { - stateRoot_ = input.readBytes(); - break; - } - case 66: - { - txTrieRoot_ = input.readBytes(); - break; - } - case 74: - { - receiptTrieRoot_ = input.readBytes(); - break; - } - case 82: - { - logsBloom_ = input.readBytes(); - break; - } - case 90: - { - difficulty_ = input.readBytes(); - break; - } - case 98: - { - totalDifficulty_ = input.readBytes(); - break; - } - case 106: - { - extraData_ = input.readBytes(); - break; - } - case 114: - { - nonce_ = input.readBytes(); - break; - } - case 122: - { - solution_ = input.readBytes(); - break; - } - case 130: - { - hash_ = input.readBytes(); - break; - } - case 136: - { - size_ = input.readUInt32(); - break; - } - case 146: - { - if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_TxDetail>(); - mutable_bitField0_ |= 0x00020000; - } - tx_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_TxDetail.parser(), - extensionRegistry)); - break; - } - case 152: - { - blockTime_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; - } + } + + public interface rsp_sendTransactionOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_sendTransaction) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + */ + com.google.protobuf.ByteString getTxHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} + */ + public static final class rsp_sendTransaction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_sendTransaction) + rsp_sendTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_sendTransaction.newBuilder() to construct. + private rsp_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_sendTransaction() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockDetail.class, - org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_sendTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + } - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_sendTransaction.class, org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); + } - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_sendTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_sendTransaction other = (org.aion.api.server.pb.Message.rsp_sendTransaction) obj; + + boolean result = true; + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_sendTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_sendTransaction) + org.aion.api.server.pb.Message.rsp_sendTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_sendTransaction.class, org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_sendTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_sendTransaction build() { + org.aion.api.server.pb.Message.rsp_sendTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_sendTransaction buildPartial() { + org.aion.api.server.pb.Message.rsp_sendTransaction result = new org.aion.api.server.pb.Message.rsp_sendTransaction(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_sendTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_sendTransaction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_sendTransaction other) { + if (other == org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_sendTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_sendTransaction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 1; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 1; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_sendTransaction) + } - public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString totalDifficulty_; - /** bytes totalDifficulty = 12; */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_sendTransaction) + private static final org.aion.api.server.pb.Message.rsp_sendTransaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_sendTransaction(); + } - public static final int EXTRADATA_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString extraData_; - /** bytes extraData = 13; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } + public static org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int NONCE_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 14; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_sendTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_sendTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int SOLUTION_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString solution_; - /** bytes solution = 15; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int HASH_FIELD_NUMBER = 16; - private com.google.protobuf.ByteString hash_; - /** bytes hash = 16; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int SIZE_FIELD_NUMBER = 17; - private int size_; - /** uint32 size = 17; */ - public int getSize() { - return size_; - } + } + + public interface req_getTransactionByHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + */ + com.google.protobuf.ByteString getTxHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} + */ + public static final class req_getTransactionByHash extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByHash) + req_getTransactionByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionByHash.newBuilder() to construct. + private req_getTransactionByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getTransactionByHash() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } - public static final int TX_FIELD_NUMBER = 18; - private java.util.List tx_; - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public java.util.List getTxList() { - return tx_; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public java.util.List - getTxOrBuilderList() { - return tx_; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public int getTxCount() { - return tx_.size(); - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { - return tx_.get(index); - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder(int index) { - return tx_.get(index); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getTransactionByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + } - public static final int BLOCKTIME_FIELD_NUMBER = 19; - private long blockTime_; - /** uint64 blockTime = 19; */ - public long getBlockTime() { - return blockTime_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByHash.class, org.aion.api.server.pb.Message.req_getTransactionByHash.Builder.class); + } - private byte memoizedIsInitialized = -1; + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - memoizedIsInitialized = 1; - return true; - } + memoizedIsInitialized = 1; + return true; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - output.writeBytes(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(13, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(14, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(15, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(16, hash_); - } - if (size_ != 0) { - output.writeUInt32(17, size_); - } - for (int i = 0; i < tx_.size(); i++) { - output.writeMessage(18, tx_.get(i)); - } - if (blockTime_ != 0L) { - output.writeUInt64(19, blockTime_); - } - unknownFields.writeTo(output); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(16, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(17, size_); - } - for (int i = 0; i < tx_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, tx_.get(i)); - } - if (blockTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(19, blockTime_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionByHash other = (org.aion.api.server.pb.Message.req_getTransactionByHash) obj; + + boolean result = true; + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockDetail)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_BlockDetail other = - (org.aion.api.server.pb.Message.t_BlockDetail) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && (getTimestamp() == other.getTimestamp()); - result = result && (getNrgConsumed() == other.getNrgConsumed()); - result = result && (getNrgLimit() == other.getNrgLimit()); - result = result && getParentHash().equals(other.getParentHash()); - result = result && getMinerAddress().equals(other.getMinerAddress()); - result = result && getStateRoot().equals(other.getStateRoot()); - result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom().equals(other.getLogsBloom()); - result = result && getDifficulty().equals(other.getDifficulty()); - result = result && getTotalDifficulty().equals(other.getTotalDifficulty()); - result = result && getExtraData().equals(other.getExtraData()); - result = result && getNonce().equals(other.getNonce()); - result = result && getSolution().equals(other.getSolution()); - result = result && getHash().equals(other.getHash()); - result = result && (getSize() == other.getSize()); - result = result && getTxList().equals(other.getTxList()); - result = result && (getBlockTime() == other.getBlockTime()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getTotalDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - if (getTxCount() > 0) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTxList().hashCode(); - } - hash = (37 * hash) + BLOCKTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockTime()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByHash) + org.aion.api.server.pb.Message.req_getTransactionByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByHash.class, org.aion.api.server.pb.Message.req_getTransactionByHash.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionByHash build() { + org.aion.api.server.pb.Message.req_getTransactionByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionByHash buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionByHash result = new org.aion.api.server.pb.Message.req_getTransactionByHash(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByHash) { + return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionByHash)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByHash other) { + if (other == org.aion.api.server.pb.Message.req_getTransactionByHash.getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionByHash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 1; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 1; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByHash) + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByHash) + private static final org.aion.api.server.pb.Message.req_getTransactionByHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByHash(); + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getTransactionByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + } + + public interface rsp_getTransactionOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransaction) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 txIndex = 1; + */ + int getTxIndex(); + + /** + * uint64 blocknumber = 2; + */ + long getBlocknumber(); + + /** + * uint64 timeStamp = 3; + */ + long getTimeStamp(); + + /** + * uint64 nrgConsume = 4; + */ + long getNrgConsume(); + + /** + * uint64 nrgPrice = 5; + */ + long getNrgPrice(); + + /** + * bytes blockhash = 6; + */ + com.google.protobuf.ByteString getBlockhash(); + + /** + * bytes from = 7; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes txHash = 8; + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * bytes data = 9; + */ + com.google.protobuf.ByteString getData(); + + /** + * bytes nonce = 10; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * bytes to = 11; + */ + com.google.protobuf.ByteString getTo(); + + /** + * bytes value = 12; + */ + com.google.protobuf.ByteString getValue(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} + */ + public static final class rsp_getTransaction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransaction) + rsp_getTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getTransaction.newBuilder() to construct. + private rsp_getTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getTransaction() { + txIndex_ = 0; + blocknumber_ = 0L; + timeStamp_ = 0L; + nrgConsume_ = 0L; + nrgPrice_ = 0L; + blockhash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + txHash_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nonce_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } - public static org.aion.api.server.pb.Message.t_BlockDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + txIndex_ = input.readUInt32(); + break; + } + case 16: { - public static org.aion.api.server.pb.Message.t_BlockDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + blocknumber_ = input.readUInt64(); + break; + } + case 24: { - public Builder newBuilderForType() { - return newBuilder(); - } + timeStamp_ = input.readUInt64(); + break; + } + case 32: { - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + nrgConsume_ = input.readUInt64(); + break; + } + case 40: { - public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + nrgPrice_ = input.readUInt64(); + break; + } + case 50: { - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + blockhash_ = input.readBytes(); + break; + } + case 58: { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_BlockDetail} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockDetail) - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + from_ = input.readBytes(); + break; } + case 66: { - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockDetail.class, - org.aion.api.server.pb.Message.t_BlockDetail.Builder.class); + txHash_ = input.readBytes(); + break; } + case 74: { - // Construct using org.aion.api.server.pb.Message.t_BlockDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + data_ = input.readBytes(); + break; } + case 82: { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + nonce_ = input.readBytes(); + break; } + case 90: { - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTxFieldBuilder(); - } + to_ = input.readBytes(); + break; } + case 98: { - public Builder clear() { - super.clear(); - blockNumber_ = 0L; + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + } - timestamp_ = 0L; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransaction.class, org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); + } - nrgConsumed_ = 0L; + public static final int TXINDEX_FIELD_NUMBER = 1; + private int txIndex_; + /** + * uint32 txIndex = 1; + */ + public int getTxIndex() { + return txIndex_; + } - nrgLimit_ = 0L; + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blocknumber_; + /** + * uint64 blocknumber = 2; + */ + public long getBlocknumber() { + return blocknumber_; + } - parentHash_ = com.google.protobuf.ByteString.EMPTY; + public static final int TIMESTAMP_FIELD_NUMBER = 3; + private long timeStamp_; + /** + * uint64 timeStamp = 3; + */ + public long getTimeStamp() { + return timeStamp_; + } - minerAddress_ = com.google.protobuf.ByteString.EMPTY; + public static final int NRGCONSUME_FIELD_NUMBER = 4; + private long nrgConsume_; + /** + * uint64 nrgConsume = 4; + */ + public long getNrgConsume() { + return nrgConsume_; + } - stateRoot_ = com.google.protobuf.ByteString.EMPTY; + public static final int NRGPRICE_FIELD_NUMBER = 5; + private long nrgPrice_; + /** + * uint64 nrgPrice = 5; + */ + public long getNrgPrice() { + return nrgPrice_; + } - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + public static final int BLOCKHASH_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString blockhash_; + /** + * bytes blockhash = 6; + */ + public com.google.protobuf.ByteString getBlockhash() { + return blockhash_; + } - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + public static final int FROM_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 7; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - logsBloom_ = com.google.protobuf.ByteString.EMPTY; + public static final int TXHASH_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 8; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - difficulty_ = com.google.protobuf.ByteString.EMPTY; + public static final int DATA_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 9; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + public static final int NONCE_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 10; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - extraData_ = com.google.protobuf.ByteString.EMPTY; + public static final int TO_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString to_; + /** + * bytes to = 11; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - nonce_ = com.google.protobuf.ByteString.EMPTY; + public static final int VALUE_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 12; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - solution_ = com.google.protobuf.ByteString.EMPTY; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - hash_ = com.google.protobuf.ByteString.EMPTY; + memoizedIsInitialized = 1; + return true; + } - size_ = 0; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txIndex_ != 0) { + output.writeUInt32(1, txIndex_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(2, blocknumber_); + } + if (timeStamp_ != 0L) { + output.writeUInt64(3, timeStamp_); + } + if (nrgConsume_ != 0L) { + output.writeUInt64(4, nrgConsume_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(5, nrgPrice_); + } + if (!blockhash_.isEmpty()) { + output.writeBytes(6, blockhash_); + } + if (!from_.isEmpty()) { + output.writeBytes(7, from_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(8, txHash_); + } + if (!data_.isEmpty()) { + output.writeBytes(9, data_); + } + if (!nonce_.isEmpty()) { + output.writeBytes(10, nonce_); + } + if (!to_.isEmpty()) { + output.writeBytes(11, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(12, value_); + } + unknownFields.writeTo(output); + } - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - } else { - txBuilder_.clear(); - } - blockTime_ = 0L; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, txIndex_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, blocknumber_); + } + if (timeStamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, timeStamp_); + } + if (nrgConsume_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, nrgConsume_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, nrgPrice_); + } + if (!blockhash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, blockhash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, from_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, txHash_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, data_); + } + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, nonce_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getTransaction other = (org.aion.api.server.pb.Message.rsp_getTransaction) obj; + + boolean result = true; + result = result && (getTxIndex() + == other.getTxIndex()); + result = result && (getBlocknumber() + == other.getBlocknumber()); + result = result && (getTimeStamp() + == other.getTimeStamp()); + result = result && (getNrgConsume() + == other.getNrgConsume()); + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && getBlockhash() + .equals(other.getBlockhash()); + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && getData() + .equals(other.getData()); + result = result && getNonce() + .equals(other.getNonce()); + result = result && getTo() + .equals(other.getTo()); + result = result && getValue() + .equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlocknumber()); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimeStamp()); + hash = (37 * hash) + NRGCONSUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsume()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockhash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance(); - } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.t_BlockDetail build() { - org.aion.api.server.pb.Message.t_BlockDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_BlockDetail buildPartial() { - org.aion.api.server.pb.Message.t_BlockDetail result = - new org.aion.api.server.pb.Message.t_BlockDetail(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.totalDifficulty_ = totalDifficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - if (txBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - result.blockTime_ = blockTime_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransaction) + org.aion.api.server.pb.Message.rsp_getTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransaction.class, org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txIndex_ = 0; + + blocknumber_ = 0L; + + timeStamp_ = 0L; + + nrgConsume_ = 0L; + + nrgPrice_ = 0L; + + blockhash_ = com.google.protobuf.ByteString.EMPTY; + + from_ = com.google.protobuf.ByteString.EMPTY; + + txHash_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nonce_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getTransaction build() { + org.aion.api.server.pb.Message.rsp_getTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getTransaction buildPartial() { + org.aion.api.server.pb.Message.rsp_getTransaction result = new org.aion.api.server.pb.Message.rsp_getTransaction(this); + result.txIndex_ = txIndex_; + result.blocknumber_ = blocknumber_; + result.timeStamp_ = timeStamp_; + result.nrgConsume_ = nrgConsume_; + result.nrgPrice_ = nrgPrice_; + result.blockhash_ = blockhash_; + result.from_ = from_; + result.txHash_ = txHash_; + result.data_ = data_; + result.nonce_ = nonce_; + result.to_ = to_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransaction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransaction other) { + if (other == org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance()) return this; + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + if (other.getTimeStamp() != 0L) { + setTimeStamp(other.getTimeStamp()); + } + if (other.getNrgConsume() != 0L) { + setNrgConsume(other.getNrgConsume()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + if (other.getBlockhash() != com.google.protobuf.ByteString.EMPTY) { + setBlockhash(other.getBlockhash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getTransaction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int txIndex_ ; + /** + * uint32 txIndex = 1; + */ + public int getTxIndex() { + return txIndex_; + } + /** + * uint32 txIndex = 1; + */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 txIndex = 1; + */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + private long blocknumber_ ; + /** + * uint64 blocknumber = 2; + */ + public long getBlocknumber() { + return blocknumber_; + } + /** + * uint64 blocknumber = 2; + */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blocknumber = 2; + */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + + private long timeStamp_ ; + /** + * uint64 timeStamp = 3; + */ + public long getTimeStamp() { + return timeStamp_; + } + /** + * uint64 timeStamp = 3; + */ + public Builder setTimeStamp(long value) { + + timeStamp_ = value; + onChanged(); + return this; + } + /** + * uint64 timeStamp = 3; + */ + public Builder clearTimeStamp() { + + timeStamp_ = 0L; + onChanged(); + return this; + } + + private long nrgConsume_ ; + /** + * uint64 nrgConsume = 4; + */ + public long getNrgConsume() { + return nrgConsume_; + } + /** + * uint64 nrgConsume = 4; + */ + public Builder setNrgConsume(long value) { + + nrgConsume_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsume = 4; + */ + public Builder clearNrgConsume() { + + nrgConsume_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 5; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 5; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 5; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString blockhash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockhash = 6; + */ + public com.google.protobuf.ByteString getBlockhash() { + return blockhash_; + } + /** + * bytes blockhash = 6; + */ + public Builder setBlockhash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockhash_ = value; + onChanged(); + return this; + } + /** + * bytes blockhash = 6; + */ + public Builder clearBlockhash() { + + blockhash_ = getDefaultInstance().getBlockhash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 7; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 7; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 7; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 8; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 8; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 8; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 9; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 9; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 9; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 10; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 10; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 10; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes to = 11; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** + * bytes to = 11; + */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * bytes to = 11; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 12; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 12; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 12; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransaction) + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransaction) + private static final org.aion.api.server.pb.Message.rsp_getTransaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransaction(); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public static org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_BlockDetail) { - return mergeFrom((org.aion.api.server.pb.Message.t_BlockDetail) other); - } else { - super.mergeFrom(other); - return this; - } - } + } + + public interface req_unlockAccountOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_unlockAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes account = 1; + */ + com.google.protobuf.ByteString getAccount(); + + /** + * string password = 2; + */ + java.lang.String getPassword(); + /** + * string password = 2; + */ + com.google.protobuf.ByteString + getPasswordBytes(); + + /** + * uint32 duration = 3; + */ + int getDuration(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} + */ + public static final class req_unlockAccount extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_unlockAccount) + req_unlockAccountOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_unlockAccount.newBuilder() to construct. + private req_unlockAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_unlockAccount() { + account_ = com.google.protobuf.ByteString.EMPTY; + password_ = ""; + duration_ = 0; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockDetail other) { - if (other == org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()) - return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setTotalDifficulty(other.getTotalDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (txBuilder_ == null) { - if (!other.tx_.isEmpty()) { - if (tx_.isEmpty()) { - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureTxIsMutable(); - tx_.addAll(other.tx_); - } - onChanged(); - } - } else { - if (!other.tx_.isEmpty()) { - if (txBuilder_.isEmpty()) { - txBuilder_.dispose(); - txBuilder_ = null; - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00020000); - txBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTxFieldBuilder() - : null; - } else { - txBuilder_.addAllMessages(other.tx_); - } - } - } - if (other.getBlockTime() != 0L) { - setBlockTime(other.getBlockTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_unlockAccount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + account_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 24: { + + duration_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + } - public final boolean isInitialized() { - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_unlockAccount.class, org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_BlockDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_BlockDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString account_; + /** + * bytes account = 1; + */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } - private int bitField0_; + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { + public static final int DURATION_FIELD_NUMBER = 3; + private int duration_; + /** + * uint32 duration = 3; + */ + public int getDuration() { + return duration_; + } - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - blockNumber_ = 0L; - onChanged(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } - /** uint64 timestamp = 2; */ - public Builder setTimestamp(long value) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!account_.isEmpty()) { + output.writeBytes(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (duration_ != 0) { + output.writeUInt32(3, duration_); + } + unknownFields.writeTo(output); + } - timestamp_ = value; - onChanged(); - return this; - } - /** uint64 timestamp = 2; */ - public Builder clearTimestamp() { + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!account_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (duration_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, duration_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - timestamp_ = 0L; - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_unlockAccount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_unlockAccount other = (org.aion.api.server.pb.Message.req_unlockAccount) obj; + + boolean result = true; + result = result && getAccount() + .equals(other.getAccount()); + result = result && getPassword() + .equals(other.getPassword()); + result = result && (getDuration() + == other.getDuration()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** uint64 nrgConsumed = 3; */ - public Builder setNrgConsumed(long value) { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - nrgConsumed_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsumed = 3; */ - public Builder clearNrgConsumed() { + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - nrgConsumed_ = 0L; - onChanged(); - return this; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_unlockAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } - /** uint64 nrgLimit = 4; */ - public Builder setNrgLimit(long value) { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_unlockAccount) + org.aion.api.server.pb.Message.req_unlockAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_unlockAccount.class, org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_unlockAccount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + account_ = com.google.protobuf.ByteString.EMPTY; + + password_ = ""; + + duration_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + } + + public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_unlockAccount build() { + org.aion.api.server.pb.Message.req_unlockAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_unlockAccount buildPartial() { + org.aion.api.server.pb.Message.req_unlockAccount result = new org.aion.api.server.pb.Message.req_unlockAccount(this); + result.account_ = account_; + result.password_ = password_; + result.duration_ = duration_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_unlockAccount) { + return mergeFrom((org.aion.api.server.pb.Message.req_unlockAccount)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_unlockAccount other) { + if (other == org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance()) return this; + if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { + setAccount(other.getAccount()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.getDuration() != 0) { + setDuration(other.getDuration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_unlockAccount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_unlockAccount) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes account = 1; + */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } + /** + * bytes account = 1; + */ + public Builder setAccount(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + account_ = value; + onChanged(); + return this; + } + /** + * bytes account = 1; + */ + public Builder clearAccount() { + + account_ = getDefaultInstance().getAccount(); + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string password = 2; + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private int duration_ ; + /** + * uint32 duration = 3; + */ + public int getDuration() { + return duration_; + } + /** + * uint32 duration = 3; + */ + public Builder setDuration(int value) { + + duration_ = value; + onChanged(); + return this; + } + /** + * uint32 duration = 3; + */ + public Builder clearDuration() { + + duration_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_unlockAccount) + } - nrgLimit_ = value; - onChanged(); - return this; - } - /** uint64 nrgLimit = 4; */ - public Builder clearNrgLimit() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_unlockAccount) + private static final org.aion.api.server.pb.Message.req_unlockAccount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_unlockAccount(); + } - nrgLimit_ = 0L; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private com.google.protobuf.ByteString parentHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** bytes parentHash = 5; */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** bytes parentHash = 5; */ - public Builder clearParentHash() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_unlockAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_unlockAccount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private com.google.protobuf.ByteString minerAddress_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** bytes minerAddress = 6; */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** bytes minerAddress = 6; */ - public Builder clearMinerAddress() { + public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } + } + + public interface rsp_accountsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accounts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes accout = 1; + */ + java.util.List getAccoutList(); + /** + * repeated bytes accout = 1; + */ + int getAccoutCount(); + /** + * repeated bytes accout = 1; + */ + com.google.protobuf.ByteString getAccout(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_accounts} + */ + public static final class rsp_accounts extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accounts) + rsp_accountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_accounts.newBuilder() to construct. + private rsp_accounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_accounts() { + accout_ = java.util.Collections.emptyList(); + } - private com.google.protobuf.ByteString stateRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** bytes stateRoot = 7; */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** bytes stateRoot = 7; */ - public Builder clearStateRoot() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_accounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + accout_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = java.util.Collections.unmodifiableList(accout_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + } - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accounts.class, org.aion.api.server.pb.Message.rsp_accounts.Builder.class); + } - private com.google.protobuf.ByteString txTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** bytes txTrieRoot = 8; */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes txTrieRoot = 8; */ - public Builder clearTxTrieRoot() { + public static final int ACCOUT_FIELD_NUMBER = 1; + private java.util.List accout_; + /** + * repeated bytes accout = 1; + */ + public java.util.List + getAccoutList() { + return accout_; + } + /** + * repeated bytes accout = 1; + */ + public int getAccoutCount() { + return accout_.size(); + } + /** + * repeated bytes accout = 1; + */ + public com.google.protobuf.ByteString getAccout(int index) { + return accout_.get(index); + } - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private com.google.protobuf.ByteString receiptTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** bytes receiptTrieRoot = 9; */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes receiptTrieRoot = 9; */ - public Builder clearReceiptTrieRoot() { + memoizedIsInitialized = 1; + return true; + } - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < accout_.size(); i++) { + output.writeBytes(1, accout_.get(i)); + } + unknownFields.writeTo(output); + } - private com.google.protobuf.ByteString logsBloom_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** bytes logsBloom = 10; */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** bytes logsBloom = 10; */ - public Builder clearLogsBloom() { + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < accout_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(accout_.get(i)); + } + size += dataSize; + size += 1 * getAccoutList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_accounts other = (org.aion.api.server.pb.Message.rsp_accounts) obj; + + boolean result = true; + result = result && getAccoutList() + .equals(other.getAccoutList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private com.google.protobuf.ByteString difficulty_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** bytes difficulty = 11; */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** bytes difficulty = 11; */ - public Builder clearDifficulty() { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccoutCount() > 0) { + hash = (37 * hash) + ACCOUT_FIELD_NUMBER; + hash = (53 * hash) + getAccoutList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private com.google.protobuf.ByteString totalDifficulty_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes totalDifficulty = 12; */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } - /** bytes totalDifficulty = 12; */ - public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDifficulty_ = value; - onChanged(); - return this; - } - /** bytes totalDifficulty = 12; */ - public Builder clearTotalDifficulty() { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_accounts} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accounts) + org.aion.api.server.pb.Message.rsp_accountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accounts.class, org.aion.api.server.pb.Message.rsp_accounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_accounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + accout_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_accounts build() { + org.aion.api.server.pb.Message.rsp_accounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_accounts buildPartial() { + org.aion.api.server.pb.Message.rsp_accounts result = new org.aion.api.server.pb.Message.rsp_accounts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = java.util.Collections.unmodifiableList(accout_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accout_ = accout_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_accounts) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_accounts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accounts other) { + if (other == org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance()) return this; + if (!other.accout_.isEmpty()) { + if (accout_.isEmpty()) { + accout_ = other.accout_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccoutIsMutable(); + accout_.addAll(other.accout_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_accounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_accounts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List accout_ = java.util.Collections.emptyList(); + private void ensureAccoutIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + accout_ = new java.util.ArrayList(accout_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated bytes accout = 1; + */ + public java.util.List + getAccoutList() { + return java.util.Collections.unmodifiableList(accout_); + } + /** + * repeated bytes accout = 1; + */ + public int getAccoutCount() { + return accout_.size(); + } + /** + * repeated bytes accout = 1; + */ + public com.google.protobuf.ByteString getAccout(int index) { + return accout_.get(index); + } + /** + * repeated bytes accout = 1; + */ + public Builder setAccout( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccoutIsMutable(); + accout_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes accout = 1; + */ + public Builder addAccout(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccoutIsMutable(); + accout_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes accout = 1; + */ + public Builder addAllAccout( + java.lang.Iterable values) { + ensureAccoutIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accout_); + onChanged(); + return this; + } + /** + * repeated bytes accout = 1; + */ + public Builder clearAccout() { + accout_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accounts) + } - private com.google.protobuf.ByteString extraData_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes extraData = 13; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** bytes extraData = 13; */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** bytes extraData = 13; */ - public Builder clearExtraData() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accounts) + private static final org.aion.api.server.pb.Message.rsp_accounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accounts(); + } - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_accounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 14; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 14; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 14; */ - public Builder clearNonce() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_accounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_accounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** bytes solution = 15; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** bytes solution = 15; */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** bytes solution = 15; */ - public Builder clearSolution() { + public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } + } + + public interface req_compileOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compile) + com.google.protobuf.MessageOrBuilder { + + /** + * string code = 1; + */ + java.lang.String getCode(); + /** + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_compile} + */ + public static final class req_compile extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compile) + req_compileOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_compile.newBuilder() to construct. + private req_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_compile() { + code_ = ""; + } - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes hash = 16; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** bytes hash = 16; */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** bytes hash = 16; */ - public Builder clearHash() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_compile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_descriptor; + } - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compile.class, org.aion.api.server.pb.Message.req_compile.Builder.class); + } - private int size_; - /** uint32 size = 17; */ - public int getSize() { - return size_; - } - /** uint32 size = 17; */ - public Builder setSize(int value) { + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - size_ = value; - onChanged(); - return this; - } - /** uint32 size = 17; */ - public Builder clearSize() { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - size_ = 0; - onChanged(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - private java.util.List tx_ = - java.util.Collections.emptyList(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + unknownFields.writeTo(output); + } - private void ensureTxIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - tx_ = new java.util.ArrayList(tx_); - bitField0_ |= 0x00020000; - } - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_TxDetail, - org.aion.api.server.pb.Message.t_TxDetail.Builder, - org.aion.api.server.pb.Message.t_TxDetailOrBuilder> - txBuilder_; - - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public java.util.List getTxList() { - if (txBuilder_ == null) { - return java.util.Collections.unmodifiableList(tx_); - } else { - return txBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public int getTxCount() { - if (txBuilder_ == null) { - return tx_.size(); - } else { - return txBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public org.aion.api.server.pb.Message.t_TxDetail getTx(int index) { - if (txBuilder_ == null) { - return tx_.get(index); - } else { - return txBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder setTx(int index, org.aion.api.server.pb.Message.t_TxDetail value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.set(index, value); - onChanged(); - } else { - txBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder setTx( - int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.set(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder addTx(org.aion.api.server.pb.Message.t_TxDetail value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - } else { - txBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder addTx(int index, org.aion.api.server.pb.Message.t_TxDetail value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(index, value); - onChanged(); - } else { - txBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder addTx( - org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder addTx( - int index, org.aion.api.server.pb.Message.t_TxDetail.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder addAllTx( - java.lang.Iterable - values) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tx_); - onChanged(); - } else { - txBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - } else { - txBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public Builder removeTx(int index) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.remove(index); - onChanged(); - } else { - txBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public org.aion.api.server.pb.Message.t_TxDetail.Builder getTxBuilder(int index) { - return getTxFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder(int index) { - if (txBuilder_ == null) { - return tx_.get(index); - } else { - return txBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public java.util.List - getTxOrBuilderList() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tx_); - } - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder() { - return getTxFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder(int index) { - return getTxFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_TxDetail tx = 18; */ - public java.util.List - getTxBuilderList() { - return getTxFieldBuilder().getBuilderList(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_compile)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_compile other = (org.aion.api.server.pb.Message.req_compile) obj; + + boolean result = true; + result = result && getCode() + .equals(other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_TxDetail, - org.aion.api.server.pb.Message.t_TxDetail.Builder, - org.aion.api.server.pb.Message.t_TxDetailOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_TxDetail, - org.aion.api.server.pb.Message.t_TxDetail.Builder, - org.aion.api.server.pb.Message.t_TxDetailOrBuilder>( - tx_, - ((bitField0_ & 0x00020000) == 0x00020000), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private long blockTime_; - /** uint64 blockTime = 19; */ - public long getBlockTime() { - return blockTime_; - } - /** uint64 blockTime = 19; */ - public Builder setBlockTime(long value) { + public static org.aion.api.server.pb.Message.req_compile parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_compile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - blockTime_ = value; - onChanged(); - return this; - } - /** uint64 blockTime = 19; */ - public Builder clearBlockTime() { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_compile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - blockTime_ = 0L; - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_compile} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compile) + org.aion.api.server.pb.Message.req_compileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compile.class, org.aion.api.server.pb.Message.req_compile.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_compile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compile_descriptor; + } + + public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_compile.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_compile build() { + org.aion.api.server.pb.Message.req_compile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_compile buildPartial() { + org.aion.api.server.pb.Message.req_compile result = new org.aion.api.server.pb.Message.req_compile(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_compile) { + return mergeFrom((org.aion.api.server.pb.Message.req_compile)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_compile other) { + if (other == org.aion.api.server.pb.Message.req_compile.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_compile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_compile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compile) + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compile) + private static final org.aion.api.server.pb.Message.req_compile DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compile(); + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static org.aion.api.server.pb.Message.req_compile getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockDetail) - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_compile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_compile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockDetail) - private static final org.aion.api.server.pb.Message.t_BlockDetail DEFAULT_INSTANCE; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockDetail(); - } + public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + } + + public interface rsp_compileOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compile) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + int getConstractsCount(); + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + boolean containsConstracts( + java.lang.String key); + /** + * Use {@link #getConstractsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getConstracts(); + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + java.util.Map + getConstractsMap(); + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( + java.lang.String key, + org.aion.api.server.pb.Message.t_Contract defaultValue); + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_compile} + */ + public static final class rsp_compile extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compile) + rsp_compileOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_compile.newBuilder() to construct. + private rsp_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_compile() { + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_BlockDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_BlockDetail(input, extensionRegistry); - } - }; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_compile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + constracts_ = com.google.protobuf.MapField.newMapField( + ConstractsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + constracts__ = input.readMessage( + ConstractsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + constracts_.getMutableMap().put( + constracts__.getKey(), constracts__.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetConstracts(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compile.class, org.aion.api.server.pb.Message.rsp_compile.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int CONSTRACTS_FIELD_NUMBER = 1; + private static final class ConstractsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.aion.api.server.pb.Message.t_Contract.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> constracts_; + private com.google.protobuf.MapField + internalGetConstracts() { + if (constracts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConstractsDefaultEntryHolder.defaultEntry); + } + return constracts_; + } - public org.aion.api.server.pb.Message.t_BlockDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public int getConstractsCount() { + return internalGetConstracts().getMap().size(); } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public boolean containsConstracts( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetConstracts().getMap().containsKey(key); + } + /** + * Use {@link #getConstractsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getConstracts() { + return getConstractsMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ - public interface t_TxDetailOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_TxDetail) - com.google.protobuf.MessageOrBuilder { + public java.util.Map getConstractsMap() { + return internalGetConstracts().getMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( + java.lang.String key, + org.aion.api.server.pb.Message.t_Contract defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConstracts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConstracts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } - /** bytes txHash = 1; */ - com.google.protobuf.ByteString getTxHash(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** bytes from = 2; */ - com.google.protobuf.ByteString getFrom(); + memoizedIsInitialized = 1; + return true; + } - /** bytes to = 3; */ - com.google.protobuf.ByteString getTo(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConstracts(), + ConstractsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } - /** bytes value = 4; */ - com.google.protobuf.ByteString getValue(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetConstracts().getMap().entrySet()) { + com.google.protobuf.MapEntry + constracts__ = ConstractsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, constracts__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** bytes data = 5; */ - com.google.protobuf.ByteString getData(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compile)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_compile other = (org.aion.api.server.pb.Message.rsp_compile) obj; + + boolean result = true; + result = result && internalGetConstracts().equals( + other.internalGetConstracts()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - /** bytes nonce = 6; */ - com.google.protobuf.ByteString getNonce(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetConstracts().getMap().isEmpty()) { + hash = (37 * hash) + CONSTRACTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetConstracts().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** uint64 nrgConsumed = 7; */ - long getNrgConsumed(); + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_compile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - /** uint64 nrgPrice = 8; */ - long getNrgPrice(); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_compile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - /** uint32 txIndex = 9; */ - int getTxIndex(); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_compile} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compile) + org.aion.api.server.pb.Message.rsp_compileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetConstracts(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableConstracts(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compile.class, org.aion.api.server.pb.Message.rsp_compile.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_compile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableConstracts().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_compile build() { + org.aion.api.server.pb.Message.rsp_compile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_compile buildPartial() { + org.aion.api.server.pb.Message.rsp_compile result = new org.aion.api.server.pb.Message.rsp_compile(this); + int from_bitField0_ = bitField0_; + result.constracts_ = internalGetConstracts(); + result.constracts_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_compile) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_compile)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compile other) { + if (other == org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance()) return this; + internalGetMutableConstracts().mergeFrom( + other.internalGetConstracts()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_compile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_compile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, org.aion.api.server.pb.Message.t_Contract> constracts_; + private com.google.protobuf.MapField + internalGetConstracts() { + if (constracts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConstractsDefaultEntryHolder.defaultEntry); + } + return constracts_; + } + private com.google.protobuf.MapField + internalGetMutableConstracts() { + onChanged();; + if (constracts_ == null) { + constracts_ = com.google.protobuf.MapField.newMapField( + ConstractsDefaultEntryHolder.defaultEntry); + } + if (!constracts_.isMutable()) { + constracts_ = constracts_.copy(); + } + return constracts_; + } + + public int getConstractsCount() { + return internalGetConstracts().getMap().size(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public boolean containsConstracts( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetConstracts().getMap().containsKey(key); + } + /** + * Use {@link #getConstractsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getConstracts() { + return getConstractsMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public java.util.Map getConstractsMap() { + return internalGetConstracts().getMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( + java.lang.String key, + org.aion.api.server.pb.Message.t_Contract defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConstracts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConstracts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConstracts() { + internalGetMutableConstracts().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public Builder removeConstracts( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableConstracts().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableConstracts() { + return internalGetMutableConstracts().getMutableMap(); + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + public Builder putConstracts( + java.lang.String key, + org.aion.api.server.pb.Message.t_Contract value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableConstracts().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; + */ + + public Builder putAllConstracts( + java.util.Map values) { + internalGetMutableConstracts().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compile) + } - /** bytes contract = 10; */ - com.google.protobuf.ByteString getContract(); + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compile) + private static final org.aion.api.server.pb.Message.rsp_compile DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compile(); + } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - java.util.List getLogsList(); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - org.aion.api.server.pb.Message.t_LgEle getLogs(int index); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - int getLogsCount(); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - java.util.List - getLogsOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index); + public static org.aion.api.server.pb.Message.rsp_compile getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** uint64 timestamp = 12; */ - long getTimestamp(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_compile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_compile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** string error = 13; */ - java.lang.String getError(); - /** string error = 13; */ - com.google.protobuf.ByteString getErrorBytes(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** Protobuf type {@code org.aion.api.server.pb.t_TxDetail} */ - public static final class t_TxDetail extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_TxDetail) - t_TxDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_TxDetail.newBuilder() to construct. - private t_TxDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_TxDetail() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - nrgConsumed_ = 0L; - nrgPrice_ = 0L; - txIndex_ = 0; - contract_ = com.google.protobuf.ByteString.EMPTY; - logs_ = java.util.Collections.emptyList(); - timestamp_ = 0L; - error_ = ""; - } + public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + } + + public interface req_getCodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getCode) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * uint64 blocknumber = 2; + */ + long getBlocknumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getCode} + */ + public static final class req_getCode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getCode) + req_getCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getCode.newBuilder() to construct. + private req_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getCode() { + address_ = com.google.protobuf.ByteString.EMPTY; + blocknumber_ = 0L; + } - private t_TxDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - txHash_ = input.readBytes(); - break; - } - case 18: - { - from_ = input.readBytes(); - break; - } - case 26: - { - to_ = input.readBytes(); - break; - } - case 34: - { - value_ = input.readBytes(); - break; - } - case 42: - { - data_ = input.readBytes(); - break; - } - case 50: - { - nonce_ = input.readBytes(); - break; - } - case 56: - { - nrgConsumed_ = input.readUInt64(); - break; - } - case 64: - { - nrgPrice_ = input.readUInt64(); - break; - } - case 72: - { - txIndex_ = input.readUInt32(); - break; - } - case 82: - { - contract_ = input.readBytes(); - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_LgEle>(); - mutable_bitField0_ |= 0x00000400; - } - logs_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_LgEle.parser(), - extensionRegistry)); - break; - } - case 96: - { - timestamp_ = input.readUInt64(); - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getCode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + case 16: { + + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getCode.class, org.aion.api.server.pb.Message.req_getCode.Builder.class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_TxDetail.class, - org.aion.api.server.pb.Message.t_TxDetail.Builder.class); - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - private int bitField0_; - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blocknumber_; + /** + * uint64 blocknumber = 2; + */ + public long getBlocknumber() { + return blocknumber_; + } - public static final int FROM_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString from_; - /** bytes from = 2; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int TO_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString to_; - /** bytes to = 3; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int VALUE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString value_; - /** bytes value = 4; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(2, blocknumber_); + } + unknownFields.writeTo(output); + } - public static final int DATA_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString data_; - /** bytes data = 5; */ - public com.google.protobuf.ByteString getData() { - return data_; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int NONCE_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 6; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getCode)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getCode other = (org.aion.api.server.pb.Message.req_getCode) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && (getBlocknumber() + == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int NRGCONSUMED_FIELD_NUMBER = 7; - private long nrgConsumed_; - /** uint64 nrgConsumed = 7; */ - public long getNrgConsumed() { - return nrgConsumed_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int NRGPRICE_FIELD_NUMBER = 8; - private long nrgPrice_; - /** uint64 nrgPrice = 8; */ - public long getNrgPrice() { - return nrgPrice_; - } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int TXINDEX_FIELD_NUMBER = 9; - private int txIndex_; - /** uint32 txIndex = 9; */ - public int getTxIndex() { - return txIndex_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int CONTRACT_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString contract_; - /** bytes contract = 10; */ - public com.google.protobuf.ByteString getContract() { - return contract_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getCode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getCode) + org.aion.api.server.pb.Message.req_getCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getCode.class, org.aion.api.server.pb.Message.req_getCode.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getCode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getCode_descriptor; + } + + public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getCode.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getCode build() { + org.aion.api.server.pb.Message.req_getCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getCode buildPartial() { + org.aion.api.server.pb.Message.req_getCode result = new org.aion.api.server.pb.Message.req_getCode(this); + result.address_ = address_; + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getCode) { + return mergeFrom((org.aion.api.server.pb.Message.req_getCode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getCode other) { + if (other == org.aion.api.server.pb.Message.req_getCode.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getCode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getCode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private long blocknumber_ ; + /** + * uint64 blocknumber = 2; + */ + public long getBlocknumber() { + return blocknumber_; + } + /** + * uint64 blocknumber = 2; + */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blocknumber = 2; + */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getCode) + } - public static final int LOGS_FIELD_NUMBER = 11; - private java.util.List logs_; - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public java.util.List getLogsList() { - return logs_; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public int getLogsCount() { - return logs_.size(); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - return logs_.get(index); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { - return logs_.get(index); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getCode) + private static final org.aion.api.server.pb.Message.req_getCode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getCode(); + } - public static final int TIMESTAMP_FIELD_NUMBER = 12; - private long timestamp_; - /** uint64 timestamp = 12; */ - public long getTimestamp() { - return timestamp_; - } + public static org.aion.api.server.pb.Message.req_getCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int ERROR_FIELD_NUMBER = 13; - private volatile java.lang.Object error_; - /** string error = 13; */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** string error = 13; */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getCode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + } + + public interface rsp_getCodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCode) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes code = 1; + */ + com.google.protobuf.ByteString getCode(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getCode} + */ + public static final class rsp_getCode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCode) + rsp_getCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getCode.newBuilder() to construct. + private rsp_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getCode() { + code_ = com.google.protobuf.ByteString.EMPTY; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - if (!from_.isEmpty()) { - output.writeBytes(2, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(3, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(4, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(5, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(6, nonce_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(7, nrgConsumed_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(8, nrgPrice_); - } - if (txIndex_ != 0) { - output.writeUInt32(9, txIndex_); - } - if (!contract_.isEmpty()) { - output.writeBytes(10, contract_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(11, logs_.get(i)); - } - if (timestamp_ != 0L) { - output.writeUInt64(12, timestamp_); - } - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, error_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getCode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + code_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCode.class, org.aion.api.server.pb.Message.rsp_getCode.Builder.class); + } - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, nonce_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(7, nrgConsumed_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(8, nrgPrice_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(9, txIndex_); - } - if (!contract_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, contract_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, logs_.get(i)); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(12, timestamp_); - } - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, error_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int CODE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString code_; + /** + * bytes code = 1; + */ + public com.google.protobuf.ByteString getCode() { + return code_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_TxDetail)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_TxDetail other = - (org.aion.api.server.pb.Message.t_TxDetail) obj; - - boolean result = true; - result = result && getTxHash().equals(other.getTxHash()); - result = result && getFrom().equals(other.getFrom()); - result = result && getTo().equals(other.getTo()); - result = result && getValue().equals(other.getValue()); - result = result && getData().equals(other.getData()); - result = result && getNonce().equals(other.getNonce()); - result = result && (getNrgConsumed() == other.getNrgConsumed()); - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && (getTxIndex() == other.getTxIndex()); - result = result && getContract().equals(other.getContract()); - result = result && getLogsList().equals(other.getLogsList()); - result = result && (getTimestamp() == other.getTimestamp()); - result = result && getError().equals(other.getError()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + CONTRACT_FIELD_NUMBER; - hash = (53 * hash) + getContract().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!code_.isEmpty()) { + output.writeBytes(1, code_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!code_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, code_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCode)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getCode other = (org.aion.api.server.pb.Message.rsp_getCode) obj; + + boolean result = true; + result = result && getCode() + .equals(other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getCode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCode) + org.aion.api.server.pb.Message.rsp_getCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCode.class, org.aion.api.server.pb.Message.rsp_getCode.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getCode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getCode build() { + org.aion.api.server.pb.Message.rsp_getCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getCode buildPartial() { + org.aion.api.server.pb.Message.rsp_getCode result = new org.aion.api.server.pb.Message.rsp_getCode(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getCode) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getCode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCode other) { + if (other == org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance()) return this; + if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getCode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getCode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes code = 1; + */ + public com.google.protobuf.ByteString getCode() { + return code_; + } + /** + * bytes code = 1; + */ + public Builder setCode(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + * bytes code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCode) + } - public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCode) + private static final org.aion.api.server.pb.Message.rsp_getCode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCode(); + } - public static org.aion.api.server.pb.Message.t_TxDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getCode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_TxDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + } + + public interface req_contractDeployOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_contractDeploy) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 nrgLimit = 1; + */ + long getNrgLimit(); + + /** + * uint64 nrgPrice = 2; + */ + long getNrgPrice(); + + /** + * bytes from = 3; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes data = 4; + */ + com.google.protobuf.ByteString getData(); + + /** + * bytes value = 5; + */ + com.google.protobuf.ByteString getValue(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} + */ + public static final class req_contractDeploy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_contractDeploy) + req_contractDeployOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_contractDeploy.newBuilder() to construct. + private req_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_contractDeploy() { + nrgLimit_ = 0L; + nrgPrice_ = 0L; + from_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_TxDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_contractDeploy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + nrgLimit_ = input.readUInt64(); + break; + } + case 16: { + + nrgPrice_ = input.readUInt64(); + break; + } + case 26: { + + from_ = input.readBytes(); + break; + } + case 34: { + + data_ = input.readBytes(); + break; + } + case 42: { + + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_contractDeploy.class, org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_TxDetail} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_TxDetail) - org.aion.api.server.pb.Message.t_TxDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - } + public static final int NRGLIMIT_FIELD_NUMBER = 1; + private long nrgLimit_; + /** + * uint64 nrgLimit = 1; + */ + public long getNrgLimit() { + return nrgLimit_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_TxDetail.class, - org.aion.api.server.pb.Message.t_TxDetail.Builder.class); - } + public static final int NRGPRICE_FIELD_NUMBER = 2; + private long nrgPrice_; + /** + * uint64 nrgPrice = 2; + */ + public long getNrgPrice() { + return nrgPrice_; + } - // Construct using org.aion.api.server.pb.Message.t_TxDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static final int FROM_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 3; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public static final int DATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } + public static final int VALUE_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 5; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - from_ = com.google.protobuf.ByteString.EMPTY; + memoizedIsInitialized = 1; + return true; + } - to_ = com.google.protobuf.ByteString.EMPTY; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nrgLimit_ != 0L) { + output.writeUInt64(1, nrgLimit_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(2, nrgPrice_); + } + if (!from_.isEmpty()) { + output.writeBytes(3, from_); + } + if (!data_.isEmpty()) { + output.writeBytes(4, data_); + } + if (!value_.isEmpty()) { + output.writeBytes(5, value_); + } + unknownFields.writeTo(output); + } - value_ = com.google.protobuf.ByteString.EMPTY; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nrgLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, nrgLimit_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, nrgPrice_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, from_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, data_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - data_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_contractDeploy)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_contractDeploy other = (org.aion.api.server.pb.Message.req_contractDeploy) obj; + + boolean result = true; + result = result && (getNrgLimit() + == other.getNrgLimit()); + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && getFrom() + .equals(other.getFrom()); + result = result && getData() + .equals(other.getData()); + result = result && getValue() + .equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - nonce_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgLimit()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - nrgConsumed_ = 0L; + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - nrgPrice_ = 0L; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_contractDeploy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - txIndex_ = 0; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_contractDeploy) + org.aion.api.server.pb.Message.req_contractDeployOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_contractDeploy.class, org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_contractDeploy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nrgLimit_ = 0L; + + nrgPrice_ = 0L; + + from_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + } + + public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_contractDeploy build() { + org.aion.api.server.pb.Message.req_contractDeploy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_contractDeploy buildPartial() { + org.aion.api.server.pb.Message.req_contractDeploy result = new org.aion.api.server.pb.Message.req_contractDeploy(this); + result.nrgLimit_ = nrgLimit_; + result.nrgPrice_ = nrgPrice_; + result.from_ = from_; + result.data_ = data_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_contractDeploy) { + return mergeFrom((org.aion.api.server.pb.Message.req_contractDeploy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_contractDeploy other) { + if (other == org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance()) return this; + if (other.getNrgLimit() != 0L) { + setNrgLimit(other.getNrgLimit()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_contractDeploy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_contractDeploy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nrgLimit_ ; + /** + * uint64 nrgLimit = 1; + */ + public long getNrgLimit() { + return nrgLimit_; + } + /** + * uint64 nrgLimit = 1; + */ + public Builder setNrgLimit(long value) { + + nrgLimit_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgLimit = 1; + */ + public Builder clearNrgLimit() { + + nrgLimit_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 2; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 2; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 2; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 3; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 3; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 3; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 4; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 4; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 5; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 5; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 5; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_contractDeploy) + } - contract_ = com.google.protobuf.ByteString.EMPTY; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_contractDeploy) + private static final org.aion.api.server.pb.Message.req_contractDeploy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_contractDeploy(); + } - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - } else { - logsBuilder_.clear(); - } - timestamp_ = 0L; + public static org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstance() { + return DEFAULT_INSTANCE; + } - error_ = ""; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_contractDeploy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_contractDeploy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - } + public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance(); - } + } + + public interface rsp_contractDeployOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_contractDeploy) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * bytes contractAddress = 2; + */ + com.google.protobuf.ByteString getContractAddress(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} + */ + public static final class rsp_contractDeploy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_contractDeploy) + rsp_contractDeployOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_contractDeploy.newBuilder() to construct. + private rsp_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_contractDeploy() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + } - public org.aion.api.server.pb.Message.t_TxDetail build() { - org.aion.api.server.pb.Message.t_TxDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_contractDeploy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + txHash_ = input.readBytes(); + break; + } + case 18: { + + contractAddress_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + } - public org.aion.api.server.pb.Message.t_TxDetail buildPartial() { - org.aion.api.server.pb.Message.t_TxDetail result = - new org.aion.api.server.pb.Message.t_TxDetail(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.txHash_ = txHash_; - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nonce_ = nonce_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgPrice_ = nrgPrice_; - result.txIndex_ = txIndex_; - result.contract_ = contract_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - result.timestamp_ = timestamp_; - result.error_ = error_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_contractDeploy.class, org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); + } - public Builder clone() { - return (Builder) super.clone(); - } + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public static final int CONTRACTADDRESS_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString contractAddress_; + /** + * bytes contractAddress = 2; + */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + memoizedIsInitialized = 1; + return true; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + if (!contractAddress_.isEmpty()) { + output.writeBytes(2, contractAddress_); + } + unknownFields.writeTo(output); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, txHash_); + } + if (!contractAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, contractAddress_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_TxDetail) { - return mergeFrom((org.aion.api.server.pb.Message.t_TxDetail) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_contractDeploy)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_contractDeploy other = (org.aion.api.server.pb.Message.rsp_contractDeploy) obj; + + boolean result = true; + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && getContractAddress() + .equals(other.getContractAddress()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.t_TxDetail other) { - if (other == org.aion.api.server.pb.Message.t_TxDetail.getDefaultInstance()) - return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getContract() != com.google.protobuf.ByteString.EMPTY) { - setContract(other.getContract()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000400); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogsFieldBuilder() - : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getContractAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public final boolean isInitialized() { - return true; - } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_TxDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_TxDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_contractDeploy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private int bitField0_; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_contractDeploy) + org.aion.api.server.pb.Message.rsp_contractDeployOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_contractDeploy.class, org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_contractDeploy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_contractDeploy build() { + org.aion.api.server.pb.Message.rsp_contractDeploy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_contractDeploy buildPartial() { + org.aion.api.server.pb.Message.rsp_contractDeploy result = new org.aion.api.server.pb.Message.rsp_contractDeploy(this); + result.txHash_ = txHash_; + result.contractAddress_ = contractAddress_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_contractDeploy) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_contractDeploy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_contractDeploy other) { + if (other == org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { + setContractAddress(other.getContractAddress()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_contractDeploy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_contractDeploy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 1; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 1; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes contractAddress = 2; + */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } + /** + * bytes contractAddress = 2; + */ + public Builder setContractAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddress_ = value; + onChanged(); + return this; + } + /** + * bytes contractAddress = 2; + */ + public Builder clearContractAddress() { + + contractAddress_ = getDefaultInstance().getContractAddress(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_contractDeploy) + } - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 1; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 1; */ - public Builder clearTxHash() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_contractDeploy) + private static final org.aion.api.server.pb.Message.rsp_contractDeploy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_contractDeploy(); + } - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 2; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** bytes from = 2; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** bytes from = 2; */ - public Builder clearFrom() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_contractDeploy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_contractDeploy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** bytes to = 3; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** bytes to = 3; */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** bytes to = 3; */ - public Builder clearTo() { + public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } + } + + public interface req_callOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_call) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes from = 1; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes to = 2; + */ + com.google.protobuf.ByteString getTo(); + + /** + * bytes data = 3; + */ + com.google.protobuf.ByteString getData(); + + /** + * bytes value = 4; + */ + com.google.protobuf.ByteString getValue(); + + /** + * uint64 nrg = 5; + */ + long getNrg(); + + /** + * uint64 nrgPrice = 6; + */ + long getNrgPrice(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_call} + */ + public static final class req_call extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_call) + req_callOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_call.newBuilder() to construct. + private req_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_call() { + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + nrg_ = 0L; + nrgPrice_ = 0L; + } - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** bytes value = 4; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** bytes value = 4; */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** bytes value = 4; */ - public Builder clearValue() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_call( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + from_ = input.readBytes(); + break; + } + case 18: { + + to_ = input.readBytes(); + break; + } + case 26: { + + data_ = input.readBytes(); + break; + } + case 34: { + + value_ = input.readBytes(); + break; + } + case 40: { + + nrg_ = input.readUInt64(); + break; + } + case 48: { + + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_descriptor; + } - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_call.class, org.aion.api.server.pb.Message.req_call.Builder.class); + } - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 5; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 5; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 5; */ - public Builder clearData() { + public static final int FROM_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 1; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } + public static final int TO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString to_; + /** + * bytes to = 2; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 6; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 6; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 6; */ - public Builder clearNonce() { + public static final int DATA_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 3; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } + public static final int VALUE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 4; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - private long nrgConsumed_; - /** uint64 nrgConsumed = 7; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** uint64 nrgConsumed = 7; */ - public Builder setNrgConsumed(long value) { + public static final int NRG_FIELD_NUMBER = 5; + private long nrg_; + /** + * uint64 nrg = 5; + */ + public long getNrg() { + return nrg_; + } - nrgConsumed_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsumed = 7; */ - public Builder clearNrgConsumed() { + public static final int NRGPRICE_FIELD_NUMBER = 6; + private long nrgPrice_; + /** + * uint64 nrgPrice = 6; + */ + public long getNrgPrice() { + return nrgPrice_; + } - nrgConsumed_ = 0L; - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private long nrgPrice_; - /** uint64 nrgPrice = 8; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 8; */ - public Builder setNrgPrice(long value) { + memoizedIsInitialized = 1; + return true; + } - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 8; */ - public Builder clearNrgPrice() { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!from_.isEmpty()) { + output.writeBytes(1, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(2, to_); + } + if (!data_.isEmpty()) { + output.writeBytes(3, data_); + } + if (!value_.isEmpty()) { + output.writeBytes(4, value_); + } + if (nrg_ != 0L) { + output.writeUInt64(5, nrg_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(6, nrgPrice_); + } + unknownFields.writeTo(output); + } - nrgPrice_ = 0L; - onChanged(); - return this; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, to_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, data_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, value_); + } + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, nrg_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private int txIndex_; - /** uint32 txIndex = 9; */ - public int getTxIndex() { - return txIndex_; - } - /** uint32 txIndex = 9; */ - public Builder setTxIndex(int value) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_call)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_call other = (org.aion.api.server.pb.Message.req_call) obj; + + boolean result = true; + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTo() + .equals(other.getTo()); + result = result && getData() + .equals(other.getData()); + result = result && getValue() + .equals(other.getValue()); + result = result && (getNrg() + == other.getNrg()); + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - txIndex_ = value; - onChanged(); - return this; - } - /** uint32 txIndex = 9; */ - public Builder clearTxIndex() { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrg()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - txIndex_ = 0; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.req_call parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_call parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_call parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_call parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_call parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_call parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_call parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private com.google.protobuf.ByteString contract_ = com.google.protobuf.ByteString.EMPTY; - /** bytes contract = 10; */ - public com.google.protobuf.ByteString getContract() { - return contract_; - } - /** bytes contract = 10; */ - public Builder setContract(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contract_ = value; - onChanged(); - return this; - } - /** bytes contract = 10; */ - public Builder clearContract() { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_call prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - contract_ = getDefaultInstance().getContract(); - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_call} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_call) + org.aion.api.server.pb.Message.req_callOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_call.class, org.aion.api.server.pb.Message.req_call.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_call.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + nrg_ = 0L; + + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_call_descriptor; + } + + public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_call.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_call build() { + org.aion.api.server.pb.Message.req_call result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_call buildPartial() { + org.aion.api.server.pb.Message.req_call result = new org.aion.api.server.pb.Message.req_call(this); + result.from_ = from_; + result.to_ = to_; + result.data_ = data_; + result.value_ = value_; + result.nrg_ = nrg_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_call) { + return mergeFrom((org.aion.api.server.pb.Message.req_call)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_call other) { + if (other == org.aion.api.server.pb.Message.req_call.getDefaultInstance()) return this; + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_call parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_call) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 1; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 1; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 1; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes to = 2; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** + * bytes to = 2; + */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * bytes to = 2; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 3; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 3; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 3; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 4; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 4; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 4; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private long nrg_ ; + /** + * uint64 nrg = 5; + */ + public long getNrg() { + return nrg_; + } + /** + * uint64 nrg = 5; + */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** + * uint64 nrg = 5; + */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 6; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 6; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 6; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_call) + } - private java.util.List logs_ = - java.util.Collections.emptyList(); + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_call) + private static final org.aion.api.server.pb.Message.req_call DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_call(); + } - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000400) == 0x00000400)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000400; - } - } + public static org.aion.api.server.pb.Message.req_call getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, - org.aion.api.server.pb.Message.t_LgEle.Builder, - org.aion.api.server.pb.Message.t_LgEleOrBuilder> - logsBuilder_; - - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder setLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder setLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder addLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder addLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder(int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { - return getLogsFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder(int index) { - return getLogsFieldBuilder() - .addBuilder( - index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 11; */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_call parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_call(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, - org.aion.api.server.pb.Message.t_LgEle.Builder, - org.aion.api.server.pb.Message.t_LgEleOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, - org.aion.api.server.pb.Message.t_LgEle.Builder, - org.aion.api.server.pb.Message.t_LgEleOrBuilder>( - logs_, - ((bitField0_ & 0x00000400) == 0x00000400), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private long timestamp_; - /** uint64 timestamp = 12; */ - public long getTimestamp() { - return timestamp_; - } - /** uint64 timestamp = 12; */ - public Builder setTimestamp(long value) { + public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - timestamp_ = value; - onChanged(); - return this; - } - /** uint64 timestamp = 12; */ - public Builder clearTimestamp() { + } + + public interface rsp_callOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_call) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes result = 1; + */ + com.google.protobuf.ByteString getResult(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_call} + */ + public static final class rsp_call extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_call) + rsp_callOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_call.newBuilder() to construct. + private rsp_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_call() { + result_ = com.google.protobuf.ByteString.EMPTY; + } - timestamp_ = 0L; - onChanged(); - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_call( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + result_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_descriptor; + } - private java.lang.Object error_ = ""; - /** string error = 13; */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string error = 13; */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string error = 13; */ - public Builder setError(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** string error = 13; */ - public Builder clearError() { + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_call.class, org.aion.api.server.pb.Message.rsp_call.Builder.class); + } - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** string error = 13; */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } + public static final int RESULT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString result_; + /** + * bytes result = 1; + */ + public com.google.protobuf.ByteString getResult() { + return result_; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + memoizedIsInitialized = 1; + return true; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_TxDetail) - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!result_.isEmpty()) { + output.writeBytes(1, result_); + } + unknownFields.writeTo(output); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_TxDetail) - private static final org.aion.api.server.pb.Message.t_TxDetail DEFAULT_INSTANCE; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!result_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, result_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_TxDetail(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_call)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_call other = (org.aion.api.server.pb.Message.rsp_call) obj; + + boolean result = true; + result = result && getResult() + .equals(other.getResult()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.t_TxDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_TxDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_TxDetail(input, extensionRegistry); - } - }; + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_call parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_call prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_call} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_call) + org.aion.api.server.pb.Message.rsp_callOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_call.class, org.aion.api.server.pb.Message.rsp_call.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_call.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + result_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_call_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_call.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_call build() { + org.aion.api.server.pb.Message.rsp_call result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_call buildPartial() { + org.aion.api.server.pb.Message.rsp_call result = new org.aion.api.server.pb.Message.rsp_call(this); + result.result_ = result_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_call) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_call)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_call other) { + if (other == org.aion.api.server.pb.Message.rsp_call.getDefaultInstance()) return this; + if (other.getResult() != com.google.protobuf.ByteString.EMPTY) { + setResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_call parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_call) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes result = 1; + */ + public com.google.protobuf.ByteString getResult() { + return result_; + } + /** + * bytes result = 1; + */ + public Builder setResult(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value; + onChanged(); + return this; + } + /** + * bytes result = 1; + */ + public Builder clearResult() { + + result_ = getDefaultInstance().getResult(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_call) + } - public org.aion.api.server.pb.Message.t_TxDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_call) + private static final org.aion.api.server.pb.Message.rsp_call DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_call(); } - public interface t_AccountDetailOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_AccountDetail) - com.google.protobuf.MessageOrBuilder { + public static org.aion.api.server.pb.Message.rsp_call getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_call parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_call(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** bytes balance = 2; */ - com.google.protobuf.ByteString getBalance(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} */ - public static final class t_AccountDetail extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_AccountDetail) - t_AccountDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_AccountDetail.newBuilder() to construct. - private t_AccountDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_AccountDetail() { - address_ = com.google.protobuf.ByteString.EMPTY; - balance_ = com.google.protobuf.ByteString.EMPTY; - } + public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + } + + public interface req_getBlockByHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes blockHash = 1; + */ + com.google.protobuf.ByteString getBlockHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} + */ + public static final class req_getBlockByHash extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByHash) + req_getBlockByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockByHash.newBuilder() to construct. + private req_getBlockByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockByHash() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + } - private t_AccountDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 18: - { - balance_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + blockHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByHash.class, org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AccountDetail.class, - org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); - } + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int BALANCE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString balance_; - /** bytes balance = 2; */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } + memoizedIsInitialized = 1; + return true; + } - private byte memoizedIsInitialized = -1; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + unknownFields.writeTo(output); + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, blockHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockByHash other = (org.aion.api.server.pb.Message.req_getBlockByHash) obj; + + boolean result = true; + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!balance_.isEmpty()) { - output.writeBytes(2, balance_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (!balance_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, balance_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_AccountDetail)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_AccountDetail other = - (org.aion.api.server.pb.Message.t_AccountDetail) obj; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByHash) + org.aion.api.server.pb.Message.req_getBlockByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockByHash.class, org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockByHash build() { + org.aion.api.server.pb.Message.req_getBlockByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockByHash buildPartial() { + org.aion.api.server.pb.Message.req_getBlockByHash result = new org.aion.api.server.pb.Message.req_getBlockByHash(this); + result.blockHash_ = blockHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockByHash) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByHash)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByHash other) { + if (other == org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockByHash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** + * bytes blockHash = 1; + */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * bytes blockHash = 1; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByHash) + } - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && getBalance().equals(other.getBalance()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByHash) + private static final org.aion.api.server.pb.Message.req_getBlockByHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByHash(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + } + + public interface req_getBlockHeaderByHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes blockHash = 1; + */ + com.google.protobuf.ByteString getBlockHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} + */ + public static final class req_getBlockHeaderByHash extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) + req_getBlockHeaderByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockHeaderByHash.newBuilder() to construct. + private req_getBlockHeaderByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockHeaderByHash() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockHeaderByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + blockHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, org.aion.api.server.pb.Message.req_getBlockHeaderByHash.Builder.class); + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, blockHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.t_AccountDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockHeaderByHash other = (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) obj; + + boolean result = true; + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_AccountDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockHeaderByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) + org.aion.api.server.pb.Message.req_getBlockHeaderByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, org.aion.api.server.pb.Message.req_getBlockHeaderByHash.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockHeaderByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockHeaderByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash build() { + org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash buildPartial() { + org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(this); + result.blockHash_ = blockHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockHeaderByHash)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockHeaderByHash other) { + if (other == org.aion.api.server.pb.Message.req_getBlockHeaderByHash.getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockHeaderByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** + * bytes blockHash = 1; + */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * bytes blockHash = 1; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_AccountDetail} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_AccountDetail) - org.aion.api.server.pb.Message.t_AccountDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) + private static final org.aion.api.server.pb.Message.req_getBlockHeaderByHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_AccountDetail.class, - org.aion.api.server.pb.Message.t_AccountDetail.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // Construct using org.aion.api.server.pb.Message.t_AccountDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockHeaderByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockHeaderByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; + } + + public interface req_getTransactionCountOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCount) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * uint64 blocknumber = 2; + */ + long getBlocknumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} + */ + public static final class req_getTransactionCount extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCount) + req_getTransactionCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionCount.newBuilder() to construct. + private req_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getTransactionCount() { + address_ = com.google.protobuf.ByteString.EMPTY; + blocknumber_ = 0L; + } - balance_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getTransactionCount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + case 16: { + + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + } - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCount.class, org.aion.api.server.pb.Message.req_getTransactionCount.Builder.class); + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance(); - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blocknumber_; + /** + * uint64 blocknumber = 2; + */ + public long getBlocknumber() { + return blocknumber_; + } - public org.aion.api.server.pb.Message.t_AccountDetail build() { - org.aion.api.server.pb.Message.t_AccountDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public org.aion.api.server.pb.Message.t_AccountDetail buildPartial() { - org.aion.api.server.pb.Message.t_AccountDetail result = - new org.aion.api.server.pb.Message.t_AccountDetail(this); - result.address_ = address_; - result.balance_ = balance_; - onBuilt(); - return result; - } + memoizedIsInitialized = 1; + return true; + } - public Builder clone() { - return (Builder) super.clone(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(2, blocknumber_); + } + unknownFields.writeTo(output); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionCount other = (org.aion.api.server.pb.Message.req_getTransactionCount) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && (getBlocknumber() + == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_AccountDetail) { - return mergeFrom((org.aion.api.server.pb.Message.t_AccountDetail) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCount) + org.aion.api.server.pb.Message.req_getTransactionCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCount.class, org.aion.api.server.pb.Message.req_getTransactionCount.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionCount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionCount.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionCount build() { + org.aion.api.server.pb.Message.req_getTransactionCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionCount buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionCount result = new org.aion.api.server.pb.Message.req_getTransactionCount(this); + result.address_ = address_; + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCount) { + return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionCount)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCount other) { + if (other == org.aion.api.server.pb.Message.req_getTransactionCount.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionCount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionCount) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private long blocknumber_ ; + /** + * uint64 blocknumber = 2; + */ + public long getBlocknumber() { + return blocknumber_; + } + /** + * uint64 blocknumber = 2; + */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blocknumber = 2; + */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCount) + } - public Builder mergeFrom(org.aion.api.server.pb.Message.t_AccountDetail other) { - if (other == org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()) - return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { - setBalance(other.getBalance()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCount) + private static final org.aion.api.server.pb.Message.req_getTransactionCount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCount(); + } - public final boolean isInitialized() { - return true; - } + public static org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_AccountDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_AccountDetail) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getTransactionCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionCount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } + public org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; - /** bytes balance = 2; */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } - /** bytes balance = 2; */ - public Builder setBalance(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - balance_ = value; - onChanged(); - return this; - } - /** bytes balance = 2; */ - public Builder clearBalance() { + } + + public interface rsp_getTransactionCountOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionCount) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 txCount = 1; + */ + long getTxCount(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} + */ + public static final class rsp_getTransactionCount extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionCount) + rsp_getTransactionCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getTransactionCount.newBuilder() to construct. + private rsp_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getTransactionCount() { + txCount_ = 0L; + } - balance_ = getDefaultInstance().getBalance(); - onChanged(); - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getTransactionCount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + txCount_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionCount.class, org.aion.api.server.pb.Message.rsp_getTransactionCount.Builder.class); + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static final int TXCOUNT_FIELD_NUMBER = 1; + private long txCount_; + /** + * uint64 txCount = 1; + */ + public long getTxCount() { + return txCount_; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_AccountDetail) - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_AccountDetail) - private static final org.aion.api.server.pb.Message.t_AccountDetail DEFAULT_INSTANCE; + memoizedIsInitialized = 1; + return true; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_AccountDetail(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txCount_ != 0L) { + output.writeUInt64(1, txCount_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, txCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_AccountDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_AccountDetail(input, extensionRegistry); - } - }; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getTransactionCount other = (org.aion.api.server.pb.Message.rsp_getTransactionCount) obj; + + boolean result = true; + result = result && (getTxCount() + == other.getTxCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTxCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.t_AccountDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getTransactionCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public interface t_BlockOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Block) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionCount) + org.aion.api.server.pb.Message.rsp_getTransactionCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionCount.class, org.aion.api.server.pb.Message.rsp_getTransactionCount.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getTransactionCount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txCount_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getTransactionCount.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getTransactionCount build() { + org.aion.api.server.pb.Message.rsp_getTransactionCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionCount buildPartial() { + org.aion.api.server.pb.Message.rsp_getTransactionCount result = new org.aion.api.server.pb.Message.rsp_getTransactionCount(this); + result.txCount_ = txCount_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransactionCount)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionCount other) { + if (other == org.aion.api.server.pb.Message.rsp_getTransactionCount.getDefaultInstance()) return this; + if (other.getTxCount() != 0L) { + setTxCount(other.getTxCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getTransactionCount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getTransactionCount) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long txCount_ ; + /** + * uint64 txCount = 1; + */ + public long getTxCount() { + return txCount_; + } + /** + * uint64 txCount = 1; + */ + public Builder setTxCount(long value) { + + txCount_ = value; + onChanged(); + return this; + } + /** + * uint64 txCount = 1; + */ + public Builder clearTxCount() { + + txCount_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionCount) + } - /** uint64 blockNumber = 1; */ - long getBlockNumber(); + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionCount) + private static final org.aion.api.server.pb.Message.rsp_getTransactionCount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionCount(); + } - /** uint64 timestamp = 2; */ - long getTimestamp(); + public static org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** uint64 nrgConsumed = 3; */ - long getNrgConsumed(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getTransactionCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getTransactionCount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** uint64 nrgLimit = 4; */ - long getNrgLimit(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** bytes parentHash = 5; */ - com.google.protobuf.ByteString getParentHash(); + public org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** bytes minerAddress = 6; */ - com.google.protobuf.ByteString getMinerAddress(); + } + + public interface req_getTransactionCountByHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCountByHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + */ + com.google.protobuf.ByteString getTxHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} + */ + public static final class req_getTransactionCountByHash extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCountByHash) + req_getTransactionCountByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionCountByHash.newBuilder() to construct. + private req_getTransactionCountByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getTransactionCountByHash() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } - /** bytes stateRoot = 7; */ - com.google.protobuf.ByteString getStateRoot(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getTransactionCountByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + } - /** bytes txTrieRoot = 8; */ - com.google.protobuf.ByteString getTxTrieRoot(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getTransactionCountByHash.Builder.class); + } - /** bytes receiptTrieRoot = 9; */ - com.google.protobuf.ByteString getReceiptTrieRoot(); + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - /** bytes logsBloom = 10; */ - com.google.protobuf.ByteString getLogsBloom(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** bytes difficulty = 11; */ - com.google.protobuf.ByteString getDifficulty(); + memoizedIsInitialized = 1; + return true; + } - /** bytes totalDifficulty = 12; */ - com.google.protobuf.ByteString getTotalDifficulty(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } - /** bytes extraData = 13; */ - com.google.protobuf.ByteString getExtraData(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** bytes nonce = 14; */ - com.google.protobuf.ByteString getNonce(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionCountByHash other = (org.aion.api.server.pb.Message.req_getTransactionCountByHash) obj; + + boolean result = true; + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - /** bytes solution = 15; */ - com.google.protobuf.ByteString getSolution(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - /** bytes hash = 16; */ - com.google.protobuf.ByteString getHash(); + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - /** uint32 size = 17; */ - int getSize(); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionCountByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - /** repeated bytes txHash = 18; */ - java.util.List getTxHashList(); - /** repeated bytes txHash = 18; */ - int getTxHashCount(); - /** repeated bytes txHash = 18; */ - com.google.protobuf.ByteString getTxHash(int index); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCountByHash) + org.aion.api.server.pb.Message.req_getTransactionCountByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getTransactionCountByHash.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionCountByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionCountByHash getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionCountByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionCountByHash build() { + org.aion.api.server.pb.Message.req_getTransactionCountByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionCountByHash buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionCountByHash result = new org.aion.api.server.pb.Message.req_getTransactionCountByHash(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash) { + return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionCountByHash)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCountByHash other) { + if (other == org.aion.api.server.pb.Message.req_getTransactionCountByHash.getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionCountByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionCountByHash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 1; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 1; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCountByHash) } - /** Protobuf type {@code org.aion.api.server.pb.t_Block} */ - public static final class t_Block extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Block) - t_BlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Block.newBuilder() to construct. - private t_Block(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_Block() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - txHash_ = java.util.Collections.emptyList(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCountByHash) + private static final org.aion.api.server.pb.Message.req_getTransactionCountByHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCountByHash(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private t_Block( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - case 16: - { - timestamp_ = input.readUInt64(); - break; - } - case 24: - { - nrgConsumed_ = input.readUInt64(); - break; - } - case 32: - { - nrgLimit_ = input.readUInt64(); - break; - } - case 42: - { - parentHash_ = input.readBytes(); - break; - } - case 50: - { - minerAddress_ = input.readBytes(); - break; - } - case 58: - { - stateRoot_ = input.readBytes(); - break; - } - case 66: - { - txTrieRoot_ = input.readBytes(); - break; - } - case 74: - { - receiptTrieRoot_ = input.readBytes(); - break; - } - case 82: - { - logsBloom_ = input.readBytes(); - break; - } - case 90: - { - difficulty_ = input.readBytes(); - break; - } - case 98: - { - totalDifficulty_ = input.readBytes(); - break; - } - case 106: - { - extraData_ = input.readBytes(); - break; - } - case 114: - { - nonce_ = input.readBytes(); - break; - } - case 122: - { - solution_ = input.readBytes(); - break; - } - case 130: - { - hash_ = input.readBytes(); - break; - } - case 136: - { - size_ = input.readUInt32(); - break; - } - case 146: - { - if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00020000; - } - txHash_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static org.aion.api.server.pb.Message.req_getTransactionCountByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Block_descriptor; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getTransactionCountByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionCountByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Block.class, - org.aion.api.server.pb.Message.t_Block.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } + public org.aion.api.server.pb.Message.req_getTransactionCountByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } + } + + public interface rsp_blockNumberOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_blockNumber) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blocknumber = 1; + */ + long getBlocknumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} + */ + public static final class rsp_blockNumber extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_blockNumber) + rsp_blockNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_blockNumber.newBuilder() to construct. + private rsp_blockNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_blockNumber() { + blocknumber_ = 0L; + } - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_blockNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + } - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_blockNumber.class, org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); + } - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blocknumber_; + /** + * uint64 blocknumber = 1; + */ + public long getBlocknumber() { + return blocknumber_; + } - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blocknumber_ != 0L) { + output.writeUInt64(1, blocknumber_); + } + unknownFields.writeTo(output); + } - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_blockNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_blockNumber other = (org.aion.api.server.pb.Message.rsp_blockNumber) obj; + + boolean result = true; + result = result && (getBlocknumber() + == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString totalDifficulty_; - /** bytes totalDifficulty = 12; */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int EXTRADATA_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString extraData_; - /** bytes extraData = 13; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_blockNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int NONCE_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 14; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_blockNumber) + org.aion.api.server.pb.Message.rsp_blockNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_blockNumber.class, org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_blockNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_blockNumber build() { + org.aion.api.server.pb.Message.rsp_blockNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_blockNumber buildPartial() { + org.aion.api.server.pb.Message.rsp_blockNumber result = new org.aion.api.server.pb.Message.rsp_blockNumber(this); + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_blockNumber) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_blockNumber)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_blockNumber other) { + if (other == org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance()) return this; + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_blockNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_blockNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blocknumber_ ; + /** + * uint64 blocknumber = 1; + */ + public long getBlocknumber() { + return blocknumber_; + } + /** + * uint64 blocknumber = 1; + */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blocknumber = 1; + */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_blockNumber) + } - public static final int SOLUTION_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString solution_; - /** bytes solution = 15; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_blockNumber) + private static final org.aion.api.server.pb.Message.rsp_blockNumber DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_blockNumber(); + } - public static final int HASH_FIELD_NUMBER = 16; - private com.google.protobuf.ByteString hash_; - /** bytes hash = 16; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } + public static org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int SIZE_FIELD_NUMBER = 17; - private int size_; - /** uint32 size = 17; */ - public int getSize() { - return size_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_blockNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_blockNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int TXHASH_FIELD_NUMBER = 18; - private java.util.List txHash_; - /** repeated bytes txHash = 18; */ - public java.util.List getTxHashList() { - return txHash_; - } - /** repeated bytes txHash = 18; */ - public int getTxHashCount() { - return txHash_.size(); - } - /** repeated bytes txHash = 18; */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private byte memoizedIsInitialized = -1; + public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + } + + public interface req_getBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBalance) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * uint64 blockNumber = 2; + */ + long getBlockNumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBalance} + */ + public static final class req_getBalance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBalance) + req_getBalanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBalance.newBuilder() to construct. + private req_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBalance() { + address_ = com.google.protobuf.ByteString.EMPTY; + blockNumber_ = 0L; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBalance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + case 16: { + + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - output.writeBytes(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(13, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(14, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(15, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(16, hash_); - } - if (size_ != 0) { - output.writeUInt32(17, size_); - } - for (int i = 0; i < txHash_.size(); i++) { - output.writeBytes(18, txHash_.get(i)); - } - unknownFields.writeTo(output); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBalance.class, org.aion.api.server.pb.Message.req_getBalance.Builder.class); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(16, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(17, size_); - } - { - int dataSize = 0; - for (int i = 0; i < txHash_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - txHash_.get(i)); - } - size += dataSize; - size += 2 * getTxHashList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blockNumber_; + /** + * uint64 blockNumber = 2; + */ + public long getBlockNumber() { + return blockNumber_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Block)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_Block other = - (org.aion.api.server.pb.Message.t_Block) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && (getTimestamp() == other.getTimestamp()); - result = result && (getNrgConsumed() == other.getNrgConsumed()); - result = result && (getNrgLimit() == other.getNrgLimit()); - result = result && getParentHash().equals(other.getParentHash()); - result = result && getMinerAddress().equals(other.getMinerAddress()); - result = result && getStateRoot().equals(other.getStateRoot()); - result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom().equals(other.getLogsBloom()); - result = result && getDifficulty().equals(other.getDifficulty()); - result = result && getTotalDifficulty().equals(other.getTotalDifficulty()); - result = result && getExtraData().equals(other.getExtraData()); - result = result && getNonce().equals(other.getNonce()); - result = result && getSolution().equals(other.getSolution()); - result = result && getHash().equals(other.getHash()); - result = result && (getSize() == other.getSize()); - result = result && getTxHashList().equals(other.getTxHashList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getTotalDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - if (getTxHashCount() > 0) { - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHashList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.t_Block parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (blockNumber_ != 0L) { + output.writeUInt64(2, blockNumber_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBalance)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBalance other = (org.aion.api.server.pb.Message.req_getBalance) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.t_Block parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBalance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.t_Block parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBalance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBalance) + org.aion.api.server.pb.Message.req_getBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBalance.class, org.aion.api.server.pb.Message.req_getBalance.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBalance build() { + org.aion.api.server.pb.Message.req_getBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBalance buildPartial() { + org.aion.api.server.pb.Message.req_getBalance result = new org.aion.api.server.pb.Message.req_getBalance(this); + result.address_ = address_; + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBalance) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBalance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBalance other) { + if (other == org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBalance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 2; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 2; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 2; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBalance) + } - public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBalance) + private static final org.aion.api.server.pb.Message.req_getBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBalance(); + } - public static org.aion.api.server.pb.Message.t_Block parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBalance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.t_Block parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + } + + public interface rsp_getBalanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBalance) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes balance = 1; + */ + com.google.protobuf.ByteString getBalance(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} + */ + public static final class rsp_getBalance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBalance) + rsp_getBalanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBalance.newBuilder() to construct. + private rsp_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBalance() { + balance_ = com.google.protobuf.ByteString.EMPTY; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Block prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBalance( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + balance_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBalance.class, org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_Block} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Block) - org.aion.api.server.pb.Message.t_BlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Block_descriptor; - } + public static final int BALANCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString balance_; + /** + * bytes balance = 1; + */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Block.class, - org.aion.api.server.pb.Message.t_Block.Builder.class); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // Construct using org.aion.api.server.pb.Message.t_Block.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + memoizedIsInitialized = 1; + return true; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!balance_.isEmpty()) { + output.writeBytes(1, balance_); + } + unknownFields.writeTo(output); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!balance_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, balance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBalance)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBalance other = (org.aion.api.server.pb.Message.rsp_getBalance) obj; + + boolean result = true; + result = result && getBalance() + .equals(other.getBalance()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - timestamp_ = 0L; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BALANCE_FIELD_NUMBER; + hash = (53 * hash) + getBalance().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - nrgConsumed_ = 0L; + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - nrgLimit_ = 0L; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBalance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - parentHash_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBalance) + org.aion.api.server.pb.Message.rsp_getBalanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBalance.class, org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBalance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + balance_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBalance build() { + org.aion.api.server.pb.Message.rsp_getBalance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBalance buildPartial() { + org.aion.api.server.pb.Message.rsp_getBalance result = new org.aion.api.server.pb.Message.rsp_getBalance(this); + result.balance_ = balance_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBalance) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBalance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBalance other) { + if (other == org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance()) return this; + if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { + setBalance(other.getBalance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBalance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBalance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes balance = 1; + */ + public com.google.protobuf.ByteString getBalance() { + return balance_; + } + /** + * bytes balance = 1; + */ + public Builder setBalance(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + balance_ = value; + onChanged(); + return this; + } + /** + * bytes balance = 1; + */ + public Builder clearBalance() { + + balance_ = getDefaultInstance().getBalance(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBalance) + } - minerAddress_ = com.google.protobuf.ByteString.EMPTY; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBalance) + private static final org.aion.api.server.pb.Message.rsp_getBalance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBalance(); + } - stateRoot_ = com.google.protobuf.ByteString.EMPTY; + public static org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstance() { + return DEFAULT_INSTANCE; + } - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBalance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBalance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - logsBloom_ = com.google.protobuf.ByteString.EMPTY; + public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - difficulty_ = com.google.protobuf.ByteString.EMPTY; + } + + public interface req_getStorageAtOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getStorageAt) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * string key = 2; + */ + java.lang.String getKey(); + /** + * string key = 2; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * uint64 blocknumber = 3; + */ + long getBlocknumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} + */ + public static final class req_getStorageAt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getStorageAt) + req_getStorageAtOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getStorageAt.newBuilder() to construct. + private req_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getStorageAt() { + address_ = com.google.protobuf.ByteString.EMPTY; + key_ = ""; + blocknumber_ = 0L; + } - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getStorageAt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 24: { + + blocknumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + } - extraData_ = com.google.protobuf.ByteString.EMPTY; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getStorageAt.class, org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); + } - nonce_ = com.google.protobuf.ByteString.EMPTY; + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - solution_ = com.google.protobuf.ByteString.EMPTY; + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * string key = 2; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * string key = 2; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - hash_ = com.google.protobuf.ByteString.EMPTY; + public static final int BLOCKNUMBER_FIELD_NUMBER = 3; + private long blocknumber_; + /** + * uint64 blocknumber = 3; + */ + public long getBlocknumber() { + return blocknumber_; + } - size_ = 0; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - return this; - } + memoizedIsInitialized = 1; + return true; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Block_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + if (blocknumber_ != 0L) { + output.writeUInt64(3, blocknumber_); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Block.getDefaultInstance(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + if (blocknumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, blocknumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public org.aion.api.server.pb.Message.t_Block build() { - org.aion.api.server.pb.Message.t_Block result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getStorageAt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getStorageAt other = (org.aion.api.server.pb.Message.req_getStorageAt) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && getKey() + .equals(other.getKey()); + result = result && (getBlocknumber() + == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.t_Block buildPartial() { - org.aion.api.server.pb.Message.t_Block result = - new org.aion.api.server.pb.Message.t_Block(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.totalDifficulty_ = totalDifficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - if (((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.txHash_ = txHash_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlocknumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder clone() { - return (Builder) super.clone(); - } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getStorageAt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getStorageAt) + org.aion.api.server.pb.Message.req_getStorageAtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getStorageAt.class, org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getStorageAt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + key_ = ""; + + blocknumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + } + + public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getStorageAt build() { + org.aion.api.server.pb.Message.req_getStorageAt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getStorageAt buildPartial() { + org.aion.api.server.pb.Message.req_getStorageAt result = new org.aion.api.server.pb.Message.req_getStorageAt(this); + result.address_ = address_; + result.key_ = key_; + result.blocknumber_ = blocknumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getStorageAt) { + return mergeFrom((org.aion.api.server.pb.Message.req_getStorageAt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getStorageAt other) { + if (other == org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getBlocknumber() != 0L) { + setBlocknumber(other.getBlocknumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getStorageAt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getStorageAt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 2; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 2; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 2; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 2; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 2; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private long blocknumber_ ; + /** + * uint64 blocknumber = 3; + */ + public long getBlocknumber() { + return blocknumber_; + } + /** + * uint64 blocknumber = 3; + */ + public Builder setBlocknumber(long value) { + + blocknumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blocknumber = 3; + */ + public Builder clearBlocknumber() { + + blocknumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getStorageAt) + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getStorageAt) + private static final org.aion.api.server.pb.Message.req_getStorageAt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getStorageAt(); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public static org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getStorageAt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getStorageAt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Block) { - return mergeFrom((org.aion.api.server.pb.Message.t_Block) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Block other) { - if (other == org.aion.api.server.pb.Message.t_Block.getDefaultInstance()) - return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setTotalDifficulty(other.getTotalDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (!other.txHash_.isEmpty()) { - if (txHash_.isEmpty()) { - txHash_ = other.txHash_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureTxHashIsMutable(); - txHash_.addAll(other.txHash_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public final boolean isInitialized() { - return true; - } + } + + public interface rsp_getStorageAtOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStorageAt) + com.google.protobuf.MessageOrBuilder { + + /** + * string storage = 1; + */ + java.lang.String getStorage(); + /** + * string storage = 1; + */ + com.google.protobuf.ByteString + getStorageBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} + */ + public static final class rsp_getStorageAt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStorageAt) + rsp_getStorageAtOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getStorageAt.newBuilder() to construct. + private rsp_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getStorageAt() { + storage_ = ""; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Block parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_Block) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getStorageAt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + storage_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + } - private int bitField0_; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStorageAt.class, org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); + } - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { + public static final int STORAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object storage_; + /** + * string storage = 1; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } + } + /** + * string storage = 1; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - blockNumber_ = 0L; - onChanged(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } - /** uint64 timestamp = 2; */ - public Builder setTimestamp(long value) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getStorageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storage_); + } + unknownFields.writeTo(output); + } - timestamp_ = value; - onChanged(); - return this; - } - /** uint64 timestamp = 2; */ - public Builder clearTimestamp() { + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStorageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storage_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - timestamp_ = 0L; - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStorageAt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getStorageAt other = (org.aion.api.server.pb.Message.rsp_getStorageAt) obj; + + boolean result = true; + result = result && getStorage() + .equals(other.getStorage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** uint64 nrgConsumed = 3; */ - public Builder setNrgConsumed(long value) { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getStorage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - nrgConsumed_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsumed = 3; */ - public Builder clearNrgConsumed() { + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - nrgConsumed_ = 0L; - onChanged(); - return this; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getStorageAt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } - /** uint64 nrgLimit = 4; */ - public Builder setNrgLimit(long value) { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStorageAt) + org.aion.api.server.pb.Message.rsp_getStorageAtOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStorageAt.class, org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getStorageAt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + storage_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getStorageAt build() { + org.aion.api.server.pb.Message.rsp_getStorageAt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getStorageAt buildPartial() { + org.aion.api.server.pb.Message.rsp_getStorageAt result = new org.aion.api.server.pb.Message.rsp_getStorageAt(this); + result.storage_ = storage_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getStorageAt) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getStorageAt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStorageAt other) { + if (other == org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance()) return this; + if (!other.getStorage().isEmpty()) { + storage_ = other.storage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getStorageAt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getStorageAt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object storage_ = ""; + /** + * string storage = 1; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string storage = 1; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string storage = 1; + */ + public Builder setStorage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storage_ = value; + onChanged(); + return this; + } + /** + * string storage = 1; + */ + public Builder clearStorage() { + + storage_ = getDefaultInstance().getStorage(); + onChanged(); + return this; + } + /** + * string storage = 1; + */ + public Builder setStorageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storage_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStorageAt) + } - nrgLimit_ = value; - onChanged(); - return this; - } - /** uint64 nrgLimit = 4; */ - public Builder clearNrgLimit() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStorageAt) + private static final org.aion.api.server.pb.Message.rsp_getStorageAt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStorageAt(); + } - nrgLimit_ = 0L; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private com.google.protobuf.ByteString parentHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** bytes parentHash = 5; */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** bytes parentHash = 5; */ - public Builder clearParentHash() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getStorageAt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getStorageAt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private com.google.protobuf.ByteString minerAddress_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** bytes minerAddress = 6; */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** bytes minerAddress = 6; */ - public Builder clearMinerAddress() { + public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } + } + + public interface req_getBlockTransactionCountByHashOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes blockHash = 1; + */ + com.google.protobuf.ByteString getBlockHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} + */ + public static final class req_getBlockTransactionCountByHash extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + req_getBlockTransactionCountByHashOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockTransactionCountByHash.newBuilder() to construct. + private req_getBlockTransactionCountByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockTransactionCountByHash() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + } - private com.google.protobuf.ByteString stateRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** bytes stateRoot = 7; */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** bytes stateRoot = 7; */ - public Builder clearStateRoot() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockTransactionCountByHash( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + blockHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + } - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.Builder.class); + } - private com.google.protobuf.ByteString txTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** bytes txTrieRoot = 8; */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes txTrieRoot = 8; */ - public Builder clearTxTrieRoot() { + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private com.google.protobuf.ByteString receiptTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** bytes receiptTrieRoot = 9; */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes receiptTrieRoot = 9; */ - public Builder clearReceiptTrieRoot() { + memoizedIsInitialized = 1; + return true; + } - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + unknownFields.writeTo(output); + } - private com.google.protobuf.ByteString logsBloom_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** bytes logsBloom = 10; */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** bytes logsBloom = 10; */ - public Builder clearLogsBloom() { + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, blockHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) obj; + + boolean result = true; + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private com.google.protobuf.ByteString difficulty_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** bytes difficulty = 11; */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** bytes difficulty = 11; */ - public Builder clearDifficulty() { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private com.google.protobuf.ByteString totalDifficulty_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes totalDifficulty = 12; */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } - /** bytes totalDifficulty = 12; */ - public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDifficulty_ = value; - onChanged(); - return this; - } - /** bytes totalDifficulty = 12; */ - public Builder clearTotalDifficulty() { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash build() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash buildPartial() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(this); + result.blockHash_ = blockHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other) { + if (other == org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** + * bytes blockHash = 1; + */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * bytes blockHash = 1; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + } - private com.google.protobuf.ByteString extraData_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes extraData = 13; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** bytes extraData = 13; */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** bytes extraData = 13; */ - public Builder clearExtraData() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) + private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(); + } - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 14; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 14; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 14; */ - public Builder clearNonce() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockTransactionCountByHash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockTransactionCountByHash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** bytes solution = 15; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** bytes solution = 15; */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** bytes solution = 15; */ - public Builder clearSolution() { + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } + } + + public interface rsp_getBlockTransactionCountOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockTransactionCount) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 txCount = 1; + */ + int getTxCount(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} + */ + public static final class rsp_getBlockTransactionCount extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) + rsp_getBlockTransactionCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockTransactionCount.newBuilder() to construct. + private rsp_getBlockTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlockTransactionCount() { + txCount_ = 0; + } - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes hash = 16; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** bytes hash = 16; */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** bytes hash = 16; */ - public Builder clearHash() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlockTransactionCount( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + txCount_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + } - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.Builder.class); + } - private int size_; - /** uint32 size = 17; */ - public int getSize() { - return size_; - } - /** uint32 size = 17; */ - public Builder setSize(int value) { + public static final int TXCOUNT_FIELD_NUMBER = 1; + private int txCount_; + /** + * uint32 txCount = 1; + */ + public int getTxCount() { + return txCount_; + } - size_ = value; - onChanged(); - return this; - } - /** uint32 size = 17; */ - public Builder clearSize() { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - size_ = 0; - onChanged(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - private java.util.List txHash_ = - java.util.Collections.emptyList(); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txCount_ != 0) { + output.writeUInt32(1, txCount_); + } + unknownFields.writeTo(output); + } - private void ensureTxHashIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = new java.util.ArrayList(txHash_); - bitField0_ |= 0x00020000; - } - } - /** repeated bytes txHash = 18; */ - public java.util.List getTxHashList() { - return java.util.Collections.unmodifiableList(txHash_); - } - /** repeated bytes txHash = 18; */ - public int getTxHashCount() { - return txHash_.size(); - } - /** repeated bytes txHash = 18; */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); - } - /** repeated bytes txHash = 18; */ - public Builder setTxHash(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes txHash = 18; */ - public Builder addTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.add(value); - onChanged(); - return this; - } - /** repeated bytes txHash = 18; */ - public Builder addAllTxHash( - java.lang.Iterable values) { - ensureTxHashIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHash_); - onChanged(); - return this; - } - /** repeated bytes txHash = 18; */ - public Builder clearTxHash() { - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, txCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other = (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) obj; + + boolean result = true; + result = result && (getTxCount() + == other.getTxCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTxCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Block) - } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Block) - private static final org.aion.api.server.pb.Message.t_Block DEFAULT_INSTANCE; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockTransactionCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Block(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) + org.aion.api.server.pb.Message.rsp_getBlockTransactionCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txCount_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount build() { + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(this); + result.txCount_ = txCount_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockTransactionCount)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.getDefaultInstance()) return this; + if (other.getTxCount() != 0) { + setTxCount(other.getTxCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int txCount_ ; + /** + * uint32 txCount = 1; + */ + public int getTxCount() { + return txCount_; + } + /** + * uint32 txCount = 1; + */ + public Builder setTxCount(int value) { + + txCount_ = value; + onChanged(); + return this; + } + /** + * uint32 txCount = 1; + */ + public Builder clearTxCount() { + + txCount_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) + } - public static org.aion.api.server.pb.Message.t_Block getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) + private static final org.aion.api.server.pb.Message.rsp_getBlockTransactionCount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_Block parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Block(input, extensionRegistry); - } - }; + public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlockTransactionCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockTransactionCount(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public org.aion.api.server.pb.Message.t_Block getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - public interface t_BlockSqlOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_BlockSql) - com.google.protobuf.MessageOrBuilder { + } + + public interface req_getBlockTransactionCountByNumberOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} + */ + public static final class req_getBlockTransactionCountByNumber extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + req_getBlockTransactionCountByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockTransactionCountByNumber.newBuilder() to construct. + private req_getBlockTransactionCountByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockTransactionCountByNumber() { + blockNumber_ = 0L; + } - /** uint64 blockNumber = 1; */ - long getBlockNumber(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockTransactionCountByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blockNumber_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + } - /** string blockHash = 2; */ - java.lang.String getBlockHash(); - /** string blockHash = 2; */ - com.google.protobuf.ByteString getBlockHashBytes(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.Builder.class); + } - /** string parentHash = 3; */ - java.lang.String getParentHash(); - /** string parentHash = 3; */ - com.google.protobuf.ByteString getParentHashBytes(); + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - /** string block = 4; */ - java.lang.String getBlock(); - /** string block = 4; */ - com.google.protobuf.ByteString getBlockBytes(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** repeated string tx = 5; */ - java.util.List getTxList(); - /** repeated string tx = 5; */ - int getTxCount(); - /** repeated string tx = 5; */ - java.lang.String getTx(int index); - /** repeated string tx = 5; */ - com.google.protobuf.ByteString getTxBytes(int index); + memoizedIsInitialized = 1; + return true; } - /** Protobuf type {@code org.aion.api.server.pb.t_BlockSql} */ - public static final class t_BlockSql extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_BlockSql) - t_BlockSqlOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_BlockSql.newBuilder() to construct. - private t_BlockSql(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private t_BlockSql() { - blockNumber_ = 0L; - blockHash_ = ""; - parentHash_ = ""; - block_ = ""; - tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private t_BlockSql( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - blockHash_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - parentHash_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - block_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - tx_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = tx_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockSql.class, - org.aion.api.server.pb.Message.t_BlockSql.Builder.class); - } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final int BLOCKHASH_FIELD_NUMBER = 2; - private volatile java.lang.Object blockHash_; - /** string blockHash = 2; */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } - } - /** string blockHash = 2; */ - public com.google.protobuf.ByteString getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.class, org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber build() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber buildPartial() { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber(this); + result.blockNumber_ = blockNumber_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other) { + if (other == org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + } - public static final int PARENTHASH_FIELD_NUMBER = 3; - private volatile java.lang.Object parentHash_; - /** string parentHash = 3; */ - public java.lang.String getParentHash() { - java.lang.Object ref = parentHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentHash_ = s; - return s; - } - } - /** string parentHash = 3; */ - public com.google.protobuf.ByteString getParentHashBytes() { - java.lang.Object ref = parentHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber(); + } - public static final int BLOCK_FIELD_NUMBER = 4; - private volatile java.lang.Object block_; - /** string block = 4; */ - public java.lang.String getBlock() { - java.lang.Object ref = block_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - block_ = s; - return s; - } - } - /** string block = 4; */ - public com.google.protobuf.ByteString getBlockBytes() { - java.lang.Object ref = block_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - block_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int TX_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList tx_; - /** repeated string tx = 5; */ - public com.google.protobuf.ProtocolStringList getTxList() { - return tx_; - } - /** repeated string tx = 5; */ - public int getTxCount() { - return tx_.size(); - } - /** repeated string tx = 5; */ - public java.lang.String getTx(int index) { - return tx_.get(index); - } - /** repeated string tx = 5; */ - public com.google.protobuf.ByteString getTxBytes(int index) { - return tx_.getByteString(index); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockTransactionCountByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockTransactionCountByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + } + + public interface req_getTransactionByBlockHashAndIndexOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes blockHash = 1; + */ + com.google.protobuf.ByteString getBlockHash(); + + /** + * uint32 txIndex = 2; + */ + int getTxIndex(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} + */ + public static final class req_getTransactionByBlockHashAndIndex extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + req_getTransactionByBlockHashAndIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionByBlockHashAndIndex.newBuilder() to construct. + private req_getTransactionByBlockHashAndIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getTransactionByBlockHashAndIndex() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + txIndex_ = 0; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (!getBlockHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blockHash_); - } - if (!getParentHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentHash_); - } - if (!getBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, block_); - } - for (int i = 0; i < tx_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tx_.getRaw(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getTransactionByBlockHashAndIndex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + blockHash_ = input.readBytes(); + break; + } + case 16: { + + txIndex_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.Builder.class); + } - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - if (!getBlockHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blockHash_); - } - if (!getParentHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentHash_); - } - if (!getBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, block_); - } - { - int dataSize = 0; - for (int i = 0; i < tx_.size(); i++) { - dataSize += computeStringSizeNoTag(tx_.getRaw(i)); - } - size += dataSize; - size += 1 * getTxList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_BlockSql)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_BlockSql other = - (org.aion.api.server.pb.Message.t_BlockSql) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && getParentHash().equals(other.getParentHash()); - result = result && getBlock().equals(other.getBlock()); - result = result && getTxList().equals(other.getTxList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getBlock().hashCode(); - if (getTxCount() > 0) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTxList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int TXINDEX_FIELD_NUMBER = 2; + private int txIndex_; + /** + * uint32 txIndex = 2; + */ + public int getTxIndex() { + return txIndex_; + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + if (txIndex_ != 0) { + output.writeUInt32(2, txIndex_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, blockHash_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, txIndex_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other = (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) obj; + + boolean result = true; + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && (getTxIndex() + == other.getTxIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + txIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex build() { + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex(this); + result.blockHash_ = blockHash_; + result.txIndex_ = txIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) { + return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other) { + if (other == org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** + * bytes blockHash = 1; + */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * bytes blockHash = 1; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + private int txIndex_ ; + /** + * uint32 txIndex = 2; + */ + public int getTxIndex() { + return txIndex_; + } + /** + * uint32 txIndex = 2; + */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 txIndex = 2; + */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + } - public static org.aion.api.server.pb.Message.t_BlockSql parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) + private static final org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex(); + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.t_BlockSql parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getTransactionByBlockHashAndIndex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionByBlockHashAndIndex(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.t_BlockSql prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + } + + public interface req_getTransactionByBlockNumberAndIndexOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blockNumber = 1; + */ + long getBlockNumber(); + + /** + * uint32 txIndex = 2; + */ + int getTxIndex(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} + */ + public static final class req_getTransactionByBlockNumberAndIndex extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + req_getTransactionByBlockNumberAndIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionByBlockNumberAndIndex.newBuilder() to construct. + private req_getTransactionByBlockNumberAndIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getTransactionByBlockNumberAndIndex() { + blockNumber_ = 0L; + txIndex_ = 0; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getTransactionByBlockNumberAndIndex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blockNumber_ = input.readUInt64(); + break; + } + case 16: { + + txIndex_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_BlockSql} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_BlockSql) - org.aion.api.server.pb.Message.t_BlockSqlOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.Builder.class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_BlockSql.class, - org.aion.api.server.pb.Message.t_BlockSql.Builder.class); - } + public static final int BLOCKNUMBER_FIELD_NUMBER = 1; + private long blockNumber_; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } - // Construct using org.aion.api.server.pb.Message.t_BlockSql.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static final int TXINDEX_FIELD_NUMBER = 2; + private int txIndex_; + /** + * uint32 txIndex = 2; + */ + public int getTxIndex() { + return txIndex_; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + memoizedIsInitialized = 1; + return true; + } - public Builder clear() { - super.clear(); - blockNumber_ = 0L; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blockNumber_ != 0L) { + output.writeUInt64(1, blockNumber_); + } + if (txIndex_ != 0) { + output.writeUInt32(2, txIndex_); + } + unknownFields.writeTo(output); + } - blockHash_ = ""; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blockNumber_); + } + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, txIndex_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - parentHash_ = ""; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other = (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) obj; + + boolean result = true; + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && (getTxIndex() + == other.getTxIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - block_ = ""; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.class, org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockNumber_ = 0L; + + txIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex build() { + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex(this); + result.blockNumber_ = blockNumber_; + result.txIndex_ = txIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) { + return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other) { + if (other == org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.getDefaultInstance()) return this; + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 1; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 1; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 1; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private int txIndex_ ; + /** + * uint32 txIndex = 2; + */ + public int getTxIndex() { + return txIndex_; + } + /** + * uint32 txIndex = 2; + */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 txIndex = 2; + */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + } - public org.aion.api.server.pb.Message.t_BlockSql build() { - org.aion.api.server.pb.Message.t_BlockSql result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) + private static final org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex(); + } - public org.aion.api.server.pb.Message.t_BlockSql buildPartial() { - org.aion.api.server.pb.Message.t_BlockSql result = - new org.aion.api.server.pb.Message.t_BlockSql(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.blockHash_ = blockHash_; - result.parentHash_ = parentHash_; - result.block_ = block_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = tx_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.tx_ = tx_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } + public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder clone() { - return (Builder) super.clone(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getTransactionByBlockNumberAndIndex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionByBlockNumberAndIndex(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + } + + public interface req_getTransactionReceiptOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionReceipt) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes txHash = 1; + */ + com.google.protobuf.ByteString getTxHash(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} + */ + public static final class req_getTransactionReceipt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionReceipt) + req_getTransactionReceiptOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getTransactionReceipt.newBuilder() to construct. + private req_getTransactionReceipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getTransactionReceipt() { + txHash_ = com.google.protobuf.ByteString.EMPTY; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getTransactionReceipt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + txHash_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionReceipt.class, org.aion.api.server.pb.Message.req_getTransactionReceipt.Builder.class); + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_BlockSql) { - return mergeFrom((org.aion.api.server.pb.Message.t_BlockSql) other); - } else { - super.mergeFrom(other); - return this; - } - } + public static final int TXHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockSql other) { - if (other == org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()) - return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (!other.getBlockHash().isEmpty()) { - blockHash_ = other.blockHash_; - onChanged(); - } - if (!other.getParentHash().isEmpty()) { - parentHash_ = other.parentHash_; - onChanged(); - } - if (!other.getBlock().isEmpty()) { - block_ = other.block_; - onChanged(); - } - if (!other.tx_.isEmpty()) { - if (tx_.isEmpty()) { - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTxIsMutable(); - tx_.addAll(other.tx_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final boolean isInitialized() { - return true; - } + memoizedIsInitialized = 1; + return true; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_BlockSql parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_BlockSql) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!txHash_.isEmpty()) { + output.writeBytes(1, txHash_); + } + unknownFields.writeTo(output); + } - private int bitField0_; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, txHash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getTransactionReceipt other = (org.aion.api.server.pb.Message.req_getTransactionReceipt) obj; + + boolean result = true; + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - blockNumber_ = 0L; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private java.lang.Object blockHash_ = ""; - /** string blockHash = 2; */ - public java.lang.String getBlockHash() { - java.lang.Object ref = blockHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - blockHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string blockHash = 2; */ - public com.google.protobuf.ByteString getBlockHashBytes() { - java.lang.Object ref = blockHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - blockHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string blockHash = 2; */ - public Builder setBlockHash(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** string blockHash = 2; */ - public Builder clearBlockHash() { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getTransactionReceipt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - /** string blockHash = 2; */ - public Builder setBlockHashBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - blockHash_ = value; - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionReceipt) + org.aion.api.server.pb.Message.req_getTransactionReceiptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getTransactionReceipt.class, org.aion.api.server.pb.Message.req_getTransactionReceipt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getTransactionReceipt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + txHash_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + } + + public org.aion.api.server.pb.Message.req_getTransactionReceipt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getTransactionReceipt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getTransactionReceipt build() { + org.aion.api.server.pb.Message.req_getTransactionReceipt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getTransactionReceipt buildPartial() { + org.aion.api.server.pb.Message.req_getTransactionReceipt result = new org.aion.api.server.pb.Message.req_getTransactionReceipt(this); + result.txHash_ = txHash_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt) { + return mergeFrom((org.aion.api.server.pb.Message.req_getTransactionReceipt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionReceipt other) { + if (other == org.aion.api.server.pb.Message.req_getTransactionReceipt.getDefaultInstance()) return this; + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getTransactionReceipt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getTransactionReceipt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 1; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 1; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 1; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionReceipt) + } - private java.lang.Object parentHash_ = ""; - /** string parentHash = 3; */ - public java.lang.String getParentHash() { - java.lang.Object ref = parentHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string parentHash = 3; */ - public com.google.protobuf.ByteString getParentHashBytes() { - java.lang.Object ref = parentHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string parentHash = 3; */ - public Builder setParentHash(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** string parentHash = 3; */ - public Builder clearParentHash() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionReceipt) + private static final org.aion.api.server.pb.Message.req_getTransactionReceipt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionReceipt(); + } - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - /** string parentHash = 3; */ - public Builder setParentHashBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parentHash_ = value; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.req_getTransactionReceipt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private java.lang.Object block_ = ""; - /** string block = 4; */ - public java.lang.String getBlock() { - java.lang.Object ref = block_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - block_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string block = 4; */ - public com.google.protobuf.ByteString getBlockBytes() { - java.lang.Object ref = block_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - block_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string block = 4; */ - public Builder setBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - block_ = value; - onChanged(); - return this; - } - /** string block = 4; */ - public Builder clearBlock() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getTransactionReceipt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getTransactionReceipt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - block_ = getDefaultInstance().getBlock(); - onChanged(); - return this; - } - /** string block = 4; */ - public Builder setBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - block_ = value; - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private com.google.protobuf.LazyStringList tx_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + public org.aion.api.server.pb.Message.req_getTransactionReceipt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private void ensureTxIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - tx_ = new com.google.protobuf.LazyStringArrayList(tx_); - bitField0_ |= 0x00000010; - } - } - /** repeated string tx = 5; */ - public com.google.protobuf.ProtocolStringList getTxList() { - return tx_.getUnmodifiableView(); - } - /** repeated string tx = 5; */ - public int getTxCount() { - return tx_.size(); - } - /** repeated string tx = 5; */ - public java.lang.String getTx(int index) { - return tx_.get(index); - } - /** repeated string tx = 5; */ - public com.google.protobuf.ByteString getTxBytes(int index) { - return tx_.getByteString(index); - } - /** repeated string tx = 5; */ - public Builder setTx(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.set(index, value); - onChanged(); - return this; - } - /** repeated string tx = 5; */ - public Builder addTx(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - return this; - } - /** repeated string tx = 5; */ - public Builder addAllTx(java.lang.Iterable values) { - ensureTxIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tx_); - onChanged(); - return this; - } - /** repeated string tx = 5; */ - public Builder clearTx() { - tx_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** repeated string tx = 5; */ - public Builder addTxBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - return this; - } + } + + public interface rsp_getTransactionReceiptOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionReceipt) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 txIndex = 1; + */ + int getTxIndex(); + + /** + * uint64 blockNumber = 2; + */ + long getBlockNumber(); + + /** + * uint64 nrgConsumed = 3; + */ + long getNrgConsumed(); + + /** + * uint64 cumulativeNrgUsed = 4; + */ + long getCumulativeNrgUsed(); + + /** + * bytes blockHash = 5; + */ + com.google.protobuf.ByteString getBlockHash(); + + /** + * bytes txHash = 6; + */ + com.google.protobuf.ByteString getTxHash(); + + /** + * bytes from = 7; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes to = 8; + */ + com.google.protobuf.ByteString getTo(); + + /** + * bytes contractAddress = 9; + */ + com.google.protobuf.ByteString getContractAddress(); + + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + java.util.List + getLogsList(); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + org.aion.api.server.pb.Message.t_LgEle getLogs(int index); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + int getLogsCount(); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + java.util.List + getLogsOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} + */ + public static final class rsp_getTransactionReceipt extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) + rsp_getTransactionReceiptOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getTransactionReceipt.newBuilder() to construct. + private rsp_getTransactionReceipt(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getTransactionReceipt() { + txIndex_ = 0; + blockNumber_ = 0L; + nrgConsumed_ = 0L; + cumulativeNrgUsed_ = 0L; + blockHash_ = com.google.protobuf.ByteString.EMPTY; + txHash_ = com.google.protobuf.ByteString.EMPTY; + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + logs_ = java.util.Collections.emptyList(); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getTransactionReceipt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + txIndex_ = input.readUInt32(); + break; + } + case 16: { + + blockNumber_ = input.readUInt64(); + break; + } + case 24: { + + nrgConsumed_ = input.readUInt64(); + break; + } + case 32: { + + cumulativeNrgUsed_ = input.readUInt64(); + break; + } + case 42: { + + blockHash_ = input.readBytes(); + break; + } + case 50: { + + txHash_ = input.readBytes(); + break; + } + case 58: { + + from_ = input.readBytes(); + break; + } + case 66: { + + to_ = input.readBytes(); + break; + } + case 74: { + + contractAddress_ = input.readBytes(); + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + logs_.add( + input.readMessage(org.aion.api.server.pb.Message.t_LgEle.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, org.aion.api.server.pb.Message.rsp_getTransactionReceipt.Builder.class); + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_BlockSql) - } + private int bitField0_; + public static final int TXINDEX_FIELD_NUMBER = 1; + private int txIndex_; + /** + * uint32 txIndex = 1; + */ + public int getTxIndex() { + return txIndex_; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_BlockSql) - private static final org.aion.api.server.pb.Message.t_BlockSql DEFAULT_INSTANCE; + public static final int BLOCKNUMBER_FIELD_NUMBER = 2; + private long blockNumber_; + /** + * uint64 blockNumber = 2; + */ + public long getBlockNumber() { + return blockNumber_; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_BlockSql(); - } + public static final int NRGCONSUMED_FIELD_NUMBER = 3; + private long nrgConsumed_; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } - public static org.aion.api.server.pb.Message.t_BlockSql getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int CUMULATIVENRGUSED_FIELD_NUMBER = 4; + private long cumulativeNrgUsed_; + /** + * uint64 cumulativeNrgUsed = 4; + */ + public long getCumulativeNrgUsed() { + return cumulativeNrgUsed_; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_BlockSql parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_BlockSql(input, extensionRegistry); - } - }; + public static final int BLOCKHASH_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString blockHash_; + /** + * bytes blockHash = 5; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int TXHASH_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString txHash_; + /** + * bytes txHash = 6; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int FROM_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 7; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - public org.aion.api.server.pb.Message.t_BlockSql getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int TO_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString to_; + /** + * bytes to = 8; + */ + public com.google.protobuf.ByteString getTo() { + return to_; } - public interface rsp_errormsgOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_errormsg) - com.google.protobuf.MessageOrBuilder { + public static final int CONTRACTADDRESS_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString contractAddress_; + /** + * bytes contractAddress = 9; + */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } - /** string errormsg = 1; */ - java.lang.String getErrormsg(); - /** string errormsg = 1; */ - com.google.protobuf.ByteString getErrormsgBytes(); + public static final int LOGS_FIELD_NUMBER = 10; + private java.util.List logs_; + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + return logs_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); } - /** Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} */ - public static final class rsp_errormsg extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_errormsg) - rsp_errormsgOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_errormsg.newBuilder() to construct. - private rsp_errormsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_errormsg() { - errormsg_ = ""; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + memoizedIsInitialized = 1; + return true; + } - private rsp_errormsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - errormsg_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (txIndex_ != 0) { + output.writeUInt32(1, txIndex_); + } + if (blockNumber_ != 0L) { + output.writeUInt64(2, blockNumber_); + } + if (nrgConsumed_ != 0L) { + output.writeUInt64(3, nrgConsumed_); + } + if (cumulativeNrgUsed_ != 0L) { + output.writeUInt64(4, cumulativeNrgUsed_); + } + if (!blockHash_.isEmpty()) { + output.writeBytes(5, blockHash_); + } + if (!txHash_.isEmpty()) { + output.writeBytes(6, txHash_); + } + if (!from_.isEmpty()) { + output.writeBytes(7, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(8, to_); + } + if (!contractAddress_.isEmpty()) { + output.writeBytes(9, contractAddress_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(10, logs_.get(i)); + } + unknownFields.writeTo(output); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (txIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, txIndex_); + } + if (blockNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, blockNumber_); + } + if (nrgConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, nrgConsumed_); + } + if (cumulativeNrgUsed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, cumulativeNrgUsed_); + } + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, blockHash_); + } + if (!txHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, txHash_); + } + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, to_); + } + if (!contractAddress_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, contractAddress_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, logs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_errormsg.class, - org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getTransactionReceipt other = (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) obj; + + boolean result = true; + result = result && (getTxIndex() + == other.getTxIndex()); + result = result && (getBlockNumber() + == other.getBlockNumber()); + result = result && (getNrgConsumed() + == other.getNrgConsumed()); + result = result && (getCumulativeNrgUsed() + == other.getCumulativeNrgUsed()); + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && getTxHash() + .equals(other.getTxHash()); + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTo() + .equals(other.getTo()); + result = result && getContractAddress() + .equals(other.getContractAddress()); + result = result && getLogsList() + .equals(other.getLogsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final int ERRORMSG_FIELD_NUMBER = 1; - private volatile java.lang.Object errormsg_; - /** string errormsg = 1; */ - public java.lang.String getErrormsg() { - java.lang.Object ref = errormsg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errormsg_ = s; - return s; - } - } - /** string errormsg = 1; */ - public com.google.protobuf.ByteString getErrormsgBytes() { - java.lang.Object ref = errormsg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errormsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TXINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTxIndex(); + hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlockNumber()); + hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgConsumed()); + hash = (37 * hash) + CUMULATIVENRGUSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCumulativeNrgUsed()); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + TXHASH_FIELD_NUMBER; + hash = (53 * hash) + getTxHash().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getContractAddress().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private byte memoizedIsInitialized = -1; + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getTransactionReceipt prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) + org.aion.api.server.pb.Message.rsp_getTransactionReceiptOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, org.aion.api.server.pb.Message.rsp_getTransactionReceipt.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getTransactionReceipt.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + txIndex_ = 0; + + blockNumber_ = 0L; + + nrgConsumed_ = 0L; + + cumulativeNrgUsed_ = 0L; + + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + txHash_ = com.google.protobuf.ByteString.EMPTY; + + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + contractAddress_ = com.google.protobuf.ByteString.EMPTY; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + logsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getTransactionReceipt.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt build() { + org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt buildPartial() { + org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.txIndex_ = txIndex_; + result.blockNumber_ = blockNumber_; + result.nrgConsumed_ = nrgConsumed_; + result.cumulativeNrgUsed_ = cumulativeNrgUsed_; + result.blockHash_ = blockHash_; + result.txHash_ = txHash_; + result.from_ = from_; + result.to_ = to_; + result.contractAddress_ = contractAddress_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransactionReceipt)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionReceipt other) { + if (other == org.aion.api.server.pb.Message.rsp_getTransactionReceipt.getDefaultInstance()) return this; + if (other.getTxIndex() != 0) { + setTxIndex(other.getTxIndex()); + } + if (other.getBlockNumber() != 0L) { + setBlockNumber(other.getBlockNumber()); + } + if (other.getNrgConsumed() != 0L) { + setNrgConsumed(other.getNrgConsumed()); + } + if (other.getCumulativeNrgUsed() != 0L) { + setCumulativeNrgUsed(other.getCumulativeNrgUsed()); + } + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { + setTxHash(other.getTxHash()); + } + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { + setContractAddress(other.getContractAddress()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000200); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getTransactionReceipt parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int txIndex_ ; + /** + * uint32 txIndex = 1; + */ + public int getTxIndex() { + return txIndex_; + } + /** + * uint32 txIndex = 1; + */ + public Builder setTxIndex(int value) { + + txIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 txIndex = 1; + */ + public Builder clearTxIndex() { + + txIndex_ = 0; + onChanged(); + return this; + } + + private long blockNumber_ ; + /** + * uint64 blockNumber = 2; + */ + public long getBlockNumber() { + return blockNumber_; + } + /** + * uint64 blockNumber = 2; + */ + public Builder setBlockNumber(long value) { + + blockNumber_ = value; + onChanged(); + return this; + } + /** + * uint64 blockNumber = 2; + */ + public Builder clearBlockNumber() { + + blockNumber_ = 0L; + onChanged(); + return this; + } + + private long nrgConsumed_ ; + /** + * uint64 nrgConsumed = 3; + */ + public long getNrgConsumed() { + return nrgConsumed_; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder setNrgConsumed(long value) { + + nrgConsumed_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgConsumed = 3; + */ + public Builder clearNrgConsumed() { + + nrgConsumed_ = 0L; + onChanged(); + return this; + } + + private long cumulativeNrgUsed_ ; + /** + * uint64 cumulativeNrgUsed = 4; + */ + public long getCumulativeNrgUsed() { + return cumulativeNrgUsed_; + } + /** + * uint64 cumulativeNrgUsed = 4; + */ + public Builder setCumulativeNrgUsed(long value) { + + cumulativeNrgUsed_ = value; + onChanged(); + return this; + } + /** + * uint64 cumulativeNrgUsed = 4; + */ + public Builder clearCumulativeNrgUsed() { + + cumulativeNrgUsed_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockHash = 5; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** + * bytes blockHash = 5; + */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * bytes blockHash = 5; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes txHash = 6; + */ + public com.google.protobuf.ByteString getTxHash() { + return txHash_; + } + /** + * bytes txHash = 6; + */ + public Builder setTxHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + txHash_ = value; + onChanged(); + return this; + } + /** + * bytes txHash = 6; + */ + public Builder clearTxHash() { + + txHash_ = getDefaultInstance().getTxHash(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 7; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 7; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 7; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes to = 8; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** + * bytes to = 8; + */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * bytes to = 8; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes contractAddress = 9; + */ + public com.google.protobuf.ByteString getContractAddress() { + return contractAddress_; + } + /** + * bytes contractAddress = 9; + */ + public Builder setContractAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddress_ = value; + onChanged(); + return this; + } + /** + * bytes contractAddress = 9; + */ + public Builder clearContractAddress() { + + contractAddress_ = getDefaultInstance().getContractAddress(); + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> logsBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder setLogs( + int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder setLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder addLogs( + int index, org.aion.api.server.pb.Message.t_LgEle value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder addLogs( + org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder addLogs( + int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_LgEle logs = 10; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_LgEle, org.aion.api.server.pb.Message.t_LgEle.Builder, org.aion.api.server.pb.Message.t_LgEleOrBuilder>( + logs_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getErrormsgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errormsg_); - } - unknownFields.writeTo(output); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) + private static final org.aion.api.server.pb.Message.rsp_getTransactionReceipt DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt getDefaultInstance() { + return DEFAULT_INSTANCE; + } - size = 0; - if (!getErrormsgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errormsg_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getTransactionReceipt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getTransactionReceipt(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_errormsg)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_errormsg other = - (org.aion.api.server.pb.Message.rsp_errormsg) obj; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - boolean result = true; - result = result && getErrormsg().equals(other.getErrormsg()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public org.aion.api.server.pb.Message.rsp_getTransactionReceipt getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ERRORMSG_FIELD_NUMBER; - hash = (53 * hash) + getErrormsg().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + } + + public interface req_getUncleByBlockHashAndIndexOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes blockHash = 1; + */ + com.google.protobuf.ByteString getBlockHash(); + + /** + * uint32 index = 2; + */ + int getIndex(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} + */ + public static final class req_getUncleByBlockHashAndIndex extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + req_getUncleByBlockHashAndIndexOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getUncleByBlockHashAndIndex.newBuilder() to construct. + private req_getUncleByBlockHashAndIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getUncleByBlockHashAndIndex() { + blockHash_ = com.google.protobuf.ByteString.EMPTY; + index_ = 0; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getUncleByBlockHashAndIndex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + blockHash_ = input.readBytes(); + break; + } + case 16: { + + index_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int BLOCKHASH_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString blockHash_; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int INDEX_FIELD_NUMBER = 2; + private int index_; + /** + * uint32 index = 2; + */ + public int getIndex() { + return index_; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!blockHash_.isEmpty()) { + output.writeBytes(1, blockHash_); + } + if (index_ != 0) { + output.writeUInt32(2, index_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!blockHash_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, blockHash_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, index_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other = (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) obj; + + boolean result = true; + result = result && getBlockHash() + .equals(other.getBlockHash()); + result = result && (getIndex() + == other.getIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; + hash = (53 * hash) + getBlockHash().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_errormsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.class, org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blockHash_ = com.google.protobuf.ByteString.EMPTY; + + index_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + } + + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex build() { + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex buildPartial() { + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(this); + result.blockHash_ = blockHash_; + result.index_ = index_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) { + return mergeFrom((org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other) { + if (other == org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.getDefaultInstance()) return this; + if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { + setBlockHash(other.getBlockHash()); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes blockHash = 1; + */ + public com.google.protobuf.ByteString getBlockHash() { + return blockHash_; + } + /** + * bytes blockHash = 1; + */ + public Builder setBlockHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + blockHash_ = value; + onChanged(); + return this; + } + /** + * bytes blockHash = 1; + */ + public Builder clearBlockHash() { + + blockHash_ = getDefaultInstance().getBlockHash(); + onChanged(); + return this; + } + + private int index_ ; + /** + * uint32 index = 2; + */ + public int getIndex() { + return index_; + } + /** + * uint32 index = 2; + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + * uint32 index = 2; + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) + private static final org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(); + } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_errormsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getUncleByBlockHashAndIndex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getUncleByBlockHashAndIndex(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_errormsg} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_errormsg) - org.aion.api.server.pb.Message.rsp_errormsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_errormsg.class, - org.aion.api.server.pb.Message.rsp_errormsg.Builder.class); - } + public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - // Construct using org.aion.api.server.pb.Message.rsp_errormsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + } + + public interface rsp_getCompilersOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCompilers) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string compiler = 1; + */ + java.util.List + getCompilerList(); + /** + * repeated string compiler = 1; + */ + int getCompilerCount(); + /** + * repeated string compiler = 1; + */ + java.lang.String getCompiler(int index); + /** + * repeated string compiler = 1; + */ + com.google.protobuf.ByteString + getCompilerBytes(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} + */ + public static final class rsp_getCompilers extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCompilers) + rsp_getCompilersOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getCompilers.newBuilder() to construct. + private rsp_getCompilers(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getCompilers() { + compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getCompilers( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + compiler_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = compiler_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCompilers.class, org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); + } - public Builder clear() { - super.clear(); - errormsg_ = ""; + public static final int COMPILER_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList compiler_; + /** + * repeated string compiler = 1; + */ + public com.google.protobuf.ProtocolStringList + getCompilerList() { + return compiler_; + } + /** + * repeated string compiler = 1; + */ + public int getCompilerCount() { + return compiler_.size(); + } + /** + * repeated string compiler = 1; + */ + public java.lang.String getCompiler(int index) { + return compiler_.get(index); + } + /** + * repeated string compiler = 1; + */ + public com.google.protobuf.ByteString + getCompilerBytes(int index) { + return compiler_.getByteString(index); + } - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < compiler_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, compiler_.getRaw(i)); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.rsp_errormsg build() { - org.aion.api.server.pb.Message.rsp_errormsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < compiler_.size(); i++) { + dataSize += computeStringSizeNoTag(compiler_.getRaw(i)); + } + size += dataSize; + size += 1 * getCompilerList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public org.aion.api.server.pb.Message.rsp_errormsg buildPartial() { - org.aion.api.server.pb.Message.rsp_errormsg result = - new org.aion.api.server.pb.Message.rsp_errormsg(this); - result.errormsg_ = errormsg_; - onBuilt(); - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCompilers)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getCompilers other = (org.aion.api.server.pb.Message.rsp_getCompilers) obj; + + boolean result = true; + result = result && getCompilerList() + .equals(other.getCompilerList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCompilerCount() > 0) { + hash = (37 * hash) + COMPILER_FIELD_NUMBER; + hash = (53 * hash) + getCompilerList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCompilers prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCompilers) + org.aion.api.server.pb.Message.rsp_getCompilersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCompilers.class, org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getCompilers.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getCompilers build() { + org.aion.api.server.pb.Message.rsp_getCompilers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getCompilers buildPartial() { + org.aion.api.server.pb.Message.rsp_getCompilers result = new org.aion.api.server.pb.Message.rsp_getCompilers(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = compiler_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.compiler_ = compiler_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getCompilers) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getCompilers)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCompilers other) { + if (other == org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance()) return this; + if (!other.compiler_.isEmpty()) { + if (compiler_.isEmpty()) { + compiler_ = other.compiler_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCompilerIsMutable(); + compiler_.addAll(other.compiler_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getCompilers parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getCompilers) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCompilerIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + compiler_ = new com.google.protobuf.LazyStringArrayList(compiler_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string compiler = 1; + */ + public com.google.protobuf.ProtocolStringList + getCompilerList() { + return compiler_.getUnmodifiableView(); + } + /** + * repeated string compiler = 1; + */ + public int getCompilerCount() { + return compiler_.size(); + } + /** + * repeated string compiler = 1; + */ + public java.lang.String getCompiler(int index) { + return compiler_.get(index); + } + /** + * repeated string compiler = 1; + */ + public com.google.protobuf.ByteString + getCompilerBytes(int index) { + return compiler_.getByteString(index); + } + /** + * repeated string compiler = 1; + */ + public Builder setCompiler( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompilerIsMutable(); + compiler_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string compiler = 1; + */ + public Builder addCompiler( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompilerIsMutable(); + compiler_.add(value); + onChanged(); + return this; + } + /** + * repeated string compiler = 1; + */ + public Builder addAllCompiler( + java.lang.Iterable values) { + ensureCompilerIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, compiler_); + onChanged(); + return this; + } + /** + * repeated string compiler = 1; + */ + public Builder clearCompiler() { + compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string compiler = 1; + */ + public Builder addCompilerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCompilerIsMutable(); + compiler_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCompilers) + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCompilers) + private static final org.aion.api.server.pb.Message.rsp_getCompilers DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCompilers(); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public static org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_errormsg) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_errormsg) other); - } else { - super.mergeFrom(other); - return this; - } - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getCompilers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getCompilers(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_errormsg other) { - if (other == org.aion.api.server.pb.Message.rsp_errormsg.getDefaultInstance()) - return this; - if (!other.getErrormsg().isEmpty()) { - errormsg_ = other.errormsg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public final boolean isInitialized() { - return true; - } + public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_errormsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_errormsg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + } + + public interface req_compileSolidityOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compileSolidity) + com.google.protobuf.MessageOrBuilder { + + /** + * string source = 1; + */ + java.lang.String getSource(); + /** + * string source = 1; + */ + com.google.protobuf.ByteString + getSourceBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} + */ + public static final class req_compileSolidity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compileSolidity) + req_compileSolidityOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_compileSolidity.newBuilder() to construct. + private req_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_compileSolidity() { + source_ = ""; + } - private java.lang.Object errormsg_ = ""; - /** string errormsg = 1; */ - public java.lang.String getErrormsg() { - java.lang.Object ref = errormsg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errormsg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string errormsg = 1; */ - public com.google.protobuf.ByteString getErrormsgBytes() { - java.lang.Object ref = errormsg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errormsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string errormsg = 1; */ - public Builder setErrormsg(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - errormsg_ = value; - onChanged(); - return this; - } - /** string errormsg = 1; */ - public Builder clearErrormsg() { - - errormsg_ = getDefaultInstance().getErrormsg(); - onChanged(); - return this; - } - /** string errormsg = 1; */ - public Builder setErrormsgBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - errormsg_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_errormsg) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_errormsg) - private static final org.aion.api.server.pb.Message.rsp_errormsg DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_errormsg(); - } - - public static org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_errormsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_errormsg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_errormsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_protocolVersionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_protocolVersion) - com.google.protobuf.MessageOrBuilder { - - /** string kernel = 1; */ - java.lang.String getKernel(); - /** string kernel = 1; */ - com.google.protobuf.ByteString getKernelBytes(); - - /** string net = 2; */ - java.lang.String getNet(); - /** string net = 2; */ - com.google.protobuf.ByteString getNetBytes(); - - /** string api = 3; */ - java.lang.String getApi(); - /** string api = 3; */ - com.google.protobuf.ByteString getApiBytes(); - - /** string vm = 4; */ - java.lang.String getVm(); - /** string vm = 4; */ - com.google.protobuf.ByteString getVmBytes(); - - /** string db = 5; */ - java.lang.String getDb(); - /** string db = 5; */ - com.google.protobuf.ByteString getDbBytes(); - - /** string miner = 6; */ - java.lang.String getMiner(); - /** string miner = 6; */ - com.google.protobuf.ByteString getMinerBytes(); - - /** string txpool = 7; */ - java.lang.String getTxpool(); - /** string txpool = 7; */ - com.google.protobuf.ByteString getTxpoolBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} */ - public static final class rsp_protocolVersion extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_protocolVersion) - rsp_protocolVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_protocolVersion.newBuilder() to construct. - private rsp_protocolVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_protocolVersion() { - kernel_ = ""; - net_ = ""; - api_ = ""; - vm_ = ""; - db_ = ""; - miner_ = ""; - txpool_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_protocolVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - kernel_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - net_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - api_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - vm_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - db_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - miner_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - txpool_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_protocolVersion.class, - org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); - } - - public static final int KERNEL_FIELD_NUMBER = 1; - private volatile java.lang.Object kernel_; - /** string kernel = 1; */ - public java.lang.String getKernel() { - java.lang.Object ref = kernel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernel_ = s; - return s; - } - } - /** string kernel = 1; */ - public com.google.protobuf.ByteString getKernelBytes() { - java.lang.Object ref = kernel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kernel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NET_FIELD_NUMBER = 2; - private volatile java.lang.Object net_; - /** string net = 2; */ - public java.lang.String getNet() { - java.lang.Object ref = net_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - net_ = s; - return s; - } - } - /** string net = 2; */ - public com.google.protobuf.ByteString getNetBytes() { - java.lang.Object ref = net_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - net_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int API_FIELD_NUMBER = 3; - private volatile java.lang.Object api_; - /** string api = 3; */ - public java.lang.String getApi() { - java.lang.Object ref = api_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - api_ = s; - return s; - } - } - /** string api = 3; */ - public com.google.protobuf.ByteString getApiBytes() { - java.lang.Object ref = api_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - api_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VM_FIELD_NUMBER = 4; - private volatile java.lang.Object vm_; - /** string vm = 4; */ - public java.lang.String getVm() { - java.lang.Object ref = vm_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vm_ = s; - return s; - } - } - /** string vm = 4; */ - public com.google.protobuf.ByteString getVmBytes() { - java.lang.Object ref = vm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DB_FIELD_NUMBER = 5; - private volatile java.lang.Object db_; - /** string db = 5; */ - public java.lang.String getDb() { - java.lang.Object ref = db_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - db_ = s; - return s; - } - } - /** string db = 5; */ - public com.google.protobuf.ByteString getDbBytes() { - java.lang.Object ref = db_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - db_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MINER_FIELD_NUMBER = 6; - private volatile java.lang.Object miner_; - /** string miner = 6; */ - public java.lang.String getMiner() { - java.lang.Object ref = miner_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - miner_ = s; - return s; - } - } - /** string miner = 6; */ - public com.google.protobuf.ByteString getMinerBytes() { - java.lang.Object ref = miner_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - miner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TXPOOL_FIELD_NUMBER = 7; - private volatile java.lang.Object txpool_; - /** string txpool = 7; */ - public java.lang.String getTxpool() { - java.lang.Object ref = txpool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txpool_ = s; - return s; - } - } - /** string txpool = 7; */ - public com.google.protobuf.ByteString getTxpoolBytes() { - java.lang.Object ref = txpool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - txpool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getKernelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kernel_); - } - if (!getNetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, net_); - } - if (!getApiBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, api_); - } - if (!getVmBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vm_); - } - if (!getDbBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, db_); - } - if (!getMinerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, miner_); - } - if (!getTxpoolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, txpool_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKernelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kernel_); - } - if (!getNetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, net_); - } - if (!getApiBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, api_); - } - if (!getVmBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vm_); - } - if (!getDbBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, db_); - } - if (!getMinerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, miner_); - } - if (!getTxpoolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, txpool_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_protocolVersion)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_protocolVersion other = - (org.aion.api.server.pb.Message.rsp_protocolVersion) obj; - - boolean result = true; - result = result && getKernel().equals(other.getKernel()); - result = result && getNet().equals(other.getNet()); - result = result && getApi().equals(other.getApi()); - result = result && getVm().equals(other.getVm()); - result = result && getDb().equals(other.getDb()); - result = result && getMiner().equals(other.getMiner()); - result = result && getTxpool().equals(other.getTxpool()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KERNEL_FIELD_NUMBER; - hash = (53 * hash) + getKernel().hashCode(); - hash = (37 * hash) + NET_FIELD_NUMBER; - hash = (53 * hash) + getNet().hashCode(); - hash = (37 * hash) + API_FIELD_NUMBER; - hash = (53 * hash) + getApi().hashCode(); - hash = (37 * hash) + VM_FIELD_NUMBER; - hash = (53 * hash) + getVm().hashCode(); - hash = (37 * hash) + DB_FIELD_NUMBER; - hash = (53 * hash) + getDb().hashCode(); - hash = (37 * hash) + MINER_FIELD_NUMBER; - hash = (53 * hash) + getMiner().hashCode(); - hash = (37 * hash) + TXPOOL_FIELD_NUMBER; - hash = (53 * hash) + getTxpool().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_protocolVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_protocolVersion} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_protocolVersion) - org.aion.api.server.pb.Message.rsp_protocolVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_protocolVersion.class, - org.aion.api.server.pb.Message.rsp_protocolVersion.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_protocolVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - kernel_ = ""; - - net_ = ""; - - api_ = ""; - - vm_ = ""; - - db_ = ""; - - miner_ = ""; - - txpool_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_protocolVersion build() { - org.aion.api.server.pb.Message.rsp_protocolVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_protocolVersion buildPartial() { - org.aion.api.server.pb.Message.rsp_protocolVersion result = - new org.aion.api.server.pb.Message.rsp_protocolVersion(this); - result.kernel_ = kernel_; - result.net_ = net_; - result.api_ = api_; - result.vm_ = vm_; - result.db_ = db_; - result.miner_ = miner_; - result.txpool_ = txpool_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_protocolVersion) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_protocolVersion) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_protocolVersion other) { - if (other - == org.aion.api.server.pb.Message.rsp_protocolVersion.getDefaultInstance()) - return this; - if (!other.getKernel().isEmpty()) { - kernel_ = other.kernel_; - onChanged(); - } - if (!other.getNet().isEmpty()) { - net_ = other.net_; - onChanged(); - } - if (!other.getApi().isEmpty()) { - api_ = other.api_; - onChanged(); - } - if (!other.getVm().isEmpty()) { - vm_ = other.vm_; - onChanged(); - } - if (!other.getDb().isEmpty()) { - db_ = other.db_; - onChanged(); - } - if (!other.getMiner().isEmpty()) { - miner_ = other.miner_; - onChanged(); - } - if (!other.getTxpool().isEmpty()) { - txpool_ = other.txpool_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_protocolVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_protocolVersion) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object kernel_ = ""; - /** string kernel = 1; */ - public java.lang.String getKernel() { - java.lang.Object ref = kernel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string kernel = 1; */ - public com.google.protobuf.ByteString getKernelBytes() { - java.lang.Object ref = kernel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kernel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string kernel = 1; */ - public Builder setKernel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kernel_ = value; - onChanged(); - return this; - } - /** string kernel = 1; */ - public Builder clearKernel() { - - kernel_ = getDefaultInstance().getKernel(); - onChanged(); - return this; - } - /** string kernel = 1; */ - public Builder setKernelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kernel_ = value; - onChanged(); - return this; - } - - private java.lang.Object net_ = ""; - /** string net = 2; */ - public java.lang.String getNet() { - java.lang.Object ref = net_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - net_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string net = 2; */ - public com.google.protobuf.ByteString getNetBytes() { - java.lang.Object ref = net_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - net_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string net = 2; */ - public Builder setNet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - net_ = value; - onChanged(); - return this; - } - /** string net = 2; */ - public Builder clearNet() { - - net_ = getDefaultInstance().getNet(); - onChanged(); - return this; - } - /** string net = 2; */ - public Builder setNetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - net_ = value; - onChanged(); - return this; - } - - private java.lang.Object api_ = ""; - /** string api = 3; */ - public java.lang.String getApi() { - java.lang.Object ref = api_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - api_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string api = 3; */ - public com.google.protobuf.ByteString getApiBytes() { - java.lang.Object ref = api_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - api_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string api = 3; */ - public Builder setApi(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - api_ = value; - onChanged(); - return this; - } - /** string api = 3; */ - public Builder clearApi() { - - api_ = getDefaultInstance().getApi(); - onChanged(); - return this; - } - /** string api = 3; */ - public Builder setApiBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - api_ = value; - onChanged(); - return this; - } - - private java.lang.Object vm_ = ""; - /** string vm = 4; */ - public java.lang.String getVm() { - java.lang.Object ref = vm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string vm = 4; */ - public com.google.protobuf.ByteString getVmBytes() { - java.lang.Object ref = vm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string vm = 4; */ - public Builder setVm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - vm_ = value; - onChanged(); - return this; - } - /** string vm = 4; */ - public Builder clearVm() { - - vm_ = getDefaultInstance().getVm(); - onChanged(); - return this; - } - /** string vm = 4; */ - public Builder setVmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - vm_ = value; - onChanged(); - return this; - } - - private java.lang.Object db_ = ""; - /** string db = 5; */ - public java.lang.String getDb() { - java.lang.Object ref = db_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - db_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string db = 5; */ - public com.google.protobuf.ByteString getDbBytes() { - java.lang.Object ref = db_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - db_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string db = 5; */ - public Builder setDb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - db_ = value; - onChanged(); - return this; - } - /** string db = 5; */ - public Builder clearDb() { - - db_ = getDefaultInstance().getDb(); - onChanged(); - return this; - } - /** string db = 5; */ - public Builder setDbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - db_ = value; - onChanged(); - return this; - } - - private java.lang.Object miner_ = ""; - /** string miner = 6; */ - public java.lang.String getMiner() { - java.lang.Object ref = miner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - miner_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string miner = 6; */ - public com.google.protobuf.ByteString getMinerBytes() { - java.lang.Object ref = miner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - miner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string miner = 6; */ - public Builder setMiner(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - miner_ = value; - onChanged(); - return this; - } - /** string miner = 6; */ - public Builder clearMiner() { - - miner_ = getDefaultInstance().getMiner(); - onChanged(); - return this; - } - /** string miner = 6; */ - public Builder setMinerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - miner_ = value; - onChanged(); - return this; - } - - private java.lang.Object txpool_ = ""; - /** string txpool = 7; */ - public java.lang.String getTxpool() { - java.lang.Object ref = txpool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - txpool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string txpool = 7; */ - public com.google.protobuf.ByteString getTxpoolBytes() { - java.lang.Object ref = txpool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - txpool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string txpool = 7; */ - public Builder setTxpool(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - txpool_ = value; - onChanged(); - return this; - } - /** string txpool = 7; */ - public Builder clearTxpool() { - - txpool_ = getDefaultInstance().getTxpool(); - onChanged(); - return this; - } - /** string txpool = 7; */ - public Builder setTxpoolBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - txpool_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_protocolVersion) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_protocolVersion) - private static final org.aion.api.server.pb.Message.rsp_protocolVersion DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_protocolVersion(); - } - - public static org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_protocolVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_protocolVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_protocolVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_minerAddressOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_minerAddress) - com.google.protobuf.MessageOrBuilder { - - /** bytes minerAddr = 1; */ - com.google.protobuf.ByteString getMinerAddr(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} */ - public static final class rsp_minerAddress extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_minerAddress) - rsp_minerAddressOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_minerAddress.newBuilder() to construct. - private rsp_minerAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_minerAddress() { - minerAddr_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_minerAddress( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - minerAddr_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_minerAddress.class, - org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); - } - - public static final int MINERADDR_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString minerAddr_; - /** bytes minerAddr = 1; */ - public com.google.protobuf.ByteString getMinerAddr() { - return minerAddr_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!minerAddr_.isEmpty()) { - output.writeBytes(1, minerAddr_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!minerAddr_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, minerAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_minerAddress)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_minerAddress other = - (org.aion.api.server.pb.Message.rsp_minerAddress) obj; - - boolean result = true; - result = result && getMinerAddr().equals(other.getMinerAddr()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MINERADDR_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_minerAddress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_minerAddress} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_minerAddress) - org.aion.api.server.pb.Message.rsp_minerAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_minerAddress.class, - org.aion.api.server.pb.Message.rsp_minerAddress.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_minerAddress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - minerAddr_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_minerAddress build() { - org.aion.api.server.pb.Message.rsp_minerAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_minerAddress buildPartial() { - org.aion.api.server.pb.Message.rsp_minerAddress result = - new org.aion.api.server.pb.Message.rsp_minerAddress(this); - result.minerAddr_ = minerAddr_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_minerAddress) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_minerAddress) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_minerAddress other) { - if (other == org.aion.api.server.pb.Message.rsp_minerAddress.getDefaultInstance()) - return this; - if (other.getMinerAddr() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddr(other.getMinerAddr()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_minerAddress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_minerAddress) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString minerAddr_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes minerAddr = 1; */ - public com.google.protobuf.ByteString getMinerAddr() { - return minerAddr_; - } - /** bytes minerAddr = 1; */ - public Builder setMinerAddr(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddr_ = value; - onChanged(); - return this; - } - /** bytes minerAddr = 1; */ - public Builder clearMinerAddr() { - - minerAddr_ = getDefaultInstance().getMinerAddr(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_minerAddress) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_minerAddress) - private static final org.aion.api.server.pb.Message.rsp_minerAddress DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_minerAddress(); - } - - public static org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_minerAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_minerAddress(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_minerAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBlockByNumberOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByNumber) - com.google.protobuf.MessageOrBuilder { - - /** uint64 blockNumber = 1; */ - long getBlockNumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} */ - public static final class req_getBlockByNumber extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByNumber) - req_getBlockByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockByNumber.newBuilder() to construct. - private req_getBlockByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBlockByNumber() { - blockNumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBlockByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByNumber.class, - org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockByNumber other = - (org.aion.api.server.pb.Message.req_getBlockByNumber) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByNumber} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByNumber) - org.aion.api.server.pb.Message.req_getBlockByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByNumber.class, - org.aion.api.server.pb.Message.req_getBlockByNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockByNumber build() { - org.aion.api.server.pb.Message.req_getBlockByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockByNumber buildPartial() { - org.aion.api.server.pb.Message.req_getBlockByNumber result = - new org.aion.api.server.pb.Message.req_getBlockByNumber(this); - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockByNumber) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByNumber) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByNumber other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockByNumber.getDefaultInstance()) - return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockByNumber) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByNumber) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockByNumber DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByNumber(); - } - - public static org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBlockByNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getBlockOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlock) - com.google.protobuf.MessageOrBuilder { - - /** uint64 blockNumber = 1; */ - long getBlockNumber(); - - /** uint64 timestamp = 2; */ - long getTimestamp(); - - /** uint64 nrgConsumed = 3; */ - long getNrgConsumed(); - - /** uint64 nrgLimit = 4; */ - long getNrgLimit(); - - /** bytes parentHash = 5; */ - com.google.protobuf.ByteString getParentHash(); - - /** bytes minerAddress = 6; */ - com.google.protobuf.ByteString getMinerAddress(); - - /** bytes stateRoot = 7; */ - com.google.protobuf.ByteString getStateRoot(); - - /** bytes txTrieRoot = 8; */ - com.google.protobuf.ByteString getTxTrieRoot(); - - /** bytes receiptTrieRoot = 9; */ - com.google.protobuf.ByteString getReceiptTrieRoot(); - - /** bytes logsBloom = 10; */ - com.google.protobuf.ByteString getLogsBloom(); - - /** bytes difficulty = 11; */ - com.google.protobuf.ByteString getDifficulty(); - - /** bytes totalDifficulty = 12; */ - com.google.protobuf.ByteString getTotalDifficulty(); - - /** bytes extraData = 13; */ - com.google.protobuf.ByteString getExtraData(); - - /** bytes nonce = 14; */ - com.google.protobuf.ByteString getNonce(); - - /** bytes solution = 15; */ - com.google.protobuf.ByteString getSolution(); - - /** bytes hash = 16; */ - com.google.protobuf.ByteString getHash(); - - /** uint32 size = 17; */ - int getSize(); - - /** repeated bytes txHash = 18; */ - java.util.List getTxHashList(); - /** repeated bytes txHash = 18; */ - int getTxHashCount(); - /** repeated bytes txHash = 18; */ - com.google.protobuf.ByteString getTxHash(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} */ - public static final class rsp_getBlock extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlock) - rsp_getBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlock.newBuilder() to construct. - private rsp_getBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getBlock() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - txHash_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getBlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - case 16: - { - timestamp_ = input.readUInt64(); - break; - } - case 24: - { - nrgConsumed_ = input.readUInt64(); - break; - } - case 32: - { - nrgLimit_ = input.readUInt64(); - break; - } - case 42: - { - parentHash_ = input.readBytes(); - break; - } - case 50: - { - minerAddress_ = input.readBytes(); - break; - } - case 58: - { - stateRoot_ = input.readBytes(); - break; - } - case 66: - { - txTrieRoot_ = input.readBytes(); - break; - } - case 74: - { - receiptTrieRoot_ = input.readBytes(); - break; - } - case 82: - { - logsBloom_ = input.readBytes(); - break; - } - case 90: - { - difficulty_ = input.readBytes(); - break; - } - case 98: - { - totalDifficulty_ = input.readBytes(); - break; - } - case 106: - { - extraData_ = input.readBytes(); - break; - } - case 114: - { - nonce_ = input.readBytes(); - break; - } - case 122: - { - solution_ = input.readBytes(); - break; - } - case 130: - { - hash_ = input.readBytes(); - break; - } - case 136: - { - size_ = input.readUInt32(); - break; - } - case 146: - { - if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00020000; - } - txHash_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlock.class, - org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); - } - - private int bitField0_; - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } - - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } - - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - - public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString totalDifficulty_; - /** bytes totalDifficulty = 12; */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } - - public static final int EXTRADATA_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString extraData_; - /** bytes extraData = 13; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - - public static final int NONCE_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 14; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - - public static final int SOLUTION_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString solution_; - /** bytes solution = 15; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - - public static final int HASH_FIELD_NUMBER = 16; - private com.google.protobuf.ByteString hash_; - /** bytes hash = 16; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - public static final int SIZE_FIELD_NUMBER = 17; - private int size_; - /** uint32 size = 17; */ - public int getSize() { - return size_; - } - - public static final int TXHASH_FIELD_NUMBER = 18; - private java.util.List txHash_; - /** repeated bytes txHash = 18; */ - public java.util.List getTxHashList() { - return txHash_; - } - /** repeated bytes txHash = 18; */ - public int getTxHashCount() { - return txHash_.size(); - } - /** repeated bytes txHash = 18; */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - output.writeBytes(12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(13, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(14, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(15, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(16, hash_); - } - if (size_ != 0) { - output.writeUInt32(17, size_); - } - for (int i = 0; i < txHash_.size(); i++) { - output.writeBytes(18, txHash_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); - } - if (!totalDifficulty_.isEmpty()) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 12, totalDifficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(16, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(17, size_); - } - { - int dataSize = 0; - for (int i = 0; i < txHash_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - txHash_.get(i)); - } - size += dataSize; - size += 2 * getTxHashList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlock)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlock other = - (org.aion.api.server.pb.Message.rsp_getBlock) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && (getTimestamp() == other.getTimestamp()); - result = result && (getNrgConsumed() == other.getNrgConsumed()); - result = result && (getNrgLimit() == other.getNrgLimit()); - result = result && getParentHash().equals(other.getParentHash()); - result = result && getMinerAddress().equals(other.getMinerAddress()); - result = result && getStateRoot().equals(other.getStateRoot()); - result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom().equals(other.getLogsBloom()); - result = result && getDifficulty().equals(other.getDifficulty()); - result = result && getTotalDifficulty().equals(other.getTotalDifficulty()); - result = result && getExtraData().equals(other.getExtraData()); - result = result && getNonce().equals(other.getNonce()); - result = result && getSolution().equals(other.getSolution()); - result = result && getHash().equals(other.getHash()); - result = result && (getSize() == other.getSize()); - result = result && getTxHashList().equals(other.getTxHashList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + TOTALDIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getTotalDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - if (getTxHashCount() > 0) { - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHashList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlock} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlock) - org.aion.api.server.pb.Message.rsp_getBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlock.class, - org.aion.api.server.pb.Message.rsp_getBlock.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - timestamp_ = 0L; - - nrgConsumed_ = 0L; - - nrgLimit_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - - difficulty_ = com.google.protobuf.ByteString.EMPTY; - - totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; - - extraData_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - size_ = 0; - - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlock build() { - org.aion.api.server.pb.Message.rsp_getBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlock buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlock result = - new org.aion.api.server.pb.Message.rsp_getBlock(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.totalDifficulty_ = totalDifficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - if (((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = java.util.Collections.unmodifiableList(txHash_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.txHash_ = txHash_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlock) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlock) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlock other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlock.getDefaultInstance()) - return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getTotalDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setTotalDifficulty(other.getTotalDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (!other.txHash_.isEmpty()) { - if (txHash_.isEmpty()) { - txHash_ = other.txHash_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureTxHashIsMutable(); - txHash_.addAll(other.txHash_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } - /** uint64 timestamp = 2; */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** uint64 timestamp = 2; */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** uint64 nrgConsumed = 3; */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsumed = 3; */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } - /** uint64 nrgLimit = 4; */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** uint64 nrgLimit = 4; */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** bytes parentHash = 5; */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** bytes parentHash = 5; */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString minerAddress_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** bytes minerAddress = 6; */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** bytes minerAddress = 6; */ - public Builder clearMinerAddress() { - - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** bytes stateRoot = 7; */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** bytes stateRoot = 7; */ - public Builder clearStateRoot() { - - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** bytes txTrieRoot = 8; */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes txTrieRoot = 8; */ - public Builder clearTxTrieRoot() { - - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString receiptTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** bytes receiptTrieRoot = 9; */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes receiptTrieRoot = 9; */ - public Builder clearReceiptTrieRoot() { - - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString logsBloom_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** bytes logsBloom = 10; */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** bytes logsBloom = 10; */ - public Builder clearLogsBloom() { - - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString difficulty_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** bytes difficulty = 11; */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** bytes difficulty = 11; */ - public Builder clearDifficulty() { - - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString totalDifficulty_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes totalDifficulty = 12; */ - public com.google.protobuf.ByteString getTotalDifficulty() { - return totalDifficulty_; - } - /** bytes totalDifficulty = 12; */ - public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDifficulty_ = value; - onChanged(); - return this; - } - /** bytes totalDifficulty = 12; */ - public Builder clearTotalDifficulty() { - - totalDifficulty_ = getDefaultInstance().getTotalDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extraData_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes extraData = 13; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** bytes extraData = 13; */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** bytes extraData = 13; */ - public Builder clearExtraData() { - - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 14; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 14; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 14; */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** bytes solution = 15; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** bytes solution = 15; */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** bytes solution = 15; */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes hash = 16; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** bytes hash = 16; */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** bytes hash = 16; */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private int size_; - /** uint32 size = 17; */ - public int getSize() { - return size_; - } - /** uint32 size = 17; */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** uint32 size = 17; */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - private java.util.List txHash_ = - java.util.Collections.emptyList(); - - private void ensureTxHashIsMutable() { - if (!((bitField0_ & 0x00020000) == 0x00020000)) { - txHash_ = new java.util.ArrayList(txHash_); - bitField0_ |= 0x00020000; - } - } - /** repeated bytes txHash = 18; */ - public java.util.List getTxHashList() { - return java.util.Collections.unmodifiableList(txHash_); - } - /** repeated bytes txHash = 18; */ - public int getTxHashCount() { - return txHash_.size(); - } - /** repeated bytes txHash = 18; */ - public com.google.protobuf.ByteString getTxHash(int index) { - return txHash_.get(index); - } - /** repeated bytes txHash = 18; */ - public Builder setTxHash(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes txHash = 18; */ - public Builder addTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxHashIsMutable(); - txHash_.add(value); - onChanged(); - return this; - } - /** repeated bytes txHash = 18; */ - public Builder addAllTxHash( - java.lang.Iterable values) { - ensureTxHashIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, txHash_); - onChanged(); - return this; - } - /** repeated bytes txHash = 18; */ - public Builder clearTxHash() { - txHash_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlock) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlock) - private static final org.aion.api.server.pb.Message.rsp_getBlock DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlock(); - } - - public static org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBlockHeaderByNumberOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByNumber) - com.google.protobuf.MessageOrBuilder { - - /** uint64 blockNumber = 1; */ - long getBlockNumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} */ - public static final class req_getBlockHeaderByNumber - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) - req_getBlockHeaderByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockHeaderByNumber.newBuilder() to construct. - private req_getBlockHeaderByNumber( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBlockHeaderByNumber() { - blockNumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBlockHeaderByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - .Builder - .class); - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other = - (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByNumber} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByNumber) - org.aion.api.server.pb.Message.req_getBlockHeaderByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.class, - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getBlockHeaderByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber build() { - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber buildPartial() { - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber result = - new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(this); - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - .getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockHeaderByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockHeaderByNumber) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByNumber(); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockHeaderByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockHeaderByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByNumber - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getBlockHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockHeader) - com.google.protobuf.MessageOrBuilder { - - /** uint64 blockNumber = 1; */ - long getBlockNumber(); - - /** uint64 timestamp = 2; */ - long getTimestamp(); - - /** uint64 nrgConsumed = 3; */ - long getNrgConsumed(); - - /** uint64 nrgLimit = 4; */ - long getNrgLimit(); - - /** bytes parentHash = 5; */ - com.google.protobuf.ByteString getParentHash(); - - /** bytes minerAddress = 6; */ - com.google.protobuf.ByteString getMinerAddress(); - - /** bytes stateRoot = 7; */ - com.google.protobuf.ByteString getStateRoot(); - - /** bytes txTrieRoot = 8; */ - com.google.protobuf.ByteString getTxTrieRoot(); - - /** bytes receiptTrieRoot = 9; */ - com.google.protobuf.ByteString getReceiptTrieRoot(); - - /** bytes logsBloom = 10; */ - com.google.protobuf.ByteString getLogsBloom(); - - /** bytes difficulty = 11; */ - com.google.protobuf.ByteString getDifficulty(); - - /** bytes extraData = 12; */ - com.google.protobuf.ByteString getExtraData(); - - /** bytes nonce = 13; */ - com.google.protobuf.ByteString getNonce(); - - /** bytes solution = 14; */ - com.google.protobuf.ByteString getSolution(); - - /** bytes hash = 15; */ - com.google.protobuf.ByteString getHash(); - - /** uint32 size = 16; */ - int getSize(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} */ - public static final class rsp_getBlockHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockHeader) - rsp_getBlockHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockHeader.newBuilder() to construct. - private rsp_getBlockHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getBlockHeader() { - blockNumber_ = 0L; - timestamp_ = 0L; - nrgConsumed_ = 0L; - nrgLimit_ = 0L; - parentHash_ = com.google.protobuf.ByteString.EMPTY; - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - difficulty_ = com.google.protobuf.ByteString.EMPTY; - extraData_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - hash_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getBlockHeader( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - case 16: - { - timestamp_ = input.readUInt64(); - break; - } - case 24: - { - nrgConsumed_ = input.readUInt64(); - break; - } - case 32: - { - nrgLimit_ = input.readUInt64(); - break; - } - case 42: - { - parentHash_ = input.readBytes(); - break; - } - case 50: - { - minerAddress_ = input.readBytes(); - break; - } - case 58: - { - stateRoot_ = input.readBytes(); - break; - } - case 66: - { - txTrieRoot_ = input.readBytes(); - break; - } - case 74: - { - receiptTrieRoot_ = input.readBytes(); - break; - } - case 82: - { - logsBloom_ = input.readBytes(); - break; - } - case 90: - { - difficulty_ = input.readBytes(); - break; - } - case 98: - { - extraData_ = input.readBytes(); - break; - } - case 106: - { - nonce_ = input.readBytes(); - break; - } - case 114: - { - solution_ = input.readBytes(); - break; - } - case 122: - { - hash_ = input.readBytes(); - break; - } - case 128: - { - size_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockHeader.class, - org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } - - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - - public static final int NRGLIMIT_FIELD_NUMBER = 4; - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } - - public static final int PARENTHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString parentHash_; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - - public static final int MINERADDRESS_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString minerAddress_; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - - public static final int STATEROOT_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString stateRoot_; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - - public static final int TXTRIEROOT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txTrieRoot_; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - - public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString receiptTrieRoot_; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - - public static final int LOGSBLOOM_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString logsBloom_; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - - public static final int DIFFICULTY_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString difficulty_; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - - public static final int EXTRADATA_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString extraData_; - /** bytes extraData = 12; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - - public static final int NONCE_FIELD_NUMBER = 13; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 13; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - - public static final int SOLUTION_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString solution_; - /** bytes solution = 14; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - - public static final int HASH_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString hash_; - /** bytes hash = 15; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - - public static final int SIZE_FIELD_NUMBER = 16; - private int size_; - /** uint32 size = 16; */ - public int getSize() { - return size_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - output.writeUInt64(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - output.writeBytes(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - output.writeBytes(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - output.writeBytes(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - output.writeBytes(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - output.writeBytes(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - output.writeBytes(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - output.writeBytes(11, difficulty_); - } - if (!extraData_.isEmpty()) { - output.writeBytes(12, extraData_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(13, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(14, solution_); - } - if (!hash_.isEmpty()) { - output.writeBytes(15, hash_); - } - if (size_ != 0) { - output.writeUInt32(16, size_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, timestamp_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); - } - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgLimit_); - } - if (!parentHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, parentHash_); - } - if (!minerAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, minerAddress_); - } - if (!stateRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, stateRoot_); - } - if (!txTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txTrieRoot_); - } - if (!receiptTrieRoot_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, receiptTrieRoot_); - } - if (!logsBloom_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, logsBloom_); - } - if (!difficulty_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, difficulty_); - } - if (!extraData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, extraData_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, solution_); - } - if (!hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(15, hash_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(16, size_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockHeader other = - (org.aion.api.server.pb.Message.rsp_getBlockHeader) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && (getTimestamp() == other.getTimestamp()); - result = result && (getNrgConsumed() == other.getNrgConsumed()); - result = result && (getNrgLimit() == other.getNrgLimit()); - result = result && getParentHash().equals(other.getParentHash()); - result = result && getMinerAddress().equals(other.getMinerAddress()); - result = result && getStateRoot().equals(other.getStateRoot()); - result = result && getTxTrieRoot().equals(other.getTxTrieRoot()); - result = result && getReceiptTrieRoot().equals(other.getReceiptTrieRoot()); - result = result && getLogsBloom().equals(other.getLogsBloom()); - result = result && getDifficulty().equals(other.getDifficulty()); - result = result && getExtraData().equals(other.getExtraData()); - result = result && getNonce().equals(other.getNonce()); - result = result && getSolution().equals(other.getSolution()); - result = result && getHash().equals(other.getHash()); - result = result && (getSize() == other.getSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); - hash = (37 * hash) + PARENTHASH_FIELD_NUMBER; - hash = (53 * hash) + getParentHash().hashCode(); - hash = (37 * hash) + MINERADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMinerAddress().hashCode(); - hash = (37 * hash) + STATEROOT_FIELD_NUMBER; - hash = (53 * hash) + getStateRoot().hashCode(); - hash = (37 * hash) + TXTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getTxTrieRoot().hashCode(); - hash = (37 * hash) + RECEIPTTRIEROOT_FIELD_NUMBER; - hash = (53 * hash) + getReceiptTrieRoot().hashCode(); - hash = (37 * hash) + LOGSBLOOM_FIELD_NUMBER; - hash = (53 * hash) + getLogsBloom().hashCode(); - hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; - hash = (53 * hash) + getDifficulty().hashCode(); - hash = (37 * hash) + EXTRADATA_FIELD_NUMBER; - hash = (53 * hash) + getExtraData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getBlockHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockHeader} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockHeader) - org.aion.api.server.pb.Message.rsp_getBlockHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockHeader.class, - org.aion.api.server.pb.Message.rsp_getBlockHeader.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBlockHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - timestamp_ = 0L; - - nrgConsumed_ = 0L; - - nrgLimit_ = 0L; - - parentHash_ = com.google.protobuf.ByteString.EMPTY; - - minerAddress_ = com.google.protobuf.ByteString.EMPTY; - - stateRoot_ = com.google.protobuf.ByteString.EMPTY; - - txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; - - logsBloom_ = com.google.protobuf.ByteString.EMPTY; - - difficulty_ = com.google.protobuf.ByteString.EMPTY; - - extraData_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - hash_ = com.google.protobuf.ByteString.EMPTY; - - size_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockHeader build() { - org.aion.api.server.pb.Message.rsp_getBlockHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockHeader buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockHeader result = - new org.aion.api.server.pb.Message.rsp_getBlockHeader(this); - result.blockNumber_ = blockNumber_; - result.timestamp_ = timestamp_; - result.nrgConsumed_ = nrgConsumed_; - result.nrgLimit_ = nrgLimit_; - result.parentHash_ = parentHash_; - result.minerAddress_ = minerAddress_; - result.stateRoot_ = stateRoot_; - result.txTrieRoot_ = txTrieRoot_; - result.receiptTrieRoot_ = receiptTrieRoot_; - result.logsBloom_ = logsBloom_; - result.difficulty_ = difficulty_; - result.extraData_ = extraData_; - result.nonce_ = nonce_; - result.solution_ = solution_; - result.hash_ = hash_; - result.size_ = size_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockHeader) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockHeader other) { - if (other == org.aion.api.server.pb.Message.rsp_getBlockHeader.getDefaultInstance()) - return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getParentHash() != com.google.protobuf.ByteString.EMPTY) { - setParentHash(other.getParentHash()); - } - if (other.getMinerAddress() != com.google.protobuf.ByteString.EMPTY) { - setMinerAddress(other.getMinerAddress()); - } - if (other.getStateRoot() != com.google.protobuf.ByteString.EMPTY) { - setStateRoot(other.getStateRoot()); - } - if (other.getTxTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setTxTrieRoot(other.getTxTrieRoot()); - } - if (other.getReceiptTrieRoot() != com.google.protobuf.ByteString.EMPTY) { - setReceiptTrieRoot(other.getReceiptTrieRoot()); - } - if (other.getLogsBloom() != com.google.protobuf.ByteString.EMPTY) { - setLogsBloom(other.getLogsBloom()); - } - if (other.getDifficulty() != com.google.protobuf.ByteString.EMPTY) { - setDifficulty(other.getDifficulty()); - } - if (other.getExtraData() != com.google.protobuf.ByteString.EMPTY) { - setExtraData(other.getExtraData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { - setHash(other.getHash()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlockHeader) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long timestamp_; - /** uint64 timestamp = 2; */ - public long getTimestamp() { - return timestamp_; - } - /** uint64 timestamp = 2; */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - onChanged(); - return this; - } - /** uint64 timestamp = 2; */ - public Builder clearTimestamp() { - - timestamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** uint64 nrgConsumed = 3; */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsumed = 3; */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long nrgLimit_; - /** uint64 nrgLimit = 4; */ - public long getNrgLimit() { - return nrgLimit_; - } - /** uint64 nrgLimit = 4; */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** uint64 nrgLimit = 4; */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString parentHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes parentHash = 5; */ - public com.google.protobuf.ByteString getParentHash() { - return parentHash_; - } - /** bytes parentHash = 5; */ - public Builder setParentHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - parentHash_ = value; - onChanged(); - return this; - } - /** bytes parentHash = 5; */ - public Builder clearParentHash() { - - parentHash_ = getDefaultInstance().getParentHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString minerAddress_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes minerAddress = 6; */ - public com.google.protobuf.ByteString getMinerAddress() { - return minerAddress_; - } - /** bytes minerAddress = 6; */ - public Builder setMinerAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - minerAddress_ = value; - onChanged(); - return this; - } - /** bytes minerAddress = 6; */ - public Builder clearMinerAddress() { - - minerAddress_ = getDefaultInstance().getMinerAddress(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString stateRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes stateRoot = 7; */ - public com.google.protobuf.ByteString getStateRoot() { - return stateRoot_; - } - /** bytes stateRoot = 7; */ - public Builder setStateRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - stateRoot_ = value; - onChanged(); - return this; - } - /** bytes stateRoot = 7; */ - public Builder clearStateRoot() { - - stateRoot_ = getDefaultInstance().getStateRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes txTrieRoot = 8; */ - public com.google.protobuf.ByteString getTxTrieRoot() { - return txTrieRoot_; - } - /** bytes txTrieRoot = 8; */ - public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes txTrieRoot = 8; */ - public Builder clearTxTrieRoot() { - - txTrieRoot_ = getDefaultInstance().getTxTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString receiptTrieRoot_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes receiptTrieRoot = 9; */ - public com.google.protobuf.ByteString getReceiptTrieRoot() { - return receiptTrieRoot_; - } - /** bytes receiptTrieRoot = 9; */ - public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - receiptTrieRoot_ = value; - onChanged(); - return this; - } - /** bytes receiptTrieRoot = 9; */ - public Builder clearReceiptTrieRoot() { - - receiptTrieRoot_ = getDefaultInstance().getReceiptTrieRoot(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString logsBloom_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes logsBloom = 10; */ - public com.google.protobuf.ByteString getLogsBloom() { - return logsBloom_; - } - /** bytes logsBloom = 10; */ - public Builder setLogsBloom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - logsBloom_ = value; - onChanged(); - return this; - } - /** bytes logsBloom = 10; */ - public Builder clearLogsBloom() { - - logsBloom_ = getDefaultInstance().getLogsBloom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString difficulty_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes difficulty = 11; */ - public com.google.protobuf.ByteString getDifficulty() { - return difficulty_; - } - /** bytes difficulty = 11; */ - public Builder setDifficulty(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - difficulty_ = value; - onChanged(); - return this; - } - /** bytes difficulty = 11; */ - public Builder clearDifficulty() { - - difficulty_ = getDefaultInstance().getDifficulty(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString extraData_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes extraData = 12; */ - public com.google.protobuf.ByteString getExtraData() { - return extraData_; - } - /** bytes extraData = 12; */ - public Builder setExtraData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - extraData_ = value; - onChanged(); - return this; - } - /** bytes extraData = 12; */ - public Builder clearExtraData() { - - extraData_ = getDefaultInstance().getExtraData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 13; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 13; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 13; */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** bytes solution = 14; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** bytes solution = 14; */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** bytes solution = 14; */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes hash = 15; */ - public com.google.protobuf.ByteString getHash() { - return hash_; - } - /** bytes hash = 15; */ - public Builder setHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** bytes hash = 15; */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - - private int size_; - /** uint32 size = 16; */ - public int getSize() { - return size_; - } - /** uint32 size = 16; */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** uint32 size = 16; */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockHeader) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockHeader) - private static final org.aion.api.server.pb.Message.rsp_getBlockHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockHeader(); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlockHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockHeader(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getBlockHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_sendTransactionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_sendTransaction) - com.google.protobuf.MessageOrBuilder { - - /** bytes from = 1; */ - com.google.protobuf.ByteString getFrom(); - - /** bytes to = 2; */ - com.google.protobuf.ByteString getTo(); - - /** bytes value = 3; */ - com.google.protobuf.ByteString getValue(); - - /** bytes data = 4; */ - com.google.protobuf.ByteString getData(); - - /** bytes nonce = 5; */ - com.google.protobuf.ByteString getNonce(); - - /** uint64 nrg = 6; */ - long getNrg(); - - /** uint64 nrgPrice = 7; */ - long getNrgPrice(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} */ - public static final class req_sendTransaction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_sendTransaction) - req_sendTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_sendTransaction.newBuilder() to construct. - private req_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_sendTransaction() { - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - nrg_ = 0L; - nrgPrice_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_sendTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - from_ = input.readBytes(); - break; - } - case 18: - { - to_ = input.readBytes(); - break; - } - case 26: - { - value_ = input.readBytes(); - break; - } - case 34: - { - data_ = input.readBytes(); - break; - } - case 42: - { - nonce_ = input.readBytes(); - break; - } - case 48: - { - nrg_ = input.readUInt64(); - break; - } - case 56: - { - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_sendTransaction.class, - org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); - } - - public static final int FROM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString from_; - /** bytes from = 1; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - - public static final int TO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString to_; - /** bytes to = 2; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - - public static final int VALUE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString value_; - /** bytes value = 3; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** bytes data = 4; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int NONCE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 5; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - - public static final int NRG_FIELD_NUMBER = 6; - private long nrg_; - /** uint64 nrg = 6; */ - public long getNrg() { - return nrg_; - } - - public static final int NRGPRICE_FIELD_NUMBER = 7; - private long nrgPrice_; - /** uint64 nrgPrice = 7; */ - public long getNrgPrice() { - return nrgPrice_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!from_.isEmpty()) { - output.writeBytes(1, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(2, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(3, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(5, nonce_); - } - if (nrg_ != 0L) { - output.writeUInt64(6, nrg_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(7, nrgPrice_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, nonce_); - } - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, nrg_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(7, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_sendTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_sendTransaction other = - (org.aion.api.server.pb.Message.req_sendTransaction) obj; - - boolean result = true; - result = result && getFrom().equals(other.getFrom()); - result = result && getTo().equals(other.getTo()); - result = result && getValue().equals(other.getValue()); - result = result && getData().equals(other.getData()); - result = result && getNonce().equals(other.getNonce()); - result = result && (getNrg() == other.getNrg()); - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_sendTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_sendTransaction} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_sendTransaction) - org.aion.api.server.pb.Message.req_sendTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_sendTransaction.class, - org.aion.api.server.pb.Message.req_sendTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_sendTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - nrg_ = 0L; - - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_sendTransaction build() { - org.aion.api.server.pb.Message.req_sendTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_sendTransaction buildPartial() { - org.aion.api.server.pb.Message.req_sendTransaction result = - new org.aion.api.server.pb.Message.req_sendTransaction(this); - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nonce_ = nonce_; - result.nrg_ = nrg_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_sendTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.req_sendTransaction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_sendTransaction other) { - if (other - == org.aion.api.server.pb.Message.req_sendTransaction.getDefaultInstance()) - return this; - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_sendTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_sendTransaction) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 1; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** bytes from = 1; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** bytes from = 1; */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** bytes to = 2; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** bytes to = 2; */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** bytes to = 2; */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** bytes value = 3; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** bytes value = 3; */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** bytes value = 3; */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 4; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 4; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 4; */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 5; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 5; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 5; */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private long nrg_; - /** uint64 nrg = 6; */ - public long getNrg() { - return nrg_; - } - /** uint64 nrg = 6; */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** uint64 nrg = 6; */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_; - /** uint64 nrgPrice = 7; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 7; */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 7; */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_sendTransaction) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_sendTransaction) - private static final org.aion.api.server.pb.Message.req_sendTransaction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_sendTransaction(); - } - - public static org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_sendTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_sendTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_sendTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_sendTransactionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_sendTransaction) - com.google.protobuf.MessageOrBuilder { - - /** bytes txHash = 1; */ - com.google.protobuf.ByteString getTxHash(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} */ - public static final class rsp_sendTransaction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_sendTransaction) - rsp_sendTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_sendTransaction.newBuilder() to construct. - private rsp_sendTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_sendTransaction() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_sendTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_sendTransaction.class, - org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); - } - - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_sendTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_sendTransaction other = - (org.aion.api.server.pb.Message.rsp_sendTransaction) obj; - - boolean result = true; - result = result && getTxHash().equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_sendTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_sendTransaction} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_sendTransaction) - org.aion.api.server.pb.Message.rsp_sendTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_sendTransaction.class, - org.aion.api.server.pb.Message.rsp_sendTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_sendTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_sendTransaction build() { - org.aion.api.server.pb.Message.rsp_sendTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_sendTransaction buildPartial() { - org.aion.api.server.pb.Message.rsp_sendTransaction result = - new org.aion.api.server.pb.Message.rsp_sendTransaction(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_sendTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_sendTransaction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_sendTransaction other) { - if (other - == org.aion.api.server.pb.Message.rsp_sendTransaction.getDefaultInstance()) - return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_sendTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_sendTransaction) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 1; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 1; */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_sendTransaction) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_sendTransaction) - private static final org.aion.api.server.pb.Message.rsp_sendTransaction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_sendTransaction(); - } - - public static org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_sendTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_sendTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_sendTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getTransactionByHashOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByHash) - com.google.protobuf.MessageOrBuilder { - - /** bytes txHash = 1; */ - com.google.protobuf.ByteString getTxHash(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} */ - public static final class req_getTransactionByHash - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByHash) - req_getTransactionByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionByHash.newBuilder() to construct. - private req_getTransactionByHash( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getTransactionByHash() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getTransactionByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByHash.class, - org.aion.api.server.pb.Message.req_getTransactionByHash.Builder.class); - } - - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionByHash other = - (org.aion.api.server.pb.Message.req_getTransactionByHash) obj; - - boolean result = true; - result = result && getTxHash().equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getTransactionByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByHash} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByHash) - org.aion.api.server.pb.Message.req_getTransactionByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByHash.class, - org.aion.api.server.pb.Message.req_getTransactionByHash - .Builder - .class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionByHash - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionByHash build() { - org.aion.api.server.pb.Message.req_getTransactionByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionByHash buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionByHash result = - new org.aion.api.server.pb.Message.req_getTransactionByHash(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionByHash) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getTransactionByHash) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getTransactionByHash other) { - if (other - == org.aion.api.server.pb.Message.req_getTransactionByHash - .getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getTransactionByHash) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 1; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 1; */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByHash) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByHash) - private static final org.aion.api.server.pb.Message.req_getTransactionByHash - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionByHash(); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getTransactionByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getTransactionByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getTransactionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransaction) - com.google.protobuf.MessageOrBuilder { - - /** uint32 txIndex = 1; */ - int getTxIndex(); - - /** uint64 blocknumber = 2; */ - long getBlocknumber(); - - /** uint64 timeStamp = 3; */ - long getTimeStamp(); - - /** uint64 nrgConsume = 4; */ - long getNrgConsume(); - - /** uint64 nrgPrice = 5; */ - long getNrgPrice(); - - /** bytes blockhash = 6; */ - com.google.protobuf.ByteString getBlockhash(); - - /** bytes from = 7; */ - com.google.protobuf.ByteString getFrom(); - - /** bytes txHash = 8; */ - com.google.protobuf.ByteString getTxHash(); - - /** bytes data = 9; */ - com.google.protobuf.ByteString getData(); - - /** bytes nonce = 10; */ - com.google.protobuf.ByteString getNonce(); - - /** bytes to = 11; */ - com.google.protobuf.ByteString getTo(); - - /** bytes value = 12; */ - com.google.protobuf.ByteString getValue(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} */ - public static final class rsp_getTransaction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransaction) - rsp_getTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getTransaction.newBuilder() to construct. - private rsp_getTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getTransaction() { - txIndex_ = 0; - blocknumber_ = 0L; - timeStamp_ = 0L; - nrgConsume_ = 0L; - nrgPrice_ = 0L; - blockhash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - txHash_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nonce_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - txIndex_ = input.readUInt32(); - break; - } - case 16: - { - blocknumber_ = input.readUInt64(); - break; - } - case 24: - { - timeStamp_ = input.readUInt64(); - break; - } - case 32: - { - nrgConsume_ = input.readUInt64(); - break; - } - case 40: - { - nrgPrice_ = input.readUInt64(); - break; - } - case 50: - { - blockhash_ = input.readBytes(); - break; - } - case 58: - { - from_ = input.readBytes(); - break; - } - case 66: - { - txHash_ = input.readBytes(); - break; - } - case 74: - { - data_ = input.readBytes(); - break; - } - case 82: - { - nonce_ = input.readBytes(); - break; - } - case 90: - { - to_ = input.readBytes(); - break; - } - case 98: - { - value_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransaction.class, - org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); - } - - public static final int TXINDEX_FIELD_NUMBER = 1; - private int txIndex_; - /** uint32 txIndex = 1; */ - public int getTxIndex() { - return txIndex_; - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blocknumber_; - /** uint64 blocknumber = 2; */ - public long getBlocknumber() { - return blocknumber_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timeStamp_; - /** uint64 timeStamp = 3; */ - public long getTimeStamp() { - return timeStamp_; - } - - public static final int NRGCONSUME_FIELD_NUMBER = 4; - private long nrgConsume_; - /** uint64 nrgConsume = 4; */ - public long getNrgConsume() { - return nrgConsume_; - } - - public static final int NRGPRICE_FIELD_NUMBER = 5; - private long nrgPrice_; - /** uint64 nrgPrice = 5; */ - public long getNrgPrice() { - return nrgPrice_; - } - - public static final int BLOCKHASH_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString blockhash_; - /** bytes blockhash = 6; */ - public com.google.protobuf.ByteString getBlockhash() { - return blockhash_; - } - - public static final int FROM_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString from_; - /** bytes from = 7; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - - public static final int TXHASH_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 8; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - - public static final int DATA_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString data_; - /** bytes data = 9; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int NONCE_FIELD_NUMBER = 10; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 10; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - - public static final int TO_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString to_; - /** bytes to = 11; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - - public static final int VALUE_FIELD_NUMBER = 12; - private com.google.protobuf.ByteString value_; - /** bytes value = 12; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txIndex_ != 0) { - output.writeUInt32(1, txIndex_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(2, blocknumber_); - } - if (timeStamp_ != 0L) { - output.writeUInt64(3, timeStamp_); - } - if (nrgConsume_ != 0L) { - output.writeUInt64(4, nrgConsume_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(5, nrgPrice_); - } - if (!blockhash_.isEmpty()) { - output.writeBytes(6, blockhash_); - } - if (!from_.isEmpty()) { - output.writeBytes(7, from_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(8, txHash_); - } - if (!data_.isEmpty()) { - output.writeBytes(9, data_); - } - if (!nonce_.isEmpty()) { - output.writeBytes(10, nonce_); - } - if (!to_.isEmpty()) { - output.writeBytes(11, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(12, value_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, txIndex_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blocknumber_); - } - if (timeStamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, timeStamp_); - } - if (nrgConsume_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, nrgConsume_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, nrgPrice_); - } - if (!blockhash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, blockhash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, from_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, txHash_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, data_); - } - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, nonce_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(12, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getTransaction other = - (org.aion.api.server.pb.Message.rsp_getTransaction) obj; - - boolean result = true; - result = result && (getTxIndex() == other.getTxIndex()); - result = result && (getBlocknumber() == other.getBlocknumber()); - result = result && (getTimeStamp() == other.getTimeStamp()); - result = result && (getNrgConsume() == other.getNrgConsume()); - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && getBlockhash().equals(other.getBlockhash()); - result = result && getFrom().equals(other.getFrom()); - result = result && getTxHash().equals(other.getTxHash()); - result = result && getData().equals(other.getData()); - result = result && getNonce().equals(other.getNonce()); - result = result && getTo().equals(other.getTo()); - result = result && getValue().equals(other.getValue()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeStamp()); - hash = (37 * hash) + NRGCONSUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsume()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockhash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransaction} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransaction) - org.aion.api.server.pb.Message.rsp_getTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransaction.class, - org.aion.api.server.pb.Message.rsp_getTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txIndex_ = 0; - - blocknumber_ = 0L; - - timeStamp_ = 0L; - - nrgConsume_ = 0L; - - nrgPrice_ = 0L; - - blockhash_ = com.google.protobuf.ByteString.EMPTY; - - from_ = com.google.protobuf.ByteString.EMPTY; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nonce_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getTransaction build() { - org.aion.api.server.pb.Message.rsp_getTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getTransaction buildPartial() { - org.aion.api.server.pb.Message.rsp_getTransaction result = - new org.aion.api.server.pb.Message.rsp_getTransaction(this); - result.txIndex_ = txIndex_; - result.blocknumber_ = blocknumber_; - result.timeStamp_ = timeStamp_; - result.nrgConsume_ = nrgConsume_; - result.nrgPrice_ = nrgPrice_; - result.blockhash_ = blockhash_; - result.from_ = from_; - result.txHash_ = txHash_; - result.data_ = data_; - result.nonce_ = nonce_; - result.to_ = to_; - result.value_ = value_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getTransaction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransaction other) { - if (other == org.aion.api.server.pb.Message.rsp_getTransaction.getDefaultInstance()) - return this; - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - if (other.getTimeStamp() != 0L) { - setTimeStamp(other.getTimeStamp()); - } - if (other.getNrgConsume() != 0L) { - setNrgConsume(other.getNrgConsume()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - if (other.getBlockhash() != com.google.protobuf.ByteString.EMPTY) { - setBlockhash(other.getBlockhash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getTransaction) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int txIndex_; - /** uint32 txIndex = 1; */ - public int getTxIndex() { - return txIndex_; - } - /** uint32 txIndex = 1; */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** uint32 txIndex = 1; */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - private long blocknumber_; - /** uint64 blocknumber = 2; */ - public long getBlocknumber() { - return blocknumber_; - } - /** uint64 blocknumber = 2; */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** uint64 blocknumber = 2; */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - - private long timeStamp_; - /** uint64 timeStamp = 3; */ - public long getTimeStamp() { - return timeStamp_; - } - /** uint64 timeStamp = 3; */ - public Builder setTimeStamp(long value) { - - timeStamp_ = value; - onChanged(); - return this; - } - /** uint64 timeStamp = 3; */ - public Builder clearTimeStamp() { - - timeStamp_ = 0L; - onChanged(); - return this; - } - - private long nrgConsume_; - /** uint64 nrgConsume = 4; */ - public long getNrgConsume() { - return nrgConsume_; - } - /** uint64 nrgConsume = 4; */ - public Builder setNrgConsume(long value) { - - nrgConsume_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsume = 4; */ - public Builder clearNrgConsume() { - - nrgConsume_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_; - /** uint64 nrgPrice = 5; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 5; */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 5; */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString blockhash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockhash = 6; */ - public com.google.protobuf.ByteString getBlockhash() { - return blockhash_; - } - /** bytes blockhash = 6; */ - public Builder setBlockhash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockhash_ = value; - onChanged(); - return this; - } - /** bytes blockhash = 6; */ - public Builder clearBlockhash() { - - blockhash_ = getDefaultInstance().getBlockhash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 7; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** bytes from = 7; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** bytes from = 7; */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 8; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 8; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 8; */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 9; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 9; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 9; */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 10; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 10; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 10; */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** bytes to = 11; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** bytes to = 11; */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** bytes to = 11; */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** bytes value = 12; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** bytes value = 12; */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** bytes value = 12; */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransaction) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransaction) - private static final org.aion.api.server.pb.Message.rsp_getTransaction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransaction(); - } - - public static org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_unlockAccountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_unlockAccount) - com.google.protobuf.MessageOrBuilder { - - /** bytes account = 1; */ - com.google.protobuf.ByteString getAccount(); - - /** string password = 2; */ - java.lang.String getPassword(); - /** string password = 2; */ - com.google.protobuf.ByteString getPasswordBytes(); - - /** uint32 duration = 3; */ - int getDuration(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} */ - public static final class req_unlockAccount extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_unlockAccount) - req_unlockAccountOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_unlockAccount.newBuilder() to construct. - private req_unlockAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_unlockAccount() { - account_ = com.google.protobuf.ByteString.EMPTY; - password_ = ""; - duration_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_unlockAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - account_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 24: - { - duration_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_unlockAccount.class, - org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString account_; - /** bytes account = 1; */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DURATION_FIELD_NUMBER = 3; - private int duration_; - /** uint32 duration = 3; */ - public int getDuration() { - return duration_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!account_.isEmpty()) { - output.writeBytes(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - if (duration_ != 0) { - output.writeUInt32(3, duration_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!account_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - if (duration_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, duration_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_unlockAccount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_unlockAccount other = - (org.aion.api.server.pb.Message.req_unlockAccount) obj; - - boolean result = true; - result = result && getAccount().equals(other.getAccount()); - result = result && getPassword().equals(other.getPassword()); - result = result && (getDuration() == other.getDuration()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_unlockAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_unlockAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_unlockAccount) - org.aion.api.server.pb.Message.req_unlockAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_unlockAccount.class, - org.aion.api.server.pb.Message.req_unlockAccount.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_unlockAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - account_ = com.google.protobuf.ByteString.EMPTY; - - password_ = ""; - - duration_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - } - - public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_unlockAccount build() { - org.aion.api.server.pb.Message.req_unlockAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_unlockAccount buildPartial() { - org.aion.api.server.pb.Message.req_unlockAccount result = - new org.aion.api.server.pb.Message.req_unlockAccount(this); - result.account_ = account_; - result.password_ = password_; - result.duration_ = duration_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_unlockAccount) { - return mergeFrom((org.aion.api.server.pb.Message.req_unlockAccount) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_unlockAccount other) { - if (other == org.aion.api.server.pb.Message.req_unlockAccount.getDefaultInstance()) - return this; - if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { - setAccount(other.getAccount()); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - if (other.getDuration() != 0) { - setDuration(other.getDuration()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_unlockAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_unlockAccount) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; - /** bytes account = 1; */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } - /** bytes account = 1; */ - public Builder setAccount(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - account_ = value; - onChanged(); - return this; - } - /** bytes account = 1; */ - public Builder clearAccount() { - - account_ = getDefaultInstance().getAccount(); - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string password = 2; */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** string password = 2; */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** string password = 2; */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - private int duration_; - /** uint32 duration = 3; */ - public int getDuration() { - return duration_; - } - /** uint32 duration = 3; */ - public Builder setDuration(int value) { - - duration_ = value; - onChanged(); - return this; - } - /** uint32 duration = 3; */ - public Builder clearDuration() { - - duration_ = 0; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_unlockAccount) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_unlockAccount) - private static final org.aion.api.server.pb.Message.req_unlockAccount DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_unlockAccount(); - } - - public static org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_unlockAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_unlockAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_unlockAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_accountsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accounts) - com.google.protobuf.MessageOrBuilder { - - /** repeated bytes accout = 1; */ - java.util.List getAccoutList(); - /** repeated bytes accout = 1; */ - int getAccoutCount(); - /** repeated bytes accout = 1; */ - com.google.protobuf.ByteString getAccout(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_accounts} */ - public static final class rsp_accounts extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accounts) - rsp_accountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_accounts.newBuilder() to construct. - private rsp_accounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_accounts() { - accout_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_accounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00000001; - } - accout_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = java.util.Collections.unmodifiableList(accout_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accounts.class, - org.aion.api.server.pb.Message.rsp_accounts.Builder.class); - } - - public static final int ACCOUT_FIELD_NUMBER = 1; - private java.util.List accout_; - /** repeated bytes accout = 1; */ - public java.util.List getAccoutList() { - return accout_; - } - /** repeated bytes accout = 1; */ - public int getAccoutCount() { - return accout_.size(); - } - /** repeated bytes accout = 1; */ - public com.google.protobuf.ByteString getAccout(int index) { - return accout_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accout_.size(); i++) { - output.writeBytes(1, accout_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < accout_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - accout_.get(i)); - } - size += dataSize; - size += 1 * getAccoutList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_accounts other = - (org.aion.api.server.pb.Message.rsp_accounts) obj; - - boolean result = true; - result = result && getAccoutList().equals(other.getAccoutList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccoutCount() > 0) { - hash = (37 * hash) + ACCOUT_FIELD_NUMBER; - hash = (53 * hash) + getAccoutList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_accounts} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accounts) - org.aion.api.server.pb.Message.rsp_accountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accounts.class, - org.aion.api.server.pb.Message.rsp_accounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_accounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - accout_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_accounts build() { - org.aion.api.server.pb.Message.rsp_accounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_accounts buildPartial() { - org.aion.api.server.pb.Message.rsp_accounts result = - new org.aion.api.server.pb.Message.rsp_accounts(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = java.util.Collections.unmodifiableList(accout_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accout_ = accout_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_accounts) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_accounts) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accounts other) { - if (other == org.aion.api.server.pb.Message.rsp_accounts.getDefaultInstance()) - return this; - if (!other.accout_.isEmpty()) { - if (accout_.isEmpty()) { - accout_ = other.accout_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccoutIsMutable(); - accout_.addAll(other.accout_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_accounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_accounts) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List accout_ = - java.util.Collections.emptyList(); - - private void ensureAccoutIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - accout_ = new java.util.ArrayList(accout_); - bitField0_ |= 0x00000001; - } - } - /** repeated bytes accout = 1; */ - public java.util.List getAccoutList() { - return java.util.Collections.unmodifiableList(accout_); - } - /** repeated bytes accout = 1; */ - public int getAccoutCount() { - return accout_.size(); - } - /** repeated bytes accout = 1; */ - public com.google.protobuf.ByteString getAccout(int index) { - return accout_.get(index); - } - /** repeated bytes accout = 1; */ - public Builder setAccout(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccoutIsMutable(); - accout_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes accout = 1; */ - public Builder addAccout(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccoutIsMutable(); - accout_.add(value); - onChanged(); - return this; - } - /** repeated bytes accout = 1; */ - public Builder addAllAccout( - java.lang.Iterable values) { - ensureAccoutIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accout_); - onChanged(); - return this; - } - /** repeated bytes accout = 1; */ - public Builder clearAccout() { - accout_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accounts) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accounts) - private static final org.aion.api.server.pb.Message.rsp_accounts DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accounts(); - } - - public static org.aion.api.server.pb.Message.rsp_accounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_accounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_accounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_accounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_compileOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compile) - com.google.protobuf.MessageOrBuilder { - - /** string code = 1; */ - java.lang.String getCode(); - /** string code = 1; */ - com.google.protobuf.ByteString getCodeBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_compile} */ - public static final class req_compile extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compile) - req_compileOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_compile.newBuilder() to construct. - private req_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_compile() { - code_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_compile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compile_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compile.class, - org.aion.api.server.pb.Message.req_compile.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** string code = 1; */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** string code = 1; */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_compile)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_compile other = - (org.aion.api.server.pb.Message.req_compile) obj; - - boolean result = true; - result = result && getCode().equals(other.getCode()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_compile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_compile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.req_compile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_compile} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compile) - org.aion.api.server.pb.Message.req_compileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compile_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compile.class, - org.aion.api.server.pb.Message.req_compile.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_compile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - code_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compile_descriptor; - } - - public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_compile.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_compile build() { - org.aion.api.server.pb.Message.req_compile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_compile buildPartial() { - org.aion.api.server.pb.Message.req_compile result = - new org.aion.api.server.pb.Message.req_compile(this); - result.code_ = code_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_compile) { - return mergeFrom((org.aion.api.server.pb.Message.req_compile) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_compile other) { - if (other == org.aion.api.server.pb.Message.req_compile.getDefaultInstance()) - return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_compile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_compile) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** string code = 1; */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string code = 1; */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string code = 1; */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** string code = 1; */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** string code = 1; */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compile) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compile) - private static final org.aion.api.server.pb.Message.req_compile DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compile(); - } - - public static org.aion.api.server.pb.Message.req_compile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_compile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_compile(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_compile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_compileOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compile) - com.google.protobuf.MessageOrBuilder { - - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - int getConstractsCount(); - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - boolean containsConstracts(java.lang.String key); - /** Use {@link #getConstractsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getConstracts(); - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - java.util.Map - getConstractsMap(); - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( - java.lang.String key, org.aion.api.server.pb.Message.t_Contract defaultValue); - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow(java.lang.String key); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_compile} */ - public static final class rsp_compile extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compile) - rsp_compileOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_compile.newBuilder() to construct. - private rsp_compile(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_compile() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_compile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - constracts_ = - com.google.protobuf.MapField.newMapField( - ConstractsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry< - java.lang.String, - org.aion.api.server.pb.Message.t_Contract> - constracts__ = - input.readMessage( - ConstractsDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - constracts_ - .getMutableMap() - .put(constracts__.getKey(), constracts__.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetConstracts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compile.class, - org.aion.api.server.pb.Message.rsp_compile.Builder.class); - } - - public static final int CONSTRACTS_FIELD_NUMBER = 1; - - private static final class ConstractsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType - .MESSAGE, - org.aion.api.server.pb.Message.t_Contract - .getDefaultInstance()); - } - - private com.google.protobuf.MapField< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> - constracts_; - - private com.google.protobuf.MapField< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> - internalGetConstracts() { - if (constracts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConstractsDefaultEntryHolder.defaultEntry); - } - return constracts_; - } - - public int getConstractsCount() { - return internalGetConstracts().getMap().size(); - } - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - public boolean containsConstracts(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetConstracts().getMap().containsKey(key); - } - /** Use {@link #getConstractsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map - getConstracts() { - return getConstractsMap(); - } - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - public java.util.Map - getConstractsMap() { - return internalGetConstracts().getMap(); - } - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( - java.lang.String key, org.aion.api.server.pb.Message.t_Contract defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetConstracts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; */ - public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetConstracts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetConstracts(), ConstractsDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry - entry : internalGetConstracts().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> - constracts__ = - ConstractsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, constracts__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compile)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_compile other = - (org.aion.api.server.pb.Message.rsp_compile) obj; - - boolean result = true; - result = result && internalGetConstracts().equals(other.internalGetConstracts()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetConstracts().getMap().isEmpty()) { - hash = (37 * hash) + CONSTRACTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetConstracts().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_compile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_compile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_compile} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compile) - org.aion.api.server.pb.Message.rsp_compileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetConstracts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableConstracts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compile.class, - org.aion.api.server.pb.Message.rsp_compile.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_compile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - internalGetMutableConstracts().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_compile build() { - org.aion.api.server.pb.Message.rsp_compile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_compile buildPartial() { - org.aion.api.server.pb.Message.rsp_compile result = - new org.aion.api.server.pb.Message.rsp_compile(this); - int from_bitField0_ = bitField0_; - result.constracts_ = internalGetConstracts(); - result.constracts_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_compile) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_compile) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compile other) { - if (other == org.aion.api.server.pb.Message.rsp_compile.getDefaultInstance()) - return this; - internalGetMutableConstracts().mergeFrom(other.internalGetConstracts()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_compile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_compile) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> - constracts_; - - private com.google.protobuf.MapField< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> - internalGetConstracts() { - if (constracts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConstractsDefaultEntryHolder.defaultEntry); - } - return constracts_; - } - - private com.google.protobuf.MapField< - java.lang.String, org.aion.api.server.pb.Message.t_Contract> - internalGetMutableConstracts() { - onChanged(); - ; - if (constracts_ == null) { - constracts_ = - com.google.protobuf.MapField.newMapField( - ConstractsDefaultEntryHolder.defaultEntry); - } - if (!constracts_.isMutable()) { - constracts_ = constracts_.copy(); - } - return constracts_; - } - - public int getConstractsCount() { - return internalGetConstracts().getMap().size(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public boolean containsConstracts(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetConstracts().getMap().containsKey(key); - } - /** Use {@link #getConstractsMap()} instead. */ - @java.lang.Deprecated - public java.util.Map - getConstracts() { - return getConstractsMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public java.util.Map - getConstractsMap() { - return internalGetConstracts().getMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public org.aion.api.server.pb.Message.t_Contract getConstractsOrDefault( - java.lang.String key, org.aion.api.server.pb.Message.t_Contract defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetConstracts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetConstracts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearConstracts() { - internalGetMutableConstracts().getMutableMap().clear(); - return this; - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public Builder removeConstracts(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableConstracts().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableConstracts() { - return internalGetMutableConstracts().getMutableMap(); - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public Builder putConstracts( - java.lang.String key, org.aion.api.server.pb.Message.t_Contract value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableConstracts().getMutableMap().put(key, value); - return this; - } - /** - * map<string, .org.aion.api.server.pb.t_Contract> constracts = 1; - */ - public Builder putAllConstracts( - java.util.Map - values) { - internalGetMutableConstracts().getMutableMap().putAll(values); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compile) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compile) - private static final org.aion.api.server.pb.Message.rsp_compile DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compile(); - } - - public static org.aion.api.server.pb.Message.rsp_compile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_compile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_compile(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_compile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getCodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getCode) - com.google.protobuf.MessageOrBuilder { - - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); - - /** uint64 blocknumber = 2; */ - long getBlocknumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getCode} */ - public static final class req_getCode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getCode) - req_getCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getCode.newBuilder() to construct. - private req_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getCode() { - address_ = com.google.protobuf.ByteString.EMPTY; - blocknumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getCode( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 16: - { - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getCode_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getCode.class, - org.aion.api.server.pb.Message.req_getCode.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blocknumber_; - /** uint64 blocknumber = 2; */ - public long getBlocknumber() { - return blocknumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(2, blocknumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getCode)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getCode other = - (org.aion.api.server.pb.Message.req_getCode) obj; - - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && (getBlocknumber() == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getCode parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getCode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getCode} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getCode) - org.aion.api.server.pb.Message.req_getCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getCode_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getCode.class, - org.aion.api.server.pb.Message.req_getCode.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getCode.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getCode_descriptor; - } - - public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getCode.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getCode build() { - org.aion.api.server.pb.Message.req_getCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getCode buildPartial() { - org.aion.api.server.pb.Message.req_getCode result = - new org.aion.api.server.pb.Message.req_getCode(this); - result.address_ = address_; - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getCode) { - return mergeFrom((org.aion.api.server.pb.Message.req_getCode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getCode other) { - if (other == org.aion.api.server.pb.Message.req_getCode.getDefaultInstance()) - return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getCode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getCode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private long blocknumber_; - /** uint64 blocknumber = 2; */ - public long getBlocknumber() { - return blocknumber_; - } - /** uint64 blocknumber = 2; */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** uint64 blocknumber = 2; */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getCode) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getCode) - private static final org.aion.api.server.pb.Message.req_getCode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getCode(); - } - - public static org.aion.api.server.pb.Message.req_getCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getCode(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getCodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCode) - com.google.protobuf.MessageOrBuilder { - - /** bytes code = 1; */ - com.google.protobuf.ByteString getCode(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getCode} */ - public static final class rsp_getCode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCode) - rsp_getCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getCode.newBuilder() to construct. - private rsp_getCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getCode() { - code_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getCode( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - code_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCode.class, - org.aion.api.server.pb.Message.rsp_getCode.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString code_; - /** bytes code = 1; */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!code_.isEmpty()) { - output.writeBytes(1, code_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!code_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, code_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCode)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getCode other = - (org.aion.api.server.pb.Message.rsp_getCode) obj; - - boolean result = true; - result = result && getCode().equals(other.getCode()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCode parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getCode} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCode) - org.aion.api.server.pb.Message.rsp_getCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCode.class, - org.aion.api.server.pb.Message.rsp_getCode.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getCode.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - code_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getCode build() { - org.aion.api.server.pb.Message.rsp_getCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getCode buildPartial() { - org.aion.api.server.pb.Message.rsp_getCode result = - new org.aion.api.server.pb.Message.rsp_getCode(this); - result.code_ = code_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getCode) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getCode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCode other) { - if (other == org.aion.api.server.pb.Message.rsp_getCode.getDefaultInstance()) - return this; - if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { - setCode(other.getCode()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getCode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getCode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; - /** bytes code = 1; */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - /** bytes code = 1; */ - public Builder setCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** bytes code = 1; */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCode) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCode) - private static final org.aion.api.server.pb.Message.rsp_getCode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCode(); - } - - public static org.aion.api.server.pb.Message.rsp_getCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getCode(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_contractDeployOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_contractDeploy) - com.google.protobuf.MessageOrBuilder { - - /** uint64 nrgLimit = 1; */ - long getNrgLimit(); - - /** uint64 nrgPrice = 2; */ - long getNrgPrice(); - - /** bytes from = 3; */ - com.google.protobuf.ByteString getFrom(); - - /** bytes data = 4; */ - com.google.protobuf.ByteString getData(); - - /** bytes value = 5; */ - com.google.protobuf.ByteString getValue(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} */ - public static final class req_contractDeploy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_contractDeploy) - req_contractDeployOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_contractDeploy.newBuilder() to construct. - private req_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_contractDeploy() { - nrgLimit_ = 0L; - nrgPrice_ = 0L; - from_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_contractDeploy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - nrgLimit_ = input.readUInt64(); - break; - } - case 16: - { - nrgPrice_ = input.readUInt64(); - break; - } - case 26: - { - from_ = input.readBytes(); - break; - } - case 34: - { - data_ = input.readBytes(); - break; - } - case 42: - { - value_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_contractDeploy.class, - org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); - } - - public static final int NRGLIMIT_FIELD_NUMBER = 1; - private long nrgLimit_; - /** uint64 nrgLimit = 1; */ - public long getNrgLimit() { - return nrgLimit_; - } - - public static final int NRGPRICE_FIELD_NUMBER = 2; - private long nrgPrice_; - /** uint64 nrgPrice = 2; */ - public long getNrgPrice() { - return nrgPrice_; - } - - public static final int FROM_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString from_; - /** bytes from = 3; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** bytes data = 4; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int VALUE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString value_; - /** bytes value = 5; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nrgLimit_ != 0L) { - output.writeUInt64(1, nrgLimit_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(2, nrgPrice_); - } - if (!from_.isEmpty()) { - output.writeBytes(3, from_); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - if (!value_.isEmpty()) { - output.writeBytes(5, value_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nrgLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nrgLimit_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, nrgPrice_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, from_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, data_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_contractDeploy)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_contractDeploy other = - (org.aion.api.server.pb.Message.req_contractDeploy) obj; - - boolean result = true; - result = result && (getNrgLimit() == other.getNrgLimit()); - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && getFrom().equals(other.getFrom()); - result = result && getData().equals(other.getData()); - result = result && getValue().equals(other.getValue()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgLimit()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_contractDeploy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_contractDeploy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_contractDeploy) - org.aion.api.server.pb.Message.req_contractDeployOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_contractDeploy.class, - org.aion.api.server.pb.Message.req_contractDeploy.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_contractDeploy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - nrgLimit_ = 0L; - - nrgPrice_ = 0L; - - from_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - } - - public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_contractDeploy build() { - org.aion.api.server.pb.Message.req_contractDeploy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_contractDeploy buildPartial() { - org.aion.api.server.pb.Message.req_contractDeploy result = - new org.aion.api.server.pb.Message.req_contractDeploy(this); - result.nrgLimit_ = nrgLimit_; - result.nrgPrice_ = nrgPrice_; - result.from_ = from_; - result.data_ = data_; - result.value_ = value_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_contractDeploy) { - return mergeFrom((org.aion.api.server.pb.Message.req_contractDeploy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_contractDeploy other) { - if (other == org.aion.api.server.pb.Message.req_contractDeploy.getDefaultInstance()) - return this; - if (other.getNrgLimit() != 0L) { - setNrgLimit(other.getNrgLimit()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_contractDeploy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_contractDeploy) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nrgLimit_; - /** uint64 nrgLimit = 1; */ - public long getNrgLimit() { - return nrgLimit_; - } - /** uint64 nrgLimit = 1; */ - public Builder setNrgLimit(long value) { - - nrgLimit_ = value; - onChanged(); - return this; - } - /** uint64 nrgLimit = 1; */ - public Builder clearNrgLimit() { - - nrgLimit_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_; - /** uint64 nrgPrice = 2; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 2; */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 2; */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 3; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** bytes from = 3; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** bytes from = 3; */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 4; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 4; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 4; */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** bytes value = 5; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** bytes value = 5; */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** bytes value = 5; */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_contractDeploy) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_contractDeploy) - private static final org.aion.api.server.pb.Message.req_contractDeploy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_contractDeploy(); - } - - public static org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_contractDeploy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_contractDeploy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_contractDeploy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_contractDeployOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_contractDeploy) - com.google.protobuf.MessageOrBuilder { - - /** bytes txHash = 1; */ - com.google.protobuf.ByteString getTxHash(); - - /** bytes contractAddress = 2; */ - com.google.protobuf.ByteString getContractAddress(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} */ - public static final class rsp_contractDeploy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_contractDeploy) - rsp_contractDeployOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_contractDeploy.newBuilder() to construct. - private rsp_contractDeploy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_contractDeploy() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_contractDeploy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - txHash_ = input.readBytes(); - break; - } - case 18: - { - contractAddress_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_contractDeploy.class, - org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); - } - - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - - public static final int CONTRACTADDRESS_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString contractAddress_; - /** bytes contractAddress = 2; */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - if (!contractAddress_.isEmpty()) { - output.writeBytes(2, contractAddress_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); - } - if (!contractAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, contractAddress_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_contractDeploy)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_contractDeploy other = - (org.aion.api.server.pb.Message.rsp_contractDeploy) obj; - - boolean result = true; - result = result && getTxHash().equals(other.getTxHash()); - result = result && getContractAddress().equals(other.getContractAddress()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getContractAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_contractDeploy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_contractDeploy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_contractDeploy) - org.aion.api.server.pb.Message.rsp_contractDeployOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_contractDeploy.class, - org.aion.api.server.pb.Message.rsp_contractDeploy.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_contractDeploy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_contractDeploy build() { - org.aion.api.server.pb.Message.rsp_contractDeploy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_contractDeploy buildPartial() { - org.aion.api.server.pb.Message.rsp_contractDeploy result = - new org.aion.api.server.pb.Message.rsp_contractDeploy(this); - result.txHash_ = txHash_; - result.contractAddress_ = contractAddress_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_contractDeploy) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_contractDeploy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_contractDeploy other) { - if (other == org.aion.api.server.pb.Message.rsp_contractDeploy.getDefaultInstance()) - return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { - setContractAddress(other.getContractAddress()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_contractDeploy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_contractDeploy) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 1; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 1; */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contractAddress_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes contractAddress = 2; */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } - /** bytes contractAddress = 2; */ - public Builder setContractAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddress_ = value; - onChanged(); - return this; - } - /** bytes contractAddress = 2; */ - public Builder clearContractAddress() { - - contractAddress_ = getDefaultInstance().getContractAddress(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_contractDeploy) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_contractDeploy) - private static final org.aion.api.server.pb.Message.rsp_contractDeploy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_contractDeploy(); - } - - public static org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_contractDeploy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_contractDeploy(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_contractDeploy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_callOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_call) - com.google.protobuf.MessageOrBuilder { - - /** bytes from = 1; */ - com.google.protobuf.ByteString getFrom(); - - /** bytes to = 2; */ - com.google.protobuf.ByteString getTo(); - - /** bytes data = 3; */ - com.google.protobuf.ByteString getData(); - - /** bytes value = 4; */ - com.google.protobuf.ByteString getValue(); - - /** uint64 nrg = 5; */ - long getNrg(); - - /** uint64 nrgPrice = 6; */ - long getNrgPrice(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_call} */ - public static final class req_call extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_call) - req_callOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_call.newBuilder() to construct. - private req_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_call() { - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - nrg_ = 0L; - nrgPrice_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_call( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - from_ = input.readBytes(); - break; - } - case 18: - { - to_ = input.readBytes(); - break; - } - case 26: - { - data_ = input.readBytes(); - break; - } - case 34: - { - value_ = input.readBytes(); - break; - } - case 40: - { - nrg_ = input.readUInt64(); - break; - } - case 48: - { - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_call_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_call.class, - org.aion.api.server.pb.Message.req_call.Builder.class); - } - - public static final int FROM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString from_; - /** bytes from = 1; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - - public static final int TO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString to_; - /** bytes to = 2; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - - public static final int DATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString data_; - /** bytes data = 3; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int VALUE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString value_; - /** bytes value = 4; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int NRG_FIELD_NUMBER = 5; - private long nrg_; - /** uint64 nrg = 5; */ - public long getNrg() { - return nrg_; - } - - public static final int NRGPRICE_FIELD_NUMBER = 6; - private long nrgPrice_; - /** uint64 nrgPrice = 6; */ - public long getNrgPrice() { - return nrgPrice_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!from_.isEmpty()) { - output.writeBytes(1, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(2, to_); - } - if (!data_.isEmpty()) { - output.writeBytes(3, data_); - } - if (!value_.isEmpty()) { - output.writeBytes(4, value_); - } - if (nrg_ != 0L) { - output.writeUInt64(5, nrg_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(6, nrgPrice_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, to_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, data_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_); - } - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, nrg_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_call)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_call other = - (org.aion.api.server.pb.Message.req_call) obj; - - boolean result = true; - result = result && getFrom().equals(other.getFrom()); - result = result && getTo().equals(other.getTo()); - result = result && getData().equals(other.getData()); - result = result && getValue().equals(other.getValue()); - result = result && (getNrg() == other.getNrg()); - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_call parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_call parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_call parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.req_call prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_call} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_call) - org.aion.api.server.pb.Message.req_callOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_call_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_call.class, - org.aion.api.server.pb.Message.req_call.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_call.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - nrg_ = 0L; - - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_call_descriptor; - } - - public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_call.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_call build() { - org.aion.api.server.pb.Message.req_call result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_call buildPartial() { - org.aion.api.server.pb.Message.req_call result = - new org.aion.api.server.pb.Message.req_call(this); - result.from_ = from_; - result.to_ = to_; - result.data_ = data_; - result.value_ = value_; - result.nrg_ = nrg_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_call) { - return mergeFrom((org.aion.api.server.pb.Message.req_call) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_call other) { - if (other == org.aion.api.server.pb.Message.req_call.getDefaultInstance()) - return this; - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_call parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_call) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 1; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** bytes from = 1; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** bytes from = 1; */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** bytes to = 2; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** bytes to = 2; */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** bytes to = 2; */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 3; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 3; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 3; */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** bytes value = 4; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** bytes value = 4; */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** bytes value = 4; */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private long nrg_; - /** uint64 nrg = 5; */ - public long getNrg() { - return nrg_; - } - /** uint64 nrg = 5; */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** uint64 nrg = 5; */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_; - /** uint64 nrgPrice = 6; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 6; */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 6; */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_call) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_call) - private static final org.aion.api.server.pb.Message.req_call DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_call(); - } - - public static org.aion.api.server.pb.Message.req_call getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_call parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_call(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_call getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_callOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_call) - com.google.protobuf.MessageOrBuilder { - - /** bytes result = 1; */ - com.google.protobuf.ByteString getResult(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_call} */ - public static final class rsp_call extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_call) - rsp_callOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_call.newBuilder() to construct. - private rsp_call(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_call() { - result_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_call( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - result_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_call_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_call.class, - org.aion.api.server.pb.Message.rsp_call.Builder.class); - } - - public static final int RESULT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString result_; - /** bytes result = 1; */ - public com.google.protobuf.ByteString getResult() { - return result_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!result_.isEmpty()) { - output.writeBytes(1, result_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!result_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, result_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_call)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_call other = - (org.aion.api.server.pb.Message.rsp_call) obj; - - boolean result = true; - result = result && getResult().equals(other.getResult()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_call parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_call parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_call prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_call} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_call) - org.aion.api.server.pb.Message.rsp_callOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_call_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_call.class, - org.aion.api.server.pb.Message.rsp_call.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_call.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - result_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_call_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_call.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_call build() { - org.aion.api.server.pb.Message.rsp_call result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_call buildPartial() { - org.aion.api.server.pb.Message.rsp_call result = - new org.aion.api.server.pb.Message.rsp_call(this); - result.result_ = result_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_call) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_call) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_call other) { - if (other == org.aion.api.server.pb.Message.rsp_call.getDefaultInstance()) - return this; - if (other.getResult() != com.google.protobuf.ByteString.EMPTY) { - setResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_call parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_call) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY; - /** bytes result = 1; */ - public com.google.protobuf.ByteString getResult() { - return result_; - } - /** bytes result = 1; */ - public Builder setResult(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - result_ = value; - onChanged(); - return this; - } - /** bytes result = 1; */ - public Builder clearResult() { - - result_ = getDefaultInstance().getResult(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_call) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_call) - private static final org.aion.api.server.pb.Message.rsp_call DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_call(); - } - - public static org.aion.api.server.pb.Message.rsp_call getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_call parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_call(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_call getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBlockByHashOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockByHash) - com.google.protobuf.MessageOrBuilder { - - /** bytes blockHash = 1; */ - com.google.protobuf.ByteString getBlockHash(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} */ - public static final class req_getBlockByHash extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockByHash) - req_getBlockByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockByHash.newBuilder() to construct. - private req_getBlockByHash(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBlockByHash() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBlockByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - blockHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByHash.class, - org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); - } - - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockByHash other = - (org.aion.api.server.pb.Message.req_getBlockByHash) obj; - - boolean result = true; - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockByHash} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockByHash) - org.aion.api.server.pb.Message.req_getBlockByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockByHash.class, - org.aion.api.server.pb.Message.req_getBlockByHash.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockByHash build() { - org.aion.api.server.pb.Message.req_getBlockByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockByHash buildPartial() { - org.aion.api.server.pb.Message.req_getBlockByHash result = - new org.aion.api.server.pb.Message.req_getBlockByHash(this); - result.blockHash_ = blockHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockByHash) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockByHash) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByHash other) { - if (other == org.aion.api.server.pb.Message.req_getBlockByHash.getDefaultInstance()) - return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockByHash) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** bytes blockHash = 1; */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** bytes blockHash = 1; */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockByHash) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockByHash) - private static final org.aion.api.server.pb.Message.req_getBlockByHash DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockByHash(); - } - - public static org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBlockByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBlockHeaderByHashOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockHeaderByHash) - com.google.protobuf.MessageOrBuilder { - - /** bytes blockHash = 1; */ - com.google.protobuf.ByteString getBlockHash(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} */ - public static final class req_getBlockHeaderByHash - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) - req_getBlockHeaderByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockHeaderByHash.newBuilder() to construct. - private req_getBlockHeaderByHash( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBlockHeaderByHash() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBlockHeaderByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - blockHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, - org.aion.api.server.pb.Message.req_getBlockHeaderByHash.Builder.class); - } - - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockHeaderByHash other = - (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) obj; - - boolean result = true; - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockHeaderByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockHeaderByHash} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockHeaderByHash) - org.aion.api.server.pb.Message.req_getBlockHeaderByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockHeaderByHash.class, - org.aion.api.server.pb.Message.req_getBlockHeaderByHash - .Builder - .class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBlockHeaderByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockHeaderByHash.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash build() { - org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash buildPartial() { - org.aion.api.server.pb.Message.req_getBlockHeaderByHash result = - new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(this); - result.blockHash_ = blockHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockHeaderByHash) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getBlockHeaderByHash other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockHeaderByHash - .getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockHeaderByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockHeaderByHash) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** bytes blockHash = 1; */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** bytes blockHash = 1; */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockHeaderByHash) - private static final org.aion.api.server.pb.Message.req_getBlockHeaderByHash - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockHeaderByHash(); - } - - public static org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockHeaderByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockHeaderByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBlockHeaderByHash getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getTransactionCountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCount) - com.google.protobuf.MessageOrBuilder { - - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); - - /** uint64 blocknumber = 2; */ - long getBlocknumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} */ - public static final class req_getTransactionCount extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCount) - req_getTransactionCountOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionCount.newBuilder() to construct. - private req_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getTransactionCount() { - address_ = com.google.protobuf.ByteString.EMPTY; - blocknumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getTransactionCount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 16: - { - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCount.class, - org.aion.api.server.pb.Message.req_getTransactionCount.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blocknumber_; - /** uint64 blocknumber = 2; */ - public long getBlocknumber() { - return blocknumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(2, blocknumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionCount other = - (org.aion.api.server.pb.Message.req_getTransactionCount) obj; - - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && (getBlocknumber() == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getTransactionCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCount) - org.aion.api.server.pb.Message.req_getTransactionCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCount.class, - org.aion.api.server.pb.Message.req_getTransactionCount - .Builder - .class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionCount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionCount - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionCount.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionCount build() { - org.aion.api.server.pb.Message.req_getTransactionCount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionCount buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionCount result = - new org.aion.api.server.pb.Message.req_getTransactionCount(this); - result.address_ = address_; - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCount) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getTransactionCount) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCount other) { - if (other - == org.aion.api.server.pb.Message.req_getTransactionCount - .getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionCount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getTransactionCount) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private long blocknumber_; - /** uint64 blocknumber = 2; */ - public long getBlocknumber() { - return blocknumber_; - } - /** uint64 blocknumber = 2; */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** uint64 blocknumber = 2; */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCount) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCount) - private static final org.aion.api.server.pb.Message.req_getTransactionCount - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCount(); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getTransactionCount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionCount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getTransactionCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getTransactionCountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionCount) - com.google.protobuf.MessageOrBuilder { - - /** uint64 txCount = 1; */ - long getTxCount(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} */ - public static final class rsp_getTransactionCount extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionCount) - rsp_getTransactionCountOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getTransactionCount.newBuilder() to construct. - private rsp_getTransactionCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getTransactionCount() { - txCount_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getTransactionCount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - txCount_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionCount.class, - org.aion.api.server.pb.Message.rsp_getTransactionCount.Builder.class); - } - - public static final int TXCOUNT_FIELD_NUMBER = 1; - private long txCount_; - /** uint64 txCount = 1; */ - public long getTxCount() { - return txCount_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txCount_ != 0L) { - output.writeUInt64(1, txCount_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, txCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getTransactionCount other = - (org.aion.api.server.pb.Message.rsp_getTransactionCount) obj; - - boolean result = true; - result = result && (getTxCount() == other.getTxCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTxCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getTransactionCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionCount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionCount) - org.aion.api.server.pb.Message.rsp_getTransactionCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionCount.class, - org.aion.api.server.pb.Message.rsp_getTransactionCount - .Builder - .class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getTransactionCount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txCount_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionCount - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getTransactionCount.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getTransactionCount build() { - org.aion.api.server.pb.Message.rsp_getTransactionCount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionCount buildPartial() { - org.aion.api.server.pb.Message.rsp_getTransactionCount result = - new org.aion.api.server.pb.Message.rsp_getTransactionCount(this); - result.txCount_ = txCount_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionCount) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getTransactionCount) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionCount other) { - if (other - == org.aion.api.server.pb.Message.rsp_getTransactionCount - .getDefaultInstance()) return this; - if (other.getTxCount() != 0L) { - setTxCount(other.getTxCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getTransactionCount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getTransactionCount) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long txCount_; - /** uint64 txCount = 1; */ - public long getTxCount() { - return txCount_; - } - /** uint64 txCount = 1; */ - public Builder setTxCount(long value) { - - txCount_ = value; - onChanged(); - return this; - } - /** uint64 txCount = 1; */ - public Builder clearTxCount() { - - txCount_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionCount) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionCount) - private static final org.aion.api.server.pb.Message.rsp_getTransactionCount - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionCount(); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getTransactionCount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getTransactionCount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getTransactionCountByHashOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionCountByHash) - com.google.protobuf.MessageOrBuilder { - - /** bytes txHash = 1; */ - com.google.protobuf.ByteString getTxHash(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} */ - public static final class req_getTransactionCountByHash - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionCountByHash) - req_getTransactionCountByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionCountByHash.newBuilder() to construct. - private req_getTransactionCountByHash( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getTransactionCountByHash() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getTransactionCountByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, - org.aion.api.server.pb.Message.req_getTransactionCountByHash - .Builder - .class); - } - - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionCountByHash other = - (org.aion.api.server.pb.Message.req_getTransactionCountByHash) obj; - - boolean result = true; - result = result && getTxHash().equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getTransactionCountByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionCountByHash} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionCountByHash) - org.aion.api.server.pb.Message.req_getTransactionCountByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionCountByHash.class, - org.aion.api.server.pb.Message.req_getTransactionCountByHash - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getTransactionCountByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionCountByHash - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionCountByHash - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionCountByHash build() { - org.aion.api.server.pb.Message.req_getTransactionCountByHash result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionCountByHash buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionCountByHash result = - new org.aion.api.server.pb.Message.req_getTransactionCountByHash(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionCountByHash) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getTransactionCountByHash) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getTransactionCountByHash other) { - if (other - == org.aion.api.server.pb.Message.req_getTransactionCountByHash - .getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionCountByHash parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getTransactionCountByHash) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 1; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 1; */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionCountByHash) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionCountByHash) - private static final org.aion.api.server.pb.Message.req_getTransactionCountByHash - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionCountByHash(); - } - - public static org.aion.api.server.pb.Message.req_getTransactionCountByHash - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getTransactionCountByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionCountByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getTransactionCountByHash - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_blockNumberOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_blockNumber) - com.google.protobuf.MessageOrBuilder { - - /** uint64 blocknumber = 1; */ - long getBlocknumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} */ - public static final class rsp_blockNumber extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_blockNumber) - rsp_blockNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_blockNumber.newBuilder() to construct. - private rsp_blockNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_blockNumber() { - blocknumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_blockNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_blockNumber.class, - org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blocknumber_; - /** uint64 blocknumber = 1; */ - public long getBlocknumber() { - return blocknumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blocknumber_ != 0L) { - output.writeUInt64(1, blocknumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_blockNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_blockNumber other = - (org.aion.api.server.pb.Message.rsp_blockNumber) obj; - - boolean result = true; - result = result && (getBlocknumber() == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_blockNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_blockNumber} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_blockNumber) - org.aion.api.server.pb.Message.rsp_blockNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_blockNumber.class, - org.aion.api.server.pb.Message.rsp_blockNumber.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_blockNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_blockNumber build() { - org.aion.api.server.pb.Message.rsp_blockNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_blockNumber buildPartial() { - org.aion.api.server.pb.Message.rsp_blockNumber result = - new org.aion.api.server.pb.Message.rsp_blockNumber(this); - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_blockNumber) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_blockNumber) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_blockNumber other) { - if (other == org.aion.api.server.pb.Message.rsp_blockNumber.getDefaultInstance()) - return this; - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_blockNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_blockNumber) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blocknumber_; - /** uint64 blocknumber = 1; */ - public long getBlocknumber() { - return blocknumber_; - } - /** uint64 blocknumber = 1; */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** uint64 blocknumber = 1; */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_blockNumber) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_blockNumber) - private static final org.aion.api.server.pb.Message.rsp_blockNumber DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_blockNumber(); - } - - public static org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_blockNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_blockNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_blockNumber getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBalanceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBalance) - com.google.protobuf.MessageOrBuilder { - - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); - - /** uint64 blockNumber = 2; */ - long getBlockNumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBalance} */ - public static final class req_getBalance extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBalance) - req_getBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBalance.newBuilder() to construct. - private req_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBalance() { - address_ = com.google.protobuf.ByteString.EMPTY; - blockNumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 16: - { - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBalance.class, - org.aion.api.server.pb.Message.req_getBalance.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blockNumber_; - /** uint64 blockNumber = 2; */ - public long getBlockNumber() { - return blockNumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (blockNumber_ != 0L) { - output.writeUInt64(2, blockNumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBalance)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBalance other = - (org.aion.api.server.pb.Message.req_getBalance) obj; - - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBalance} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBalance) - org.aion.api.server.pb.Message.req_getBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBalance.class, - org.aion.api.server.pb.Message.req_getBalance.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBalance build() { - org.aion.api.server.pb.Message.req_getBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBalance buildPartial() { - org.aion.api.server.pb.Message.req_getBalance result = - new org.aion.api.server.pb.Message.req_getBalance(this); - result.address_ = address_; - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBalance) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBalance) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBalance other) { - if (other == org.aion.api.server.pb.Message.req_getBalance.getDefaultInstance()) - return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBalance) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private long blockNumber_; - /** uint64 blockNumber = 2; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 2; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 2; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBalance) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBalance) - private static final org.aion.api.server.pb.Message.req_getBalance DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBalance(); - } - - public static org.aion.api.server.pb.Message.req_getBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getBalanceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBalance) - com.google.protobuf.MessageOrBuilder { - - /** bytes balance = 1; */ - com.google.protobuf.ByteString getBalance(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} */ - public static final class rsp_getBalance extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBalance) - rsp_getBalanceOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBalance.newBuilder() to construct. - private rsp_getBalance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getBalance() { - balance_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getBalance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - balance_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBalance.class, - org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); - } - - public static final int BALANCE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString balance_; - /** bytes balance = 1; */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!balance_.isEmpty()) { - output.writeBytes(1, balance_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!balance_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, balance_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBalance)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBalance other = - (org.aion.api.server.pb.Message.rsp_getBalance) obj; - - boolean result = true; - result = result && getBalance().equals(other.getBalance()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + getBalance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBalance prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBalance} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBalance) - org.aion.api.server.pb.Message.rsp_getBalanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBalance.class, - org.aion.api.server.pb.Message.rsp_getBalance.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getBalance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - balance_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBalance build() { - org.aion.api.server.pb.Message.rsp_getBalance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBalance buildPartial() { - org.aion.api.server.pb.Message.rsp_getBalance result = - new org.aion.api.server.pb.Message.rsp_getBalance(this); - result.balance_ = balance_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBalance) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBalance) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBalance other) { - if (other == org.aion.api.server.pb.Message.rsp_getBalance.getDefaultInstance()) - return this; - if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { - setBalance(other.getBalance()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBalance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBalance) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; - /** bytes balance = 1; */ - public com.google.protobuf.ByteString getBalance() { - return balance_; - } - /** bytes balance = 1; */ - public Builder setBalance(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - balance_ = value; - onChanged(); - return this; - } - /** bytes balance = 1; */ - public Builder clearBalance() { - - balance_ = getDefaultInstance().getBalance(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBalance) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBalance) - private static final org.aion.api.server.pb.Message.rsp_getBalance DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBalance(); - } - - public static org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBalance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBalance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getBalance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getStorageAtOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getStorageAt) - com.google.protobuf.MessageOrBuilder { - - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); - - /** string key = 2; */ - java.lang.String getKey(); - /** string key = 2; */ - com.google.protobuf.ByteString getKeyBytes(); - - /** uint64 blocknumber = 3; */ - long getBlocknumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} */ - public static final class req_getStorageAt extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getStorageAt) - req_getStorageAtOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getStorageAt.newBuilder() to construct. - private req_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getStorageAt() { - address_ = com.google.protobuf.ByteString.EMPTY; - key_ = ""; - blocknumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getStorageAt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 24: - { - blocknumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getStorageAt.class, - org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** string key = 2; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** string key = 2; */ - public com.google.protobuf.ByteString getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 3; - private long blocknumber_; - /** uint64 blocknumber = 3; */ - public long getBlocknumber() { - return blocknumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - if (blocknumber_ != 0L) { - output.writeUInt64(3, blocknumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - if (blocknumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, blocknumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getStorageAt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getStorageAt other = - (org.aion.api.server.pb.Message.req_getStorageAt) obj; - - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && getKey().equals(other.getKey()); - result = result && (getBlocknumber() == other.getBlocknumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlocknumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getStorageAt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getStorageAt} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getStorageAt) - org.aion.api.server.pb.Message.req_getStorageAtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getStorageAt.class, - org.aion.api.server.pb.Message.req_getStorageAt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_getStorageAt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - key_ = ""; - - blocknumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - } - - public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getStorageAt build() { - org.aion.api.server.pb.Message.req_getStorageAt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getStorageAt buildPartial() { - org.aion.api.server.pb.Message.req_getStorageAt result = - new org.aion.api.server.pb.Message.req_getStorageAt(this); - result.address_ = address_; - result.key_ = key_; - result.blocknumber_ = blocknumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getStorageAt) { - return mergeFrom((org.aion.api.server.pb.Message.req_getStorageAt) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getStorageAt other) { - if (other == org.aion.api.server.pb.Message.req_getStorageAt.getDefaultInstance()) - return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getBlocknumber() != 0L) { - setBlocknumber(other.getBlocknumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getStorageAt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getStorageAt) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** string key = 2; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string key = 2; */ - public com.google.protobuf.ByteString getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string key = 2; */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** string key = 2; */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** string key = 2; */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private long blocknumber_; - /** uint64 blocknumber = 3; */ - public long getBlocknumber() { - return blocknumber_; - } - /** uint64 blocknumber = 3; */ - public Builder setBlocknumber(long value) { - - blocknumber_ = value; - onChanged(); - return this; - } - /** uint64 blocknumber = 3; */ - public Builder clearBlocknumber() { - - blocknumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getStorageAt) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getStorageAt) - private static final org.aion.api.server.pb.Message.req_getStorageAt DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getStorageAt(); - } - - public static org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getStorageAt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getStorageAt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getStorageAt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getStorageAtOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStorageAt) - com.google.protobuf.MessageOrBuilder { - - /** string storage = 1; */ - java.lang.String getStorage(); - /** string storage = 1; */ - com.google.protobuf.ByteString getStorageBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} */ - public static final class rsp_getStorageAt extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStorageAt) - rsp_getStorageAtOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getStorageAt.newBuilder() to construct. - private rsp_getStorageAt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getStorageAt() { - storage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getStorageAt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - storage_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStorageAt.class, - org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); - } - - public static final int STORAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object storage_; - /** string storage = 1; */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } - } - /** string storage = 1; */ - public com.google.protobuf.ByteString getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getStorageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storage_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStorageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storage_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStorageAt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getStorageAt other = - (org.aion.api.server.pb.Message.rsp_getStorageAt) obj; - - boolean result = true; - result = result && getStorage().equals(other.getStorage()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getStorage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getStorageAt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getStorageAt} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStorageAt) - org.aion.api.server.pb.Message.rsp_getStorageAtOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStorageAt.class, - org.aion.api.server.pb.Message.rsp_getStorageAt.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getStorageAt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - storage_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getStorageAt build() { - org.aion.api.server.pb.Message.rsp_getStorageAt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getStorageAt buildPartial() { - org.aion.api.server.pb.Message.rsp_getStorageAt result = - new org.aion.api.server.pb.Message.rsp_getStorageAt(this); - result.storage_ = storage_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getStorageAt) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getStorageAt) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStorageAt other) { - if (other == org.aion.api.server.pb.Message.rsp_getStorageAt.getDefaultInstance()) - return this; - if (!other.getStorage().isEmpty()) { - storage_ = other.storage_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getStorageAt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getStorageAt) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object storage_ = ""; - /** string storage = 1; */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string storage = 1; */ - public com.google.protobuf.ByteString getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string storage = 1; */ - public Builder setStorage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storage_ = value; - onChanged(); - return this; - } - /** string storage = 1; */ - public Builder clearStorage() { - - storage_ = getDefaultInstance().getStorage(); - onChanged(); - return this; - } - /** string storage = 1; */ - public Builder setStorageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storage_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStorageAt) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStorageAt) - private static final org.aion.api.server.pb.Message.rsp_getStorageAt DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStorageAt(); - } - - public static org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getStorageAt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getStorageAt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getStorageAt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBlockTransactionCountByHashOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - com.google.protobuf.MessageOrBuilder { - - /** bytes blockHash = 1; */ - com.google.protobuf.ByteString getBlockHash(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} */ - public static final class req_getBlockTransactionCountByHash - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - req_getBlockTransactionCountByHashOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockTransactionCountByHash.newBuilder() to construct. - private req_getBlockTransactionCountByHash( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBlockTransactionCountByHash() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBlockTransactionCountByHash( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - blockHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.class, - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - .Builder - .class); - } - - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other = - (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) obj; - - boolean result = true; - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByHash} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHashOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - .class, - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash build() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - buildPartial() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash result = - new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(this); - result.blockHash_ = blockHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - .getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** bytes blockHash = 1; */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** bytes blockHash = 1; */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByHash) - private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash(); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockTransactionCountByHash parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockTransactionCountByHash(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByHash - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getBlockTransactionCountOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockTransactionCount) - com.google.protobuf.MessageOrBuilder { - - /** uint32 txCount = 1; */ - int getTxCount(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} */ - public static final class rsp_getBlockTransactionCount - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) - rsp_getBlockTransactionCountOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockTransactionCount.newBuilder() to construct. - private rsp_getBlockTransactionCount( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getBlockTransactionCount() { - txCount_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getBlockTransactionCount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - txCount_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - .Builder - .class); - } - - public static final int TXCOUNT_FIELD_NUMBER = 1; - private int txCount_; - /** uint32 txCount = 1; */ - public int getTxCount() { - return txCount_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txCount_ != 0) { - output.writeUInt32(1, txCount_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, txCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other = - (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) obj; - - boolean result = true; - result = result && (getTxCount() == other.getTxCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getTxCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockTransactionCount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockTransactionCount) - org.aion.api.server.pb.Message.rsp_getBlockTransactionCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.class, - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.rsp_getBlockTransactionCount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txCount_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount build() { - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount result = - new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(this); - result.txCount_ = txCount_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount other) { - if (other - == org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - .getDefaultInstance()) return this; - if (other.getTxCount() != 0) { - setTxCount(other.getTxCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockTransactionCount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlockTransactionCount) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int txCount_; - /** uint32 txCount = 1; */ - public int getTxCount() { - return txCount_; - } - /** uint32 txCount = 1; */ - public Builder setTxCount(int value) { - - txCount_ = value; - onChanged(); - return this; - } - /** uint32 txCount = 1; */ - public Builder clearTxCount() { - - txCount_ = 0; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockTransactionCount) - private static final org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockTransactionCount(); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlockTransactionCount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockTransactionCount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getBlockTransactionCount - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBlockTransactionCountByNumberOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - com.google.protobuf.MessageOrBuilder { - - /** uint64 blockNumber = 1; */ - long getBlockNumber(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} */ - public static final class req_getBlockTransactionCountByNumber - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - req_getBlockTransactionCountByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockTransactionCountByNumber.newBuilder() to construct. - private req_getBlockTransactionCountByNumber( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBlockTransactionCountByNumber() { - blockNumber_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBlockTransactionCountByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - .class, - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - .Builder - .class); - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other = - (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockTransactionCountByNumber} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - .class, - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber build() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - buildPartial() { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber result = - new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber( - this); - result.blockNumber_ = blockNumber_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - .getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockTransactionCountByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber(); - } - - public static org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - req_getBlockTransactionCountByNumber>() { - public req_getBlockTransactionCountByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockTransactionCountByNumber( - input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBlockTransactionCountByNumber - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getTransactionByBlockHashAndIndexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - com.google.protobuf.MessageOrBuilder { - - /** bytes blockHash = 1; */ - com.google.protobuf.ByteString getBlockHash(); - - /** uint32 txIndex = 2; */ - int getTxIndex(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} */ - public static final class req_getTransactionByBlockHashAndIndex - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - req_getTransactionByBlockHashAndIndexOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionByBlockHashAndIndex.newBuilder() to construct. - private req_getTransactionByBlockHashAndIndex( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getTransactionByBlockHashAndIndex() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - txIndex_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getTransactionByBlockHashAndIndex( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - blockHash_ = input.readBytes(); - break; - } - case 16: - { - txIndex_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - .class, - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - .Builder - .class); - } - - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - - public static final int TXINDEX_FIELD_NUMBER = 2; - private int txIndex_; - /** uint32 txIndex = 2; */ - public int getTxIndex() { - return txIndex_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - if (txIndex_ != 0) { - output.writeUInt32(2, txIndex_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, txIndex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other = - (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) obj; - - boolean result = true; - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && (getTxIndex() == other.getTxIndex()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - .class, - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - txIndex_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex build() { - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex result = - new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex( - this); - result.blockHash_ = blockHash_; - result.txIndex_ = txIndex_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex other) { - if (other - == org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - .getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** bytes blockHash = 1; */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** bytes blockHash = 1; */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - private int txIndex_; - /** uint32 txIndex = 2; */ - public int getTxIndex() { - return txIndex_; - } - /** uint32 txIndex = 2; */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** uint32 txIndex = 2; */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockHashAndIndex) - private static final org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex(); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - req_getTransactionByBlockHashAndIndex>() { - public req_getTransactionByBlockHashAndIndex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionByBlockHashAndIndex( - input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockHashAndIndex - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getTransactionByBlockNumberAndIndexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - com.google.protobuf.MessageOrBuilder { - - /** uint64 blockNumber = 1; */ - long getBlockNumber(); - - /** uint32 txIndex = 2; */ - int getTxIndex(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} */ - public static final class req_getTransactionByBlockNumberAndIndex - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - req_getTransactionByBlockNumberAndIndexOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionByBlockNumberAndIndex.newBuilder() to construct. - private req_getTransactionByBlockNumberAndIndex( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getTransactionByBlockNumberAndIndex() { - blockNumber_ = 0L; - txIndex_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getTransactionByBlockNumberAndIndex( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blockNumber_ = input.readUInt64(); - break; - } - case 16: - { - txIndex_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - .class, - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - .Builder - .class); - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 1; - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - - public static final int TXINDEX_FIELD_NUMBER = 2; - private int txIndex_; - /** uint32 txIndex = 2; */ - public int getTxIndex() { - return txIndex_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blockNumber_ != 0L) { - output.writeUInt64(1, blockNumber_); - } - if (txIndex_ != 0) { - output.writeUInt32(2, txIndex_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blockNumber_); - } - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, txIndex_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other = - (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) obj; - - boolean result = true; - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && (getTxIndex() == other.getTxIndex()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message - .req_getTransactionByBlockNumberAndIndex - .class, - org.aion.api.server.pb.Message - .req_getTransactionByBlockNumberAndIndex - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockNumber_ = 0L; - - txIndex_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex build() { - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex result = - new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex( - this); - result.blockNumber_ = blockNumber_; - result.txIndex_ = txIndex_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex other) { - if (other - == org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - .getDefaultInstance()) return this; - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long blockNumber_; - /** uint64 blockNumber = 1; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 1; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 1; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private int txIndex_; - /** uint32 txIndex = 2; */ - public int getTxIndex() { - return txIndex_; - } - /** uint32 txIndex = 2; */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** uint32 txIndex = 2; */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionByBlockNumberAndIndex) - private static final org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex(); - } - - public static org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser< - req_getTransactionByBlockNumberAndIndex>() { - public req_getTransactionByBlockNumberAndIndex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionByBlockNumberAndIndex( - input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser - getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getTransactionByBlockNumberAndIndex - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getTransactionReceiptOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getTransactionReceipt) - com.google.protobuf.MessageOrBuilder { - - /** bytes txHash = 1; */ - com.google.protobuf.ByteString getTxHash(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} */ - public static final class req_getTransactionReceipt - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getTransactionReceipt) - req_getTransactionReceiptOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getTransactionReceipt.newBuilder() to construct. - private req_getTransactionReceipt( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getTransactionReceipt() { - txHash_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getTransactionReceipt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - txHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionReceipt.class, - org.aion.api.server.pb.Message.req_getTransactionReceipt.Builder.class); - } - - public static final int TXHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!txHash_.isEmpty()) { - output.writeBytes(1, txHash_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, txHash_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getTransactionReceipt other = - (org.aion.api.server.pb.Message.req_getTransactionReceipt) obj; - - boolean result = true; - result = result && getTxHash().equals(other.getTxHash()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getTransactionReceipt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getTransactionReceipt} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getTransactionReceipt) - org.aion.api.server.pb.Message.req_getTransactionReceiptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getTransactionReceipt.class, - org.aion.api.server.pb.Message.req_getTransactionReceipt - .Builder - .class); - } - - // Construct using org.aion.api.server.pb.Message.req_getTransactionReceipt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - txHash_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - } - - public org.aion.api.server.pb.Message.req_getTransactionReceipt - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getTransactionReceipt - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getTransactionReceipt build() { - org.aion.api.server.pb.Message.req_getTransactionReceipt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getTransactionReceipt buildPartial() { - org.aion.api.server.pb.Message.req_getTransactionReceipt result = - new org.aion.api.server.pb.Message.req_getTransactionReceipt(this); - result.txHash_ = txHash_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getTransactionReceipt) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getTransactionReceipt) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getTransactionReceipt other) { - if (other - == org.aion.api.server.pb.Message.req_getTransactionReceipt - .getDefaultInstance()) return this; - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getTransactionReceipt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getTransactionReceipt) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 1; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 1; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 1; */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getTransactionReceipt) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getTransactionReceipt) - private static final org.aion.api.server.pb.Message.req_getTransactionReceipt - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getTransactionReceipt(); - } - - public static org.aion.api.server.pb.Message.req_getTransactionReceipt - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getTransactionReceipt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getTransactionReceipt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getTransactionReceipt - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getTransactionReceiptOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getTransactionReceipt) - com.google.protobuf.MessageOrBuilder { - - /** uint32 txIndex = 1; */ - int getTxIndex(); - - /** uint64 blockNumber = 2; */ - long getBlockNumber(); - - /** uint64 nrgConsumed = 3; */ - long getNrgConsumed(); - - /** uint64 cumulativeNrgUsed = 4; */ - long getCumulativeNrgUsed(); - - /** bytes blockHash = 5; */ - com.google.protobuf.ByteString getBlockHash(); - - /** bytes txHash = 6; */ - com.google.protobuf.ByteString getTxHash(); - - /** bytes from = 7; */ - com.google.protobuf.ByteString getFrom(); - - /** bytes to = 8; */ - com.google.protobuf.ByteString getTo(); - - /** bytes contractAddress = 9; */ - com.google.protobuf.ByteString getContractAddress(); - - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - java.util.List getLogsList(); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - org.aion.api.server.pb.Message.t_LgEle getLogs(int index); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - int getLogsCount(); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - java.util.List - getLogsOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} */ - public static final class rsp_getTransactionReceipt - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) - rsp_getTransactionReceiptOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getTransactionReceipt.newBuilder() to construct. - private rsp_getTransactionReceipt( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getTransactionReceipt() { - txIndex_ = 0; - blockNumber_ = 0L; - nrgConsumed_ = 0L; - cumulativeNrgUsed_ = 0L; - blockHash_ = com.google.protobuf.ByteString.EMPTY; - txHash_ = com.google.protobuf.ByteString.EMPTY; - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - logs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getTransactionReceipt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - txIndex_ = input.readUInt32(); - break; - } - case 16: - { - blockNumber_ = input.readUInt64(); - break; - } - case 24: - { - nrgConsumed_ = input.readUInt64(); - break; - } - case 32: - { - cumulativeNrgUsed_ = input.readUInt64(); - break; - } - case 42: - { - blockHash_ = input.readBytes(); - break; - } - case 50: - { - txHash_ = input.readBytes(); - break; - } - case 58: - { - from_ = input.readBytes(); - break; - } - case 66: - { - to_ = input.readBytes(); - break; - } - case 74: - { - contractAddress_ = input.readBytes(); - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_LgEle>(); - mutable_bitField0_ |= 0x00000200; - } - logs_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_LgEle.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, - org.aion.api.server.pb.Message.rsp_getTransactionReceipt.Builder.class); - } - - private int bitField0_; - public static final int TXINDEX_FIELD_NUMBER = 1; - private int txIndex_; - /** uint32 txIndex = 1; */ - public int getTxIndex() { - return txIndex_; - } - - public static final int BLOCKNUMBER_FIELD_NUMBER = 2; - private long blockNumber_; - /** uint64 blockNumber = 2; */ - public long getBlockNumber() { - return blockNumber_; - } - - public static final int NRGCONSUMED_FIELD_NUMBER = 3; - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - - public static final int CUMULATIVENRGUSED_FIELD_NUMBER = 4; - private long cumulativeNrgUsed_; - /** uint64 cumulativeNrgUsed = 4; */ - public long getCumulativeNrgUsed() { - return cumulativeNrgUsed_; - } - - public static final int BLOCKHASH_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString blockHash_; - /** bytes blockHash = 5; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - - public static final int TXHASH_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString txHash_; - /** bytes txHash = 6; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - - public static final int FROM_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString from_; - /** bytes from = 7; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - - public static final int TO_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString to_; - /** bytes to = 8; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - - public static final int CONTRACTADDRESS_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString contractAddress_; - /** bytes contractAddress = 9; */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } - - public static final int LOGS_FIELD_NUMBER = 10; - private java.util.List logs_; - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public java.util.List getLogsList() { - return logs_; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public int getLogsCount() { - return logs_.size(); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - return logs_.get(index); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { - return logs_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (txIndex_ != 0) { - output.writeUInt32(1, txIndex_); - } - if (blockNumber_ != 0L) { - output.writeUInt64(2, blockNumber_); - } - if (nrgConsumed_ != 0L) { - output.writeUInt64(3, nrgConsumed_); - } - if (cumulativeNrgUsed_ != 0L) { - output.writeUInt64(4, cumulativeNrgUsed_); - } - if (!blockHash_.isEmpty()) { - output.writeBytes(5, blockHash_); - } - if (!txHash_.isEmpty()) { - output.writeBytes(6, txHash_); - } - if (!from_.isEmpty()) { - output.writeBytes(7, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(8, to_); - } - if (!contractAddress_.isEmpty()) { - output.writeBytes(9, contractAddress_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(10, logs_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (txIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, txIndex_); - } - if (blockNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blockNumber_); - } - if (nrgConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, nrgConsumed_); - } - if (cumulativeNrgUsed_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeUInt64Size( - 4, cumulativeNrgUsed_); - } - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, blockHash_); - } - if (!txHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, txHash_); - } - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, to_); - } - if (!contractAddress_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, contractAddress_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, logs_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getTransactionReceipt other = - (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) obj; - - boolean result = true; - result = result && (getTxIndex() == other.getTxIndex()); - result = result && (getBlockNumber() == other.getBlockNumber()); - result = result && (getNrgConsumed() == other.getNrgConsumed()); - result = result && (getCumulativeNrgUsed() == other.getCumulativeNrgUsed()); - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && getTxHash().equals(other.getTxHash()); - result = result && getFrom().equals(other.getFrom()); - result = result && getTo().equals(other.getTo()); - result = result && getContractAddress().equals(other.getContractAddress()); - result = result && getLogsList().equals(other.getLogsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TXINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTxIndex(); - hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlockNumber()); - hash = (37 * hash) + NRGCONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgConsumed()); - hash = (37 * hash) + CUMULATIVENRGUSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCumulativeNrgUsed()); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + TXHASH_FIELD_NUMBER; - hash = (53 * hash) + getTxHash().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getContractAddress().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getTransactionReceipt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getTransactionReceipt} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getTransactionReceipt) - org.aion.api.server.pb.Message.rsp_getTransactionReceiptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getTransactionReceipt.class, - org.aion.api.server.pb.Message.rsp_getTransactionReceipt - .Builder - .class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getTransactionReceipt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - txIndex_ = 0; - - blockNumber_ = 0L; - - nrgConsumed_ = 0L; - - cumulativeNrgUsed_ = 0L; - - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - txHash_ = com.google.protobuf.ByteString.EMPTY; - - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - contractAddress_ = com.google.protobuf.ByteString.EMPTY; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - logsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getTransactionReceipt - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt build() { - org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt buildPartial() { - org.aion.api.server.pb.Message.rsp_getTransactionReceipt result = - new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.txIndex_ = txIndex_; - result.blockNumber_ = blockNumber_; - result.nrgConsumed_ = nrgConsumed_; - result.cumulativeNrgUsed_ = cumulativeNrgUsed_; - result.blockHash_ = blockHash_; - result.txHash_ = txHash_; - result.from_ = from_; - result.to_ = to_; - result.contractAddress_ = contractAddress_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getTransactionReceipt) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_getTransactionReceipt other) { - if (other - == org.aion.api.server.pb.Message.rsp_getTransactionReceipt - .getDefaultInstance()) return this; - if (other.getTxIndex() != 0) { - setTxIndex(other.getTxIndex()); - } - if (other.getBlockNumber() != 0L) { - setBlockNumber(other.getBlockNumber()); - } - if (other.getNrgConsumed() != 0L) { - setNrgConsumed(other.getNrgConsumed()); - } - if (other.getCumulativeNrgUsed() != 0L) { - setCumulativeNrgUsed(other.getCumulativeNrgUsed()); - } - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { - setTxHash(other.getTxHash()); - } - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { - setContractAddress(other.getContractAddress()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000200); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLogsFieldBuilder() - : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getTransactionReceipt parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getTransactionReceipt) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int txIndex_; - /** uint32 txIndex = 1; */ - public int getTxIndex() { - return txIndex_; - } - /** uint32 txIndex = 1; */ - public Builder setTxIndex(int value) { - - txIndex_ = value; - onChanged(); - return this; - } - /** uint32 txIndex = 1; */ - public Builder clearTxIndex() { - - txIndex_ = 0; - onChanged(); - return this; - } - - private long blockNumber_; - /** uint64 blockNumber = 2; */ - public long getBlockNumber() { - return blockNumber_; - } - /** uint64 blockNumber = 2; */ - public Builder setBlockNumber(long value) { - - blockNumber_ = value; - onChanged(); - return this; - } - /** uint64 blockNumber = 2; */ - public Builder clearBlockNumber() { - - blockNumber_ = 0L; - onChanged(); - return this; - } - - private long nrgConsumed_; - /** uint64 nrgConsumed = 3; */ - public long getNrgConsumed() { - return nrgConsumed_; - } - /** uint64 nrgConsumed = 3; */ - public Builder setNrgConsumed(long value) { - - nrgConsumed_ = value; - onChanged(); - return this; - } - /** uint64 nrgConsumed = 3; */ - public Builder clearNrgConsumed() { - - nrgConsumed_ = 0L; - onChanged(); - return this; - } - - private long cumulativeNrgUsed_; - /** uint64 cumulativeNrgUsed = 4; */ - public long getCumulativeNrgUsed() { - return cumulativeNrgUsed_; - } - /** uint64 cumulativeNrgUsed = 4; */ - public Builder setCumulativeNrgUsed(long value) { - - cumulativeNrgUsed_ = value; - onChanged(); - return this; - } - /** uint64 cumulativeNrgUsed = 4; */ - public Builder clearCumulativeNrgUsed() { - - cumulativeNrgUsed_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString blockHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockHash = 5; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** bytes blockHash = 5; */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** bytes blockHash = 5; */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; - /** bytes txHash = 6; */ - public com.google.protobuf.ByteString getTxHash() { - return txHash_; - } - /** bytes txHash = 6; */ - public Builder setTxHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - txHash_ = value; - onChanged(); - return this; - } - /** bytes txHash = 6; */ - public Builder clearTxHash() { - - txHash_ = getDefaultInstance().getTxHash(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 7; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** bytes from = 7; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** bytes from = 7; */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** bytes to = 8; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** bytes to = 8; */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** bytes to = 8; */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contractAddress_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes contractAddress = 9; */ - public com.google.protobuf.ByteString getContractAddress() { - return contractAddress_; - } - /** bytes contractAddress = 9; */ - public Builder setContractAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddress_ = value; - onChanged(); - return this; - } - /** bytes contractAddress = 9; */ - public Builder clearContractAddress() { - - contractAddress_ = getDefaultInstance().getContractAddress(); - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, - org.aion.api.server.pb.Message.t_LgEle.Builder, - org.aion.api.server.pb.Message.t_LgEleOrBuilder> - logsBuilder_; - - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public org.aion.api.server.pb.Message.t_LgEle getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder setLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder setLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder addLogs(int index, org.aion.api.server.pb.Message.t_LgEle value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder addLogs(org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder addLogs( - int index, org.aion.api.server.pb.Message.t_LgEle.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public org.aion.api.server.pb.Message.t_LgEle.Builder getLogsBuilder(int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder() { - return getLogsFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder(int index) { - return getLogsFieldBuilder() - .addBuilder( - index, org.aion.api.server.pb.Message.t_LgEle.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_LgEle logs = 10; */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, - org.aion.api.server.pb.Message.t_LgEle.Builder, - org.aion.api.server.pb.Message.t_LgEleOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_LgEle, - org.aion.api.server.pb.Message.t_LgEle.Builder, - org.aion.api.server.pb.Message.t_LgEleOrBuilder>( - logs_, - ((bitField0_ & 0x00000200) == 0x00000200), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getTransactionReceipt) - private static final org.aion.api.server.pb.Message.rsp_getTransactionReceipt - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getTransactionReceipt(); - } - - public static org.aion.api.server.pb.Message.rsp_getTransactionReceipt - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getTransactionReceipt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getTransactionReceipt(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getTransactionReceipt - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getUncleByBlockHashAndIndexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - com.google.protobuf.MessageOrBuilder { - - /** bytes blockHash = 1; */ - com.google.protobuf.ByteString getBlockHash(); - - /** uint32 index = 2; */ - int getIndex(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} */ - public static final class req_getUncleByBlockHashAndIndex - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - req_getUncleByBlockHashAndIndexOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getUncleByBlockHashAndIndex.newBuilder() to construct. - private req_getUncleByBlockHashAndIndex( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getUncleByBlockHashAndIndex() { - blockHash_ = com.google.protobuf.ByteString.EMPTY; - index_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getUncleByBlockHashAndIndex( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - blockHash_ = input.readBytes(); - break; - } - case 16: - { - index_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.class, - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - .Builder - .class); - } - - public static final int BLOCKHASH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString blockHash_; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - - public static final int INDEX_FIELD_NUMBER = 2; - private int index_; - /** uint32 index = 2; */ - public int getIndex() { - return index_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!blockHash_.isEmpty()) { - output.writeBytes(1, blockHash_); - } - if (index_ != 0) { - output.writeUInt32(2, index_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!blockHash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, blockHash_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, index_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other = - (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) obj; - - boolean result = true; - result = result && getBlockHash().equals(other.getBlockHash()); - result = result && (getIndex() == other.getIndex()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; - hash = (53 * hash) + getBlockHash().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getUncleByBlockHashAndIndex} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndexOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - .class, - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blockHash_ = com.google.protobuf.ByteString.EMPTY; - - index_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - } - - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex build() { - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex buildPartial() { - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex result = - new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(this); - result.blockHash_ = blockHash_; - result.index_ = index_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex other) { - if (other - == org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - .getDefaultInstance()) return this; - if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { - setBlockHash(other.getBlockHash()); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString blockHash_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes blockHash = 1; */ - public com.google.protobuf.ByteString getBlockHash() { - return blockHash_; - } - /** bytes blockHash = 1; */ - public Builder setBlockHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - blockHash_ = value; - onChanged(); - return this; - } - /** bytes blockHash = 1; */ - public Builder clearBlockHash() { - - blockHash_ = getDefaultInstance().getBlockHash(); - onChanged(); - return this; - } - - private int index_; - /** uint32 index = 2; */ - public int getIndex() { - return index_; - } - /** uint32 index = 2; */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** uint32 index = 2; */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getUncleByBlockHashAndIndex) - private static final org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex(); - } - - public static org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getUncleByBlockHashAndIndex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getUncleByBlockHashAndIndex(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getUncleByBlockHashAndIndex - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getCompilersOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCompilers) - com.google.protobuf.MessageOrBuilder { - - /** repeated string compiler = 1; */ - java.util.List getCompilerList(); - /** repeated string compiler = 1; */ - int getCompilerCount(); - /** repeated string compiler = 1; */ - java.lang.String getCompiler(int index); - /** repeated string compiler = 1; */ - com.google.protobuf.ByteString getCompilerBytes(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} */ - public static final class rsp_getCompilers extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCompilers) - rsp_getCompilersOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getCompilers.newBuilder() to construct. - private rsp_getCompilers(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getCompilers() { - compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getCompilers( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - compiler_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = compiler_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCompilers.class, - org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); - } - - public static final int COMPILER_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList compiler_; - /** repeated string compiler = 1; */ - public com.google.protobuf.ProtocolStringList getCompilerList() { - return compiler_; - } - /** repeated string compiler = 1; */ - public int getCompilerCount() { - return compiler_.size(); - } - /** repeated string compiler = 1; */ - public java.lang.String getCompiler(int index) { - return compiler_.get(index); - } - /** repeated string compiler = 1; */ - public com.google.protobuf.ByteString getCompilerBytes(int index) { - return compiler_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < compiler_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, compiler_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < compiler_.size(); i++) { - dataSize += computeStringSizeNoTag(compiler_.getRaw(i)); - } - size += dataSize; - size += 1 * getCompilerList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCompilers)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getCompilers other = - (org.aion.api.server.pb.Message.rsp_getCompilers) obj; - - boolean result = true; - result = result && getCompilerList().equals(other.getCompilerList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getCompilerCount() > 0) { - hash = (37 * hash) + COMPILER_FIELD_NUMBER; - hash = (53 * hash) + getCompilerList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getCompilers prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getCompilers} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCompilers) - org.aion.api.server.pb.Message.rsp_getCompilersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCompilers.class, - org.aion.api.server.pb.Message.rsp_getCompilers.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getCompilers.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getCompilers build() { - org.aion.api.server.pb.Message.rsp_getCompilers result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getCompilers buildPartial() { - org.aion.api.server.pb.Message.rsp_getCompilers result = - new org.aion.api.server.pb.Message.rsp_getCompilers(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = compiler_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.compiler_ = compiler_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getCompilers) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getCompilers) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCompilers other) { - if (other == org.aion.api.server.pb.Message.rsp_getCompilers.getDefaultInstance()) - return this; - if (!other.compiler_.isEmpty()) { - if (compiler_.isEmpty()) { - compiler_ = other.compiler_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCompilerIsMutable(); - compiler_.addAll(other.compiler_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getCompilers parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getCompilers) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList compiler_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureCompilerIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - compiler_ = new com.google.protobuf.LazyStringArrayList(compiler_); - bitField0_ |= 0x00000001; - } - } - /** repeated string compiler = 1; */ - public com.google.protobuf.ProtocolStringList getCompilerList() { - return compiler_.getUnmodifiableView(); - } - /** repeated string compiler = 1; */ - public int getCompilerCount() { - return compiler_.size(); - } - /** repeated string compiler = 1; */ - public java.lang.String getCompiler(int index) { - return compiler_.get(index); - } - /** repeated string compiler = 1; */ - public com.google.protobuf.ByteString getCompilerBytes(int index) { - return compiler_.getByteString(index); - } - /** repeated string compiler = 1; */ - public Builder setCompiler(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilerIsMutable(); - compiler_.set(index, value); - onChanged(); - return this; - } - /** repeated string compiler = 1; */ - public Builder addCompiler(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCompilerIsMutable(); - compiler_.add(value); - onChanged(); - return this; - } - /** repeated string compiler = 1; */ - public Builder addAllCompiler(java.lang.Iterable values) { - ensureCompilerIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compiler_); - onChanged(); - return this; - } - /** repeated string compiler = 1; */ - public Builder clearCompiler() { - compiler_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** repeated string compiler = 1; */ - public Builder addCompilerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCompilerIsMutable(); - compiler_.add(value); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCompilers) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCompilers) - private static final org.aion.api.server.pb.Message.rsp_getCompilers DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCompilers(); - } - - public static org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getCompilers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getCompilers(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getCompilers getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_compileSolidityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_compileSolidity) - com.google.protobuf.MessageOrBuilder { - - /** string source = 1; */ - java.lang.String getSource(); - /** string source = 1; */ - com.google.protobuf.ByteString getSourceBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} */ - public static final class req_compileSolidity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_compileSolidity) - req_compileSolidityOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_compileSolidity.newBuilder() to construct. - private req_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_compileSolidity() { - source_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_compileSolidity( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compileSolidity.class, - org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); - } - - public static final int SOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object source_; - /** string source = 1; */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } - } - /** string source = 1; */ - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getSourceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSourceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_compileSolidity)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_compileSolidity other = - (org.aion.api.server.pb.Message.req_compileSolidity) obj; - - boolean result = true; - result = result && getSource().equals(other.getSource()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_compileSolidity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compileSolidity) - org.aion.api.server.pb.Message.req_compileSolidityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_compileSolidity.class, - org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_compileSolidity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - source_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - } - - public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_compileSolidity build() { - org.aion.api.server.pb.Message.req_compileSolidity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_compileSolidity buildPartial() { - org.aion.api.server.pb.Message.req_compileSolidity result = - new org.aion.api.server.pb.Message.req_compileSolidity(this); - result.source_ = source_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_compileSolidity) { - return mergeFrom((org.aion.api.server.pb.Message.req_compileSolidity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_compileSolidity other) { - if (other - == org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance()) - return this; - if (!other.getSource().isEmpty()) { - source_ = other.source_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_compileSolidity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_compileSolidity) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object source_ = ""; - /** string source = 1; */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string source = 1; */ - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string source = 1; */ - public Builder setSource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - source_ = value; - onChanged(); - return this; - } - /** string source = 1; */ - public Builder clearSource() { - - source_ = getDefaultInstance().getSource(); - onChanged(); - return this; - } - /** string source = 1; */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - source_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compileSolidity) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compileSolidity) - private static final org.aion.api.server.pb.Message.req_compileSolidity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compileSolidity(); - } - - public static org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_compileSolidity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_compileSolidity(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_compileSolidityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compileSolidity) - com.google.protobuf.MessageOrBuilder { - - /** string code = 1; */ - java.lang.String getCode(); - /** string code = 1; */ - com.google.protobuf.ByteString getCodeBytes(); - - /** .org.aion.api.server.pb.t_Contract info = 2; */ - boolean hasInfo(); - /** .org.aion.api.server.pb.t_Contract info = 2; */ - org.aion.api.server.pb.Message.t_Contract getInfo(); - /** .org.aion.api.server.pb.t_Contract info = 2; */ - org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} */ - public static final class rsp_compileSolidity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compileSolidity) - rsp_compileSolidityOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_compileSolidity.newBuilder() to construct. - private rsp_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_compileSolidity() { - code_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_compileSolidity( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 18: - { - org.aion.api.server.pb.Message.t_Contract.Builder subBuilder = null; - if (info_ != null) { - subBuilder = info_.toBuilder(); - } - info_ = - input.readMessage( - org.aion.api.server.pb.Message.t_Contract.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(info_); - info_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compileSolidity.class, - org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** string code = 1; */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** string code = 1; */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INFO_FIELD_NUMBER = 2; - private org.aion.api.server.pb.Message.t_Contract info_; - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public boolean hasInfo() { - return info_ != null; - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public org.aion.api.server.pb.Message.t_Contract getInfo() { - return info_ == null - ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() - : info_; - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { - return getInfo(); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (info_ != null) { - output.writeMessage(2, getInfo()); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (info_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInfo()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compileSolidity)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_compileSolidity other = - (org.aion.api.server.pb.Message.rsp_compileSolidity) obj; - - boolean result = true; - result = result && getCode().equals(other.getCode()); - result = result && (hasInfo() == other.hasInfo()); - if (hasInfo()) { - result = result && getInfo().equals(other.getInfo()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - if (hasInfo()) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_compileSolidity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compileSolidity) - org.aion.api.server.pb.Message.rsp_compileSolidityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_compileSolidity.class, - org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_compileSolidity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - code_ = ""; - - if (infoBuilder_ == null) { - info_ = null; - } else { - info_ = null; - infoBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_compileSolidity build() { - org.aion.api.server.pb.Message.rsp_compileSolidity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_compileSolidity buildPartial() { - org.aion.api.server.pb.Message.rsp_compileSolidity result = - new org.aion.api.server.pb.Message.rsp_compileSolidity(this); - result.code_ = code_; - if (infoBuilder_ == null) { - result.info_ = info_; - } else { - result.info_ = infoBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_compileSolidity) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_compileSolidity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compileSolidity other) { - if (other - == org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance()) - return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (other.hasInfo()) { - mergeInfo(other.getInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_compileSolidity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_compileSolidity) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** string code = 1; */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string code = 1; */ - public com.google.protobuf.ByteString getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string code = 1; */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** string code = 1; */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** string code = 1; */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private org.aion.api.server.pb.Message.t_Contract info_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_Contract, - org.aion.api.server.pb.Message.t_Contract.Builder, - org.aion.api.server.pb.Message.t_ContractOrBuilder> - infoBuilder_; - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public boolean hasInfo() { - return infoBuilder_ != null || info_ != null; - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public org.aion.api.server.pb.Message.t_Contract getInfo() { - if (infoBuilder_ == null) { - return info_ == null - ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() - : info_; - } else { - return infoBuilder_.getMessage(); - } - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public Builder setInfo(org.aion.api.server.pb.Message.t_Contract value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - info_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - - return this; - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public Builder setInfo( - org.aion.api.server.pb.Message.t_Contract.Builder builderForValue) { - if (infoBuilder_ == null) { - info_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public Builder mergeInfo(org.aion.api.server.pb.Message.t_Contract value) { - if (infoBuilder_ == null) { - if (info_ != null) { - info_ = - org.aion.api.server.pb.Message.t_Contract - .newBuilder(info_) - .mergeFrom(value) - .buildPartial(); - } else { - info_ = value; - } - onChanged(); - } else { - infoBuilder_.mergeFrom(value); - } - - return this; - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; - infoBuilder_ = null; - } - - return this; - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public org.aion.api.server.pb.Message.t_Contract.Builder getInfoBuilder() { - - onChanged(); - return getInfoFieldBuilder().getBuilder(); - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { - if (infoBuilder_ != null) { - return infoBuilder_.getMessageOrBuilder(); - } else { - return info_ == null - ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() - : info_; - } - } - /** .org.aion.api.server.pb.t_Contract info = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_Contract, - org.aion.api.server.pb.Message.t_Contract.Builder, - org.aion.api.server.pb.Message.t_ContractOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - infoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_Contract, - org.aion.api.server.pb.Message.t_Contract.Builder, - org.aion.api.server.pb.Message.t_ContractOrBuilder>( - getInfo(), getParentForChildren(), isClean()); - info_ = null; - } - return infoBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compileSolidity) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compileSolidity) - private static final org.aion.api.server.pb.Message.rsp_compileSolidity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compileSolidity(); - } - - public static org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_compileSolidity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_compileSolidity(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getWorkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getWork) - com.google.protobuf.MessageOrBuilder { - - /** repeated string work = 1; */ - java.util.List getWorkList(); - /** repeated string work = 1; */ - int getWorkCount(); - /** repeated string work = 1; */ - java.lang.String getWork(int index); - /** repeated string work = 1; */ - com.google.protobuf.ByteString getWorkBytes(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getWork} */ - public static final class rsp_getWork extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getWork) - rsp_getWorkOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getWork.newBuilder() to construct. - private rsp_getWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getWork() { - work_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getWork( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - work_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - work_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - work_ = work_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getWork.class, - org.aion.api.server.pb.Message.rsp_getWork.Builder.class); - } - - public static final int WORK_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList work_; - /** repeated string work = 1; */ - public com.google.protobuf.ProtocolStringList getWorkList() { - return work_; - } - /** repeated string work = 1; */ - public int getWorkCount() { - return work_.size(); - } - /** repeated string work = 1; */ - public java.lang.String getWork(int index) { - return work_.get(index); - } - /** repeated string work = 1; */ - public com.google.protobuf.ByteString getWorkBytes(int index) { - return work_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < work_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, work_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < work_.size(); i++) { - dataSize += computeStringSizeNoTag(work_.getRaw(i)); - } - size += dataSize; - size += 1 * getWorkList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getWork)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getWork other = - (org.aion.api.server.pb.Message.rsp_getWork) obj; - - boolean result = true; - result = result && getWorkList().equals(other.getWorkList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWorkCount() > 0) { - hash = (37 * hash) + WORK_FIELD_NUMBER; - hash = (53 * hash) + getWorkList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getWork prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getWork} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getWork) - org.aion.api.server.pb.Message.rsp_getWorkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getWork.class, - org.aion.api.server.pb.Message.rsp_getWork.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getWork.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - work_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getWork build() { - org.aion.api.server.pb.Message.rsp_getWork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getWork buildPartial() { - org.aion.api.server.pb.Message.rsp_getWork result = - new org.aion.api.server.pb.Message.rsp_getWork(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - work_ = work_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.work_ = work_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getWork) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getWork) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getWork other) { - if (other == org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance()) - return this; - if (!other.work_.isEmpty()) { - if (work_.isEmpty()) { - work_ = other.work_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkIsMutable(); - work_.addAll(other.work_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getWork parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getWork) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList work_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureWorkIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - work_ = new com.google.protobuf.LazyStringArrayList(work_); - bitField0_ |= 0x00000001; - } - } - /** repeated string work = 1; */ - public com.google.protobuf.ProtocolStringList getWorkList() { - return work_.getUnmodifiableView(); - } - /** repeated string work = 1; */ - public int getWorkCount() { - return work_.size(); - } - /** repeated string work = 1; */ - public java.lang.String getWork(int index) { - return work_.get(index); - } - /** repeated string work = 1; */ - public com.google.protobuf.ByteString getWorkBytes(int index) { - return work_.getByteString(index); - } - /** repeated string work = 1; */ - public Builder setWork(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkIsMutable(); - work_.set(index, value); - onChanged(); - return this; - } - /** repeated string work = 1; */ - public Builder addWork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkIsMutable(); - work_.add(value); - onChanged(); - return this; - } - /** repeated string work = 1; */ - public Builder addAllWork(java.lang.Iterable values) { - ensureWorkIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, work_); - onChanged(); - return this; - } - /** repeated string work = 1; */ - public Builder clearWork() { - work_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** repeated string work = 1; */ - public Builder addWorkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureWorkIsMutable(); - work_.add(value); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getWork) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getWork) - private static final org.aion.api.server.pb.Message.rsp_getWork DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getWork(); - } - - public static org.aion.api.server.pb.Message.rsp_getWork getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getWork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getWork(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_submitWorkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_submitWork) - com.google.protobuf.MessageOrBuilder { - - /** bytes nonce = 1; */ - com.google.protobuf.ByteString getNonce(); - - /** bytes solution = 2; */ - com.google.protobuf.ByteString getSolution(); - - /** bytes digest = 3; */ - com.google.protobuf.ByteString getDigest(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_submitWork} */ - public static final class req_submitWork extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_submitWork) - req_submitWorkOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_submitWork.newBuilder() to construct. - private req_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_submitWork() { - nonce_ = com.google.protobuf.ByteString.EMPTY; - solution_ = com.google.protobuf.ByteString.EMPTY; - digest_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_submitWork( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - nonce_ = input.readBytes(); - break; - } - case 18: - { - solution_ = input.readBytes(); - break; - } - case 26: - { - digest_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_submitWork.class, - org.aion.api.server.pb.Message.req_submitWork.Builder.class); - } - - public static final int NONCE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 1; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - - public static final int SOLUTION_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString solution_; - /** bytes solution = 2; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - - public static final int DIGEST_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString digest_; - /** bytes digest = 3; */ - public com.google.protobuf.ByteString getDigest() { - return digest_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!nonce_.isEmpty()) { - output.writeBytes(1, nonce_); - } - if (!solution_.isEmpty()) { - output.writeBytes(2, solution_); - } - if (!digest_.isEmpty()) { - output.writeBytes(3, digest_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, nonce_); - } - if (!solution_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, solution_); - } - if (!digest_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, digest_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_submitWork)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_submitWork other = - (org.aion.api.server.pb.Message.req_submitWork) obj; - - boolean result = true; - result = result && getNonce().equals(other.getNonce()); - result = result && getSolution().equals(other.getSolution()); - result = result && getDigest().equals(other.getDigest()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (37 * hash) + SOLUTION_FIELD_NUMBER; - hash = (53 * hash) + getSolution().hashCode(); - hash = (37 * hash) + DIGEST_FIELD_NUMBER; - hash = (53 * hash) + getDigest().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_submitWork parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.req_submitWork prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_submitWork} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_submitWork) - org.aion.api.server.pb.Message.req_submitWorkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_submitWork.class, - org.aion.api.server.pb.Message.req_submitWork.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_submitWork.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - nonce_ = com.google.protobuf.ByteString.EMPTY; - - solution_ = com.google.protobuf.ByteString.EMPTY; - - digest_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - } - - public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_submitWork build() { - org.aion.api.server.pb.Message.req_submitWork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_submitWork buildPartial() { - org.aion.api.server.pb.Message.req_submitWork result = - new org.aion.api.server.pb.Message.req_submitWork(this); - result.nonce_ = nonce_; - result.solution_ = solution_; - result.digest_ = digest_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_submitWork) { - return mergeFrom((org.aion.api.server.pb.Message.req_submitWork) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_submitWork other) { - if (other == org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance()) - return this; - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { - setSolution(other.getSolution()); - } - if (other.getDigest() != com.google.protobuf.ByteString.EMPTY) { - setDigest(other.getDigest()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_submitWork parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_submitWork) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 1; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 1; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 1; */ - public Builder clearNonce() { - - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; - /** bytes solution = 2; */ - public com.google.protobuf.ByteString getSolution() { - return solution_; - } - /** bytes solution = 2; */ - public Builder setSolution(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - solution_ = value; - onChanged(); - return this; - } - /** bytes solution = 2; */ - public Builder clearSolution() { - - solution_ = getDefaultInstance().getSolution(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY; - /** bytes digest = 3; */ - public com.google.protobuf.ByteString getDigest() { - return digest_; - } - /** bytes digest = 3; */ - public Builder setDigest(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - digest_ = value; - onChanged(); - return this; - } - /** bytes digest = 3; */ - public Builder clearDigest() { - - digest_ = getDefaultInstance().getDigest(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_submitWork) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_submitWork) - private static final org.aion.api.server.pb.Message.req_submitWork DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_submitWork(); - } - - public static org.aion.api.server.pb.Message.req_submitWork getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_submitWork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_submitWork(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_submitWorkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_submitWork) - com.google.protobuf.MessageOrBuilder { - - /** bool workAccepted = 1; */ - boolean getWorkAccepted(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} */ - public static final class rsp_submitWork extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_submitWork) - rsp_submitWorkOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_submitWork.newBuilder() to construct. - private rsp_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_submitWork() { - workAccepted_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_submitWork( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - workAccepted_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_submitWork.class, - org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); - } - - public static final int WORKACCEPTED_FIELD_NUMBER = 1; - private boolean workAccepted_; - /** bool workAccepted = 1; */ - public boolean getWorkAccepted() { - return workAccepted_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (workAccepted_ != false) { - output.writeBool(1, workAccepted_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workAccepted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, workAccepted_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_submitWork)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_submitWork other = - (org.aion.api.server.pb.Message.rsp_submitWork) obj; - - boolean result = true; - result = result && (getWorkAccepted() == other.getWorkAccepted()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WORKACCEPTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWorkAccepted()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_submitWork prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_submitWork) - org.aion.api.server.pb.Message.rsp_submitWorkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_submitWork.class, - org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_submitWork.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - workAccepted_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_submitWork build() { - org.aion.api.server.pb.Message.rsp_submitWork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_submitWork buildPartial() { - org.aion.api.server.pb.Message.rsp_submitWork result = - new org.aion.api.server.pb.Message.rsp_submitWork(this); - result.workAccepted_ = workAccepted_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_submitWork) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_submitWork) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_submitWork other) { - if (other == org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance()) - return this; - if (other.getWorkAccepted() != false) { - setWorkAccepted(other.getWorkAccepted()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_submitWork parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_submitWork) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean workAccepted_; - /** bool workAccepted = 1; */ - public boolean getWorkAccepted() { - return workAccepted_; - } - /** bool workAccepted = 1; */ - public Builder setWorkAccepted(boolean value) { - - workAccepted_ = value; - onChanged(); - return this; - } - /** bool workAccepted = 1; */ - public Builder clearWorkAccepted() { - - workAccepted_ = false; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_submitWork) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_submitWork) - private static final org.aion.api.server.pb.Message.rsp_submitWork DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_submitWork(); - } - - public static org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_submitWork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_submitWork(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_fetchQueuedTransactionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - java.util.List getTxList(); - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - org.aion.api.server.pb.Message.t_AionTx getTx(int index); - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - int getTxCount(); - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - java.util.List - getTxOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} */ - public static final class rsp_fetchQueuedTransactions - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - rsp_fetchQueuedTransactionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_fetchQueuedTransactions.newBuilder() to construct. - private rsp_fetchQueuedTransactions( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_fetchQueuedTransactions() { - tx_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_fetchQueuedTransactions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_AionTx>(); - mutable_bitField0_ |= 0x00000001; - } - tx_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_AionTx.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - .Builder - .class); - } - - public static final int TX_FIELD_NUMBER = 1; - private java.util.List tx_; - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public java.util.List getTxList() { - return tx_; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public java.util.List - getTxOrBuilderList() { - return tx_; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public int getTxCount() { - return tx_.size(); - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { - return tx_.get(index); - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder(int index) { - return tx_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < tx_.size(); i++) { - output.writeMessage(1, tx_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tx_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tx_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other = - (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) obj; - - boolean result = true; - result = result && getTxList().equals(other.getTxList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTxCount() > 0) { - hash = (37 * hash) + TX_FIELD_NUMBER; - hash = (53 * hash) + getTxList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTxFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - txBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions build() { - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions buildPartial() { - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = - new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(this); - int from_bitField0_ = bitField0_; - if (txBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = java.util.Collections.unmodifiableList(tx_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tx_ = tx_; - } else { - result.tx_ = txBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other) { - if (other - == org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - .getDefaultInstance()) return this; - if (txBuilder_ == null) { - if (!other.tx_.isEmpty()) { - if (tx_.isEmpty()) { - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTxIsMutable(); - tx_.addAll(other.tx_); - } - onChanged(); - } - } else { - if (!other.tx_.isEmpty()) { - if (txBuilder_.isEmpty()) { - txBuilder_.dispose(); - txBuilder_ = null; - tx_ = other.tx_; - bitField0_ = (bitField0_ & ~0x00000001); - txBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTxFieldBuilder() - : null; - } else { - txBuilder_.addAllMessages(other.tx_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List tx_ = - java.util.Collections.emptyList(); - - private void ensureTxIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - tx_ = new java.util.ArrayList(tx_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AionTx, - org.aion.api.server.pb.Message.t_AionTx.Builder, - org.aion.api.server.pb.Message.t_AionTxOrBuilder> - txBuilder_; - - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public java.util.List getTxList() { - if (txBuilder_ == null) { - return java.util.Collections.unmodifiableList(tx_); - } else { - return txBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public int getTxCount() { - if (txBuilder_ == null) { - return tx_.size(); - } else { - return txBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { - if (txBuilder_ == null) { - return tx_.get(index); - } else { - return txBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder setTx(int index, org.aion.api.server.pb.Message.t_AionTx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.set(index, value); - onChanged(); - } else { - txBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder setTx( - int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.set(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder addTx(org.aion.api.server.pb.Message.t_AionTx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(value); - onChanged(); - } else { - txBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder addTx(int index, org.aion.api.server.pb.Message.t_AionTx value) { - if (txBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTxIsMutable(); - tx_.add(index, value); - onChanged(); - } else { - txBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder addTx(org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder addTx( - int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.add(index, builderForValue.build()); - onChanged(); - } else { - txBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder addAllTx( - java.lang.Iterable values) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tx_); - onChanged(); - } else { - txBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder clearTx() { - if (txBuilder_ == null) { - tx_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - txBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public Builder removeTx(int index) { - if (txBuilder_ == null) { - ensureTxIsMutable(); - tx_.remove(index); - onChanged(); - } else { - txBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public org.aion.api.server.pb.Message.t_AionTx.Builder getTxBuilder(int index) { - return getTxFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder(int index) { - if (txBuilder_ == null) { - return tx_.get(index); - } else { - return txBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public java.util.List - getTxOrBuilderList() { - if (txBuilder_ != null) { - return txBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tx_); - } - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder() { - return getTxFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder(int index) { - return getTxFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_AionTx tx = 1; */ - public java.util.List - getTxBuilderList() { - return getTxFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AionTx, - org.aion.api.server.pb.Message.t_AionTx.Builder, - org.aion.api.server.pb.Message.t_AionTxOrBuilder> - getTxFieldBuilder() { - if (txBuilder_ == null) { - txBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AionTx, - org.aion.api.server.pb.Message.t_AionTx.Builder, - org.aion.api.server.pb.Message.t_AionTxOrBuilder>( - tx_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - tx_ = null; - } - return txBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) - private static final org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(); - } - - public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_fetchQueuedTransactions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_fetchQueuedTransactions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_rawTransactionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_rawTransaction) - com.google.protobuf.MessageOrBuilder { - - /** bytes encodedTx = 1; */ - com.google.protobuf.ByteString getEncodedTx(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} */ - public static final class req_rawTransaction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_rawTransaction) - req_rawTransactionOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_rawTransaction.newBuilder() to construct. - private req_rawTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_rawTransaction() { - encodedTx_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_rawTransaction( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - encodedTx_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_rawTransaction.class, - org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); - } - - public static final int ENCODEDTX_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString encodedTx_; - /** bytes encodedTx = 1; */ - public com.google.protobuf.ByteString getEncodedTx() { - return encodedTx_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!encodedTx_.isEmpty()) { - output.writeBytes(1, encodedTx_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!encodedTx_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, encodedTx_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_rawTransaction)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_rawTransaction other = - (org.aion.api.server.pb.Message.req_rawTransaction) obj; - - boolean result = true; - result = result && getEncodedTx().equals(other.getEncodedTx()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENCODEDTX_FIELD_NUMBER; - hash = (53 * hash) + getEncodedTx().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_rawTransaction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_rawTransaction) - org.aion.api.server.pb.Message.req_rawTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_rawTransaction.class, - org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_rawTransaction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - encodedTx_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - } - - public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_rawTransaction build() { - org.aion.api.server.pb.Message.req_rawTransaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_rawTransaction buildPartial() { - org.aion.api.server.pb.Message.req_rawTransaction result = - new org.aion.api.server.pb.Message.req_rawTransaction(this); - result.encodedTx_ = encodedTx_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_rawTransaction) { - return mergeFrom((org.aion.api.server.pb.Message.req_rawTransaction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_rawTransaction other) { - if (other == org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance()) - return this; - if (other.getEncodedTx() != com.google.protobuf.ByteString.EMPTY) { - setEncodedTx(other.getEncodedTx()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_rawTransaction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_rawTransaction) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString encodedTx_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes encodedTx = 1; */ - public com.google.protobuf.ByteString getEncodedTx() { - return encodedTx_; - } - /** bytes encodedTx = 1; */ - public Builder setEncodedTx(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - encodedTx_ = value; - onChanged(); - return this; - } - /** bytes encodedTx = 1; */ - public Builder clearEncodedTx() { - - encodedTx_ = getDefaultInstance().getEncodedTx(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_rawTransaction) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_rawTransaction) - private static final org.aion.api.server.pb.Message.req_rawTransaction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_rawTransaction(); - } - - public static org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_rawTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_rawTransaction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_estimateNrgOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_estimateNrg) - com.google.protobuf.MessageOrBuilder { - - /** bytes from = 1; */ - com.google.protobuf.ByteString getFrom(); - - /** bytes to = 2; */ - com.google.protobuf.ByteString getTo(); - - /** bytes value = 3; */ - com.google.protobuf.ByteString getValue(); - - /** bytes data = 4; */ - com.google.protobuf.ByteString getData(); - - /** uint64 nrg = 5; */ - long getNrg(); - - /** uint64 nrgPrice = 6; */ - long getNrgPrice(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} */ - public static final class req_estimateNrg extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_estimateNrg) - req_estimateNrgOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_estimateNrg.newBuilder() to construct. - private req_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_estimateNrg() { - from_ = com.google.protobuf.ByteString.EMPTY; - to_ = com.google.protobuf.ByteString.EMPTY; - value_ = com.google.protobuf.ByteString.EMPTY; - data_ = com.google.protobuf.ByteString.EMPTY; - nrg_ = 0L; - nrgPrice_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_estimateNrg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - from_ = input.readBytes(); - break; - } - case 18: - { - to_ = input.readBytes(); - break; - } - case 26: - { - value_ = input.readBytes(); - break; - } - case 34: - { - data_ = input.readBytes(); - break; - } - case 40: - { - nrg_ = input.readUInt64(); - break; - } - case 48: - { - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_estimateNrg.class, - org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); - } - - public static final int FROM_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString from_; - /** bytes from = 1; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - - public static final int TO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString to_; - /** bytes to = 2; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - - public static final int VALUE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString value_; - /** bytes value = 3; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** bytes data = 4; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int NRG_FIELD_NUMBER = 5; - private long nrg_; - /** uint64 nrg = 5; */ - public long getNrg() { - return nrg_; - } - - public static final int NRGPRICE_FIELD_NUMBER = 6; - private long nrgPrice_; - /** uint64 nrgPrice = 6; */ - public long getNrgPrice() { - return nrgPrice_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!from_.isEmpty()) { - output.writeBytes(1, from_); - } - if (!to_.isEmpty()) { - output.writeBytes(2, to_); - } - if (!value_.isEmpty()) { - output.writeBytes(3, value_); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - if (nrg_ != 0L) { - output.writeUInt64(5, nrg_); - } - if (nrgPrice_ != 0L) { - output.writeUInt64(6, nrgPrice_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!from_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, from_); - } - if (!to_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, to_); - } - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, value_); - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, data_); - } - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, nrg_); - } - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(6, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_estimateNrg)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_estimateNrg other = - (org.aion.api.server.pb.Message.req_estimateNrg) obj; - - boolean result = true; - result = result && getFrom().equals(other.getFrom()); - result = result && getTo().equals(other.getTo()); - result = result && getValue().equals(other.getValue()); - result = result && getData().equals(other.getData()); - result = result && (getNrg() == other.getNrg()); - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FROM_FIELD_NUMBER; - hash = (53 * hash) + getFrom().hashCode(); - hash = (37 * hash) + TO_FIELD_NUMBER; - hash = (53 * hash) + getTo().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.req_estimateNrg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_estimateNrg) - org.aion.api.server.pb.Message.req_estimateNrgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_estimateNrg.class, - org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_estimateNrg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - from_ = com.google.protobuf.ByteString.EMPTY; - - to_ = com.google.protobuf.ByteString.EMPTY; - - value_ = com.google.protobuf.ByteString.EMPTY; - - data_ = com.google.protobuf.ByteString.EMPTY; - - nrg_ = 0L; - - nrgPrice_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - } - - public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_estimateNrg build() { - org.aion.api.server.pb.Message.req_estimateNrg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_estimateNrg buildPartial() { - org.aion.api.server.pb.Message.req_estimateNrg result = - new org.aion.api.server.pb.Message.req_estimateNrg(this); - result.from_ = from_; - result.to_ = to_; - result.value_ = value_; - result.data_ = data_; - result.nrg_ = nrg_; - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_estimateNrg) { - return mergeFrom((org.aion.api.server.pb.Message.req_estimateNrg) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_estimateNrg other) { - if (other == org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance()) - return this; - if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { - setFrom(other.getFrom()); - } - if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { - setTo(other.getTo()); - } - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_estimateNrg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_estimateNrg) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; - /** bytes from = 1; */ - public com.google.protobuf.ByteString getFrom() { - return from_; - } - /** bytes from = 1; */ - public Builder setFrom(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - from_ = value; - onChanged(); - return this; - } - /** bytes from = 1; */ - public Builder clearFrom() { - - from_ = getDefaultInstance().getFrom(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; - /** bytes to = 2; */ - public com.google.protobuf.ByteString getTo() { - return to_; - } - /** bytes to = 2; */ - public Builder setTo(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - to_ = value; - onChanged(); - return this; - } - /** bytes to = 2; */ - public Builder clearTo() { - - to_ = getDefaultInstance().getTo(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** bytes value = 3; */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** bytes value = 3; */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** bytes value = 3; */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** bytes data = 4; */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** bytes data = 4; */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** bytes data = 4; */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private long nrg_; - /** uint64 nrg = 5; */ - public long getNrg() { - return nrg_; - } - /** uint64 nrg = 5; */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** uint64 nrg = 5; */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - - private long nrgPrice_; - /** uint64 nrgPrice = 6; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 6; */ - public Builder setNrgPrice(long value) { - - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 6; */ - public Builder clearNrgPrice() { - - nrgPrice_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_estimateNrg) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_estimateNrg) - private static final org.aion.api.server.pb.Message.req_estimateNrg DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_estimateNrg(); - } - - public static org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_estimateNrg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_estimateNrg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_estimateNrgOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_estimateNrg) - com.google.protobuf.MessageOrBuilder { - - /** uint64 nrg = 1; */ - long getNrg(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} */ - public static final class rsp_estimateNrg extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_estimateNrg) - rsp_estimateNrgOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_estimateNrg.newBuilder() to construct. - private rsp_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_estimateNrg() { - nrg_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_estimateNrg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - nrg_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_estimateNrg.class, - org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); - } - - public static final int NRG_FIELD_NUMBER = 1; - private long nrg_; - /** uint64 nrg = 1; */ - public long getNrg() { - return nrg_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nrg_ != 0L) { - output.writeUInt64(1, nrg_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nrg_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nrg_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_estimateNrg)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_estimateNrg other = - (org.aion.api.server.pb.Message.rsp_estimateNrg) obj; - - boolean result = true; - result = result && (getNrg() == other.getNrg()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NRG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrg()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_estimateNrg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_estimateNrg) - org.aion.api.server.pb.Message.rsp_estimateNrgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_estimateNrg.class, - org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_estimateNrg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - nrg_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_estimateNrg build() { - org.aion.api.server.pb.Message.rsp_estimateNrg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_estimateNrg buildPartial() { - org.aion.api.server.pb.Message.rsp_estimateNrg result = - new org.aion.api.server.pb.Message.rsp_estimateNrg(this); - result.nrg_ = nrg_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_estimateNrg) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_estimateNrg) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_estimateNrg other) { - if (other == org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance()) - return this; - if (other.getNrg() != 0L) { - setNrg(other.getNrg()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_estimateNrg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_estimateNrg) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long nrg_; - /** uint64 nrg = 1; */ - public long getNrg() { - return nrg_; - } - /** uint64 nrg = 1; */ - public Builder setNrg(long value) { - - nrg_ = value; - onChanged(); - return this; - } - /** uint64 nrg = 1; */ - public Builder clearNrg() { - - nrg_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_estimateNrg) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_estimateNrg) - private static final org.aion.api.server.pb.Message.rsp_estimateNrg DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_estimateNrg(); - } - - public static org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_estimateNrg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_estimateNrg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_miningOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_mining) - com.google.protobuf.MessageOrBuilder { - - /** bool mining = 1; */ - boolean getMining(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_mining} */ - public static final class rsp_mining extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_mining) - rsp_miningOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_mining.newBuilder() to construct. - private rsp_mining(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_mining() { - mining_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_mining( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - mining_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_mining.class, - org.aion.api.server.pb.Message.rsp_mining.Builder.class); - } - - public static final int MINING_FIELD_NUMBER = 1; - private boolean mining_; - /** bool mining = 1; */ - public boolean getMining() { - return mining_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (mining_ != false) { - output.writeBool(1, mining_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mining_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, mining_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_mining)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_mining other = - (org.aion.api.server.pb.Message.rsp_mining) obj; - - boolean result = true; - result = result && (getMining() == other.getMining()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MINING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMining()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_mining parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_mining prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_mining} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_mining) - org.aion.api.server.pb.Message.rsp_miningOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_mining.class, - org.aion.api.server.pb.Message.rsp_mining.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_mining.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - mining_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_mining build() { - org.aion.api.server.pb.Message.rsp_mining result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_mining buildPartial() { - org.aion.api.server.pb.Message.rsp_mining result = - new org.aion.api.server.pb.Message.rsp_mining(this); - result.mining_ = mining_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_mining) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_mining) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_mining other) { - if (other == org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance()) - return this; - if (other.getMining() != false) { - setMining(other.getMining()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_mining parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_mining) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean mining_; - /** bool mining = 1; */ - public boolean getMining() { - return mining_; - } - /** bool mining = 1; */ - public Builder setMining(boolean value) { - - mining_ = value; - onChanged(); - return this; - } - /** bool mining = 1; */ - public Builder clearMining() { - - mining_ = false; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_mining) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_mining) - private static final org.aion.api.server.pb.Message.rsp_mining DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_mining(); - } - - public static org.aion.api.server.pb.Message.rsp_mining getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_mining parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_mining(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_syncingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncing) - com.google.protobuf.MessageOrBuilder { - - /** bool syncing = 1; */ - boolean getSyncing(); - - /** uint64 currentBlock = 2; */ - long getCurrentBlock(); - - /** uint64 highestBlock = 3; */ - long getHighestBlock(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_syncing} */ - public static final class rsp_syncing extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncing) - rsp_syncingOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_syncing.newBuilder() to construct. - private rsp_syncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_syncing() { - syncing_ = false; - currentBlock_ = 0L; - highestBlock_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_syncing( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - syncing_ = input.readBool(); - break; - } - case 16: - { - currentBlock_ = input.readUInt64(); - break; - } - case 24: - { - highestBlock_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncing.class, - org.aion.api.server.pb.Message.rsp_syncing.Builder.class); - } - - public static final int SYNCING_FIELD_NUMBER = 1; - private boolean syncing_; - /** bool syncing = 1; */ - public boolean getSyncing() { - return syncing_; - } - - public static final int CURRENTBLOCK_FIELD_NUMBER = 2; - private long currentBlock_; - /** uint64 currentBlock = 2; */ - public long getCurrentBlock() { - return currentBlock_; - } - - public static final int HIGHESTBLOCK_FIELD_NUMBER = 3; - private long highestBlock_; - /** uint64 highestBlock = 3; */ - public long getHighestBlock() { - return highestBlock_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (syncing_ != false) { - output.writeBool(1, syncing_); - } - if (currentBlock_ != 0L) { - output.writeUInt64(2, currentBlock_); - } - if (highestBlock_ != 0L) { - output.writeUInt64(3, highestBlock_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (syncing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, syncing_); - } - if (currentBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, currentBlock_); - } - if (highestBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, highestBlock_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncing)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_syncing other = - (org.aion.api.server.pb.Message.rsp_syncing) obj; - - boolean result = true; - result = result && (getSyncing() == other.getSyncing()); - result = result && (getCurrentBlock() == other.getCurrentBlock()); - result = result && (getHighestBlock() == other.getHighestBlock()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYNCING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSyncing()); - hash = (37 * hash) + CURRENTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCurrentBlock()); - hash = (37 * hash) + HIGHESTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHighestBlock()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncing prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_syncing} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncing) - org.aion.api.server.pb.Message.rsp_syncingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncing.class, - org.aion.api.server.pb.Message.rsp_syncing.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_syncing.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - syncing_ = false; - - currentBlock_ = 0L; - - highestBlock_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_syncing build() { - org.aion.api.server.pb.Message.rsp_syncing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_syncing buildPartial() { - org.aion.api.server.pb.Message.rsp_syncing result = - new org.aion.api.server.pb.Message.rsp_syncing(this); - result.syncing_ = syncing_; - result.currentBlock_ = currentBlock_; - result.highestBlock_ = highestBlock_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_syncing) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_syncing) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncing other) { - if (other == org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance()) - return this; - if (other.getSyncing() != false) { - setSyncing(other.getSyncing()); - } - if (other.getCurrentBlock() != 0L) { - setCurrentBlock(other.getCurrentBlock()); - } - if (other.getHighestBlock() != 0L) { - setHighestBlock(other.getHighestBlock()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_syncing parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_syncing) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean syncing_; - /** bool syncing = 1; */ - public boolean getSyncing() { - return syncing_; - } - /** bool syncing = 1; */ - public Builder setSyncing(boolean value) { - - syncing_ = value; - onChanged(); - return this; - } - /** bool syncing = 1; */ - public Builder clearSyncing() { - - syncing_ = false; - onChanged(); - return this; - } - - private long currentBlock_; - /** uint64 currentBlock = 2; */ - public long getCurrentBlock() { - return currentBlock_; - } - /** uint64 currentBlock = 2; */ - public Builder setCurrentBlock(long value) { - - currentBlock_ = value; - onChanged(); - return this; - } - /** uint64 currentBlock = 2; */ - public Builder clearCurrentBlock() { - - currentBlock_ = 0L; - onChanged(); - return this; - } - - private long highestBlock_; - /** uint64 highestBlock = 3; */ - public long getHighestBlock() { - return highestBlock_; - } - /** uint64 highestBlock = 3; */ - public Builder setHighestBlock(long value) { - - highestBlock_ = value; - onChanged(); - return this; - } - /** uint64 highestBlock = 3; */ - public Builder clearHighestBlock() { - - highestBlock_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncing) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncing) - private static final org.aion.api.server.pb.Message.rsp_syncing DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncing(); - } - - public static org.aion.api.server.pb.Message.rsp_syncing getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_syncing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_syncing(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_hashrateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_hashrate) - com.google.protobuf.MessageOrBuilder { - - /** uint64 hashrate = 1; */ - long getHashrate(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} */ - public static final class rsp_hashrate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_hashrate) - rsp_hashrateOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_hashrate.newBuilder() to construct. - private rsp_hashrate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_hashrate() { - hashrate_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_hashrate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - hashrate_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_hashrate.class, - org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); - } - - public static final int HASHRATE_FIELD_NUMBER = 1; - private long hashrate_; - /** uint64 hashrate = 1; */ - public long getHashrate() { - return hashrate_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hashrate_ != 0L) { - output.writeUInt64(1, hashrate_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (hashrate_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, hashrate_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_hashrate)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_hashrate other = - (org.aion.api.server.pb.Message.rsp_hashrate) obj; - - boolean result = true; - result = result && (getHashrate() == other.getHashrate()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HASHRATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHashrate()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_hashrate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_hashrate) - org.aion.api.server.pb.Message.rsp_hashrateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_hashrate.class, - org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_hashrate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - hashrate_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_hashrate build() { - org.aion.api.server.pb.Message.rsp_hashrate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_hashrate buildPartial() { - org.aion.api.server.pb.Message.rsp_hashrate result = - new org.aion.api.server.pb.Message.rsp_hashrate(this); - result.hashrate_ = hashrate_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_hashrate) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_hashrate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_hashrate other) { - if (other == org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance()) - return this; - if (other.getHashrate() != 0L) { - setHashrate(other.getHashrate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_hashrate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_hashrate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long hashrate_; - /** uint64 hashrate = 1; */ - public long getHashrate() { - return hashrate_; - } - /** uint64 hashrate = 1; */ - public Builder setHashrate(long value) { - - hashrate_ = value; - onChanged(); - return this; - } - /** uint64 hashrate = 1; */ - public Builder clearHashrate() { - - hashrate_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_hashrate) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_hashrate) - private static final org.aion.api.server.pb.Message.rsp_hashrate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_hashrate(); - } - - public static org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_hashrate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_hashrate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getActiveNodesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getActiveNodes) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - java.util.List getNodeList(); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - org.aion.api.server.pb.Message.t_Node getNode(int index); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - int getNodeCount(); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - java.util.List - getNodeOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} */ - public static final class rsp_getActiveNodes extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getActiveNodes) - rsp_getActiveNodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getActiveNodes.newBuilder() to construct. - private rsp_getActiveNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getActiveNodes() { - node_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getActiveNodes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_Node>(); - mutable_bitField0_ |= 0x00000001; - } - node_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_Node.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getActiveNodes.class, - org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); - } - - public static final int NODE_FIELD_NUMBER = 1; - private java.util.List node_; - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List getNodeList() { - return node_; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List - getNodeOrBuilderList() { - return node_; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public int getNodeCount() { - return node_.size(); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - return node_.get(index); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { - return node_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < node_.size(); i++) { - output.writeMessage(1, node_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < node_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, node_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getActiveNodes other = - (org.aion.api.server.pb.Message.rsp_getActiveNodes) obj; - - boolean result = true; - result = result && getNodeList().equals(other.getNodeList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodeCount() > 0) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNodeList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getActiveNodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getActiveNodes) - org.aion.api.server.pb.Message.rsp_getActiveNodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getActiveNodes.class, - org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getActiveNodes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodeFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getActiveNodes build() { - org.aion.api.server.pb.Message.rsp_getActiveNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getActiveNodes buildPartial() { - org.aion.api.server.pb.Message.rsp_getActiveNodes result = - new org.aion.api.server.pb.Message.rsp_getActiveNodes(this); - int from_bitField0_ = bitField0_; - if (nodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.node_ = node_; - } else { - result.node_ = nodeBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getActiveNodes) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getActiveNodes other) { - if (other == org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance()) - return this; - if (nodeBuilder_ == null) { - if (!other.node_.isEmpty()) { - if (node_.isEmpty()) { - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeIsMutable(); - node_.addAll(other.node_); - } - onChanged(); - } - } else { - if (!other.node_.isEmpty()) { - if (nodeBuilder_.isEmpty()) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodeFieldBuilder() - : null; - } else { - nodeBuilder_.addAllMessages(other.node_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getActiveNodes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getActiveNodes) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List node_ = - java.util.Collections.emptyList(); - - private void ensureNodeIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = new java.util.ArrayList(node_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, - org.aion.api.server.pb.Message.t_Node.Builder, - org.aion.api.server.pb.Message.t_NodeOrBuilder> - nodeBuilder_; - - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List getNodeList() { - if (nodeBuilder_ == null) { - return java.util.Collections.unmodifiableList(node_); - } else { - return nodeBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public int getNodeCount() { - if (nodeBuilder_ == null) { - return node_.size(); - } else { - return nodeBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder setNode(int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.set(index, value); - onChanged(); - } else { - nodeBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder setNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(value); - onChanged(); - } else { - nodeBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode(int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(index, value); - onChanged(); - } else { - nodeBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode(org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addAllNode( - java.lang.Iterable values) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, node_); - onChanged(); - } else { - nodeBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder clearNode() { - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder removeNode(int index) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.remove(index); - onChanged(); - } else { - nodeBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder(int index) { - return getNodeFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List - getNodeOrBuilderList() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(node_); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { - return getNodeFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder(int index) { - return getNodeFieldBuilder() - .addBuilder( - index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List - getNodeBuilderList() { - return getNodeFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, - org.aion.api.server.pb.Message.t_Node.Builder, - org.aion.api.server.pb.Message.t_NodeOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, - org.aion.api.server.pb.Message.t_Node.Builder, - org.aion.api.server.pb.Message.t_NodeOrBuilder>( - node_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getActiveNodes) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getActiveNodes) - private static final org.aion.api.server.pb.Message.rsp_getActiveNodes DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getActiveNodes(); - } - - public static org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getActiveNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getActiveNodes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getStaticNodesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStaticNodes) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - java.util.List getNodeList(); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - org.aion.api.server.pb.Message.t_Node getNode(int index); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - int getNodeCount(); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - java.util.List - getNodeOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} */ - public static final class rsp_getStaticNodes extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStaticNodes) - rsp_getStaticNodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getStaticNodes.newBuilder() to construct. - private rsp_getStaticNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getStaticNodes() { - node_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getStaticNodes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_Node>(); - mutable_bitField0_ |= 0x00000001; - } - node_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_Node.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStaticNodes.class, - org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); - } - - public static final int NODE_FIELD_NUMBER = 1; - private java.util.List node_; - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List getNodeList() { - return node_; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List - getNodeOrBuilderList() { - return node_; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public int getNodeCount() { - return node_.size(); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - return node_.get(index); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { - return node_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < node_.size(); i++) { - output.writeMessage(1, node_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < node_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, node_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getStaticNodes other = - (org.aion.api.server.pb.Message.rsp_getStaticNodes) obj; - - boolean result = true; - result = result && getNodeList().equals(other.getNodeList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodeCount() > 0) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNodeList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getStaticNodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStaticNodes) - org.aion.api.server.pb.Message.rsp_getStaticNodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getStaticNodes.class, - org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getStaticNodes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodeFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getStaticNodes build() { - org.aion.api.server.pb.Message.rsp_getStaticNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getStaticNodes buildPartial() { - org.aion.api.server.pb.Message.rsp_getStaticNodes result = - new org.aion.api.server.pb.Message.rsp_getStaticNodes(this); - int from_bitField0_ = bitField0_; - if (nodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = java.util.Collections.unmodifiableList(node_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.node_ = node_; - } else { - result.node_ = nodeBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getStaticNodes) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStaticNodes other) { - if (other == org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance()) - return this; - if (nodeBuilder_ == null) { - if (!other.node_.isEmpty()) { - if (node_.isEmpty()) { - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeIsMutable(); - node_.addAll(other.node_); - } - onChanged(); - } - } else { - if (!other.node_.isEmpty()) { - if (nodeBuilder_.isEmpty()) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodeFieldBuilder() - : null; - } else { - nodeBuilder_.addAllMessages(other.node_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getStaticNodes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getStaticNodes) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List node_ = - java.util.Collections.emptyList(); - - private void ensureNodeIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - node_ = new java.util.ArrayList(node_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, - org.aion.api.server.pb.Message.t_Node.Builder, - org.aion.api.server.pb.Message.t_NodeOrBuilder> - nodeBuilder_; - - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List getNodeList() { - if (nodeBuilder_ == null) { - return java.util.Collections.unmodifiableList(node_); - } else { - return nodeBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public int getNodeCount() { - if (nodeBuilder_ == null) { - return node_.size(); - } else { - return nodeBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node getNode(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder setNode(int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.set(index, value); - onChanged(); - } else { - nodeBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder setNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(value); - onChanged(); - } else { - nodeBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode(int index, org.aion.api.server.pb.Message.t_Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(index, value); - onChanged(); - } else { - nodeBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode(org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addNode( - int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder addAllNode( - java.lang.Iterable values) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, node_); - onChanged(); - } else { - nodeBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder clearNode() { - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public Builder removeNode(int index) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.remove(index); - onChanged(); - } else { - nodeBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder(int index) { - return getNodeFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List - getNodeOrBuilderList() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(node_); - } - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { - return getNodeFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder(int index) { - return getNodeFieldBuilder() - .addBuilder( - index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Node node = 1; */ - public java.util.List - getNodeBuilderList() { - return getNodeFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, - org.aion.api.server.pb.Message.t_Node.Builder, - org.aion.api.server.pb.Message.t_NodeOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Node, - org.aion.api.server.pb.Message.t_Node.Builder, - org.aion.api.server.pb.Message.t_NodeOrBuilder>( - node_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStaticNodes) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStaticNodes) - private static final org.aion.api.server.pb.Message.rsp_getStaticNodes DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStaticNodes(); - } - - public static org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getStaticNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getStaticNodes(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getSolcVersionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getSolcVersion) - com.google.protobuf.MessageOrBuilder { - - /** string ver = 1; */ - java.lang.String getVer(); - /** string ver = 1; */ - com.google.protobuf.ByteString getVerBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} */ - public static final class rsp_getSolcVersion extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getSolcVersion) - rsp_getSolcVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getSolcVersion.newBuilder() to construct. - private rsp_getSolcVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getSolcVersion() { - ver_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getSolcVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - ver_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getSolcVersion.class, - org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); - } - - public static final int VER_FIELD_NUMBER = 1; - private volatile java.lang.Object ver_; - /** string ver = 1; */ - public java.lang.String getVer() { - java.lang.Object ref = ver_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ver_ = s; - return s; - } - } - /** string ver = 1; */ - public com.google.protobuf.ByteString getVerBytes() { - java.lang.Object ref = ver_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getVerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ver_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ver_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getSolcVersion other = - (org.aion.api.server.pb.Message.rsp_getSolcVersion) obj; - - boolean result = true; - result = result && getVer().equals(other.getVer()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VER_FIELD_NUMBER; - hash = (53 * hash) + getVer().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getSolcVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getSolcVersion) - org.aion.api.server.pb.Message.rsp_getSolcVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getSolcVersion.class, - org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_getSolcVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - ver_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getSolcVersion build() { - org.aion.api.server.pb.Message.rsp_getSolcVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getSolcVersion buildPartial() { - org.aion.api.server.pb.Message.rsp_getSolcVersion result = - new org.aion.api.server.pb.Message.rsp_getSolcVersion(this); - result.ver_ = ver_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getSolcVersion) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getSolcVersion other) { - if (other == org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance()) - return this; - if (!other.getVer().isEmpty()) { - ver_ = other.ver_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getSolcVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getSolcVersion) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object ver_ = ""; - /** string ver = 1; */ - public java.lang.String getVer() { - java.lang.Object ref = ver_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ver_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string ver = 1; */ - public com.google.protobuf.ByteString getVerBytes() { - java.lang.Object ref = ver_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string ver = 1; */ - public Builder setVer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ver_ = value; - onChanged(); - return this; - } - /** string ver = 1; */ - public Builder clearVer() { - - ver_ = getDefaultInstance().getVer(); - onChanged(); - return this; - } - /** string ver = 1; */ - public Builder setVerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ver_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getSolcVersion) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getSolcVersion) - private static final org.aion.api.server.pb.Message.rsp_getSolcVersion DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getSolcVersion(); - } - - public static org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getSolcVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getSolcVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_isSyncingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_isSyncing) - com.google.protobuf.MessageOrBuilder { - - /** bool syncing = 1; */ - boolean getSyncing(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} */ - public static final class rsp_isSyncing extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_isSyncing) - rsp_isSyncingOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_isSyncing.newBuilder() to construct. - private rsp_isSyncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_isSyncing() { - syncing_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_isSyncing( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - syncing_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_isSyncing.class, - org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); - } - - public static final int SYNCING_FIELD_NUMBER = 1; - private boolean syncing_; - /** bool syncing = 1; */ - public boolean getSyncing() { - return syncing_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (syncing_ != false) { - output.writeBool(1, syncing_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (syncing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, syncing_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_isSyncing)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_isSyncing other = - (org.aion.api.server.pb.Message.rsp_isSyncing) obj; - - boolean result = true; - result = result && (getSyncing() == other.getSyncing()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYNCING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSyncing()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_isSyncing prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_isSyncing) - org.aion.api.server.pb.Message.rsp_isSyncingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_isSyncing.class, - org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_isSyncing.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - syncing_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_isSyncing build() { - org.aion.api.server.pb.Message.rsp_isSyncing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_isSyncing buildPartial() { - org.aion.api.server.pb.Message.rsp_isSyncing result = - new org.aion.api.server.pb.Message.rsp_isSyncing(this); - result.syncing_ = syncing_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_isSyncing) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_isSyncing) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_isSyncing other) { - if (other == org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance()) - return this; - if (other.getSyncing() != false) { - setSyncing(other.getSyncing()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_isSyncing parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_isSyncing) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean syncing_; - /** bool syncing = 1; */ - public boolean getSyncing() { - return syncing_; - } - /** bool syncing = 1; */ - public Builder setSyncing(boolean value) { - - syncing_ = value; - onChanged(); - return this; - } - /** bool syncing = 1; */ - public Builder clearSyncing() { - - syncing_ = false; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_isSyncing) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_isSyncing) - private static final org.aion.api.server.pb.Message.rsp_isSyncing DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_isSyncing(); - } - - public static org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_isSyncing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_isSyncing(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_syncInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncInfo) - com.google.protobuf.MessageOrBuilder { - - /** bool syncing = 1; */ - boolean getSyncing(); - - /** uint64 networkBestBlock = 2; */ - long getNetworkBestBlock(); - - /** uint64 chainBestBlock = 3; */ - long getChainBestBlock(); - - /** uint32 maxImportBlocks = 4; */ - int getMaxImportBlocks(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} */ - public static final class rsp_syncInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncInfo) - rsp_syncInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_syncInfo.newBuilder() to construct. - private rsp_syncInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_syncInfo() { - syncing_ = false; - networkBestBlock_ = 0L; - chainBestBlock_ = 0L; - maxImportBlocks_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_syncInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - syncing_ = input.readBool(); - break; - } - case 16: - { - networkBestBlock_ = input.readUInt64(); - break; - } - case 24: - { - chainBestBlock_ = input.readUInt64(); - break; - } - case 32: - { - maxImportBlocks_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncInfo.class, - org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); - } - - public static final int SYNCING_FIELD_NUMBER = 1; - private boolean syncing_; - /** bool syncing = 1; */ - public boolean getSyncing() { - return syncing_; - } - - public static final int NETWORKBESTBLOCK_FIELD_NUMBER = 2; - private long networkBestBlock_; - /** uint64 networkBestBlock = 2; */ - public long getNetworkBestBlock() { - return networkBestBlock_; - } - - public static final int CHAINBESTBLOCK_FIELD_NUMBER = 3; - private long chainBestBlock_; - /** uint64 chainBestBlock = 3; */ - public long getChainBestBlock() { - return chainBestBlock_; - } - - public static final int MAXIMPORTBLOCKS_FIELD_NUMBER = 4; - private int maxImportBlocks_; - /** uint32 maxImportBlocks = 4; */ - public int getMaxImportBlocks() { - return maxImportBlocks_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (syncing_ != false) { - output.writeBool(1, syncing_); - } - if (networkBestBlock_ != 0L) { - output.writeUInt64(2, networkBestBlock_); - } - if (chainBestBlock_ != 0L) { - output.writeUInt64(3, chainBestBlock_); - } - if (maxImportBlocks_ != 0) { - output.writeUInt32(4, maxImportBlocks_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (syncing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, syncing_); - } - if (networkBestBlock_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeUInt64Size( - 2, networkBestBlock_); - } - if (chainBestBlock_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, chainBestBlock_); - } - if (maxImportBlocks_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeUInt32Size( - 4, maxImportBlocks_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncInfo)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_syncInfo other = - (org.aion.api.server.pb.Message.rsp_syncInfo) obj; - - boolean result = true; - result = result && (getSyncing() == other.getSyncing()); - result = result && (getNetworkBestBlock() == other.getNetworkBestBlock()); - result = result && (getChainBestBlock() == other.getChainBestBlock()); - result = result && (getMaxImportBlocks() == other.getMaxImportBlocks()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYNCING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSyncing()); - hash = (37 * hash) + NETWORKBESTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNetworkBestBlock()); - hash = (37 * hash) + CHAINBESTBLOCK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getChainBestBlock()); - hash = (37 * hash) + MAXIMPORTBLOCKS_FIELD_NUMBER; - hash = (53 * hash) + getMaxImportBlocks(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncInfo) - org.aion.api.server.pb.Message.rsp_syncInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_syncInfo.class, - org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_syncInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - syncing_ = false; - - networkBestBlock_ = 0L; - - chainBestBlock_ = 0L; - - maxImportBlocks_ = 0; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_syncInfo build() { - org.aion.api.server.pb.Message.rsp_syncInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_syncInfo buildPartial() { - org.aion.api.server.pb.Message.rsp_syncInfo result = - new org.aion.api.server.pb.Message.rsp_syncInfo(this); - result.syncing_ = syncing_; - result.networkBestBlock_ = networkBestBlock_; - result.chainBestBlock_ = chainBestBlock_; - result.maxImportBlocks_ = maxImportBlocks_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_syncInfo) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_syncInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncInfo other) { - if (other == org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance()) - return this; - if (other.getSyncing() != false) { - setSyncing(other.getSyncing()); - } - if (other.getNetworkBestBlock() != 0L) { - setNetworkBestBlock(other.getNetworkBestBlock()); - } - if (other.getChainBestBlock() != 0L) { - setChainBestBlock(other.getChainBestBlock()); - } - if (other.getMaxImportBlocks() != 0) { - setMaxImportBlocks(other.getMaxImportBlocks()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_syncInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_syncInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean syncing_; - /** bool syncing = 1; */ - public boolean getSyncing() { - return syncing_; - } - /** bool syncing = 1; */ - public Builder setSyncing(boolean value) { - - syncing_ = value; - onChanged(); - return this; - } - /** bool syncing = 1; */ - public Builder clearSyncing() { - - syncing_ = false; - onChanged(); - return this; - } - - private long networkBestBlock_; - /** uint64 networkBestBlock = 2; */ - public long getNetworkBestBlock() { - return networkBestBlock_; - } - /** uint64 networkBestBlock = 2; */ - public Builder setNetworkBestBlock(long value) { - - networkBestBlock_ = value; - onChanged(); - return this; - } - /** uint64 networkBestBlock = 2; */ - public Builder clearNetworkBestBlock() { - - networkBestBlock_ = 0L; - onChanged(); - return this; - } - - private long chainBestBlock_; - /** uint64 chainBestBlock = 3; */ - public long getChainBestBlock() { - return chainBestBlock_; - } - /** uint64 chainBestBlock = 3; */ - public Builder setChainBestBlock(long value) { - - chainBestBlock_ = value; - onChanged(); - return this; - } - /** uint64 chainBestBlock = 3; */ - public Builder clearChainBestBlock() { - - chainBestBlock_ = 0L; - onChanged(); - return this; - } - - private int maxImportBlocks_; - /** uint32 maxImportBlocks = 4; */ - public int getMaxImportBlocks() { - return maxImportBlocks_; - } - /** uint32 maxImportBlocks = 4; */ - public Builder setMaxImportBlocks(int value) { - - maxImportBlocks_ = value; - onChanged(); - return this; - } - /** uint32 maxImportBlocks = 4; */ - public Builder clearMaxImportBlocks() { - - maxImportBlocks_ = 0; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncInfo) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncInfo) - private static final org.aion.api.server.pb.Message.rsp_syncInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncInfo(); - } - - public static org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_syncInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_syncInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_systemInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_systemInfo) - com.google.protobuf.MessageOrBuilder { - - /** float cpuUsage = 1; */ - float getCpuUsage(); - - /** uint64 memoryUsage = 2; */ - long getMemoryUsage(); - - /** uint64 DBSize = 3; */ - long getDBSize(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} */ - public static final class rsp_systemInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_systemInfo) - rsp_systemInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_systemInfo.newBuilder() to construct. - private rsp_systemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_systemInfo() { - cpuUsage_ = 0F; - memoryUsage_ = 0L; - dBSize_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_systemInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 13: - { - cpuUsage_ = input.readFloat(); - break; - } - case 16: - { - memoryUsage_ = input.readUInt64(); - break; - } - case 24: - { - dBSize_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_systemInfo.class, - org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); - } - - public static final int CPUUSAGE_FIELD_NUMBER = 1; - private float cpuUsage_; - /** float cpuUsage = 1; */ - public float getCpuUsage() { - return cpuUsage_; - } - - public static final int MEMORYUSAGE_FIELD_NUMBER = 2; - private long memoryUsage_; - /** uint64 memoryUsage = 2; */ - public long getMemoryUsage() { - return memoryUsage_; - } - - public static final int DBSIZE_FIELD_NUMBER = 3; - private long dBSize_; - /** uint64 DBSize = 3; */ - public long getDBSize() { - return dBSize_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (cpuUsage_ != 0F) { - output.writeFloat(1, cpuUsage_); - } - if (memoryUsage_ != 0L) { - output.writeUInt64(2, memoryUsage_); - } - if (dBSize_ != 0L) { - output.writeUInt64(3, dBSize_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cpuUsage_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, cpuUsage_); - } - if (memoryUsage_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, memoryUsage_); - } - if (dBSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, dBSize_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_systemInfo)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_systemInfo other = - (org.aion.api.server.pb.Message.rsp_systemInfo) obj; - - boolean result = true; - result = - result - && (java.lang.Float.floatToIntBits(getCpuUsage()) - == java.lang.Float.floatToIntBits(other.getCpuUsage())); - result = result && (getMemoryUsage() == other.getMemoryUsage()); - result = result && (getDBSize() == other.getDBSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CPUUSAGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getCpuUsage()); - hash = (37 * hash) + MEMORYUSAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMemoryUsage()); - hash = (37 * hash) + DBSIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDBSize()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_systemInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_systemInfo) - org.aion.api.server.pb.Message.rsp_systemInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_systemInfo.class, - org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_systemInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - cpuUsage_ = 0F; - - memoryUsage_ = 0L; - - dBSize_ = 0L; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_systemInfo build() { - org.aion.api.server.pb.Message.rsp_systemInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_systemInfo buildPartial() { - org.aion.api.server.pb.Message.rsp_systemInfo result = - new org.aion.api.server.pb.Message.rsp_systemInfo(this); - result.cpuUsage_ = cpuUsage_; - result.memoryUsage_ = memoryUsage_; - result.dBSize_ = dBSize_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_systemInfo) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_systemInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_systemInfo other) { - if (other == org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance()) - return this; - if (other.getCpuUsage() != 0F) { - setCpuUsage(other.getCpuUsage()); - } - if (other.getMemoryUsage() != 0L) { - setMemoryUsage(other.getMemoryUsage()); - } - if (other.getDBSize() != 0L) { - setDBSize(other.getDBSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_systemInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_systemInfo) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float cpuUsage_; - /** float cpuUsage = 1; */ - public float getCpuUsage() { - return cpuUsage_; - } - /** float cpuUsage = 1; */ - public Builder setCpuUsage(float value) { - - cpuUsage_ = value; - onChanged(); - return this; - } - /** float cpuUsage = 1; */ - public Builder clearCpuUsage() { - - cpuUsage_ = 0F; - onChanged(); - return this; - } - - private long memoryUsage_; - /** uint64 memoryUsage = 2; */ - public long getMemoryUsage() { - return memoryUsage_; - } - /** uint64 memoryUsage = 2; */ - public Builder setMemoryUsage(long value) { - - memoryUsage_ = value; - onChanged(); - return this; - } - /** uint64 memoryUsage = 2; */ - public Builder clearMemoryUsage() { - - memoryUsage_ = 0L; - onChanged(); - return this; - } - - private long dBSize_; - /** uint64 DBSize = 3; */ - public long getDBSize() { - return dBSize_; - } - /** uint64 DBSize = 3; */ - public Builder setDBSize(long value) { - - dBSize_ = value; - onChanged(); - return this; - } - /** uint64 DBSize = 3; */ - public Builder clearDBSize() { - - dBSize_ = 0L; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_systemInfo) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_systemInfo) - private static final org.aion.api.server.pb.Message.rsp_systemInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_systemInfo(); - } - - public static org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_systemInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_systemInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_eventRegisterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventRegister) - com.google.protobuf.MessageOrBuilder { - - /** repeated string events = 1; */ - java.util.List getEventsList(); - /** repeated string events = 1; */ - int getEventsCount(); - /** repeated string events = 1; */ - java.lang.String getEvents(int index); - /** repeated string events = 1; */ - com.google.protobuf.ByteString getEventsBytes(int index); - - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - boolean hasFilter(); - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - org.aion.api.server.pb.Message.t_FilterCt getFilter(); - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_eventRegister} */ - public static final class req_eventRegister extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventRegister) - req_eventRegisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_eventRegister.newBuilder() to construct. - private req_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_eventRegister() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_eventRegister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(s); - break; - } - case 18: - { - org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); - } - filter_ = - input.readMessage( - org.aion.api.server.pb.Message.t_FilterCt.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventRegister.class, - org.aion.api.server.pb.Message.req_eventRegister.Builder.class); - } - - private int bitField0_; - public static final int EVENTS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList events_; - /** repeated string events = 1; */ - public com.google.protobuf.ProtocolStringList getEventsList() { - return events_; - } - /** repeated string events = 1; */ - public int getEventsCount() { - return events_.size(); - } - /** repeated string events = 1; */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** repeated string events = 1; */ - public com.google.protobuf.ByteString getEventsBytes(int index) { - return events_.getByteString(index); - } - - public static final int FILTER_FIELD_NUMBER = 2; - private org.aion.api.server.pb.Message.t_FilterCt filter_; - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public boolean hasFilter() { - return filter_ != null; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - return filter_ == null - ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() - : filter_; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - return getFilter(); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < events_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); - } - if (filter_ != null) { - output.writeMessage(2, getFilter()); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < events_.size(); i++) { - dataSize += computeStringSizeNoTag(events_.getRaw(i)); - } - size += dataSize; - size += 1 * getEventsList().size(); - } - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilter()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_eventRegister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_eventRegister other = - (org.aion.api.server.pb.Message.req_eventRegister) obj; - - boolean result = true; - result = result && getEventsList().equals(other.getEventsList()); - result = result && (hasFilter() == other.hasFilter()); - if (hasFilter()) { - result = result && getFilter().equals(other.getFilter()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_eventRegister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_eventRegister} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventRegister) - org.aion.api.server.pb.Message.req_eventRegisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventRegister.class, - org.aion.api.server.pb.Message.req_eventRegister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_eventRegister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - } - - public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_eventRegister build() { - org.aion.api.server.pb.Message.req_eventRegister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_eventRegister buildPartial() { - org.aion.api.server.pb.Message.req_eventRegister result = - new org.aion.api.server.pb.Message.req_eventRegister(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.events_ = events_; - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_eventRegister) { - return mergeFrom((org.aion.api.server.pb.Message.req_eventRegister) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventRegister other) { - if (other == org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance()) - return this; - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_eventRegister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_eventRegister) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList events_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(events_); - bitField0_ |= 0x00000001; - } - } - /** repeated string events = 1; */ - public com.google.protobuf.ProtocolStringList getEventsList() { - return events_.getUnmodifiableView(); - } - /** repeated string events = 1; */ - public int getEventsCount() { - return events_.size(); - } - /** repeated string events = 1; */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** repeated string events = 1; */ - public com.google.protobuf.ByteString getEventsBytes(int index) { - return events_.getByteString(index); - } - /** repeated string events = 1; */ - public Builder setEvents(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder addEvents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder addAllEvents(java.lang.Iterable values) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder clearEvents() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder addEventsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - - private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, - org.aion.api.server.pb.Message.t_FilterCt.Builder, - org.aion.api.server.pb.Message.t_FilterCtOrBuilder> - filterBuilder_; - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - if (filterBuilder_ == null) { - return filter_ == null - ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() - : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public Builder setFilter( - org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - org.aion.api.server.pb.Message.t_FilterCt - .newBuilder(filter_) - .mergeFrom(value) - .buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null - ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() - : filter_; - } - } - /** .org.aion.api.server.pb.t_FilterCt filter = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, - org.aion.api.server.pb.Message.t_FilterCt.Builder, - org.aion.api.server.pb.Message.t_FilterCtOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, - org.aion.api.server.pb.Message.t_FilterCt.Builder, - org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( - getFilter(), getParentForChildren(), isClean()); - filter_ = null; - } - return filterBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventRegister) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventRegister) - private static final org.aion.api.server.pb.Message.req_eventRegister DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventRegister(); - } - - public static org.aion.api.server.pb.Message.req_eventRegister getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_eventRegister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_eventRegister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_eventRegisterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventRegister) - com.google.protobuf.MessageOrBuilder { - - /** bool result = 1; */ - boolean getResult(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} */ - public static final class rsp_eventRegister extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventRegister) - rsp_eventRegisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_eventRegister.newBuilder() to construct. - private rsp_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_eventRegister() { - result_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_eventRegister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - result_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventRegister.class, - org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); - } - - public static final int RESULT_FIELD_NUMBER = 1; - private boolean result_; - /** bool result = 1; */ - public boolean getResult() { - return result_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (result_ != false) { - output.writeBool(1, result_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (result_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, result_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventRegister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_eventRegister other = - (org.aion.api.server.pb.Message.rsp_eventRegister) obj; - - boolean result = true; - result = result && (getResult() == other.getResult()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResult()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_eventRegister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventRegister) - org.aion.api.server.pb.Message.rsp_eventRegisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventRegister.class, - org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_eventRegister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - result_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_eventRegister build() { - org.aion.api.server.pb.Message.rsp_eventRegister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_eventRegister buildPartial() { - org.aion.api.server.pb.Message.rsp_eventRegister result = - new org.aion.api.server.pb.Message.rsp_eventRegister(this); - result.result_ = result_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_eventRegister) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_eventRegister) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventRegister other) { - if (other == org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance()) - return this; - if (other.getResult() != false) { - setResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_eventRegister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_eventRegister) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean result_; - /** bool result = 1; */ - public boolean getResult() { - return result_; - } - /** bool result = 1; */ - public Builder setResult(boolean value) { - - result_ = value; - onChanged(); - return this; - } - /** bool result = 1; */ - public Builder clearResult() { - - result_ = false; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventRegister) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventRegister) - private static final org.aion.api.server.pb.Message.rsp_eventRegister DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventRegister(); - } - - public static org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_eventRegister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_eventRegister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_eventDeregisterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventDeregister) - com.google.protobuf.MessageOrBuilder { - - /** repeated string events = 1; */ - java.util.List getEventsList(); - /** repeated string events = 1; */ - int getEventsCount(); - /** repeated string events = 1; */ - java.lang.String getEvents(int index); - /** repeated string events = 1; */ - com.google.protobuf.ByteString getEventsBytes(int index); - - /** bytes contractAddr = 2; */ - com.google.protobuf.ByteString getContractAddr(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} */ - public static final class req_eventDeregister extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventDeregister) - req_eventDeregisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_eventDeregister.newBuilder() to construct. - private req_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_eventDeregister() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - contractAddr_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_eventDeregister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(s); - break; - } - case 18: - { - contractAddr_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventDeregister.class, - org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); - } - - private int bitField0_; - public static final int EVENTS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList events_; - /** repeated string events = 1; */ - public com.google.protobuf.ProtocolStringList getEventsList() { - return events_; - } - /** repeated string events = 1; */ - public int getEventsCount() { - return events_.size(); - } - /** repeated string events = 1; */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** repeated string events = 1; */ - public com.google.protobuf.ByteString getEventsBytes(int index) { - return events_.getByteString(index); - } - - public static final int CONTRACTADDR_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString contractAddr_; - /** bytes contractAddr = 2; */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < events_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); - } - if (!contractAddr_.isEmpty()) { - output.writeBytes(2, contractAddr_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < events_.size(); i++) { - dataSize += computeStringSizeNoTag(events_.getRaw(i)); - } - size += dataSize; - size += 1 * getEventsList().size(); - } - if (!contractAddr_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, contractAddr_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_eventDeregister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_eventDeregister other = - (org.aion.api.server.pb.Message.req_eventDeregister) obj; - - boolean result = true; - result = result && getEventsList().equals(other.getEventsList()); - result = result && getContractAddr().equals(other.getContractAddr()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventsCount() > 0) { - hash = (37 * hash) + EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getEventsList().hashCode(); - } - hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; - hash = (53 * hash) + getContractAddr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_eventDeregister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventDeregister) - org.aion.api.server.pb.Message.req_eventDeregisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_eventDeregister.class, - org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_eventDeregister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - contractAddr_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - } - - public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_eventDeregister build() { - org.aion.api.server.pb.Message.req_eventDeregister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_eventDeregister buildPartial() { - org.aion.api.server.pb.Message.req_eventDeregister result = - new org.aion.api.server.pb.Message.req_eventDeregister(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = events_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.events_ = events_; - result.contractAddr_ = contractAddr_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_eventDeregister) { - return mergeFrom((org.aion.api.server.pb.Message.req_eventDeregister) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventDeregister other) { - if (other - == org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance()) - return this; - if (!other.events_.isEmpty()) { - if (events_.isEmpty()) { - events_ = other.events_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventsIsMutable(); - events_.addAll(other.events_); - } - onChanged(); - } - if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { - setContractAddr(other.getContractAddr()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_eventDeregister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_eventDeregister) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList events_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureEventsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - events_ = new com.google.protobuf.LazyStringArrayList(events_); - bitField0_ |= 0x00000001; - } - } - /** repeated string events = 1; */ - public com.google.protobuf.ProtocolStringList getEventsList() { - return events_.getUnmodifiableView(); - } - /** repeated string events = 1; */ - public int getEventsCount() { - return events_.size(); - } - /** repeated string events = 1; */ - public java.lang.String getEvents(int index) { - return events_.get(index); - } - /** repeated string events = 1; */ - public com.google.protobuf.ByteString getEventsBytes(int index) { - return events_.getByteString(index); - } - /** repeated string events = 1; */ - public Builder setEvents(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.set(index, value); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder addEvents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder addAllEvents(java.lang.Iterable values) { - ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder clearEvents() { - events_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** repeated string events = 1; */ - public Builder addEventsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEventsIsMutable(); - events_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contractAddr_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes contractAddr = 2; */ - public com.google.protobuf.ByteString getContractAddr() { - return contractAddr_; - } - /** bytes contractAddr = 2; */ - public Builder setContractAddr(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contractAddr_ = value; - onChanged(); - return this; - } - /** bytes contractAddr = 2; */ - public Builder clearContractAddr() { - - contractAddr_ = getDefaultInstance().getContractAddr(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventDeregister) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventDeregister) - private static final org.aion.api.server.pb.Message.req_eventDeregister DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventDeregister(); - } - - public static org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_eventDeregister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_eventDeregister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_eventDeregisterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventDeregister) - com.google.protobuf.MessageOrBuilder { - - /** bool result = 1; */ - boolean getResult(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} */ - public static final class rsp_eventDeregister extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventDeregister) - rsp_eventDeregisterOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_eventDeregister.newBuilder() to construct. - private rsp_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_eventDeregister() { - result_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_eventDeregister( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - result_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventDeregister.class, - org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); - } - - public static final int RESULT_FIELD_NUMBER = 1; - private boolean result_; - /** bool result = 1; */ - public boolean getResult() { - return result_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (result_ != false) { - output.writeBool(1, result_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (result_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, result_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventDeregister)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_eventDeregister other = - (org.aion.api.server.pb.Message.rsp_eventDeregister) obj; - - boolean result = true; - result = result && (getResult() == other.getResult()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResult()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_eventDeregister prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventDeregister) - org.aion.api.server.pb.Message.rsp_eventDeregisterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_eventDeregister.class, - org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_eventDeregister.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - result_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_eventDeregister build() { - org.aion.api.server.pb.Message.rsp_eventDeregister result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_eventDeregister buildPartial() { - org.aion.api.server.pb.Message.rsp_eventDeregister result = - new org.aion.api.server.pb.Message.rsp_eventDeregister(this); - result.result_ = result_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_eventDeregister) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_eventDeregister) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventDeregister other) { - if (other - == org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance()) - return this; - if (other.getResult() != false) { - setResult(other.getResult()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_eventDeregister parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_eventDeregister) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean result_; - /** bool result = 1; */ - public boolean getResult() { - return result_; - } - /** bool result = 1; */ - public Builder setResult(boolean value) { - - result_ = value; - onChanged(); - return this; - } - /** bool result = 1; */ - public Builder clearResult() { - - result_ = false; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventDeregister) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventDeregister) - private static final org.aion.api.server.pb.Message.rsp_eventDeregister DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventDeregister(); - } - - public static org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_eventDeregister parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_eventDeregister(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_EventCtCallbackOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_EventCtCallback) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - java.util.List getEcList(); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - org.aion.api.server.pb.Message.t_EventCt getEc(int index); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - int getEcCount(); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - java.util.List - getEcOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} */ - public static final class rsp_EventCtCallback extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_EventCtCallback) - rsp_EventCtCallbackOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_EventCtCallback.newBuilder() to construct. - private rsp_EventCtCallback(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_EventCtCallback() { - ec_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_EventCtCallback( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_EventCt>(); - mutable_bitField0_ |= 0x00000001; - } - ec_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_EventCt.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_EventCtCallback.class, - org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); - } - - public static final int EC_FIELD_NUMBER = 1; - private java.util.List ec_; - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List getEcList() { - return ec_; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List - getEcOrBuilderList() { - return ec_; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public int getEcCount() { - return ec_.size(); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - return ec_.get(index); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { - return ec_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ec_.size(); i++) { - output.writeMessage(1, ec_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < ec_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ec_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_EventCtCallback other = - (org.aion.api.server.pb.Message.rsp_EventCtCallback) obj; - - boolean result = true; - result = result && getEcList().equals(other.getEcList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEcCount() > 0) { - hash = (37 * hash) + EC_FIELD_NUMBER; - hash = (53 * hash) + getEcList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_EventCtCallback prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_EventCtCallback) - org.aion.api.server.pb.Message.rsp_EventCtCallbackOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_EventCtCallback.class, - org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_EventCtCallback.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEcFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ecBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_EventCtCallback build() { - org.aion.api.server.pb.Message.rsp_EventCtCallback result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_EventCtCallback buildPartial() { - org.aion.api.server.pb.Message.rsp_EventCtCallback result = - new org.aion.api.server.pb.Message.rsp_EventCtCallback(this); - int from_bitField0_ = bitField0_; - if (ecBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ec_ = ec_; - } else { - result.ec_ = ecBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_EventCtCallback) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_EventCtCallback other) { - if (other - == org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance()) - return this; - if (ecBuilder_ == null) { - if (!other.ec_.isEmpty()) { - if (ec_.isEmpty()) { - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEcIsMutable(); - ec_.addAll(other.ec_); - } - onChanged(); - } - } else { - if (!other.ec_.isEmpty()) { - if (ecBuilder_.isEmpty()) { - ecBuilder_.dispose(); - ecBuilder_ = null; - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - ecBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEcFieldBuilder() - : null; - } else { - ecBuilder_.addAllMessages(other.ec_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_EventCtCallback parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_EventCtCallback) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List ec_ = - java.util.Collections.emptyList(); - - private void ensureEcIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = new java.util.ArrayList(ec_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, - org.aion.api.server.pb.Message.t_EventCt.Builder, - org.aion.api.server.pb.Message.t_EventCtOrBuilder> - ecBuilder_; - - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List getEcList() { - if (ecBuilder_ == null) { - return java.util.Collections.unmodifiableList(ec_); - } else { - return ecBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public int getEcCount() { - if (ecBuilder_ == null) { - return ec_.size(); - } else { - return ecBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - if (ecBuilder_ == null) { - return ec_.get(index); - } else { - return ecBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder setEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.set(index, value); - onChanged(); - } else { - ecBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder setEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.set(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(value); - onChanged(); - } else { - ecBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(index, value); - onChanged(); - } else { - ecBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc(org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addAllEc( - java.lang.Iterable values) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ec_); - onChanged(); - } else { - ecBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder clearEc() { - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ecBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder removeEc(int index) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.remove(index); - onChanged(); - } else { - ecBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder(int index) { - return getEcFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { - if (ecBuilder_ == null) { - return ec_.get(index); - } else { - return ecBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List - getEcOrBuilderList() { - if (ecBuilder_ != null) { - return ecBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ec_); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { - return getEcFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder(int index) { - return getEcFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List - getEcBuilderList() { - return getEcFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, - org.aion.api.server.pb.Message.t_EventCt.Builder, - org.aion.api.server.pb.Message.t_EventCtOrBuilder> - getEcFieldBuilder() { - if (ecBuilder_ == null) { - ecBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, - org.aion.api.server.pb.Message.t_EventCt.Builder, - org.aion.api.server.pb.Message.t_EventCtOrBuilder>( - ec_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - ec_ = null; - } - return ecBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_EventCtCallback) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_EventCtCallback) - private static final org.aion.api.server.pb.Message.rsp_EventCtCallback DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_EventCtCallback(); - } - - public static org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_EventCtCallback parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_EventCtCallback(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_accountCreateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountCreate) - com.google.protobuf.MessageOrBuilder { - - /** repeated string password = 1; */ - java.util.List getPasswordList(); - /** repeated string password = 1; */ - int getPasswordCount(); - /** repeated string password = 1; */ - java.lang.String getPassword(int index); - /** repeated string password = 1; */ - com.google.protobuf.ByteString getPasswordBytes(int index); - - /** bool privateKey = 2; */ - boolean getPrivateKey(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_accountCreate} */ - public static final class req_accountCreate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountCreate) - req_accountCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_accountCreate.newBuilder() to construct. - private req_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_accountCreate() { - password_ = com.google.protobuf.LazyStringArrayList.EMPTY; - privateKey_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_accountCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - password_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - password_.add(s); - break; - } - case 16: - { - privateKey_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - password_ = password_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountCreate.class, - org.aion.api.server.pb.Message.req_accountCreate.Builder.class); - } - - private int bitField0_; - public static final int PASSWORD_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList password_; - /** repeated string password = 1; */ - public com.google.protobuf.ProtocolStringList getPasswordList() { - return password_; - } - /** repeated string password = 1; */ - public int getPasswordCount() { - return password_.size(); - } - /** repeated string password = 1; */ - public java.lang.String getPassword(int index) { - return password_.get(index); - } - /** repeated string password = 1; */ - public com.google.protobuf.ByteString getPasswordBytes(int index) { - return password_.getByteString(index); - } - - public static final int PRIVATEKEY_FIELD_NUMBER = 2; - private boolean privateKey_; - /** bool privateKey = 2; */ - public boolean getPrivateKey() { - return privateKey_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < password_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, password_.getRaw(i)); - } - if (privateKey_ != false) { - output.writeBool(2, privateKey_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < password_.size(); i++) { - dataSize += computeStringSizeNoTag(password_.getRaw(i)); - } - size += dataSize; - size += 1 * getPasswordList().size(); - } - if (privateKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, privateKey_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_accountCreate)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_accountCreate other = - (org.aion.api.server.pb.Message.req_accountCreate) obj; - - boolean result = true; - result = result && getPasswordList().equals(other.getPasswordList()); - result = result && (getPrivateKey() == other.getPrivateKey()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPasswordCount() > 0) { - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPasswordList().hashCode(); - } - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrivateKey()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_accountCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_accountCreate} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountCreate) - org.aion.api.server.pb.Message.req_accountCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountCreate.class, - org.aion.api.server.pb.Message.req_accountCreate.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_accountCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - password_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - privateKey_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - } - - public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_accountCreate build() { - org.aion.api.server.pb.Message.req_accountCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_accountCreate buildPartial() { - org.aion.api.server.pb.Message.req_accountCreate result = - new org.aion.api.server.pb.Message.req_accountCreate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - password_ = password_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.password_ = password_; - result.privateKey_ = privateKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_accountCreate) { - return mergeFrom((org.aion.api.server.pb.Message.req_accountCreate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountCreate other) { - if (other == org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance()) - return this; - if (!other.password_.isEmpty()) { - if (password_.isEmpty()) { - password_ = other.password_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePasswordIsMutable(); - password_.addAll(other.password_); - } - onChanged(); - } - if (other.getPrivateKey() != false) { - setPrivateKey(other.getPrivateKey()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_accountCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_accountCreate) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList password_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePasswordIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - password_ = new com.google.protobuf.LazyStringArrayList(password_); - bitField0_ |= 0x00000001; - } - } - /** repeated string password = 1; */ - public com.google.protobuf.ProtocolStringList getPasswordList() { - return password_.getUnmodifiableView(); - } - /** repeated string password = 1; */ - public int getPasswordCount() { - return password_.size(); - } - /** repeated string password = 1; */ - public java.lang.String getPassword(int index) { - return password_.get(index); - } - /** repeated string password = 1; */ - public com.google.protobuf.ByteString getPasswordBytes(int index) { - return password_.getByteString(index); - } - /** repeated string password = 1; */ - public Builder setPassword(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePasswordIsMutable(); - password_.set(index, value); - onChanged(); - return this; - } - /** repeated string password = 1; */ - public Builder addPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePasswordIsMutable(); - password_.add(value); - onChanged(); - return this; - } - /** repeated string password = 1; */ - public Builder addAllPassword(java.lang.Iterable values) { - ensurePasswordIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, password_); - onChanged(); - return this; - } - /** repeated string password = 1; */ - public Builder clearPassword() { - password_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** repeated string password = 1; */ - public Builder addPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePasswordIsMutable(); - password_.add(value); - onChanged(); - return this; - } - - private boolean privateKey_; - /** bool privateKey = 2; */ - public boolean getPrivateKey() { - return privateKey_; - } - /** bool privateKey = 2; */ - public Builder setPrivateKey(boolean value) { - - privateKey_ = value; - onChanged(); - return this; - } - /** bool privateKey = 2; */ - public Builder clearPrivateKey() { - - privateKey_ = false; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountCreate) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountCreate) - private static final org.aion.api.server.pb.Message.req_accountCreate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountCreate(); - } - - public static org.aion.api.server.pb.Message.req_accountCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_accountCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_accountCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_accountCreateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountCreate) - com.google.protobuf.MessageOrBuilder { - - /** repeated bytes address = 1; */ - java.util.List getAddressList(); - /** repeated bytes address = 1; */ - int getAddressCount(); - /** repeated bytes address = 1; */ - com.google.protobuf.ByteString getAddress(int index); - - /** repeated bytes privateKey = 2; */ - java.util.List getPrivateKeyList(); - /** repeated bytes privateKey = 2; */ - int getPrivateKeyCount(); - /** repeated bytes privateKey = 2; */ - com.google.protobuf.ByteString getPrivateKey(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} */ - public static final class rsp_accountCreate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountCreate) - rsp_accountCreateOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_accountCreate.newBuilder() to construct. - private rsp_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_accountCreate() { - address_ = java.util.Collections.emptyList(); - privateKey_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_accountCreate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - address_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00000001; - } - address_.add(input.readBytes()); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00000002; - } - privateKey_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - address_ = java.util.Collections.unmodifiableList(address_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountCreate.class, - org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private java.util.List address_; - /** repeated bytes address = 1; */ - public java.util.List getAddressList() { - return address_; - } - /** repeated bytes address = 1; */ - public int getAddressCount() { - return address_.size(); - } - /** repeated bytes address = 1; */ - public com.google.protobuf.ByteString getAddress(int index) { - return address_.get(index); - } - - public static final int PRIVATEKEY_FIELD_NUMBER = 2; - private java.util.List privateKey_; - /** repeated bytes privateKey = 2; */ - public java.util.List getPrivateKeyList() { - return privateKey_; - } - /** repeated bytes privateKey = 2; */ - public int getPrivateKeyCount() { - return privateKey_.size(); - } - /** repeated bytes privateKey = 2; */ - public com.google.protobuf.ByteString getPrivateKey(int index) { - return privateKey_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < address_.size(); i++) { - output.writeBytes(1, address_.get(i)); - } - for (int i = 0; i < privateKey_.size(); i++) { - output.writeBytes(2, privateKey_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < address_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - address_.get(i)); - } - size += dataSize; - size += 1 * getAddressList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < privateKey_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - privateKey_.get(i)); - } - size += dataSize; - size += 1 * getPrivateKeyList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountCreate)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_accountCreate other = - (org.aion.api.server.pb.Message.rsp_accountCreate) obj; - - boolean result = true; - result = result && getAddressList().equals(other.getAddressList()); - result = result && getPrivateKeyList().equals(other.getPrivateKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddressCount() > 0) { - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddressList().hashCode(); - } - if (getPrivateKeyCount() > 0) { - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivateKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_accountCreate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountCreate) - org.aion.api.server.pb.Message.rsp_accountCreateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountCreate.class, - org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_accountCreate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - address_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_accountCreate build() { - org.aion.api.server.pb.Message.rsp_accountCreate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_accountCreate buildPartial() { - org.aion.api.server.pb.Message.rsp_accountCreate result = - new org.aion.api.server.pb.Message.rsp_accountCreate(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - address_ = java.util.Collections.unmodifiableList(address_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.address_ = address_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.privateKey_ = privateKey_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_accountCreate) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_accountCreate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountCreate other) { - if (other == org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance()) - return this; - if (!other.address_.isEmpty()) { - if (address_.isEmpty()) { - address_ = other.address_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddressIsMutable(); - address_.addAll(other.address_); - } - onChanged(); - } - if (!other.privateKey_.isEmpty()) { - if (privateKey_.isEmpty()) { - privateKey_ = other.privateKey_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePrivateKeyIsMutable(); - privateKey_.addAll(other.privateKey_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_accountCreate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_accountCreate) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List address_ = - java.util.Collections.emptyList(); - - private void ensureAddressIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - address_ = new java.util.ArrayList(address_); - bitField0_ |= 0x00000001; - } - } - /** repeated bytes address = 1; */ - public java.util.List getAddressList() { - return java.util.Collections.unmodifiableList(address_); - } - /** repeated bytes address = 1; */ - public int getAddressCount() { - return address_.size(); - } - /** repeated bytes address = 1; */ - public com.google.protobuf.ByteString getAddress(int index) { - return address_.get(index); - } - /** repeated bytes address = 1; */ - public Builder setAddress(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressIsMutable(); - address_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes address = 1; */ - public Builder addAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressIsMutable(); - address_.add(value); - onChanged(); - return this; - } - /** repeated bytes address = 1; */ - public Builder addAllAddress( - java.lang.Iterable values) { - ensureAddressIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, address_); - onChanged(); - return this; - } - /** repeated bytes address = 1; */ - public Builder clearAddress() { - address_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List privateKey_ = - java.util.Collections.emptyList(); - - private void ensurePrivateKeyIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - privateKey_ = - new java.util.ArrayList(privateKey_); - bitField0_ |= 0x00000002; - } - } - /** repeated bytes privateKey = 2; */ - public java.util.List getPrivateKeyList() { - return java.util.Collections.unmodifiableList(privateKey_); - } - /** repeated bytes privateKey = 2; */ - public int getPrivateKeyCount() { - return privateKey_.size(); - } - /** repeated bytes privateKey = 2; */ - public com.google.protobuf.ByteString getPrivateKey(int index) { - return privateKey_.get(index); - } - /** repeated bytes privateKey = 2; */ - public Builder setPrivateKey(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes privateKey = 2; */ - public Builder addPrivateKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.add(value); - onChanged(); - return this; - } - /** repeated bytes privateKey = 2; */ - public Builder addAllPrivateKey( - java.lang.Iterable values) { - ensurePrivateKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateKey_); - onChanged(); - return this; - } - /** repeated bytes privateKey = 2; */ - public Builder clearPrivateKey() { - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountCreate) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountCreate) - private static final org.aion.api.server.pb.Message.rsp_accountCreate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountCreate(); - } - - public static org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_accountCreate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_accountCreate(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_accountlockOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountlock) - com.google.protobuf.MessageOrBuilder { - - /** bytes account = 1; */ - com.google.protobuf.ByteString getAccount(); - - /** string password = 2; */ - java.lang.String getPassword(); - /** string password = 2; */ - com.google.protobuf.ByteString getPasswordBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_accountlock} */ - public static final class req_accountlock extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountlock) - req_accountlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_accountlock.newBuilder() to construct. - private req_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_accountlock() { - account_ = com.google.protobuf.ByteString.EMPTY; - password_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_accountlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - account_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountlock.class, - org.aion.api.server.pb.Message.req_accountlock.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString account_; - /** bytes account = 1; */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!account_.isEmpty()) { - output.writeBytes(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!account_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, account_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_accountlock)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_accountlock other = - (org.aion.api.server.pb.Message.req_accountlock) obj; - - boolean result = true; - result = result && getAccount().equals(other.getAccount()); - result = result && getPassword().equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_accountlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.req_accountlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_accountlock} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountlock) - org.aion.api.server.pb.Message.req_accountlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_accountlock.class, - org.aion.api.server.pb.Message.req_accountlock.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_accountlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - account_ = com.google.protobuf.ByteString.EMPTY; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_accountlock_descriptor; - } - - public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_accountlock build() { - org.aion.api.server.pb.Message.req_accountlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_accountlock buildPartial() { - org.aion.api.server.pb.Message.req_accountlock result = - new org.aion.api.server.pb.Message.req_accountlock(this); - result.account_ = account_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_accountlock) { - return mergeFrom((org.aion.api.server.pb.Message.req_accountlock) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountlock other) { - if (other == org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance()) - return this; - if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { - setAccount(other.getAccount()); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_accountlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_accountlock) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; - /** bytes account = 1; */ - public com.google.protobuf.ByteString getAccount() { - return account_; - } - /** bytes account = 1; */ - public Builder setAccount(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - account_ = value; - onChanged(); - return this; - } - /** bytes account = 1; */ - public Builder clearAccount() { - - account_ = getDefaultInstance().getAccount(); - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string password = 2; */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** string password = 2; */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** string password = 2; */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountlock) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountlock) - private static final org.aion.api.server.pb.Message.req_accountlock DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountlock(); - } - - public static org.aion.api.server.pb.Message.req_accountlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_accountlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_accountlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_accountlockOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountlock) - com.google.protobuf.MessageOrBuilder { - - /** bool locked = 1; */ - boolean getLocked(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} */ - public static final class rsp_accountlock extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountlock) - rsp_accountlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_accountlock.newBuilder() to construct. - private rsp_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_accountlock() { - locked_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_accountlock( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - locked_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountlock.class, - org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); - } - - public static final int LOCKED_FIELD_NUMBER = 1; - private boolean locked_; - /** bool locked = 1; */ - public boolean getLocked() { - return locked_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (locked_ != false) { - output.writeBool(1, locked_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (locked_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, locked_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountlock)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_accountlock other = - (org.aion.api.server.pb.Message.rsp_accountlock) obj; - - boolean result = true; - result = result && (getLocked() == other.getLocked()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accountlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountlock) - org.aion.api.server.pb.Message.rsp_accountlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_accountlock.class, - org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_accountlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - locked_ = false; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_accountlock build() { - org.aion.api.server.pb.Message.rsp_accountlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_accountlock buildPartial() { - org.aion.api.server.pb.Message.rsp_accountlock result = - new org.aion.api.server.pb.Message.rsp_accountlock(this); - result.locked_ = locked_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_accountlock) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_accountlock) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountlock other) { - if (other == org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance()) - return this; - if (other.getLocked() != false) { - setLocked(other.getLocked()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_accountlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_accountlock) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean locked_; - /** bool locked = 1; */ - public boolean getLocked() { - return locked_; - } - /** bool locked = 1; */ - public Builder setLocked(boolean value) { - - locked_ = value; - onChanged(); - return this; - } - /** bool locked = 1; */ - public Builder clearLocked() { - - locked_ = false; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountlock) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountlock) - private static final org.aion.api.server.pb.Message.rsp_accountlock DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountlock(); - } - - public static org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_accountlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_accountlock(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_userPrivilegeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_userPrivilege) - com.google.protobuf.MessageOrBuilder { - - /** string username = 1; */ - java.lang.String getUsername(); - /** string username = 1; */ - com.google.protobuf.ByteString getUsernameBytes(); - - /** string password = 2; */ - java.lang.String getPassword(); - /** string password = 2; */ - com.google.protobuf.ByteString getPasswordBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} */ - public static final class req_userPrivilege extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_userPrivilege) - req_userPrivilegeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_userPrivilege.newBuilder() to construct. - private req_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_userPrivilege() { - username_ = ""; - password_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_userPrivilege( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_userPrivilege.class, - org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); - } - - public static final int USERNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object username_; - /** string username = 1; */ - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } - } - /** string username = 1; */ - public com.google.protobuf.ByteString getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getUsernameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUsernameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_userPrivilege)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_userPrivilege other = - (org.aion.api.server.pb.Message.req_userPrivilege) obj; - - boolean result = true; - result = result && getUsername().equals(other.getUsername()); - result = result && getPassword().equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getUsername().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_userPrivilege prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_userPrivilege) - org.aion.api.server.pb.Message.req_userPrivilegeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_userPrivilege.class, - org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_userPrivilege.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - username_ = ""; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - } - - public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_userPrivilege build() { - org.aion.api.server.pb.Message.req_userPrivilege result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_userPrivilege buildPartial() { - org.aion.api.server.pb.Message.req_userPrivilege result = - new org.aion.api.server.pb.Message.req_userPrivilege(this); - result.username_ = username_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_userPrivilege) { - return mergeFrom((org.aion.api.server.pb.Message.req_userPrivilege) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_userPrivilege other) { - if (other == org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance()) - return this; - if (!other.getUsername().isEmpty()) { - username_ = other.username_; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_userPrivilege parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_userPrivilege) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object username_ = ""; - /** string username = 1; */ - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string username = 1; */ - public com.google.protobuf.ByteString getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string username = 1; */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - onChanged(); - return this; - } - /** string username = 1; */ - public Builder clearUsername() { - - username_ = getDefaultInstance().getUsername(); - onChanged(); - return this; - } - /** string username = 1; */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string password = 2; */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** string password = 2; */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** string password = 2; */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_userPrivilege) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_userPrivilege) - private static final org.aion.api.server.pb.Message.req_userPrivilege DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_userPrivilege(); - } - - public static org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_userPrivilege parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_userPrivilege(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_userPrivilegeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_userPrivilege) - com.google.protobuf.MessageOrBuilder { - - /** repeated string privilege = 1; */ - java.util.List getPrivilegeList(); - /** repeated string privilege = 1; */ - int getPrivilegeCount(); - /** repeated string privilege = 1; */ - java.lang.String getPrivilege(int index); - /** repeated string privilege = 1; */ - com.google.protobuf.ByteString getPrivilegeBytes(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} */ - public static final class rsp_userPrivilege extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_userPrivilege) - rsp_userPrivilegeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_userPrivilege.newBuilder() to construct. - private rsp_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_userPrivilege() { - privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_userPrivilege( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - privilege_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = privilege_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_userPrivilege.class, - org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); - } - - public static final int PRIVILEGE_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList privilege_; - /** repeated string privilege = 1; */ - public com.google.protobuf.ProtocolStringList getPrivilegeList() { - return privilege_; - } - /** repeated string privilege = 1; */ - public int getPrivilegeCount() { - return privilege_.size(); - } - /** repeated string privilege = 1; */ - public java.lang.String getPrivilege(int index) { - return privilege_.get(index); - } - /** repeated string privilege = 1; */ - public com.google.protobuf.ByteString getPrivilegeBytes(int index) { - return privilege_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < privilege_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privilege_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < privilege_.size(); i++) { - dataSize += computeStringSizeNoTag(privilege_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrivilegeList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_userPrivilege)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_userPrivilege other = - (org.aion.api.server.pb.Message.rsp_userPrivilege) obj; - - boolean result = true; - result = result && getPrivilegeList().equals(other.getPrivilegeList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPrivilegeCount() > 0) { - hash = (37 * hash) + PRIVILEGE_FIELD_NUMBER; - hash = (53 * hash) + getPrivilegeList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_userPrivilege prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_userPrivilege) - org.aion.api.server.pb.Message.rsp_userPrivilegeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_userPrivilege.class, - org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_userPrivilege.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_userPrivilege build() { - org.aion.api.server.pb.Message.rsp_userPrivilege result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_userPrivilege buildPartial() { - org.aion.api.server.pb.Message.rsp_userPrivilege result = - new org.aion.api.server.pb.Message.rsp_userPrivilege(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = privilege_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.privilege_ = privilege_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_userPrivilege) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_userPrivilege) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_userPrivilege other) { - if (other == org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance()) - return this; - if (!other.privilege_.isEmpty()) { - if (privilege_.isEmpty()) { - privilege_ = other.privilege_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrivilegeIsMutable(); - privilege_.addAll(other.privilege_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_userPrivilege parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_userPrivilege) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList privilege_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePrivilegeIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - privilege_ = new com.google.protobuf.LazyStringArrayList(privilege_); - bitField0_ |= 0x00000001; - } - } - /** repeated string privilege = 1; */ - public com.google.protobuf.ProtocolStringList getPrivilegeList() { - return privilege_.getUnmodifiableView(); - } - /** repeated string privilege = 1; */ - public int getPrivilegeCount() { - return privilege_.size(); - } - /** repeated string privilege = 1; */ - public java.lang.String getPrivilege(int index) { - return privilege_.get(index); - } - /** repeated string privilege = 1; */ - public com.google.protobuf.ByteString getPrivilegeBytes(int index) { - return privilege_.getByteString(index); - } - /** repeated string privilege = 1; */ - public Builder setPrivilege(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivilegeIsMutable(); - privilege_.set(index, value); - onChanged(); - return this; - } - /** repeated string privilege = 1; */ - public Builder addPrivilege(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivilegeIsMutable(); - privilege_.add(value); - onChanged(); - return this; - } - /** repeated string privilege = 1; */ - public Builder addAllPrivilege(java.lang.Iterable values) { - ensurePrivilegeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privilege_); - onChanged(); - return this; - } - /** repeated string privilege = 1; */ - public Builder clearPrivilege() { - privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** repeated string privilege = 1; */ - public Builder addPrivilegeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrivilegeIsMutable(); - privilege_.add(value); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_userPrivilege) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_userPrivilege) - private static final org.aion.api.server.pb.Message.rsp_userPrivilege DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_userPrivilege(); - } - - public static org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_userPrivilege parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_userPrivilege(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_queryCtEventsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_queryCtEvents) - com.google.protobuf.MessageOrBuilder { - - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - boolean hasFilter(); - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - org.aion.api.server.pb.Message.t_FilterCt getFilter(); - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); - } - /** Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} */ - public static final class req_queryCtEvents extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_queryCtEvents) - req_queryCtEventsOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_queryCtEvents.newBuilder() to construct. - private req_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_queryCtEvents() {} - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_queryCtEvents( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); - } - filter_ = - input.readMessage( - org.aion.api.server.pb.Message.t_FilterCt.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_queryCtEvents.class, - org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); - } - - public static final int FILTER_FIELD_NUMBER = 1; - private org.aion.api.server.pb.Message.t_FilterCt filter_; - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public boolean hasFilter() { - return filter_ != null; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - return filter_ == null - ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() - : filter_; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - return getFilter(); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (filter_ != null) { - output.writeMessage(1, getFilter()); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFilter()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_queryCtEvents)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_queryCtEvents other = - (org.aion.api.server.pb.Message.req_queryCtEvents) obj; - - boolean result = true; - result = result && (hasFilter() == other.hasFilter()); - if (hasFilter()) { - result = result && getFilter().equals(other.getFilter()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_queryCtEvents prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_queryCtEvents) - org.aion.api.server.pb.Message.req_queryCtEventsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_queryCtEvents.class, - org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_queryCtEvents.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - if (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - } - - public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_queryCtEvents build() { - org.aion.api.server.pb.Message.req_queryCtEvents result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_queryCtEvents buildPartial() { - org.aion.api.server.pb.Message.req_queryCtEvents result = - new org.aion.api.server.pb.Message.req_queryCtEvents(this); - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_queryCtEvents) { - return mergeFrom((org.aion.api.server.pb.Message.req_queryCtEvents) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_queryCtEvents other) { - if (other == org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance()) - return this; - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_queryCtEvents parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_queryCtEvents) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, - org.aion.api.server.pb.Message.t_FilterCt.Builder, - org.aion.api.server.pb.Message.t_FilterCtOrBuilder> - filterBuilder_; - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public org.aion.api.server.pb.Message.t_FilterCt getFilter() { - if (filterBuilder_ == null) { - return filter_ == null - ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() - : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public Builder setFilter( - org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - org.aion.api.server.pb.Message.t_FilterCt - .newBuilder(filter_) - .mergeFrom(value) - .buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null - ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() - : filter_; - } - } - /** .org.aion.api.server.pb.t_FilterCt filter = 1; */ - private com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, - org.aion.api.server.pb.Message.t_FilterCt.Builder, - org.aion.api.server.pb.Message.t_FilterCtOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - org.aion.api.server.pb.Message.t_FilterCt, - org.aion.api.server.pb.Message.t_FilterCt.Builder, - org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( - getFilter(), getParentForChildren(), isClean()); - filter_ = null; - } - return filterBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_queryCtEvents) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_queryCtEvents) - private static final org.aion.api.server.pb.Message.req_queryCtEvents DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_queryCtEvents(); - } - - public static org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_queryCtEvents parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_queryCtEvents(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_queryCtEventsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_queryCtEvents) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - java.util.List getEcList(); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - org.aion.api.server.pb.Message.t_EventCt getEc(int index); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - int getEcCount(); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - java.util.List - getEcOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} */ - public static final class rsp_queryCtEvents extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_queryCtEvents) - rsp_queryCtEventsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_queryCtEvents.newBuilder() to construct. - private rsp_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_queryCtEvents() { - ec_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_queryCtEvents( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_EventCt>(); - mutable_bitField0_ |= 0x00000001; - } - ec_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_EventCt.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_queryCtEvents.class, - org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); - } - - public static final int EC_FIELD_NUMBER = 1; - private java.util.List ec_; - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List getEcList() { - return ec_; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List - getEcOrBuilderList() { - return ec_; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public int getEcCount() { - return ec_.size(); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - return ec_.get(index); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { - return ec_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < ec_.size(); i++) { - output.writeMessage(1, ec_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < ec_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ec_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_queryCtEvents other = - (org.aion.api.server.pb.Message.rsp_queryCtEvents) obj; - - boolean result = true; - result = result && getEcList().equals(other.getEcList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEcCount() > 0) { - hash = (37 * hash) + EC_FIELD_NUMBER; - hash = (53 * hash) + getEcList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_queryCtEvents prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_queryCtEvents) - org.aion.api.server.pb.Message.rsp_queryCtEventsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_queryCtEvents.class, - org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_queryCtEvents.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEcFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ecBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_queryCtEvents build() { - org.aion.api.server.pb.Message.rsp_queryCtEvents result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_queryCtEvents buildPartial() { - org.aion.api.server.pb.Message.rsp_queryCtEvents result = - new org.aion.api.server.pb.Message.rsp_queryCtEvents(this); - int from_bitField0_ = bitField0_; - if (ecBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = java.util.Collections.unmodifiableList(ec_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ec_ = ec_; - } else { - result.ec_ = ecBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_queryCtEvents) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_queryCtEvents other) { - if (other == org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance()) - return this; - if (ecBuilder_ == null) { - if (!other.ec_.isEmpty()) { - if (ec_.isEmpty()) { - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEcIsMutable(); - ec_.addAll(other.ec_); - } - onChanged(); - } - } else { - if (!other.ec_.isEmpty()) { - if (ecBuilder_.isEmpty()) { - ecBuilder_.dispose(); - ecBuilder_ = null; - ec_ = other.ec_; - bitField0_ = (bitField0_ & ~0x00000001); - ecBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEcFieldBuilder() - : null; - } else { - ecBuilder_.addAllMessages(other.ec_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_queryCtEvents parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_queryCtEvents) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List ec_ = - java.util.Collections.emptyList(); - - private void ensureEcIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - ec_ = new java.util.ArrayList(ec_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, - org.aion.api.server.pb.Message.t_EventCt.Builder, - org.aion.api.server.pb.Message.t_EventCtOrBuilder> - ecBuilder_; - - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List getEcList() { - if (ecBuilder_ == null) { - return java.util.Collections.unmodifiableList(ec_); - } else { - return ecBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public int getEcCount() { - if (ecBuilder_ == null) { - return ec_.size(); - } else { - return ecBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { - if (ecBuilder_ == null) { - return ec_.get(index); - } else { - return ecBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder setEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.set(index, value); - onChanged(); - } else { - ecBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder setEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.set(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(value); - onChanged(); - } else { - ecBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc(int index, org.aion.api.server.pb.Message.t_EventCt value) { - if (ecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEcIsMutable(); - ec_.add(index, value); - onChanged(); - } else { - ecBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc(org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addEc( - int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.add(index, builderForValue.build()); - onChanged(); - } else { - ecBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder addAllEc( - java.lang.Iterable values) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ec_); - onChanged(); - } else { - ecBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder clearEc() { - if (ecBuilder_ == null) { - ec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - ecBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public Builder removeEc(int index) { - if (ecBuilder_ == null) { - ensureEcIsMutable(); - ec_.remove(index); - onChanged(); - } else { - ecBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder(int index) { - return getEcFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder(int index) { - if (ecBuilder_ == null) { - return ec_.get(index); - } else { - return ecBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List - getEcOrBuilderList() { - if (ecBuilder_ != null) { - return ecBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ec_); - } - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { - return getEcFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder(int index) { - return getEcFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_EventCt ec = 1; */ - public java.util.List - getEcBuilderList() { - return getEcFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, - org.aion.api.server.pb.Message.t_EventCt.Builder, - org.aion.api.server.pb.Message.t_EventCtOrBuilder> - getEcFieldBuilder() { - if (ecBuilder_ == null) { - ecBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_EventCt, - org.aion.api.server.pb.Message.t_EventCt.Builder, - org.aion.api.server.pb.Message.t_EventCtOrBuilder>( - ec_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - ec_ = null; - } - return ecBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_queryCtEvents) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_queryCtEvents) - private static final org.aion.api.server.pb.Message.rsp_queryCtEvents DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_queryCtEvents(); - } - - public static org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_queryCtEvents parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_queryCtEvents(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface t_PrivateKeyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_PrivateKey) - com.google.protobuf.MessageOrBuilder { - - /** string privateKey = 1; */ - java.lang.String getPrivateKey(); - /** string privateKey = 1; */ - com.google.protobuf.ByteString getPrivateKeyBytes(); - - /** string password = 2; */ - java.lang.String getPassword(); - /** string password = 2; */ - com.google.protobuf.ByteString getPasswordBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} */ - public static final class t_PrivateKey extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_PrivateKey) - t_PrivateKeyOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_PrivateKey.newBuilder() to construct. - private t_PrivateKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private t_PrivateKey() { - privateKey_ = ""; - password_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private t_PrivateKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - privateKey_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_PrivateKey.class, - org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); - } - - public static final int PRIVATEKEY_FIELD_NUMBER = 1; - private volatile java.lang.Object privateKey_; - /** string privateKey = 1; */ - public java.lang.String getPrivateKey() { - java.lang.Object ref = privateKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateKey_ = s; - return s; - } - } - /** string privateKey = 1; */ - public com.google.protobuf.ByteString getPrivateKeyBytes() { - java.lang.Object ref = privateKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getPrivateKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateKey_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPrivateKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateKey_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_PrivateKey)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_PrivateKey other = - (org.aion.api.server.pb.Message.t_PrivateKey) obj; - - boolean result = true; - result = result && getPrivateKey().equals(other.getPrivateKey()); - result = result && getPassword().equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivateKey().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.t_PrivateKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_PrivateKey) - org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_PrivateKey.class, - org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_PrivateKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - privateKey_ = ""; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - } - - public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_PrivateKey build() { - org.aion.api.server.pb.Message.t_PrivateKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_PrivateKey buildPartial() { - org.aion.api.server.pb.Message.t_PrivateKey result = - new org.aion.api.server.pb.Message.t_PrivateKey(this); - result.privateKey_ = privateKey_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_PrivateKey) { - return mergeFrom((org.aion.api.server.pb.Message.t_PrivateKey) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_PrivateKey other) { - if (other == org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()) - return this; - if (!other.getPrivateKey().isEmpty()) { - privateKey_ = other.privateKey_; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_PrivateKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.t_PrivateKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object privateKey_ = ""; - /** string privateKey = 1; */ - public java.lang.String getPrivateKey() { - java.lang.Object ref = privateKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string privateKey = 1; */ - public com.google.protobuf.ByteString getPrivateKeyBytes() { - java.lang.Object ref = privateKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string privateKey = 1; */ - public Builder setPrivateKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privateKey_ = value; - onChanged(); - return this; - } - /** string privateKey = 1; */ - public Builder clearPrivateKey() { - - privateKey_ = getDefaultInstance().getPrivateKey(); - onChanged(); - return this; - } - /** string privateKey = 1; */ - public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privateKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string password = 2; */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** string password = 2; */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** string password = 2; */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_PrivateKey) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_PrivateKey) - private static final org.aion.api.server.pb.Message.t_PrivateKey DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_PrivateKey(); - } - - public static org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_PrivateKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_PrivateKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_importAccountsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_importAccounts) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - java.util.List getPrivateKeyList(); - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index); - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - int getPrivateKeyCount(); - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - java.util.List - getPrivateKeyOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.req_importAccounts} */ - public static final class req_importAccounts extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_importAccounts) - req_importAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_importAccounts.newBuilder() to construct. - private req_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_importAccounts() { - privateKey_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_importAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_PrivateKey>(); - mutable_bitField0_ |= 0x00000001; - } - privateKey_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_PrivateKey - .parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_importAccounts.class, - org.aion.api.server.pb.Message.req_importAccounts.Builder.class); - } - - public static final int PRIVATEKEY_FIELD_NUMBER = 1; - private java.util.List privateKey_; - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public java.util.List getPrivateKeyList() { - return privateKey_; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public java.util.List - getPrivateKeyOrBuilderList() { - return privateKey_; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public int getPrivateKeyCount() { - return privateKey_.size(); - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { - return privateKey_.get(index); - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( - int index) { - return privateKey_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < privateKey_.size(); i++) { - output.writeMessage(1, privateKey_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < privateKey_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, privateKey_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_importAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_importAccounts other = - (org.aion.api.server.pb.Message.req_importAccounts) obj; - - boolean result = true; - result = result && getPrivateKeyList().equals(other.getPrivateKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPrivateKeyCount() > 0) { - hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; - hash = (53 * hash) + getPrivateKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_importAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_importAccounts} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_importAccounts) - org.aion.api.server.pb.Message.req_importAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_importAccounts.class, - org.aion.api.server.pb.Message.req_importAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_importAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPrivateKeyFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - if (privateKeyBuilder_ == null) { - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - privateKeyBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_importAccounts build() { - org.aion.api.server.pb.Message.req_importAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_importAccounts buildPartial() { - org.aion.api.server.pb.Message.req_importAccounts result = - new org.aion.api.server.pb.Message.req_importAccounts(this); - int from_bitField0_ = bitField0_; - if (privateKeyBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = java.util.Collections.unmodifiableList(privateKey_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.privateKey_ = privateKey_; - } else { - result.privateKey_ = privateKeyBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_importAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.req_importAccounts) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_importAccounts other) { - if (other == org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance()) - return this; - if (privateKeyBuilder_ == null) { - if (!other.privateKey_.isEmpty()) { - if (privateKey_.isEmpty()) { - privateKey_ = other.privateKey_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrivateKeyIsMutable(); - privateKey_.addAll(other.privateKey_); - } - onChanged(); - } - } else { - if (!other.privateKey_.isEmpty()) { - if (privateKeyBuilder_.isEmpty()) { - privateKeyBuilder_.dispose(); - privateKeyBuilder_ = null; - privateKey_ = other.privateKey_; - bitField0_ = (bitField0_ & ~0x00000001); - privateKeyBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPrivateKeyFieldBuilder() - : null; - } else { - privateKeyBuilder_.addAllMessages(other.privateKey_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_importAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_importAccounts) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List privateKey_ = - java.util.Collections.emptyList(); - - private void ensurePrivateKeyIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - privateKey_ = - new java.util.ArrayList( - privateKey_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_PrivateKey, - org.aion.api.server.pb.Message.t_PrivateKey.Builder, - org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> - privateKeyBuilder_; - - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public java.util.List getPrivateKeyList() { - if (privateKeyBuilder_ == null) { - return java.util.Collections.unmodifiableList(privateKey_); - } else { - return privateKeyBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public int getPrivateKeyCount() { - if (privateKeyBuilder_ == null) { - return privateKey_.size(); - } else { - return privateKeyBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { - if (privateKeyBuilder_ == null) { - return privateKey_.get(index); - } else { - return privateKeyBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder setPrivateKey( - int index, org.aion.api.server.pb.Message.t_PrivateKey value) { - if (privateKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.set(index, value); - onChanged(); - } else { - privateKeyBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder setPrivateKey( - int index, - org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.set(index, builderForValue.build()); - onChanged(); - } else { - privateKeyBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder addPrivateKey(org.aion.api.server.pb.Message.t_PrivateKey value) { - if (privateKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.add(value); - onChanged(); - } else { - privateKeyBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder addPrivateKey( - int index, org.aion.api.server.pb.Message.t_PrivateKey value) { - if (privateKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrivateKeyIsMutable(); - privateKey_.add(index, value); - onChanged(); - } else { - privateKeyBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder addPrivateKey( - org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.add(builderForValue.build()); - onChanged(); - } else { - privateKeyBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder addPrivateKey( - int index, - org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.add(index, builderForValue.build()); - onChanged(); - } else { - privateKeyBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder addAllPrivateKey( - java.lang.Iterable - values) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateKey_); - onChanged(); - } else { - privateKeyBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder clearPrivateKey() { - if (privateKeyBuilder_ == null) { - privateKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - privateKeyBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public Builder removePrivateKey(int index) { - if (privateKeyBuilder_ == null) { - ensurePrivateKeyIsMutable(); - privateKey_.remove(index); - onChanged(); - } else { - privateKeyBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public org.aion.api.server.pb.Message.t_PrivateKey.Builder getPrivateKeyBuilder( - int index) { - return getPrivateKeyFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( - int index) { - if (privateKeyBuilder_ == null) { - return privateKey_.get(index); - } else { - return privateKeyBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public java.util.List - getPrivateKeyOrBuilderList() { - if (privateKeyBuilder_ != null) { - return privateKeyBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(privateKey_); - } - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder() { - return getPrivateKeyFieldBuilder() - .addBuilder( - org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder( - int index) { - return getPrivateKeyFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; */ - public java.util.List - getPrivateKeyBuilderList() { - return getPrivateKeyFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_PrivateKey, - org.aion.api.server.pb.Message.t_PrivateKey.Builder, - org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> - getPrivateKeyFieldBuilder() { - if (privateKeyBuilder_ == null) { - privateKeyBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_PrivateKey, - org.aion.api.server.pb.Message.t_PrivateKey.Builder, - org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder>( - privateKey_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - privateKey_ = null; - } - return privateKeyBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_importAccounts) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_importAccounts) - private static final org.aion.api.server.pb.Message.req_importAccounts DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_importAccounts(); - } - - public static org.aion.api.server.pb.Message.req_importAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_importAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_importAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_importAccountsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_importAccounts) - com.google.protobuf.MessageOrBuilder { - - /** repeated string invalidKey = 1; */ - java.util.List getInvalidKeyList(); - /** repeated string invalidKey = 1; */ - int getInvalidKeyCount(); - /** repeated string invalidKey = 1; */ - java.lang.String getInvalidKey(int index); - /** repeated string invalidKey = 1; */ - com.google.protobuf.ByteString getInvalidKeyBytes(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} */ - public static final class rsp_importAccounts extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_importAccounts) - rsp_importAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_importAccounts.newBuilder() to construct. - private rsp_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_importAccounts() { - invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_importAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - invalidKey_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = invalidKey_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_importAccounts.class, - org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); - } - - public static final int INVALIDKEY_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList invalidKey_; - /** repeated string invalidKey = 1; */ - public com.google.protobuf.ProtocolStringList getInvalidKeyList() { - return invalidKey_; - } - /** repeated string invalidKey = 1; */ - public int getInvalidKeyCount() { - return invalidKey_.size(); - } - /** repeated string invalidKey = 1; */ - public java.lang.String getInvalidKey(int index) { - return invalidKey_.get(index); - } - /** repeated string invalidKey = 1; */ - public com.google.protobuf.ByteString getInvalidKeyBytes(int index) { - return invalidKey_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < invalidKey_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, invalidKey_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < invalidKey_.size(); i++) { - dataSize += computeStringSizeNoTag(invalidKey_.getRaw(i)); - } - size += dataSize; - size += 1 * getInvalidKeyList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_importAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_importAccounts other = - (org.aion.api.server.pb.Message.rsp_importAccounts) obj; - - boolean result = true; - result = result && getInvalidKeyList().equals(other.getInvalidKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getInvalidKeyCount() > 0) { - hash = (37 * hash) + INVALIDKEY_FIELD_NUMBER; - hash = (53 * hash) + getInvalidKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_importAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_importAccounts) - org.aion.api.server.pb.Message.rsp_importAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_importAccounts.class, - org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_importAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_importAccounts build() { - org.aion.api.server.pb.Message.rsp_importAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_importAccounts buildPartial() { - org.aion.api.server.pb.Message.rsp_importAccounts result = - new org.aion.api.server.pb.Message.rsp_importAccounts(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = invalidKey_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.invalidKey_ = invalidKey_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_importAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_importAccounts) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_importAccounts other) { - if (other == org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance()) - return this; - if (!other.invalidKey_.isEmpty()) { - if (invalidKey_.isEmpty()) { - invalidKey_ = other.invalidKey_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInvalidKeyIsMutable(); - invalidKey_.addAll(other.invalidKey_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_importAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_importAccounts) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList invalidKey_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInvalidKeyIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - invalidKey_ = new com.google.protobuf.LazyStringArrayList(invalidKey_); - bitField0_ |= 0x00000001; - } - } - /** repeated string invalidKey = 1; */ - public com.google.protobuf.ProtocolStringList getInvalidKeyList() { - return invalidKey_.getUnmodifiableView(); - } - /** repeated string invalidKey = 1; */ - public int getInvalidKeyCount() { - return invalidKey_.size(); - } - /** repeated string invalidKey = 1; */ - public java.lang.String getInvalidKey(int index) { - return invalidKey_.get(index); - } - /** repeated string invalidKey = 1; */ - public com.google.protobuf.ByteString getInvalidKeyBytes(int index) { - return invalidKey_.getByteString(index); - } - /** repeated string invalidKey = 1; */ - public Builder setInvalidKey(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvalidKeyIsMutable(); - invalidKey_.set(index, value); - onChanged(); - return this; - } - /** repeated string invalidKey = 1; */ - public Builder addInvalidKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInvalidKeyIsMutable(); - invalidKey_.add(value); - onChanged(); - return this; - } - /** repeated string invalidKey = 1; */ - public Builder addAllInvalidKey(java.lang.Iterable values) { - ensureInvalidKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidKey_); - onChanged(); - return this; - } - /** repeated string invalidKey = 1; */ - public Builder clearInvalidKey() { - invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** repeated string invalidKey = 1; */ - public Builder addInvalidKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInvalidKeyIsMutable(); - invalidKey_.add(value); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_importAccounts) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_importAccounts) - private static final org.aion.api.server.pb.Message.rsp_importAccounts DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_importAccounts(); - } - - public static org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_importAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_importAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface t_KeyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Key) - com.google.protobuf.MessageOrBuilder { - - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); - - /** string password = 2; */ - java.lang.String getPassword(); - /** string password = 2; */ - com.google.protobuf.ByteString getPasswordBytes(); - } - /** Protobuf type {@code org.aion.api.server.pb.t_Key} */ - public static final class t_Key extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Key) - t_KeyOrBuilder { - private static final long serialVersionUID = 0L; - // Use t_Key.newBuilder() to construct. - private t_Key(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private t_Key() { - address_ = com.google.protobuf.ByteString.EMPTY; - password_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private t_Key( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Key_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Key.class, - org.aion.api.server.pb.Message.t_Key.Builder.class); - } - - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.t_Key)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.t_Key other = (org.aion.api.server.pb.Message.t_Key) obj; - - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && getPassword().equals(other.getPassword()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.t_Key parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(org.aion.api.server.pb.Message.t_Key prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.t_Key} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Key) - org.aion.api.server.pb.Message.t_KeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Key_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.t_Key.class, - org.aion.api.server.pb.Message.t_Key.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.t_Key.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; - - password_ = ""; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_t_Key_descriptor; - } - - public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.t_Key.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.t_Key build() { - org.aion.api.server.pb.Message.t_Key result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.t_Key buildPartial() { - org.aion.api.server.pb.Message.t_Key result = - new org.aion.api.server.pb.Message.t_Key(this); - result.address_ = address_; - result.password_ = password_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.t_Key) { - return mergeFrom((org.aion.api.server.pb.Message.t_Key) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.t_Key other) { - if (other == org.aion.api.server.pb.Message.t_Key.getDefaultInstance()) return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.t_Key parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.aion.api.server.pb.Message.t_Key) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { - - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** string password = 2; */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** string password = 2; */ - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** string password = 2; */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** string password = 2; */ - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** string password = 2; */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Key) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Key) - private static final org.aion.api.server.pb.Message.t_Key DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Key(); - } - - public static org.aion.api.server.pb.Message.t_Key getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public t_Key parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new t_Key(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_exportAccountsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_exportAccounts) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - java.util.List getKeyFileList(); - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - org.aion.api.server.pb.Message.t_Key getKeyFile(int index); - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - int getKeyFileCount(); - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - java.util.List - getKeyFileOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} */ - public static final class req_exportAccounts extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_exportAccounts) - req_exportAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_exportAccounts.newBuilder() to construct. - private req_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_exportAccounts() { - keyFile_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_exportAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_Key>(); - mutable_bitField0_ |= 0x00000001; - } - keyFile_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_Key.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_exportAccounts.class, - org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); - } - - public static final int KEYFILE_FIELD_NUMBER = 1; - private java.util.List keyFile_; - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public java.util.List getKeyFileList() { - return keyFile_; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public java.util.List - getKeyFileOrBuilderList() { - return keyFile_; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public int getKeyFileCount() { - return keyFile_.size(); - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { - return keyFile_.get(index); - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder(int index) { - return keyFile_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keyFile_.size(); i++) { - output.writeMessage(1, keyFile_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < keyFile_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, keyFile_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_exportAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_exportAccounts other = - (org.aion.api.server.pb.Message.req_exportAccounts) obj; - - boolean result = true; - result = result && getKeyFileList().equals(other.getKeyFileList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getKeyFileCount() > 0) { - hash = (37 * hash) + KEYFILE_FIELD_NUMBER; - hash = (53 * hash) + getKeyFileList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_exportAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_exportAccounts) - org.aion.api.server.pb.Message.req_exportAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_exportAccounts.class, - org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.req_exportAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getKeyFileFieldBuilder(); - } - } - - public Builder clear() { - super.clear(); - if (keyFileBuilder_ == null) { - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - keyFileBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_exportAccounts build() { - org.aion.api.server.pb.Message.req_exportAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_exportAccounts buildPartial() { - org.aion.api.server.pb.Message.req_exportAccounts result = - new org.aion.api.server.pb.Message.req_exportAccounts(this); - int from_bitField0_ = bitField0_; - if (keyFileBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keyFile_ = keyFile_; - } else { - result.keyFile_ = keyFileBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_exportAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.req_exportAccounts) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.req_exportAccounts other) { - if (other == org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance()) - return this; - if (keyFileBuilder_ == null) { - if (!other.keyFile_.isEmpty()) { - if (keyFile_.isEmpty()) { - keyFile_ = other.keyFile_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeyFileIsMutable(); - keyFile_.addAll(other.keyFile_); - } - onChanged(); - } - } else { - if (!other.keyFile_.isEmpty()) { - if (keyFileBuilder_.isEmpty()) { - keyFileBuilder_.dispose(); - keyFileBuilder_ = null; - keyFile_ = other.keyFile_; - bitField0_ = (bitField0_ & ~0x00000001); - keyFileBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeyFileFieldBuilder() - : null; - } else { - keyFileBuilder_.addAllMessages(other.keyFile_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_exportAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_exportAccounts) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List keyFile_ = - java.util.Collections.emptyList(); - - private void ensureKeyFileIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = - new java.util.ArrayList(keyFile_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Key, - org.aion.api.server.pb.Message.t_Key.Builder, - org.aion.api.server.pb.Message.t_KeyOrBuilder> - keyFileBuilder_; - - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public java.util.List getKeyFileList() { - if (keyFileBuilder_ == null) { - return java.util.Collections.unmodifiableList(keyFile_); - } else { - return keyFileBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public int getKeyFileCount() { - if (keyFileBuilder_ == null) { - return keyFile_.size(); - } else { - return keyFileBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { - if (keyFileBuilder_ == null) { - return keyFile_.get(index); - } else { - return keyFileBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder setKeyFile(int index, org.aion.api.server.pb.Message.t_Key value) { - if (keyFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.set(index, value); - onChanged(); - } else { - keyFileBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder setKeyFile( - int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.set(index, builderForValue.build()); - onChanged(); - } else { - keyFileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder addKeyFile(org.aion.api.server.pb.Message.t_Key value) { - if (keyFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.add(value); - onChanged(); - } else { - keyFileBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder addKeyFile(int index, org.aion.api.server.pb.Message.t_Key value) { - if (keyFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.add(index, value); - onChanged(); - } else { - keyFileBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder addKeyFile( - org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.add(builderForValue.build()); - onChanged(); - } else { - keyFileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder addKeyFile( - int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.add(index, builderForValue.build()); - onChanged(); - } else { - keyFileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder addAllKeyFile( - java.lang.Iterable values) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyFile_); - onChanged(); - } else { - keyFileBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder clearKeyFile() { - if (keyFileBuilder_ == null) { - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - keyFileBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public Builder removeKeyFile(int index) { - if (keyFileBuilder_ == null) { - ensureKeyFileIsMutable(); - keyFile_.remove(index); - onChanged(); - } else { - keyFileBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public org.aion.api.server.pb.Message.t_Key.Builder getKeyFileBuilder(int index) { - return getKeyFileFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder(int index) { - if (keyFileBuilder_ == null) { - return keyFile_.get(index); - } else { - return keyFileBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public java.util.List - getKeyFileOrBuilderList() { - if (keyFileBuilder_ != null) { - return keyFileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(keyFile_); - } - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder() { - return getKeyFileFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder(int index) { - return getKeyFileFieldBuilder() - .addBuilder( - index, org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Key keyFile = 1; */ - public java.util.List - getKeyFileBuilderList() { - return getKeyFileFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Key, - org.aion.api.server.pb.Message.t_Key.Builder, - org.aion.api.server.pb.Message.t_KeyOrBuilder> - getKeyFileFieldBuilder() { - if (keyFileBuilder_ == null) { - keyFileBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Key, - org.aion.api.server.pb.Message.t_Key.Builder, - org.aion.api.server.pb.Message.t_KeyOrBuilder>( - keyFile_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - keyFile_ = null; - } - return keyFileBuilder_; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_exportAccounts) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_exportAccounts) - private static final org.aion.api.server.pb.Message.req_exportAccounts DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_exportAccounts(); - } - - public static org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_exportAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_exportAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_exportAccountsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_exportAccounts) - com.google.protobuf.MessageOrBuilder { - - /** repeated bytes keyFile = 1; */ - java.util.List getKeyFileList(); - /** repeated bytes keyFile = 1; */ - int getKeyFileCount(); - /** repeated bytes keyFile = 1; */ - com.google.protobuf.ByteString getKeyFile(int index); - - /** repeated bytes failedKey = 2; */ - java.util.List getFailedKeyList(); - /** repeated bytes failedKey = 2; */ - int getFailedKeyCount(); - /** repeated bytes failedKey = 2; */ - com.google.protobuf.ByteString getFailedKey(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} */ - public static final class rsp_exportAccounts extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_exportAccounts) - rsp_exportAccountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_exportAccounts.newBuilder() to construct. - private rsp_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_exportAccounts() { - keyFile_ = java.util.Collections.emptyList(); - failedKey_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_exportAccounts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00000001; - } - keyFile_.add(input.readBytes()); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00000002; - } - failedKey_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = java.util.Collections.unmodifiableList(failedKey_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_exportAccounts.class, - org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); - } - - public static final int KEYFILE_FIELD_NUMBER = 1; - private java.util.List keyFile_; - /** repeated bytes keyFile = 1; */ - public java.util.List getKeyFileList() { - return keyFile_; - } - /** repeated bytes keyFile = 1; */ - public int getKeyFileCount() { - return keyFile_.size(); - } - /** repeated bytes keyFile = 1; */ - public com.google.protobuf.ByteString getKeyFile(int index) { - return keyFile_.get(index); - } - - public static final int FAILEDKEY_FIELD_NUMBER = 2; - private java.util.List failedKey_; - /** repeated bytes failedKey = 2; */ - public java.util.List getFailedKeyList() { - return failedKey_; - } - /** repeated bytes failedKey = 2; */ - public int getFailedKeyCount() { - return failedKey_.size(); - } - /** repeated bytes failedKey = 2; */ - public com.google.protobuf.ByteString getFailedKey(int index) { - return failedKey_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keyFile_.size(); i++) { - output.writeBytes(1, keyFile_.get(i)); - } - for (int i = 0; i < failedKey_.size(); i++) { - output.writeBytes(2, failedKey_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < keyFile_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - keyFile_.get(i)); - } - size += dataSize; - size += 1 * getKeyFileList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < failedKey_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - failedKey_.get(i)); - } - size += dataSize; - size += 1 * getFailedKeyList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_exportAccounts)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_exportAccounts other = - (org.aion.api.server.pb.Message.rsp_exportAccounts) obj; - - boolean result = true; - result = result && getKeyFileList().equals(other.getKeyFileList()); - result = result && getFailedKeyList().equals(other.getFailedKeyList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getKeyFileCount() > 0) { - hash = (37 * hash) + KEYFILE_FIELD_NUMBER; - hash = (53 * hash) + getKeyFileList().hashCode(); - } - if (getFailedKeyCount() > 0) { - hash = (37 * hash) + FAILEDKEY_FIELD_NUMBER; - hash = (53 * hash) + getFailedKeyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_exportAccounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_exportAccounts) - org.aion.api.server.pb.Message.rsp_exportAccountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_exportAccounts.class, - org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); - } - - // Construct using org.aion.api.server.pb.Message.rsp_exportAccounts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - failedKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_exportAccounts build() { - org.aion.api.server.pb.Message.rsp_exportAccounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_exportAccounts buildPartial() { - org.aion.api.server.pb.Message.rsp_exportAccounts result = - new org.aion.api.server.pb.Message.rsp_exportAccounts(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = java.util.Collections.unmodifiableList(keyFile_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keyFile_ = keyFile_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = java.util.Collections.unmodifiableList(failedKey_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.failedKey_ = failedKey_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_exportAccounts) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_exportAccounts) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_exportAccounts other) { - if (other == org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance()) - return this; - if (!other.keyFile_.isEmpty()) { - if (keyFile_.isEmpty()) { - keyFile_ = other.keyFile_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeyFileIsMutable(); - keyFile_.addAll(other.keyFile_); - } - onChanged(); - } - if (!other.failedKey_.isEmpty()) { - if (failedKey_.isEmpty()) { - failedKey_ = other.failedKey_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFailedKeyIsMutable(); - failedKey_.addAll(other.failedKey_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_exportAccounts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_exportAccounts) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List keyFile_ = - java.util.Collections.emptyList(); - - private void ensureKeyFileIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - keyFile_ = new java.util.ArrayList(keyFile_); - bitField0_ |= 0x00000001; - } - } - /** repeated bytes keyFile = 1; */ - public java.util.List getKeyFileList() { - return java.util.Collections.unmodifiableList(keyFile_); - } - /** repeated bytes keyFile = 1; */ - public int getKeyFileCount() { - return keyFile_.size(); - } - /** repeated bytes keyFile = 1; */ - public com.google.protobuf.ByteString getKeyFile(int index) { - return keyFile_.get(index); - } - /** repeated bytes keyFile = 1; */ - public Builder setKeyFile(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes keyFile = 1; */ - public Builder addKeyFile(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyFileIsMutable(); - keyFile_.add(value); - onChanged(); - return this; - } - /** repeated bytes keyFile = 1; */ - public Builder addAllKeyFile( - java.lang.Iterable values) { - ensureKeyFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keyFile_); - onChanged(); - return this; - } - /** repeated bytes keyFile = 1; */ - public Builder clearKeyFile() { - keyFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private java.util.List failedKey_ = - java.util.Collections.emptyList(); - - private void ensureFailedKeyIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - failedKey_ = - new java.util.ArrayList(failedKey_); - bitField0_ |= 0x00000002; - } - } - /** repeated bytes failedKey = 2; */ - public java.util.List getFailedKeyList() { - return java.util.Collections.unmodifiableList(failedKey_); - } - /** repeated bytes failedKey = 2; */ - public int getFailedKeyCount() { - return failedKey_.size(); - } - /** repeated bytes failedKey = 2; */ - public com.google.protobuf.ByteString getFailedKey(int index) { - return failedKey_.get(index); - } - /** repeated bytes failedKey = 2; */ - public Builder setFailedKey(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFailedKeyIsMutable(); - failedKey_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes failedKey = 2; */ - public Builder addFailedKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFailedKeyIsMutable(); - failedKey_.add(value); - onChanged(); - return this; - } - /** repeated bytes failedKey = 2; */ - public Builder addAllFailedKey( - java.lang.Iterable values) { - ensureFailedKeyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, failedKey_); - onChanged(); - return this; - } - /** repeated bytes failedKey = 2; */ - public Builder clearFailedKey() { - failedKey_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_exportAccounts) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_exportAccounts) - private static final org.aion.api.server.pb.Message.rsp_exportAccounts DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_exportAccounts(); - } - - public static org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_exportAccounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_exportAccounts(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface rsp_getCurrentTotalDifficultyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - com.google.protobuf.MessageOrBuilder { - - /** bytes totalDiff = 1; */ - com.google.protobuf.ByteString getTotalDiff(); - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} */ - public static final class rsp_getCurrentTotalDifficulty - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - rsp_getCurrentTotalDifficultyOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getCurrentTotalDifficulty.newBuilder() to construct. - private rsp_getCurrentTotalDifficulty( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getCurrentTotalDifficulty() { - totalDiff_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getCurrentTotalDifficulty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - totalDiff_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - .Builder - .class); - } - - public static final int TOTALDIFF_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString totalDiff_; - /** bytes totalDiff = 1; */ - public com.google.protobuf.ByteString getTotalDiff() { - return totalDiff_; - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!totalDiff_.isEmpty()) { - output.writeBytes(1, totalDiff_); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!totalDiff_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, totalDiff_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other = - (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) obj; - - boolean result = true; - result = result && getTotalDiff().equals(other.getTotalDiff()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTALDIFF_FIELD_NUMBER; - hash = (53 * hash) + getTotalDiff().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficultyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - totalDiff_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - } - - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty build() { - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty buildPartial() { - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = - new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(this); - result.totalDiff_ = totalDiff_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other) { - if (other - == org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - .getDefaultInstance()) return this; - if (other.getTotalDiff() != com.google.protobuf.ByteString.EMPTY) { - setTotalDiff(other.getTotalDiff()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString totalDiff_ = - com.google.protobuf.ByteString.EMPTY; - /** bytes totalDiff = 1; */ - public com.google.protobuf.ByteString getTotalDiff() { - return totalDiff_; - } - /** bytes totalDiff = 1; */ - public Builder setTotalDiff(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - totalDiff_ = value; - onChanged(); - return this; - } - /** bytes totalDiff = 1; */ - public Builder clearTotalDiff() { - - totalDiff_ = getDefaultInstance().getTotalDiff(); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) - private static final org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(); - } - - public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getCurrentTotalDifficulty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getCurrentTotalDifficulty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface req_getBlockDetailsByNumberOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByNumber) - com.google.protobuf.MessageOrBuilder { - - /** repeated uint64 blkNumbers = 1; */ - java.util.List getBlkNumbersList(); - /** repeated uint64 blkNumbers = 1; */ - int getBlkNumbersCount(); - /** repeated uint64 blkNumbers = 1; */ - long getBlkNumbers(int index); - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} */ - public static final class req_getBlockDetailsByNumber - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) - req_getBlockDetailsByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockDetailsByNumber.newBuilder() to construct. - private req_getBlockDetailsByNumber( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private req_getBlockDetailsByNumber() { - blkNumbers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private req_getBlockDetailsByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blkNumbers_.add(input.readUInt64()); - break; - } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) - && input.getBytesUntilLimit() > 0) { - blkNumbers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - blkNumbers_.add(input.readUInt64()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - .Builder - .class); - } - - public static final int BLKNUMBERS_FIELD_NUMBER = 1; - private java.util.List blkNumbers_; - /** repeated uint64 blkNumbers = 1; */ - public java.util.List getBlkNumbersList() { - return blkNumbers_; - } - /** repeated uint64 blkNumbers = 1; */ - public int getBlkNumbersCount() { - return blkNumbers_.size(); - } - /** repeated uint64 blkNumbers = 1; */ - public long getBlkNumbers(int index) { - return blkNumbers_.get(index); - } - - private int blkNumbersMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getBlkNumbersList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(blkNumbersMemoizedSerializedSize); - } - for (int i = 0; i < blkNumbers_.size(); i++) { - output.writeUInt64NoTag(blkNumbers_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < blkNumbers_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeUInt64SizeNoTag( - blkNumbers_.get(i)); - } - size += dataSize; - if (!getBlkNumbersList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); - } - blkNumbersMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other = - (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) obj; - - boolean result = true; - result = result && getBlkNumbersList().equals(other.getBlkNumbersList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkNumbersCount() > 0) { - hash = (37 * hash) + BLKNUMBERS_FIELD_NUMBER; - hash = (53 * hash) + getBlkNumbersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) - org.aion.api.server.pb.Message.req_getBlockDetailsByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - .Builder - .class); - } - - // Construct using - // org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - public Builder clear() { - super.clear(); - blkNumbers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - .getDefaultInstance(); - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber build() { - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber buildPartial() { - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = - new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkNumbers_ = blkNumbers_; - onBuilt(); - return result; - } - - public Builder clone() { - return (Builder) super.clone(); - } - - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - .getDefaultInstance()) return this; - if (!other.blkNumbers_.isEmpty()) { - if (blkNumbers_.isEmpty()) { - blkNumbers_ = other.blkNumbers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkNumbersIsMutable(); - blkNumbers_.addAll(other.blkNumbers_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List blkNumbers_ = java.util.Collections.emptyList(); - - private void ensureBlkNumbersIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkNumbers_ = new java.util.ArrayList(blkNumbers_); - bitField0_ |= 0x00000001; - } - } - /** repeated uint64 blkNumbers = 1; */ - public java.util.List getBlkNumbersList() { - return java.util.Collections.unmodifiableList(blkNumbers_); - } - /** repeated uint64 blkNumbers = 1; */ - public int getBlkNumbersCount() { - return blkNumbers_.size(); - } - /** repeated uint64 blkNumbers = 1; */ - public long getBlkNumbers(int index) { - return blkNumbers_.get(index); - } - /** repeated uint64 blkNumbers = 1; */ - public Builder setBlkNumbers(int index, long value) { - ensureBlkNumbersIsMutable(); - blkNumbers_.set(index, value); - onChanged(); - return this; - } - /** repeated uint64 blkNumbers = 1; */ - public Builder addBlkNumbers(long value) { - ensureBlkNumbersIsMutable(); - blkNumbers_.add(value); - onChanged(); - return this; - } - /** repeated uint64 blkNumbers = 1; */ - public Builder addAllBlkNumbers(java.lang.Iterable values) { - ensureBlkNumbersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkNumbers_); - onChanged(); - return this; - } - /** repeated uint64 blkNumbers = 1; */ - public Builder clearBlkNumbers() { - blkNumbers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) - private static final org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(); - } - - public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockDetailsByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockDetailsByNumber(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - public interface rsp_getBlockDetailsByNumberOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - com.google.protobuf.MessageOrBuilder { - - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - java.util.List getBlkDetailsList(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - int getBlkDetailsCount(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - java.util.List - getBlkDetailsOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder(int index); + private req_compileSolidity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + source_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} */ - public static final class rsp_getBlockDetailsByNumber - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - rsp_getBlockDetailsByNumberOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockDetailsByNumber.newBuilder() to construct. - private rsp_getBlockDetailsByNumber( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private rsp_getBlockDetailsByNumber() { - blkDetails_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private rsp_getBlockDetailsByNumber( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_BlockDetail>(); - mutable_bitField0_ |= 0x00000001; - } - blkDetails_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_BlockDetail - .parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - .Builder - .class); - } - - public static final int BLKDETAILS_FIELD_NUMBER = 1; - private java.util.List blkDetails_; - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List getBlkDetailsList() { - return blkDetails_; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsOrBuilderList() { - return blkDetails_; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public int getBlkDetailsCount() { - return blkDetails_.size(); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - return blkDetails_.get(index); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - return blkDetails_.get(index); - } - - private byte memoizedIsInitialized = -1; - - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkDetails_.size(); i++) { - output.writeMessage(1, blkDetails_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < blkDetails_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, blkDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other = - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) obj; - - boolean result = true; - result = result && getBlkDetailsList().equals(other.getBlkDetailsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkDetailsCount() > 0) { - hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getBlkDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - public Builder newBuilderForType() { - return newBuilder(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compileSolidity.class, org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static final int SOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object source_; + /** + * string source = 1; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * string source = 1; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumberOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - .Builder - .class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - // Construct using - // org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_compileSolidity)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_compileSolidity other = (org.aion.api.server.pb.Message.req_compileSolidity) obj; + + boolean result = true; + result = result && getSource() + .equals(other.getSource()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlkDetailsFieldBuilder(); - } - } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder clear() { - super.clear(); - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_compileSolidity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_compileSolidity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_compileSolidity) + org.aion.api.server.pb.Message.req_compileSolidityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_compileSolidity.class, org.aion.api.server.pb.Message.req_compileSolidity.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_compileSolidity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + source_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; + } + + public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_compileSolidity build() { + org.aion.api.server.pb.Message.req_compileSolidity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_compileSolidity buildPartial() { + org.aion.api.server.pb.Message.req_compileSolidity result = new org.aion.api.server.pb.Message.req_compileSolidity(this); + result.source_ = source_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_compileSolidity) { + return mergeFrom((org.aion.api.server.pb.Message.req_compileSolidity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_compileSolidity other) { + if (other == org.aion.api.server.pb.Message.req_compileSolidity.getDefaultInstance()) return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_compileSolidity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_compileSolidity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object source_ = ""; + /** + * string source = 1; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string source = 1; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string source = 1; + */ + public Builder setSource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + source_ = value; + onChanged(); + return this; + } + /** + * string source = 1; + */ + public Builder clearSource() { + + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * string source = 1; + */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + source_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_compileSolidity) + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - .getDefaultInstance(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_compileSolidity) + private static final org.aion.api.server.pb.Message.req_compileSolidity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_compileSolidity(); + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber build() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = - new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(this); - int from_bitField0_ = bitField0_; - if (blkDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkDetails_ = blkDetails_; - } else { - result.blkDetails_ = blkDetailsBuilder_.build(); - } - onBuilt(); - return result; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_compileSolidity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_compileSolidity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public org.aion.api.server.pb.Message.req_compileSolidity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + } + + public interface rsp_compileSolidityOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_compileSolidity) + com.google.protobuf.MessageOrBuilder { + + /** + * string code = 1; + */ + java.lang.String getCode(); + /** + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + boolean hasInfo(); + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + org.aion.api.server.pb.Message.t_Contract getInfo(); + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} + */ + public static final class rsp_compileSolidity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_compileSolidity) + rsp_compileSolidityOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_compileSolidity.newBuilder() to construct. + private rsp_compileSolidity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_compileSolidity() { + code_ = ""; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_compileSolidity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: { + org.aion.api.server.pb.Message.t_Contract.Builder subBuilder = null; + if (info_ != null) { + subBuilder = info_.toBuilder(); + } + info_ = input.readMessage(org.aion.api.server.pb.Message.t_Contract.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(info_); + info_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compileSolidity.class, org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) other); - } else { - super.mergeFrom(other); - return this; - } - } + public static final int INFO_FIELD_NUMBER = 2; + private org.aion.api.server.pb.Message.t_Contract info_; + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public boolean hasInfo() { + return info_ != null; + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public org.aion.api.server.pb.Message.t_Contract getInfo() { + return info_ == null ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() : info_; + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { + return getInfo(); + } - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other) { - if (other - == org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - .getDefaultInstance()) return this; - if (blkDetailsBuilder_ == null) { - if (!other.blkDetails_.isEmpty()) { - if (blkDetails_.isEmpty()) { - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkDetailsIsMutable(); - blkDetails_.addAll(other.blkDetails_); - } - onChanged(); - } - } else { - if (!other.blkDetails_.isEmpty()) { - if (blkDetailsBuilder_.isEmpty()) { - blkDetailsBuilder_.dispose(); - blkDetailsBuilder_ = null; - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - blkDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlkDetailsFieldBuilder() - : null; - } else { - blkDetailsBuilder_.addAllMessages(other.blkDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final boolean isInitialized() { - return true; - } + memoizedIsInitialized = 1; + return true; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (info_ != null) { + output.writeMessage(2, getInfo()); + } + unknownFields.writeTo(output); + } - private int bitField0_; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (info_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private java.util.List blkDetails_ = - java.util.Collections.emptyList(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_compileSolidity)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_compileSolidity other = (org.aion.api.server.pb.Message.rsp_compileSolidity) obj; + + boolean result = true; + result = result && getCode() + .equals(other.getCode()); + result = result && (hasInfo() == other.hasInfo()); + if (hasInfo()) { + result = result && getInfo() + .equals(other.getInfo()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private void ensureBlkDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = - new java.util.ArrayList( - blkDetails_); - bitField0_ |= 0x00000001; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - blkDetailsBuilder_; - - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsList() { - if (blkDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkDetails_); - } else { - return blkDetailsBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public int getBlkDetailsCount() { - if (blkDetailsBuilder_ == null) { - return blkDetails_.size(); - } else { - return blkDetailsBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, value); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder setBlkDetails( - int index, - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - int index, - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addAllBlkDetails( - java.lang.Iterable - values) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkDetails_); - onChanged(); - } else { - blkDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder clearBlkDetails() { - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder removeBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.remove(index); - onChanged(); - } else { - blkDetailsBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsOrBuilderList() { - if (blkDetailsBuilder_ != null) { - return blkDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkDetails_); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { - return getBlkDetailsFieldBuilder() - .addBuilder( - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsBuilderList() { - return getBlkDetailsFieldBuilder().getBuilderList(); - } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_compileSolidity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - getBlkDetailsFieldBuilder() { - if (blkDetailsBuilder_ == null) { - blkDetailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( - blkDetails_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkDetails_ = null; - } - return blkDetailsBuilder_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_compileSolidity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_compileSolidity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_compileSolidity) + org.aion.api.server.pb.Message.rsp_compileSolidityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_compileSolidity.class, org.aion.api.server.pb.Message.rsp_compileSolidity.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_compileSolidity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = ""; + + if (infoBuilder_ == null) { + info_ = null; + } else { + info_ = null; + infoBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_compileSolidity build() { + org.aion.api.server.pb.Message.rsp_compileSolidity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_compileSolidity buildPartial() { + org.aion.api.server.pb.Message.rsp_compileSolidity result = new org.aion.api.server.pb.Message.rsp_compileSolidity(this); + result.code_ = code_; + if (infoBuilder_ == null) { + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_compileSolidity) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_compileSolidity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compileSolidity other) { + if (other == org.aion.api.server.pb.Message.rsp_compileSolidity.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_compileSolidity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_compileSolidity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private org.aion.api.server.pb.Message.t_Contract info_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_Contract, org.aion.api.server.pb.Message.t_Contract.Builder, org.aion.api.server.pb.Message.t_ContractOrBuilder> infoBuilder_; + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public boolean hasInfo() { + return infoBuilder_ != null || info_ != null; + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public org.aion.api.server.pb.Message.t_Contract getInfo() { + if (infoBuilder_ == null) { + return info_ == null ? org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() : info_; + } else { + return infoBuilder_.getMessage(); + } + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public Builder setInfo(org.aion.api.server.pb.Message.t_Contract value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + onChanged(); + } else { + infoBuilder_.setMessage(value); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public Builder setInfo( + org.aion.api.server.pb.Message.t_Contract.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + onChanged(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public Builder mergeInfo(org.aion.api.server.pb.Message.t_Contract value) { + if (infoBuilder_ == null) { + if (info_ != null) { + info_ = + org.aion.api.server.pb.Message.t_Contract.newBuilder(info_).mergeFrom(value).buildPartial(); + } else { + info_ = value; + } + onChanged(); + } else { + infoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = null; + onChanged(); + } else { + info_ = null; + infoBuilder_ = null; + } + + return this; + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public org.aion.api.server.pb.Message.t_Contract.Builder getInfoBuilder() { + + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null ? + org.aion.api.server.pb.Message.t_Contract.getDefaultInstance() : info_; + } + } + /** + * .org.aion.api.server.pb.t_Contract info = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_Contract, org.aion.api.server.pb.Message.t_Contract.Builder, org.aion.api.server.pb.Message.t_ContractOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_Contract, org.aion.api.server.pb.Message.t_Contract.Builder, org.aion.api.server.pb.Message.t_ContractOrBuilder>( + getInfo(), + getParentForChildren(), + isClean()); + info_ = null; + } + return infoBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_compileSolidity) + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_compileSolidity) + private static final org.aion.api.server.pb.Message.rsp_compileSolidity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_compileSolidity(); + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - } + public static org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) - private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - DEFAULT_INSTANCE; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_compileSolidity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_compileSolidity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public org.aion.api.server.pb.Message.rsp_compileSolidity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlockDetailsByNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockDetailsByNumber(input, extensionRegistry); - } - }; + } + + public interface rsp_getWorkOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getWork) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string work = 1; + */ + java.util.List + getWorkList(); + /** + * repeated string work = 1; + */ + int getWorkCount(); + /** + * repeated string work = 1; + */ + java.lang.String getWork(int index); + /** + * repeated string work = 1; + */ + com.google.protobuf.ByteString + getWorkBytes(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getWork} + */ + public static final class rsp_getWork extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getWork) + rsp_getWorkOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getWork.newBuilder() to construct. + private rsp_getWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getWork() { + work_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getWork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + work_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + work_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + work_ = work_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getWork.class, org.aion.api.server.pb.Message.rsp_getWork.Builder.class); + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int WORK_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList work_; + /** + * repeated string work = 1; + */ + public com.google.protobuf.ProtocolStringList + getWorkList() { + return work_; + } + /** + * repeated string work = 1; + */ + public int getWorkCount() { + return work_.size(); + } + /** + * repeated string work = 1; + */ + public java.lang.String getWork(int index) { + return work_.get(index); + } + /** + * repeated string work = 1; + */ + public com.google.protobuf.ByteString + getWorkBytes(int index) { + return work_.getByteString(index); } - public interface req_getBlockDetailsByLatestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByLatest) - com.google.protobuf.MessageOrBuilder { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** uint64 count = 1; */ - long getCount(); + memoizedIsInitialized = 1; + return true; } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} */ - public static final class req_getBlockDetailsByLatest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) - req_getBlockDetailsByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockDetailsByLatest.newBuilder() to construct. - private req_getBlockDetailsByLatest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockDetailsByLatest() { - count_ = 0L; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < work_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, work_.getRaw(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < work_.size(); i++) { + dataSize += computeStringSizeNoTag(work_.getRaw(i)); + } + size += dataSize; + size += 1 * getWorkList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private req_getBlockDetailsByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - count_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getWork)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getWork other = (org.aion.api.server.pb.Message.rsp_getWork) obj; + + boolean result = true; + result = result && getWorkList() + .equals(other.getWorkList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWorkCount() > 0) { + hash = (37 * hash) + WORK_FIELD_NUMBER; + hash = (53 * hash) + getWorkList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - .Builder - .class); - } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getWork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int COUNT_FIELD_NUMBER = 1; - private long count_; - /** uint64 count = 1; */ - public long getCount() { - return count_; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getWork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getWork} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getWork) + org.aion.api.server.pb.Message.rsp_getWorkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getWork.class, org.aion.api.server.pb.Message.rsp_getWork.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getWork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + work_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getWork build() { + org.aion.api.server.pb.Message.rsp_getWork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getWork buildPartial() { + org.aion.api.server.pb.Message.rsp_getWork result = new org.aion.api.server.pb.Message.rsp_getWork(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + work_ = work_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.work_ = work_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getWork) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getWork)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getWork other) { + if (other == org.aion.api.server.pb.Message.rsp_getWork.getDefaultInstance()) return this; + if (!other.work_.isEmpty()) { + if (work_.isEmpty()) { + work_ = other.work_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkIsMutable(); + work_.addAll(other.work_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getWork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getWork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList work_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWorkIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + work_ = new com.google.protobuf.LazyStringArrayList(work_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string work = 1; + */ + public com.google.protobuf.ProtocolStringList + getWorkList() { + return work_.getUnmodifiableView(); + } + /** + * repeated string work = 1; + */ + public int getWorkCount() { + return work_.size(); + } + /** + * repeated string work = 1; + */ + public java.lang.String getWork(int index) { + return work_.get(index); + } + /** + * repeated string work = 1; + */ + public com.google.protobuf.ByteString + getWorkBytes(int index) { + return work_.getByteString(index); + } + /** + * repeated string work = 1; + */ + public Builder setWork( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkIsMutable(); + work_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string work = 1; + */ + public Builder addWork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkIsMutable(); + work_.add(value); + onChanged(); + return this; + } + /** + * repeated string work = 1; + */ + public Builder addAllWork( + java.lang.Iterable values) { + ensureWorkIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, work_); + onChanged(); + return this; + } + /** + * repeated string work = 1; + */ + public Builder clearWork() { + work_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string work = 1; + */ + public Builder addWorkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWorkIsMutable(); + work_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getWork) + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getWork) + private static final org.aion.api.server.pb.Message.rsp_getWork DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getWork(); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.rsp_getWork getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (count_ != 0L) { - output.writeUInt64(1, count_); - } - unknownFields.writeTo(output); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getWork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getWork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - size = 0; - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public org.aion.api.server.pb.Message.rsp_getWork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other = - (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) obj; + } + + public interface req_submitWorkOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_submitWork) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes nonce = 1; + */ + com.google.protobuf.ByteString getNonce(); + + /** + * bytes solution = 2; + */ + com.google.protobuf.ByteString getSolution(); + + /** + * bytes digest = 3; + */ + com.google.protobuf.ByteString getDigest(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_submitWork} + */ + public static final class req_submitWork extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_submitWork) + req_submitWorkOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_submitWork.newBuilder() to construct. + private req_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_submitWork() { + nonce_ = com.google.protobuf.ByteString.EMPTY; + solution_ = com.google.protobuf.ByteString.EMPTY; + digest_ = com.google.protobuf.ByteString.EMPTY; + } - boolean result = true; - result = result && (getCount() == other.getCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_submitWork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + nonce_ = input.readBytes(); + break; + } + case 18: { + + solution_ = input.readBytes(); + break; + } + case 26: { + + digest_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_submitWork.class, org.aion.api.server.pb.Message.req_submitWork.Builder.class); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int NONCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 1; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int SOLUTION_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString solution_; + /** + * bytes solution = 2; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int DIGEST_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString digest_; + /** + * bytes digest = 3; + */ + public com.google.protobuf.ByteString getDigest() { + return digest_; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!nonce_.isEmpty()) { + output.writeBytes(1, nonce_); + } + if (!solution_.isEmpty()) { + output.writeBytes(2, solution_); + } + if (!digest_.isEmpty()) { + output.writeBytes(3, digest_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, nonce_); + } + if (!solution_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, solution_); + } + if (!digest_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, digest_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_submitWork)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_submitWork other = (org.aion.api.server.pb.Message.req_submitWork) obj; + + boolean result = true; + result = result && getNonce() + .equals(other.getNonce()); + result = result && getSolution() + .equals(other.getSolution()); + result = result && getDigest() + .equals(other.getDigest()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + getSolution().hashCode(); + hash = (37 * hash) + DIGEST_FIELD_NUMBER; + hash = (53 * hash) + getDigest().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_submitWork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_submitWork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_submitWork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_submitWork} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_submitWork) + org.aion.api.server.pb.Message.req_submitWorkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_submitWork.class, org.aion.api.server.pb.Message.req_submitWork.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_submitWork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nonce_ = com.google.protobuf.ByteString.EMPTY; + + solution_ = com.google.protobuf.ByteString.EMPTY; + + digest_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + } + + public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_submitWork build() { + org.aion.api.server.pb.Message.req_submitWork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_submitWork buildPartial() { + org.aion.api.server.pb.Message.req_submitWork result = new org.aion.api.server.pb.Message.req_submitWork(this); + result.nonce_ = nonce_; + result.solution_ = solution_; + result.digest_ = digest_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_submitWork) { + return mergeFrom((org.aion.api.server.pb.Message.req_submitWork)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_submitWork other) { + if (other == org.aion.api.server.pb.Message.req_submitWork.getDefaultInstance()) return this; + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + if (other.getSolution() != com.google.protobuf.ByteString.EMPTY) { + setSolution(other.getSolution()); + } + if (other.getDigest() != com.google.protobuf.ByteString.EMPTY) { + setDigest(other.getDigest()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_submitWork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_submitWork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 1; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 1; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 1; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes solution = 2; + */ + public com.google.protobuf.ByteString getSolution() { + return solution_; + } + /** + * bytes solution = 2; + */ + public Builder setSolution(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + solution_ = value; + onChanged(); + return this; + } + /** + * bytes solution = 2; + */ + public Builder clearSolution() { + + solution_ = getDefaultInstance().getSolution(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes digest = 3; + */ + public com.google.protobuf.ByteString getDigest() { + return digest_; + } + /** + * bytes digest = 3; + */ + public Builder setDigest(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + digest_ = value; + onChanged(); + return this; + } + /** + * bytes digest = 3; + */ + public Builder clearDigest() { + + digest_ = getDefaultInstance().getDigest(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_submitWork) + } - public Builder newBuilderForType() { - return newBuilder(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_submitWork) + private static final org.aion.api.server.pb.Message.req_submitWork DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_submitWork(); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static org.aion.api.server.pb.Message.req_submitWork getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_submitWork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_submitWork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) - org.aion.api.server.pb.Message.req_getBlockDetailsByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - } + public org.aion.api.server.pb.Message.req_submitWork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - .Builder - .class); - } + } + + public interface rsp_submitWorkOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_submitWork) + com.google.protobuf.MessageOrBuilder { + + /** + * bool workAccepted = 1; + */ + boolean getWorkAccepted(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} + */ + public static final class rsp_submitWork extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_submitWork) + rsp_submitWorkOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_submitWork.newBuilder() to construct. + private rsp_submitWork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_submitWork() { + workAccepted_ = false; + } - // Construct using - // org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_submitWork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + workAccepted_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_submitWork.class, org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public static final int WORKACCEPTED_FIELD_NUMBER = 1; + private boolean workAccepted_; + /** + * bool workAccepted = 1; + */ + public boolean getWorkAccepted() { + return workAccepted_; + } - public Builder clear() { - super.clear(); - count_ = 0L; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - return this; - } + memoizedIsInitialized = 1; + return true; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workAccepted_ != false) { + output.writeBool(1, workAccepted_); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - .getDefaultInstance(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, workAccepted_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest build() { - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_submitWork)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_submitWork other = (org.aion.api.server.pb.Message.rsp_submitWork) obj; + + boolean result = true; + result = result && (getWorkAccepted() + == other.getWorkAccepted()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest buildPartial() { - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = - new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(this); - result.count_ = count_; - onBuilt(); - return result; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWorkAccepted()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder clone() { - return (Builder) super.clone(); - } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_submitWork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_submitWork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_submitWork} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_submitWork) + org.aion.api.server.pb.Message.rsp_submitWorkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_submitWork.class, org.aion.api.server.pb.Message.rsp_submitWork.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_submitWork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + workAccepted_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_submitWork build() { + org.aion.api.server.pb.Message.rsp_submitWork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_submitWork buildPartial() { + org.aion.api.server.pb.Message.rsp_submitWork result = new org.aion.api.server.pb.Message.rsp_submitWork(this); + result.workAccepted_ = workAccepted_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_submitWork) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_submitWork)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_submitWork other) { + if (other == org.aion.api.server.pb.Message.rsp_submitWork.getDefaultInstance()) return this; + if (other.getWorkAccepted() != false) { + setWorkAccepted(other.getWorkAccepted()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_submitWork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_submitWork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean workAccepted_ ; + /** + * bool workAccepted = 1; + */ + public boolean getWorkAccepted() { + return workAccepted_; + } + /** + * bool workAccepted = 1; + */ + public Builder setWorkAccepted(boolean value) { + + workAccepted_ = value; + onChanged(); + return this; + } + /** + * bool workAccepted = 1; + */ + public Builder clearWorkAccepted() { + + workAccepted_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_submitWork) + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_submitWork) + private static final org.aion.api.server.pb.Message.rsp_submitWork DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_submitWork(); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public static org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_submitWork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_submitWork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - .getDefaultInstance()) return this; - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public org.aion.api.server.pb.Message.rsp_submitWork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public final boolean isInitialized() { - return true; - } + } + + public interface rsp_fetchQueuedTransactionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + java.util.List + getTxList(); + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + org.aion.api.server.pb.Message.t_AionTx getTx(int index); + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + int getTxCount(); + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + java.util.List + getTxOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} + */ + public static final class rsp_fetchQueuedTransactions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + rsp_fetchQueuedTransactionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_fetchQueuedTransactions.newBuilder() to construct. + private rsp_fetchQueuedTransactions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_fetchQueuedTransactions() { + tx_ = java.util.Collections.emptyList(); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_fetchQueuedTransactions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tx_.add( + input.readMessage(org.aion.api.server.pb.Message.t_AionTx.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + } - private long count_; - /** uint64 count = 1; */ - public long getCount() { - return count_; - } - /** uint64 count = 1; */ - public Builder setCount(long value) { + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.Builder.class); + } - count_ = value; - onChanged(); - return this; - } - /** uint64 count = 1; */ - public Builder clearCount() { + public static final int TX_FIELD_NUMBER = 1; + private java.util.List tx_; + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public java.util.List getTxList() { + return tx_; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public java.util.List + getTxOrBuilderList() { + return tx_; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public int getTxCount() { + return tx_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { + return tx_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder( + int index) { + return tx_.get(index); + } - count_ = 0L; - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + memoizedIsInitialized = 1; + return true; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tx_.size(); i++) { + output.writeMessage(1, tx_.get(i)); + } + unknownFields.writeTo(output); + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tx_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tx_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) - private static final org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - DEFAULT_INSTANCE; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other = (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) obj; + + boolean result = true; + result = result && getTxList() + .equals(other.getTxList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTxCount() > 0) { + hash = (37 * hash) + TX_FIELD_NUMBER; + hash = (53 * hash) + getTxList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockDetailsByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockDetailsByLatest(input, extensionRegistry); - } - }; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_fetchQueuedTransactions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.class, org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTxFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + txBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions build() { + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions buildPartial() { + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions result = new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(this); + int from_bitField0_ = bitField0_; + if (txBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = java.util.Collections.unmodifiableList(tx_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tx_ = tx_; + } else { + result.tx_ = txBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions other) { + if (other == org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions.getDefaultInstance()) return this; + if (txBuilder_ == null) { + if (!other.tx_.isEmpty()) { + if (tx_.isEmpty()) { + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTxIsMutable(); + tx_.addAll(other.tx_); + } + onChanged(); + } + } else { + if (!other.tx_.isEmpty()) { + if (txBuilder_.isEmpty()) { + txBuilder_.dispose(); + txBuilder_ = null; + tx_ = other.tx_; + bitField0_ = (bitField0_ & ~0x00000001); + txBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTxFieldBuilder() : null; + } else { + txBuilder_.addAllMessages(other.tx_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List tx_ = + java.util.Collections.emptyList(); + private void ensureTxIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tx_ = new java.util.ArrayList(tx_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AionTx, org.aion.api.server.pb.Message.t_AionTx.Builder, org.aion.api.server.pb.Message.t_AionTxOrBuilder> txBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public java.util.List getTxList() { + if (txBuilder_ == null) { + return java.util.Collections.unmodifiableList(tx_); + } else { + return txBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public int getTxCount() { + if (txBuilder_ == null) { + return tx_.size(); + } else { + return txBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public org.aion.api.server.pb.Message.t_AionTx getTx(int index) { + if (txBuilder_ == null) { + return tx_.get(index); + } else { + return txBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder setTx( + int index, org.aion.api.server.pb.Message.t_AionTx value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.set(index, value); + onChanged(); + } else { + txBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder setTx( + int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.set(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder addTx(org.aion.api.server.pb.Message.t_AionTx value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(value); + onChanged(); + } else { + txBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder addTx( + int index, org.aion.api.server.pb.Message.t_AionTx value) { + if (txBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTxIsMutable(); + tx_.add(index, value); + onChanged(); + } else { + txBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder addTx( + org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder addTx( + int index, org.aion.api.server.pb.Message.t_AionTx.Builder builderForValue) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.add(index, builderForValue.build()); + onChanged(); + } else { + txBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder addAllTx( + java.lang.Iterable values) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tx_); + onChanged(); + } else { + txBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder clearTx() { + if (txBuilder_ == null) { + tx_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + txBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public Builder removeTx(int index) { + if (txBuilder_ == null) { + ensureTxIsMutable(); + tx_.remove(index); + onChanged(); + } else { + txBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public org.aion.api.server.pb.Message.t_AionTx.Builder getTxBuilder( + int index) { + return getTxFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public org.aion.api.server.pb.Message.t_AionTxOrBuilder getTxOrBuilder( + int index) { + if (txBuilder_ == null) { + return tx_.get(index); } else { + return txBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public java.util.List + getTxOrBuilderList() { + if (txBuilder_ != null) { + return txBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tx_); + } + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder() { + return getTxFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder( + int index) { + return getTxFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_AionTx.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_AionTx tx = 1; + */ + public java.util.List + getTxBuilderList() { + return getTxFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AionTx, org.aion.api.server.pb.Message.t_AionTx.Builder, org.aion.api.server.pb.Message.t_AionTxOrBuilder> + getTxFieldBuilder() { + if (txBuilder_ == null) { + txBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AionTx, org.aion.api.server.pb.Message.t_AionTx.Builder, org.aion.api.server.pb.Message.t_AionTxOrBuilder>( + tx_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + tx_ = null; + } + return txBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_fetchQueuedTransactions) + private static final org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions(); + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions getDefaultInstance() { + return DEFAULT_INSTANCE; } - public interface rsp_getBlockDetailsByLatestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - com.google.protobuf.MessageOrBuilder { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_fetchQueuedTransactions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_fetchQueuedTransactions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - java.util.List getBlkDetailsList(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - int getBlkDetailsCount(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - java.util.List - getBlkDetailsOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder(int index); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} */ - public static final class rsp_getBlockDetailsByLatest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - rsp_getBlockDetailsByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockDetailsByLatest.newBuilder() to construct. - private rsp_getBlockDetailsByLatest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockDetailsByLatest() { - blkDetails_ = java.util.Collections.emptyList(); - } + public org.aion.api.server.pb.Message.rsp_fetchQueuedTransactions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + } + + public interface req_rawTransactionOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_rawTransaction) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes encodedTx = 1; + */ + com.google.protobuf.ByteString getEncodedTx(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} + */ + public static final class req_rawTransaction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_rawTransaction) + req_rawTransactionOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_rawTransaction.newBuilder() to construct. + private req_rawTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_rawTransaction() { + encodedTx_ = com.google.protobuf.ByteString.EMPTY; + } - private rsp_getBlockDetailsByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_BlockDetail>(); - mutable_bitField0_ |= 0x00000001; - } - blkDetails_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_BlockDetail - .parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_rawTransaction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + encodedTx_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_rawTransaction.class, org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - .Builder - .class); - } + public static final int ENCODEDTX_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString encodedTx_; + /** + * bytes encodedTx = 1; + */ + public com.google.protobuf.ByteString getEncodedTx() { + return encodedTx_; + } - public static final int BLKDETAILS_FIELD_NUMBER = 1; - private java.util.List blkDetails_; - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List getBlkDetailsList() { - return blkDetails_; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsOrBuilderList() { - return blkDetails_; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public int getBlkDetailsCount() { - return blkDetails_.size(); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - return blkDetails_.get(index); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - return blkDetails_.get(index); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private byte memoizedIsInitialized = -1; + memoizedIsInitialized = 1; + return true; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!encodedTx_.isEmpty()) { + output.writeBytes(1, encodedTx_); + } + unknownFields.writeTo(output); + } - memoizedIsInitialized = 1; - return true; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!encodedTx_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, encodedTx_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkDetails_.size(); i++) { - output.writeMessage(1, blkDetails_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_rawTransaction)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_rawTransaction other = (org.aion.api.server.pb.Message.req_rawTransaction) obj; + + boolean result = true; + result = result && getEncodedTx() + .equals(other.getEncodedTx()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENCODEDTX_FIELD_NUMBER; + hash = (53 * hash) + getEncodedTx().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - size = 0; - for (int i = 0; i < blkDetails_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, blkDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_rawTransaction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other = - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) obj; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_rawTransaction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - boolean result = true; - result = result && getBlkDetailsList().equals(other.getBlkDetailsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_rawTransaction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_rawTransaction) + org.aion.api.server.pb.Message.req_rawTransactionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_rawTransaction.class, org.aion.api.server.pb.Message.req_rawTransaction.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_rawTransaction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + encodedTx_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + } + + public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_rawTransaction build() { + org.aion.api.server.pb.Message.req_rawTransaction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_rawTransaction buildPartial() { + org.aion.api.server.pb.Message.req_rawTransaction result = new org.aion.api.server.pb.Message.req_rawTransaction(this); + result.encodedTx_ = encodedTx_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_rawTransaction) { + return mergeFrom((org.aion.api.server.pb.Message.req_rawTransaction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_rawTransaction other) { + if (other == org.aion.api.server.pb.Message.req_rawTransaction.getDefaultInstance()) return this; + if (other.getEncodedTx() != com.google.protobuf.ByteString.EMPTY) { + setEncodedTx(other.getEncodedTx()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_rawTransaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_rawTransaction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString encodedTx_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes encodedTx = 1; + */ + public com.google.protobuf.ByteString getEncodedTx() { + return encodedTx_; + } + /** + * bytes encodedTx = 1; + */ + public Builder setEncodedTx(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + encodedTx_ = value; + onChanged(); + return this; + } + /** + * bytes encodedTx = 1; + */ + public Builder clearEncodedTx() { + + encodedTx_ = getDefaultInstance().getEncodedTx(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_rawTransaction) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkDetailsCount() > 0) { - hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getBlkDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_rawTransaction) + private static final org.aion.api.server.pb.Message.req_rawTransaction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_rawTransaction(); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_rawTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_rawTransaction(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public org.aion.api.server.pb.Message.req_rawTransaction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + } + + public interface req_estimateNrgOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_estimateNrg) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes from = 1; + */ + com.google.protobuf.ByteString getFrom(); + + /** + * bytes to = 2; + */ + com.google.protobuf.ByteString getTo(); + + /** + * bytes value = 3; + */ + com.google.protobuf.ByteString getValue(); + + /** + * bytes data = 4; + */ + com.google.protobuf.ByteString getData(); + + /** + * uint64 nrg = 5; + */ + long getNrg(); + + /** + * uint64 nrgPrice = 6; + */ + long getNrgPrice(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} + */ + public static final class req_estimateNrg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_estimateNrg) + req_estimateNrgOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_estimateNrg.newBuilder() to construct. + private req_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_estimateNrg() { + from_ = com.google.protobuf.ByteString.EMPTY; + to_ = com.google.protobuf.ByteString.EMPTY; + value_ = com.google.protobuf.ByteString.EMPTY; + data_ = com.google.protobuf.ByteString.EMPTY; + nrg_ = 0L; + nrgPrice_ = 0L; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_estimateNrg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + from_ = input.readBytes(); + break; + } + case 18: { + + to_ = input.readBytes(); + break; + } + case 26: { + + value_ = input.readBytes(); + break; + } + case 34: { + + data_ = input.readBytes(); + break; + } + case 40: { + + nrg_ = input.readUInt64(); + break; + } + case 48: { + + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_estimateNrg.class, org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int FROM_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString from_; + /** + * bytes from = 1; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public static final int TO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString to_; + /** + * bytes to = 2; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final int VALUE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 3; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int DATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int NRG_FIELD_NUMBER = 5; + private long nrg_; + /** + * uint64 nrg = 5; + */ + public long getNrg() { + return nrg_; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int NRGPRICE_FIELD_NUMBER = 6; + private long nrgPrice_; + /** + * uint64 nrgPrice = 6; + */ + public long getNrgPrice() { + return nrgPrice_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + memoizedIsInitialized = 1; + return true; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!from_.isEmpty()) { + output.writeBytes(1, from_); + } + if (!to_.isEmpty()) { + output.writeBytes(2, to_); + } + if (!value_.isEmpty()) { + output.writeBytes(3, value_); + } + if (!data_.isEmpty()) { + output.writeBytes(4, data_); + } + if (nrg_ != 0L) { + output.writeUInt64(5, nrg_); + } + if (nrgPrice_ != 0L) { + output.writeUInt64(6, nrgPrice_); + } + unknownFields.writeTo(output); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!from_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, from_); + } + if (!to_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, to_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, value_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, data_); + } + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, nrg_); + } + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - .Builder - .class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_estimateNrg)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_estimateNrg other = (org.aion.api.server.pb.Message.req_estimateNrg) obj; + + boolean result = true; + result = result && getFrom() + .equals(other.getFrom()); + result = result && getTo() + .equals(other.getTo()); + result = result && getValue() + .equals(other.getValue()); + result = result && getData() + .equals(other.getData()); + result = result && (getNrg() + == other.getNrg()); + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - // Construct using - // org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrg()); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlkDetailsFieldBuilder(); - } - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_estimateNrg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clear() { - super.clear(); - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_estimateNrg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_estimateNrg) + org.aion.api.server.pb.Message.req_estimateNrgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_estimateNrg.class, org.aion.api.server.pb.Message.req_estimateNrg.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_estimateNrg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + from_ = com.google.protobuf.ByteString.EMPTY; + + to_ = com.google.protobuf.ByteString.EMPTY; + + value_ = com.google.protobuf.ByteString.EMPTY; + + data_ = com.google.protobuf.ByteString.EMPTY; + + nrg_ = 0L; + + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + } + + public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_estimateNrg build() { + org.aion.api.server.pb.Message.req_estimateNrg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_estimateNrg buildPartial() { + org.aion.api.server.pb.Message.req_estimateNrg result = new org.aion.api.server.pb.Message.req_estimateNrg(this); + result.from_ = from_; + result.to_ = to_; + result.value_ = value_; + result.data_ = data_; + result.nrg_ = nrg_; + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_estimateNrg) { + return mergeFrom((org.aion.api.server.pb.Message.req_estimateNrg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_estimateNrg other) { + if (other == org.aion.api.server.pb.Message.req_estimateNrg.getDefaultInstance()) return this; + if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { + setFrom(other.getFrom()); + } + if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { + setTo(other.getTo()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_estimateNrg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_estimateNrg) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes from = 1; + */ + public com.google.protobuf.ByteString getFrom() { + return from_; + } + /** + * bytes from = 1; + */ + public Builder setFrom(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + from_ = value; + onChanged(); + return this; + } + /** + * bytes from = 1; + */ + public Builder clearFrom() { + + from_ = getDefaultInstance().getFrom(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes to = 2; + */ + public com.google.protobuf.ByteString getTo() { + return to_; + } + /** + * bytes to = 2; + */ + public Builder setTo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + to_ = value; + onChanged(); + return this; + } + /** + * bytes to = 2; + */ + public Builder clearTo() { + + to_ = getDefaultInstance().getTo(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 3; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 3; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 3; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 4; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 4; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private long nrg_ ; + /** + * uint64 nrg = 5; + */ + public long getNrg() { + return nrg_; + } + /** + * uint64 nrg = 5; + */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** + * uint64 nrg = 5; + */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 6; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 6; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 6; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_estimateNrg) + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_estimateNrg) + private static final org.aion.api.server.pb.Message.req_estimateNrg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_estimateNrg(); + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - .getDefaultInstance(); - } + public static org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest build() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_estimateNrg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_estimateNrg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = - new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(this); - int from_bitField0_ = bitField0_; - if (blkDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkDetails_ = blkDetails_; - } else { - result.blkDetails_ = blkDetailsBuilder_.build(); - } - onBuilt(); - return result; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder clone() { - return (Builder) super.clone(); - } + public org.aion.api.server.pb.Message.req_estimateNrg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + } + + public interface rsp_estimateNrgOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_estimateNrg) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 nrg = 1; + */ + long getNrg(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} + */ + public static final class rsp_estimateNrg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_estimateNrg) + rsp_estimateNrgOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_estimateNrg.newBuilder() to construct. + private rsp_estimateNrg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_estimateNrg() { + nrg_ = 0L; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_estimateNrg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + nrg_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_estimateNrg.class, org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public static final int NRG_FIELD_NUMBER = 1; + private long nrg_; + /** + * uint64 nrg = 1; + */ + public long getNrg() { + return nrg_; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) other); - } else { - super.mergeFrom(other); - return this; - } - } + memoizedIsInitialized = 1; + return true; + } - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other) { - if (other - == org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - .getDefaultInstance()) return this; - if (blkDetailsBuilder_ == null) { - if (!other.blkDetails_.isEmpty()) { - if (blkDetails_.isEmpty()) { - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkDetailsIsMutable(); - blkDetails_.addAll(other.blkDetails_); - } - onChanged(); - } - } else { - if (!other.blkDetails_.isEmpty()) { - if (blkDetailsBuilder_.isEmpty()) { - blkDetailsBuilder_.dispose(); - blkDetailsBuilder_ = null; - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - blkDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlkDetailsFieldBuilder() - : null; - } else { - blkDetailsBuilder_.addAllMessages(other.blkDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nrg_ != 0L) { + output.writeUInt64(1, nrg_); + } + unknownFields.writeTo(output); + } - public final boolean isInitialized() { - return true; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nrg_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, nrg_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_estimateNrg)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_estimateNrg other = (org.aion.api.server.pb.Message.rsp_estimateNrg) obj; + + boolean result = true; + result = result && (getNrg() + == other.getNrg()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private int bitField0_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NRG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrg()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private java.util.List blkDetails_ = - java.util.Collections.emptyList(); + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_estimateNrg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private void ensureBlkDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = - new java.util.ArrayList( - blkDetails_); - bitField0_ |= 0x00000001; - } - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_estimateNrg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - blkDetailsBuilder_; - - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsList() { - if (blkDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkDetails_); - } else { - return blkDetailsBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public int getBlkDetailsCount() { - if (blkDetailsBuilder_ == null) { - return blkDetails_.size(); - } else { - return blkDetailsBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, value); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder setBlkDetails( - int index, - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - int index, - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addAllBlkDetails( - java.lang.Iterable - values) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkDetails_); - onChanged(); - } else { - blkDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder clearBlkDetails() { - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder removeBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.remove(index); - onChanged(); - } else { - blkDetailsBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsOrBuilderList() { - if (blkDetailsBuilder_ != null) { - return blkDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkDetails_); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { - return getBlkDetailsFieldBuilder() - .addBuilder( - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsBuilderList() { - return getBlkDetailsFieldBuilder().getBuilderList(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_estimateNrg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_estimateNrg) + org.aion.api.server.pb.Message.rsp_estimateNrgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_estimateNrg.class, org.aion.api.server.pb.Message.rsp_estimateNrg.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_estimateNrg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nrg_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_estimateNrg build() { + org.aion.api.server.pb.Message.rsp_estimateNrg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_estimateNrg buildPartial() { + org.aion.api.server.pb.Message.rsp_estimateNrg result = new org.aion.api.server.pb.Message.rsp_estimateNrg(this); + result.nrg_ = nrg_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_estimateNrg) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_estimateNrg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_estimateNrg other) { + if (other == org.aion.api.server.pb.Message.rsp_estimateNrg.getDefaultInstance()) return this; + if (other.getNrg() != 0L) { + setNrg(other.getNrg()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_estimateNrg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_estimateNrg) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nrg_ ; + /** + * uint64 nrg = 1; + */ + public long getNrg() { + return nrg_; + } + /** + * uint64 nrg = 1; + */ + public Builder setNrg(long value) { + + nrg_ = value; + onChanged(); + return this; + } + /** + * uint64 nrg = 1; + */ + public Builder clearNrg() { + + nrg_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_estimateNrg) + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - getBlkDetailsFieldBuilder() { - if (blkDetailsBuilder_ == null) { - blkDetailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( - blkDetails_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkDetails_ = null; - } - return blkDetailsBuilder_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_estimateNrg) + private static final org.aion.api.server.pb.Message.rsp_estimateNrg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_estimateNrg(); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_estimateNrg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_estimateNrg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) - private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - DEFAULT_INSTANCE; + public org.aion.api.server.pb.Message.rsp_estimateNrg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(); - } + } + + public interface rsp_miningOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_mining) + com.google.protobuf.MessageOrBuilder { + + /** + * bool mining = 1; + */ + boolean getMining(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_mining} + */ + public static final class rsp_mining extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_mining) + rsp_miningOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_mining.newBuilder() to construct. + private rsp_mining(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_mining() { + mining_ = false; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_mining( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + mining_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlockDetailsByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockDetailsByLatest(input, extensionRegistry); - } - }; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_mining.class, org.aion.api.server.pb.Message.rsp_mining.Builder.class); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int MINING_FIELD_NUMBER = 1; + private boolean mining_; + /** + * bool mining = 1; + */ + public boolean getMining() { + return mining_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; } - public interface req_getBlocksByLatestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlocksByLatest) - com.google.protobuf.MessageOrBuilder { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mining_ != false) { + output.writeBool(1, mining_); + } + unknownFields.writeTo(output); + } - /** uint64 count = 1; */ - long getCount(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mining_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, mining_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} */ - public static final class req_getBlocksByLatest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlocksByLatest) - req_getBlocksByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlocksByLatest.newBuilder() to construct. - private req_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlocksByLatest() { - count_ = 0L; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_mining)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_mining other = (org.aion.api.server.pb.Message.rsp_mining) obj; + + boolean result = true; + result = result && (getMining() + == other.getMining()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMining()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private req_getBlocksByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - count_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_mining parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_mining parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_mining prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlocksByLatest.class, - org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_mining} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_mining) + org.aion.api.server.pb.Message.rsp_miningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_mining.class, org.aion.api.server.pb.Message.rsp_mining.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_mining.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + mining_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_mining build() { + org.aion.api.server.pb.Message.rsp_mining result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_mining buildPartial() { + org.aion.api.server.pb.Message.rsp_mining result = new org.aion.api.server.pb.Message.rsp_mining(this); + result.mining_ = mining_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_mining) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_mining)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_mining other) { + if (other == org.aion.api.server.pb.Message.rsp_mining.getDefaultInstance()) return this; + if (other.getMining() != false) { + setMining(other.getMining()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_mining parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_mining) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean mining_ ; + /** + * bool mining = 1; + */ + public boolean getMining() { + return mining_; + } + /** + * bool mining = 1; + */ + public Builder setMining(boolean value) { + + mining_ = value; + onChanged(); + return this; + } + /** + * bool mining = 1; + */ + public Builder clearMining() { + + mining_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_mining) + } - public static final int COUNT_FIELD_NUMBER = 1; - private long count_; - /** uint64 count = 1; */ - public long getCount() { - return count_; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_mining) + private static final org.aion.api.server.pb.Message.rsp_mining DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_mining(); + } - private byte memoizedIsInitialized = -1; + public static org.aion.api.server.pb.Message.rsp_mining getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_mining parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_mining(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (count_ != 0L) { - output.writeUInt64(1, count_); - } - unknownFields.writeTo(output); - } + public org.aion.api.server.pb.Message.rsp_mining getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + } + + public interface rsp_syncingOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncing) + com.google.protobuf.MessageOrBuilder { + + /** + * bool syncing = 1; + */ + boolean getSyncing(); + + /** + * uint64 currentBlock = 2; + */ + long getCurrentBlock(); + + /** + * uint64 highestBlock = 3; + */ + long getHighestBlock(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_syncing} + */ + public static final class rsp_syncing extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncing) + rsp_syncingOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_syncing.newBuilder() to construct. + private rsp_syncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_syncing() { + syncing_ = false; + currentBlock_ = 0L; + highestBlock_ = 0L; + } - size = 0; - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_syncing( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + syncing_ = input.readBool(); + break; + } + case 16: { + + currentBlock_ = input.readUInt64(); + break; + } + case 24: { + + highestBlock_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlocksByLatest other = - (org.aion.api.server.pb.Message.req_getBlocksByLatest) obj; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncing.class, org.aion.api.server.pb.Message.rsp_syncing.Builder.class); + } - boolean result = true; - result = result && (getCount() == other.getCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int SYNCING_FIELD_NUMBER = 1; + private boolean syncing_; + /** + * bool syncing = 1; + */ + public boolean getSyncing() { + return syncing_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int CURRENTBLOCK_FIELD_NUMBER = 2; + private long currentBlock_; + /** + * uint64 currentBlock = 2; + */ + public long getCurrentBlock() { + return currentBlock_; + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int HIGHESTBLOCK_FIELD_NUMBER = 3; + private long highestBlock_; + /** + * uint64 highestBlock = 3; + */ + public long getHighestBlock() { + return highestBlock_; + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (syncing_ != false) { + output.writeBool(1, syncing_); + } + if (currentBlock_ != 0L) { + output.writeUInt64(2, currentBlock_); + } + if (highestBlock_ != 0L) { + output.writeUInt64(3, highestBlock_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (syncing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, syncing_); + } + if (currentBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, currentBlock_); + } + if (highestBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, highestBlock_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncing)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_syncing other = (org.aion.api.server.pb.Message.rsp_syncing) obj; + + boolean result = true; + result = result && (getSyncing() + == other.getSyncing()); + result = result && (getCurrentBlock() + == other.getCurrentBlock()); + result = result && (getHighestBlock() + == other.getHighestBlock()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNCING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSyncing()); + hash = (37 * hash) + CURRENTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCurrentBlock()); + hash = (37 * hash) + HIGHESTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHighestBlock()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_syncing parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_syncing} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncing) + org.aion.api.server.pb.Message.rsp_syncingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncing.class, org.aion.api.server.pb.Message.rsp_syncing.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_syncing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + syncing_ = false; + + currentBlock_ = 0L; + + highestBlock_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_syncing build() { + org.aion.api.server.pb.Message.rsp_syncing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_syncing buildPartial() { + org.aion.api.server.pb.Message.rsp_syncing result = new org.aion.api.server.pb.Message.rsp_syncing(this); + result.syncing_ = syncing_; + result.currentBlock_ = currentBlock_; + result.highestBlock_ = highestBlock_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_syncing) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_syncing)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncing other) { + if (other == org.aion.api.server.pb.Message.rsp_syncing.getDefaultInstance()) return this; + if (other.getSyncing() != false) { + setSyncing(other.getSyncing()); + } + if (other.getCurrentBlock() != 0L) { + setCurrentBlock(other.getCurrentBlock()); + } + if (other.getHighestBlock() != 0L) { + setHighestBlock(other.getHighestBlock()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_syncing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_syncing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean syncing_ ; + /** + * bool syncing = 1; + */ + public boolean getSyncing() { + return syncing_; + } + /** + * bool syncing = 1; + */ + public Builder setSyncing(boolean value) { + + syncing_ = value; + onChanged(); + return this; + } + /** + * bool syncing = 1; + */ + public Builder clearSyncing() { + + syncing_ = false; + onChanged(); + return this; + } + + private long currentBlock_ ; + /** + * uint64 currentBlock = 2; + */ + public long getCurrentBlock() { + return currentBlock_; + } + /** + * uint64 currentBlock = 2; + */ + public Builder setCurrentBlock(long value) { + + currentBlock_ = value; + onChanged(); + return this; + } + /** + * uint64 currentBlock = 2; + */ + public Builder clearCurrentBlock() { + + currentBlock_ = 0L; + onChanged(); + return this; + } + + private long highestBlock_ ; + /** + * uint64 highestBlock = 3; + */ + public long getHighestBlock() { + return highestBlock_; + } + /** + * uint64 highestBlock = 3; + */ + public Builder setHighestBlock(long value) { + + highestBlock_ = value; + onChanged(); + return this; + } + /** + * uint64 highestBlock = 3; + */ + public Builder clearHighestBlock() { + + highestBlock_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncing) + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncing) + private static final org.aion.api.server.pb.Message.rsp_syncing DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncing(); + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_syncing getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder newBuilderForType() { - return newBuilder(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_syncing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_syncing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlocksByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public org.aion.api.server.pb.Message.rsp_syncing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + } + + public interface rsp_hashrateOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_hashrate) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 hashrate = 1; + */ + long getHashrate(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} + */ + public static final class rsp_hashrate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_hashrate) + rsp_hashrateOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_hashrate.newBuilder() to construct. + private rsp_hashrate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_hashrate() { + hashrate_ = 0L; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlocksByLatest) - org.aion.api.server.pb.Message.req_getBlocksByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_hashrate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + hashrate_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlocksByLatest.class, - org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_hashrate.class, org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); + } - // Construct using org.aion.api.server.pb.Message.req_getBlocksByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static final int HASHRATE_FIELD_NUMBER = 1; + private long hashrate_; + /** + * uint64 hashrate = 1; + */ + public long getHashrate() { + return hashrate_; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + memoizedIsInitialized = 1; + return true; + } - public Builder clear() { - super.clear(); - count_ = 0L; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hashrate_ != 0L) { + output.writeUInt64(1, hashrate_); + } + unknownFields.writeTo(output); + } - return this; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hashrate_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, hashrate_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_hashrate)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_hashrate other = (org.aion.api.server.pb.Message.rsp_hashrate) obj; + + boolean result = true; + result = result && (getHashrate() + == other.getHashrate()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.req_getBlocksByLatest - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlocksByLatest.getDefaultInstance(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASHRATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHashrate()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public org.aion.api.server.pb.Message.req_getBlocksByLatest build() { - org.aion.api.server.pb.Message.req_getBlocksByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_hashrate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_getBlocksByLatest buildPartial() { - org.aion.api.server.pb.Message.req_getBlocksByLatest result = - new org.aion.api.server.pb.Message.req_getBlocksByLatest(this); - result.count_ = count_; - onBuilt(); - return result; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_hashrate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_hashrate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_hashrate) + org.aion.api.server.pb.Message.rsp_hashrateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_hashrate.class, org.aion.api.server.pb.Message.rsp_hashrate.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_hashrate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + hashrate_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_hashrate build() { + org.aion.api.server.pb.Message.rsp_hashrate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_hashrate buildPartial() { + org.aion.api.server.pb.Message.rsp_hashrate result = new org.aion.api.server.pb.Message.rsp_hashrate(this); + result.hashrate_ = hashrate_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_hashrate) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_hashrate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_hashrate other) { + if (other == org.aion.api.server.pb.Message.rsp_hashrate.getDefaultInstance()) return this; + if (other.getHashrate() != 0L) { + setHashrate(other.getHashrate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_hashrate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_hashrate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long hashrate_ ; + /** + * uint64 hashrate = 1; + */ + public long getHashrate() { + return hashrate_; + } + /** + * uint64 hashrate = 1; + */ + public Builder setHashrate(long value) { + + hashrate_ = value; + onChanged(); + return this; + } + /** + * uint64 hashrate = 1; + */ + public Builder clearHashrate() { + + hashrate_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_hashrate) + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_hashrate) + private static final org.aion.api.server.pb.Message.rsp_hashrate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_hashrate(); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public static org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_hashrate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_hashrate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public org.aion.api.server.pb.Message.rsp_hashrate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlocksByLatest) other); - } else { - super.mergeFrom(other); - return this; - } - } + } + + public interface rsp_getActiveNodesOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getActiveNodes) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + java.util.List + getNodeList(); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + org.aion.api.server.pb.Message.t_Node getNode(int index); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + int getNodeCount(); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + java.util.List + getNodeOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} + */ + public static final class rsp_getActiveNodes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getActiveNodes) + rsp_getActiveNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getActiveNodes.newBuilder() to construct. + private rsp_getActiveNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getActiveNodes() { + node_ = java.util.Collections.emptyList(); + } - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlocksByLatest other) { - if (other - == org.aion.api.server.pb.Message.req_getBlocksByLatest - .getDefaultInstance()) return this; - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getActiveNodes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + node_.add( + input.readMessage(org.aion.api.server.pb.Message.t_Node.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + } - public final boolean isInitialized() { - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getActiveNodes.class, org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlocksByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlocksByLatest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static final int NODE_FIELD_NUMBER = 1; + private java.util.List node_; + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List getNodeList() { + return node_; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List + getNodeOrBuilderList() { + return node_; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public int getNodeCount() { + return node_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + return node_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( + int index) { + return node_.get(index); + } - private long count_; - /** uint64 count = 1; */ - public long getCount() { - return count_; - } - /** uint64 count = 1; */ - public Builder setCount(long value) { + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - count_ = value; - onChanged(); - return this; - } - /** uint64 count = 1; */ - public Builder clearCount() { + memoizedIsInitialized = 1; + return true; + } - count_ = 0L; - onChanged(); - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < node_.size(); i++) { + output.writeMessage(1, node_.get(i)); + } + unknownFields.writeTo(output); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < node_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, node_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getActiveNodes other = (org.aion.api.server.pb.Message.rsp_getActiveNodes) obj; + + boolean result = true; + result = result && getNodeList() + .equals(other.getNodeList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlocksByLatest) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeCount() > 0) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlocksByLatest) - private static final org.aion.api.server.pb.Message.req_getBlocksByLatest DEFAULT_INSTANCE; + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlocksByLatest(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getActiveNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getActiveNodes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getActiveNodes) + org.aion.api.server.pb.Message.rsp_getActiveNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getActiveNodes.class, org.aion.api.server.pb.Message.rsp_getActiveNodes.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getActiveNodes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getActiveNodes build() { + org.aion.api.server.pb.Message.rsp_getActiveNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getActiveNodes buildPartial() { + org.aion.api.server.pb.Message.rsp_getActiveNodes result = new org.aion.api.server.pb.Message.rsp_getActiveNodes(this); + int from_bitField0_ = bitField0_; + if (nodeBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.node_ = node_; + } else { + result.node_ = nodeBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getActiveNodes) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getActiveNodes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getActiveNodes other) { + if (other == org.aion.api.server.pb.Message.rsp_getActiveNodes.getDefaultInstance()) return this; + if (nodeBuilder_ == null) { + if (!other.node_.isEmpty()) { + if (node_.isEmpty()) { + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeIsMutable(); + node_.addAll(other.node_); + } + onChanged(); + } + } else { + if (!other.node_.isEmpty()) { + if (nodeBuilder_.isEmpty()) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeFieldBuilder() : null; + } else { + nodeBuilder_.addAllMessages(other.node_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getActiveNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getActiveNodes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List node_ = + java.util.Collections.emptyList(); + private void ensureNodeIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = new java.util.ArrayList(node_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> nodeBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List getNodeList() { + if (nodeBuilder_ == null) { + return java.util.Collections.unmodifiableList(node_); + } else { + return nodeBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public int getNodeCount() { + if (nodeBuilder_ == null) { + return node_.size(); + } else { + return nodeBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder setNode( + int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.set(index, value); + onChanged(); + } else { + nodeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder setNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(value); + onChanged(); + } else { + nodeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode( + int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(index, value); + onChanged(); + } else { + nodeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode( + org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addAllNode( + java.lang.Iterable values) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, node_); + onChanged(); + } else { + nodeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder clearNode() { + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder removeNode(int index) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.remove(index); + onChanged(); + } else { + nodeBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder( + int index) { + return getNodeFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( + int index) { + if (nodeBuilder_ == null) { + return node_.get(index); } else { + return nodeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List + getNodeOrBuilderList() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(node_); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { + return getNodeFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder( + int index) { + return getNodeFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List + getNodeBuilderList() { + return getNodeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder>( + node_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + node_ = null; + } + return nodeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getActiveNodes) + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlocksByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlocksByLatest(input, extensionRegistry); - } - }; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getActiveNodes) + private static final org.aion.api.server.pb.Message.rsp_getActiveNodes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getActiveNodes(); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getActiveNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getActiveNodes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public interface rsp_getBlocksByLatestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlocksByLatest) - com.google.protobuf.MessageOrBuilder { + public org.aion.api.server.pb.Message.rsp_getActiveNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - java.util.List getBlksList(); - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - org.aion.api.server.pb.Message.t_Block getBlks(int index); - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - int getBlksCount(); - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - java.util.List - getBlksOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder(int index); + } + + public interface rsp_getStaticNodesOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getStaticNodes) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + java.util.List + getNodeList(); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + org.aion.api.server.pb.Message.t_Node getNode(int index); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + int getNodeCount(); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + java.util.List + getNodeOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} + */ + public static final class rsp_getStaticNodes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getStaticNodes) + rsp_getStaticNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getStaticNodes.newBuilder() to construct. + private rsp_getStaticNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getStaticNodes() { + node_ = java.util.Collections.emptyList(); } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} */ - public static final class rsp_getBlocksByLatest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) - rsp_getBlocksByLatestOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlocksByLatest.newBuilder() to construct. - private rsp_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlocksByLatest() { - blks_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getStaticNodes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + node_.add( + input.readMessage(org.aion.api.server.pb.Message.t_Node.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStaticNodes.class, org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); + } - private rsp_getBlocksByLatest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_Block>(); - mutable_bitField0_ |= 0x00000001; - } - blks_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_Block.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = java.util.Collections.unmodifiableList(blks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final int NODE_FIELD_NUMBER = 1; + private java.util.List node_; + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List getNodeList() { + return node_; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List + getNodeOrBuilderList() { + return node_; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public int getNodeCount() { + return node_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + return node_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( + int index) { + return node_.get(index); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, - org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); - } + memoizedIsInitialized = 1; + return true; + } - public static final int BLKS_FIELD_NUMBER = 1; - private java.util.List blks_; - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public java.util.List getBlksList() { - return blks_; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public java.util.List - getBlksOrBuilderList() { - return blks_; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public int getBlksCount() { - return blks_.size(); - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public org.aion.api.server.pb.Message.t_Block getBlks(int index) { - return blks_.get(index); - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder(int index) { - return blks_.get(index); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < node_.size(); i++) { + output.writeMessage(1, node_.get(i)); + } + unknownFields.writeTo(output); + } - private byte memoizedIsInitialized = -1; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < node_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, node_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getStaticNodes other = (org.aion.api.server.pb.Message.rsp_getStaticNodes) obj; + + boolean result = true; + result = result && getNodeList() + .equals(other.getNodeList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeCount() > 0) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blks_.size(); i++) { - output.writeMessage(1, blks_.get(i)); - } - unknownFields.writeTo(output); - } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getStaticNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - size = 0; - for (int i = 0; i < blks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blks_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getStaticNodes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getStaticNodes) + org.aion.api.server.pb.Message.rsp_getStaticNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getStaticNodes.class, org.aion.api.server.pb.Message.rsp_getStaticNodes.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getStaticNodes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getStaticNodes build() { + org.aion.api.server.pb.Message.rsp_getStaticNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getStaticNodes buildPartial() { + org.aion.api.server.pb.Message.rsp_getStaticNodes result = new org.aion.api.server.pb.Message.rsp_getStaticNodes(this); + int from_bitField0_ = bitField0_; + if (nodeBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = java.util.Collections.unmodifiableList(node_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.node_ = node_; + } else { + result.node_ = nodeBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getStaticNodes) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getStaticNodes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStaticNodes other) { + if (other == org.aion.api.server.pb.Message.rsp_getStaticNodes.getDefaultInstance()) return this; + if (nodeBuilder_ == null) { + if (!other.node_.isEmpty()) { + if (node_.isEmpty()) { + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeIsMutable(); + node_.addAll(other.node_); + } + onChanged(); + } + } else { + if (!other.node_.isEmpty()) { + if (nodeBuilder_.isEmpty()) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeFieldBuilder() : null; + } else { + nodeBuilder_.addAllMessages(other.node_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getStaticNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getStaticNodes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List node_ = + java.util.Collections.emptyList(); + private void ensureNodeIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + node_ = new java.util.ArrayList(node_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> nodeBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List getNodeList() { + if (nodeBuilder_ == null) { + return java.util.Collections.unmodifiableList(node_); + } else { + return nodeBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public int getNodeCount() { + if (nodeBuilder_ == null) { + return node_.size(); + } else { + return nodeBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node getNode(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder setNode( + int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.set(index, value); + onChanged(); + } else { + nodeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder setNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode(org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(value); + onChanged(); + } else { + nodeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode( + int index, org.aion.api.server.pb.Message.t_Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(index, value); + onChanged(); + } else { + nodeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode( + org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addNode( + int index, org.aion.api.server.pb.Message.t_Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder addAllNode( + java.lang.Iterable values) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, node_); + onChanged(); + } else { + nodeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder clearNode() { + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public Builder removeNode(int index) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.remove(index); + onChanged(); + } else { + nodeBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node.Builder getNodeBuilder( + int index) { + return getNodeFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_NodeOrBuilder getNodeOrBuilder( + int index) { + if (nodeBuilder_ == null) { + return node_.get(index); } else { + return nodeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List + getNodeOrBuilderList() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(node_); + } + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder() { + return getNodeFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder( + int index) { + return getNodeFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_Node.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Node node = 1; + */ + public java.util.List + getNodeBuilderList() { + return getNodeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Node, org.aion.api.server.pb.Message.t_Node.Builder, org.aion.api.server.pb.Message.t_NodeOrBuilder>( + node_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + node_ = null; + } + return nodeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getStaticNodes) + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlocksByLatest other = - (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) obj; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getStaticNodes) + private static final org.aion.api.server.pb.Message.rsp_getStaticNodes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getStaticNodes(); + } - boolean result = true; - result = result && getBlksList().equals(other.getBlksList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlksCount() > 0) { - hash = (37 * hash) + BLKS_FIELD_NUMBER; - hash = (53 * hash) + getBlksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getStaticNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getStaticNodes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public org.aion.api.server.pb.Message.rsp_getStaticNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + } + + public interface rsp_getSolcVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getSolcVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * string ver = 1; + */ + java.lang.String getVer(); + /** + * string ver = 1; + */ + com.google.protobuf.ByteString + getVerBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} + */ + public static final class rsp_getSolcVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getSolcVersion) + rsp_getSolcVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getSolcVersion.newBuilder() to construct. + private rsp_getSolcVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getSolcVersion() { + ver_ = ""; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getSolcVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ver_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getSolcVersion.class, org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int VER_FIELD_NUMBER = 1; + private volatile java.lang.Object ver_; + /** + * string ver = 1; + */ + public java.lang.String getVer() { + java.lang.Object ref = ver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ver_ = s; + return s; + } + } + /** + * string ver = 1; + */ + public com.google.protobuf.ByteString + getVerBytes() { + java.lang.Object ref = ver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ver_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ver_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getSolcVersion other = (org.aion.api.server.pb.Message.rsp_getSolcVersion) obj; + + boolean result = true; + result = result && getVer() + .equals(other.getVer()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VER_FIELD_NUMBER; + hash = (53 * hash) + getVer().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getSolcVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getBlocksByLatest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getSolcVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getSolcVersion) + org.aion.api.server.pb.Message.rsp_getSolcVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getSolcVersion.class, org.aion.api.server.pb.Message.rsp_getSolcVersion.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getSolcVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + ver_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getSolcVersion build() { + org.aion.api.server.pb.Message.rsp_getSolcVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getSolcVersion buildPartial() { + org.aion.api.server.pb.Message.rsp_getSolcVersion result = new org.aion.api.server.pb.Message.rsp_getSolcVersion(this); + result.ver_ = ver_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getSolcVersion) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getSolcVersion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getSolcVersion other) { + if (other == org.aion.api.server.pb.Message.rsp_getSolcVersion.getDefaultInstance()) return this; + if (!other.getVer().isEmpty()) { + ver_ = other.ver_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getSolcVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getSolcVersion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ver_ = ""; + /** + * string ver = 1; + */ + public java.lang.String getVer() { + java.lang.Object ref = ver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ver_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ver = 1; + */ + public com.google.protobuf.ByteString + getVerBytes() { + java.lang.Object ref = ver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ver = 1; + */ + public Builder setVer( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ver_ = value; + onChanged(); + return this; + } + /** + * string ver = 1; + */ + public Builder clearVer() { + + ver_ = getDefaultInstance().getVer(); + onChanged(); + return this; + } + /** + * string ver = 1; + */ + public Builder setVerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ver_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getSolcVersion) + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getSolcVersion) + private static final org.aion.api.server.pb.Message.rsp_getSolcVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getSolcVersion(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) - org.aion.api.server.pb.Message.rsp_getBlocksByLatestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - } + public static org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, - org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getSolcVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getSolcVersion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // Construct using org.aion.api.server.pb.Message.rsp_getBlocksByLatest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public org.aion.api.server.pb.Message.rsp_getSolcVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlksFieldBuilder(); - } - } + } + + public interface rsp_isSyncingOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_isSyncing) + com.google.protobuf.MessageOrBuilder { + + /** + * bool syncing = 1; + */ + boolean getSyncing(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} + */ + public static final class rsp_isSyncing extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_isSyncing) + rsp_isSyncingOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_isSyncing.newBuilder() to construct. + private rsp_isSyncing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_isSyncing() { + syncing_ = false; + } - public Builder clear() { - super.clear(); - if (blksBuilder_ == null) { - blks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blksBuilder_.clear(); - } - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_isSyncing( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + syncing_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_isSyncing.class, org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); + } - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlocksByLatest.getDefaultInstance(); - } + public static final int SYNCING_FIELD_NUMBER = 1; + private boolean syncing_; + /** + * bool syncing = 1; + */ + public boolean getSyncing() { + return syncing_; + } - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest build() { - org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = - new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(this); - int from_bitField0_ = bitField0_; - if (blksBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = java.util.Collections.unmodifiableList(blks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blks_ = blks_; - } else { - result.blks_ = blksBuilder_.build(); - } - onBuilt(); - return result; - } + memoizedIsInitialized = 1; + return true; + } - public Builder clone() { - return (Builder) super.clone(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (syncing_ != false) { + output.writeBool(1, syncing_); + } + unknownFields.writeTo(output); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (syncing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, syncing_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_isSyncing)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_isSyncing other = (org.aion.api.server.pb.Message.rsp_isSyncing) obj; + + boolean result = true; + result = result && (getSyncing() + == other.getSyncing()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNCING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSyncing()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_isSyncing parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_isSyncing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlocksByLatest) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_isSyncing} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_isSyncing) + org.aion.api.server.pb.Message.rsp_isSyncingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_isSyncing.class, org.aion.api.server.pb.Message.rsp_isSyncing.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_isSyncing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + syncing_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_isSyncing build() { + org.aion.api.server.pb.Message.rsp_isSyncing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_isSyncing buildPartial() { + org.aion.api.server.pb.Message.rsp_isSyncing result = new org.aion.api.server.pb.Message.rsp_isSyncing(this); + result.syncing_ = syncing_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_isSyncing) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_isSyncing)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_isSyncing other) { + if (other == org.aion.api.server.pb.Message.rsp_isSyncing.getDefaultInstance()) return this; + if (other.getSyncing() != false) { + setSyncing(other.getSyncing()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_isSyncing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_isSyncing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean syncing_ ; + /** + * bool syncing = 1; + */ + public boolean getSyncing() { + return syncing_; + } + /** + * bool syncing = 1; + */ + public Builder setSyncing(boolean value) { + + syncing_ = value; + onChanged(); + return this; + } + /** + * bool syncing = 1; + */ + public Builder clearSyncing() { + + syncing_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_isSyncing) + } - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlocksByLatest other) { - if (other - == org.aion.api.server.pb.Message.rsp_getBlocksByLatest - .getDefaultInstance()) return this; - if (blksBuilder_ == null) { - if (!other.blks_.isEmpty()) { - if (blks_.isEmpty()) { - blks_ = other.blks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlksIsMutable(); - blks_.addAll(other.blks_); - } - onChanged(); - } - } else { - if (!other.blks_.isEmpty()) { - if (blksBuilder_.isEmpty()) { - blksBuilder_.dispose(); - blksBuilder_ = null; - blks_ = other.blks_; - bitField0_ = (bitField0_ & ~0x00000001); - blksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlksFieldBuilder() - : null; - } else { - blksBuilder_.addAllMessages(other.blks_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_isSyncing) + private static final org.aion.api.server.pb.Message.rsp_isSyncing DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_isSyncing(); + } - public final boolean isInitialized() { - return true; - } + public static org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlocksByLatest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_isSyncing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_isSyncing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private int bitField0_; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private java.util.List blks_ = - java.util.Collections.emptyList(); + public org.aion.api.server.pb.Message.rsp_isSyncing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private void ensureBlksIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blks_ = new java.util.ArrayList(blks_); - bitField0_ |= 0x00000001; - } - } + } + + public interface rsp_syncInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_syncInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * bool syncing = 1; + */ + boolean getSyncing(); + + /** + * uint64 networkBestBlock = 2; + */ + long getNetworkBestBlock(); + + /** + * uint64 chainBestBlock = 3; + */ + long getChainBestBlock(); + + /** + * uint32 maxImportBlocks = 4; + */ + int getMaxImportBlocks(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} + */ + public static final class rsp_syncInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_syncInfo) + rsp_syncInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_syncInfo.newBuilder() to construct. + private rsp_syncInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_syncInfo() { + syncing_ = false; + networkBestBlock_ = 0L; + chainBestBlock_ = 0L; + maxImportBlocks_ = 0; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Block, - org.aion.api.server.pb.Message.t_Block.Builder, - org.aion.api.server.pb.Message.t_BlockOrBuilder> - blksBuilder_; - - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public java.util.List getBlksList() { - if (blksBuilder_ == null) { - return java.util.Collections.unmodifiableList(blks_); - } else { - return blksBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public int getBlksCount() { - if (blksBuilder_ == null) { - return blks_.size(); - } else { - return blksBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public org.aion.api.server.pb.Message.t_Block getBlks(int index) { - if (blksBuilder_ == null) { - return blks_.get(index); - } else { - return blksBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder setBlks(int index, org.aion.api.server.pb.Message.t_Block value) { - if (blksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlksIsMutable(); - blks_.set(index, value); - onChanged(); - } else { - blksBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder setBlks( - int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.set(index, builderForValue.build()); - onChanged(); - } else { - blksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder addBlks(org.aion.api.server.pb.Message.t_Block value) { - if (blksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlksIsMutable(); - blks_.add(value); - onChanged(); - } else { - blksBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder addBlks(int index, org.aion.api.server.pb.Message.t_Block value) { - if (blksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlksIsMutable(); - blks_.add(index, value); - onChanged(); - } else { - blksBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder addBlks(org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.add(builderForValue.build()); - onChanged(); - } else { - blksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder addBlks( - int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.add(index, builderForValue.build()); - onChanged(); - } else { - blksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder addAllBlks( - java.lang.Iterable values) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blks_); - onChanged(); - } else { - blksBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder clearBlks() { - if (blksBuilder_ == null) { - blks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blksBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public Builder removeBlks(int index) { - if (blksBuilder_ == null) { - ensureBlksIsMutable(); - blks_.remove(index); - onChanged(); - } else { - blksBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public org.aion.api.server.pb.Message.t_Block.Builder getBlksBuilder(int index) { - return getBlksFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder(int index) { - if (blksBuilder_ == null) { - return blks_.get(index); - } else { - return blksBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public java.util.List - getBlksOrBuilderList() { - if (blksBuilder_ != null) { - return blksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blks_); - } - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder() { - return getBlksFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder(int index) { - return getBlksFieldBuilder() - .addBuilder( - index, org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_Block blks = 1; */ - public java.util.List - getBlksBuilderList() { - return getBlksFieldBuilder().getBuilderList(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_syncInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + syncing_ = input.readBool(); + break; + } + case 16: { + + networkBestBlock_ = input.readUInt64(); + break; + } + case 24: { + + chainBestBlock_ = input.readUInt64(); + break; + } + case 32: { + + maxImportBlocks_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Block, - org.aion.api.server.pb.Message.t_Block.Builder, - org.aion.api.server.pb.Message.t_BlockOrBuilder> - getBlksFieldBuilder() { - if (blksBuilder_ == null) { - blksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_Block, - org.aion.api.server.pb.Message.t_Block.Builder, - org.aion.api.server.pb.Message.t_BlockOrBuilder>( - blks_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blks_ = null; - } - return blksBuilder_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncInfo.class, org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static final int SYNCING_FIELD_NUMBER = 1; + private boolean syncing_; + /** + * bool syncing = 1; + */ + public boolean getSyncing() { + return syncing_; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static final int NETWORKBESTBLOCK_FIELD_NUMBER = 2; + private long networkBestBlock_; + /** + * uint64 networkBestBlock = 2; + */ + public long getNetworkBestBlock() { + return networkBestBlock_; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) - } + public static final int CHAINBESTBLOCK_FIELD_NUMBER = 3; + private long chainBestBlock_; + /** + * uint64 chainBestBlock = 3; + */ + public long getChainBestBlock() { + return chainBestBlock_; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) - private static final org.aion.api.server.pb.Message.rsp_getBlocksByLatest DEFAULT_INSTANCE; + public static final int MAXIMPORTBLOCKS_FIELD_NUMBER = 4; + private int maxImportBlocks_; + /** + * uint32 maxImportBlocks = 4; + */ + public int getMaxImportBlocks() { + return maxImportBlocks_; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlocksByLatest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlocksByLatest(input, extensionRegistry); - } - }; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (syncing_ != false) { + output.writeBool(1, syncing_); + } + if (networkBestBlock_ != 0L) { + output.writeUInt64(2, networkBestBlock_); + } + if (chainBestBlock_ != 0L) { + output.writeUInt64(3, chainBestBlock_); + } + if (maxImportBlocks_ != 0) { + output.writeUInt32(4, maxImportBlocks_); + } + unknownFields.writeTo(output); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (syncing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, syncing_); + } + if (networkBestBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, networkBestBlock_); + } + if (chainBestBlock_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, chainBestBlock_); + } + if (maxImportBlocks_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, maxImportBlocks_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_syncInfo)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_syncInfo other = (org.aion.api.server.pb.Message.rsp_syncInfo) obj; + + boolean result = true; + result = result && (getSyncing() + == other.getSyncing()); + result = result && (getNetworkBestBlock() + == other.getNetworkBestBlock()); + result = result && (getChainBestBlock() + == other.getChainBestBlock()); + result = result && (getMaxImportBlocks() + == other.getMaxImportBlocks()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNCING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSyncing()); + hash = (37 * hash) + NETWORKBESTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNetworkBestBlock()); + hash = (37 * hash) + CHAINBESTBLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getChainBestBlock()); + hash = (37 * hash) + MAXIMPORTBLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxImportBlocks(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - public interface req_getAccountDetailsByAddressListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - com.google.protobuf.MessageOrBuilder { + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_syncInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - /** repeated bytes addresses = 1; */ - java.util.List getAddressesList(); - /** repeated bytes addresses = 1; */ - int getAddressesCount(); - /** repeated bytes addresses = 1; */ - com.google.protobuf.ByteString getAddresses(int index); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_syncInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - /** Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} */ - public static final class req_getAccountDetailsByAddressList - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - req_getAccountDetailsByAddressListOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getAccountDetailsByAddressList.newBuilder() to construct. - private req_getAccountDetailsByAddressList( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getAccountDetailsByAddressList() { - addresses_ = java.util.Collections.emptyList(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_syncInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_syncInfo) + org.aion.api.server.pb.Message.rsp_syncInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_syncInfo.class, org.aion.api.server.pb.Message.rsp_syncInfo.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_syncInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + syncing_ = false; + + networkBestBlock_ = 0L; + + chainBestBlock_ = 0L; + + maxImportBlocks_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_syncInfo build() { + org.aion.api.server.pb.Message.rsp_syncInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_syncInfo buildPartial() { + org.aion.api.server.pb.Message.rsp_syncInfo result = new org.aion.api.server.pb.Message.rsp_syncInfo(this); + result.syncing_ = syncing_; + result.networkBestBlock_ = networkBestBlock_; + result.chainBestBlock_ = chainBestBlock_; + result.maxImportBlocks_ = maxImportBlocks_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_syncInfo) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_syncInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncInfo other) { + if (other == org.aion.api.server.pb.Message.rsp_syncInfo.getDefaultInstance()) return this; + if (other.getSyncing() != false) { + setSyncing(other.getSyncing()); + } + if (other.getNetworkBestBlock() != 0L) { + setNetworkBestBlock(other.getNetworkBestBlock()); + } + if (other.getChainBestBlock() != 0L) { + setChainBestBlock(other.getChainBestBlock()); + } + if (other.getMaxImportBlocks() != 0) { + setMaxImportBlocks(other.getMaxImportBlocks()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_syncInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_syncInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean syncing_ ; + /** + * bool syncing = 1; + */ + public boolean getSyncing() { + return syncing_; + } + /** + * bool syncing = 1; + */ + public Builder setSyncing(boolean value) { + + syncing_ = value; + onChanged(); + return this; + } + /** + * bool syncing = 1; + */ + public Builder clearSyncing() { + + syncing_ = false; + onChanged(); + return this; + } + + private long networkBestBlock_ ; + /** + * uint64 networkBestBlock = 2; + */ + public long getNetworkBestBlock() { + return networkBestBlock_; + } + /** + * uint64 networkBestBlock = 2; + */ + public Builder setNetworkBestBlock(long value) { + + networkBestBlock_ = value; + onChanged(); + return this; + } + /** + * uint64 networkBestBlock = 2; + */ + public Builder clearNetworkBestBlock() { + + networkBestBlock_ = 0L; + onChanged(); + return this; + } + + private long chainBestBlock_ ; + /** + * uint64 chainBestBlock = 3; + */ + public long getChainBestBlock() { + return chainBestBlock_; + } + /** + * uint64 chainBestBlock = 3; + */ + public Builder setChainBestBlock(long value) { + + chainBestBlock_ = value; + onChanged(); + return this; + } + /** + * uint64 chainBestBlock = 3; + */ + public Builder clearChainBestBlock() { + + chainBestBlock_ = 0L; + onChanged(); + return this; + } + + private int maxImportBlocks_ ; + /** + * uint32 maxImportBlocks = 4; + */ + public int getMaxImportBlocks() { + return maxImportBlocks_; + } + /** + * uint32 maxImportBlocks = 4; + */ + public Builder setMaxImportBlocks(int value) { + + maxImportBlocks_ = value; + onChanged(); + return this; + } + /** + * uint32 maxImportBlocks = 4; + */ + public Builder clearMaxImportBlocks() { + + maxImportBlocks_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_syncInfo) + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_syncInfo) + private static final org.aion.api.server.pb.Message.rsp_syncInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_syncInfo(); + } - private req_getAccountDetailsByAddressList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = - new java.util.ArrayList< - com.google.protobuf.ByteString>(); - mutable_bitField0_ |= 0x00000001; - } - addresses_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_syncInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_syncInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.class, - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - .Builder - .class); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int ADDRESSES_FIELD_NUMBER = 1; - private java.util.List addresses_; - /** repeated bytes addresses = 1; */ - public java.util.List getAddressesList() { - return addresses_; - } - /** repeated bytes addresses = 1; */ - public int getAddressesCount() { - return addresses_.size(); - } - /** repeated bytes addresses = 1; */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } + public org.aion.api.server.pb.Message.rsp_syncInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; + } + + public interface rsp_systemInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_systemInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * float cpuUsage = 1; + */ + float getCpuUsage(); + + /** + * uint64 memoryUsage = 2; + */ + long getMemoryUsage(); + + /** + * uint64 DBSize = 3; + */ + long getDBSize(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} + */ + public static final class rsp_systemInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_systemInfo) + rsp_systemInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_systemInfo.newBuilder() to construct. + private rsp_systemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_systemInfo() { + cpuUsage_ = 0F; + memoryUsage_ = 0L; + dBSize_ = 0L; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_systemInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 13: { + + cpuUsage_ = input.readFloat(); + break; + } + case 16: { + + memoryUsage_ = input.readUInt64(); + break; + } + case 24: { + + dBSize_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_systemInfo.class, org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < addresses_.size(); i++) { - output.writeBytes(1, addresses_.get(i)); - } - unknownFields.writeTo(output); - } - - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < addresses_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag( - addresses_.get(i)); - } - size += dataSize; - size += 1 * getAddressesList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int CPUUSAGE_FIELD_NUMBER = 1; + private float cpuUsage_; + /** + * float cpuUsage = 1; + */ + public float getCpuUsage() { + return cpuUsage_; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other = - (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) obj; + public static final int MEMORYUSAGE_FIELD_NUMBER = 2; + private long memoryUsage_; + /** + * uint64 memoryUsage = 2; + */ + public long getMemoryUsage() { + return memoryUsage_; + } - boolean result = true; - result = result && getAddressesList().equals(other.getAddressesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int DBSIZE_FIELD_NUMBER = 3; + private long dBSize_; + /** + * uint64 DBSize = 3; + */ + public long getDBSize() { + return dBSize_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddressesCount() > 0) { - hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getAddressesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (cpuUsage_ != 0F) { + output.writeFloat(1, cpuUsage_); + } + if (memoryUsage_ != 0L) { + output.writeUInt64(2, memoryUsage_); + } + if (dBSize_ != 0L) { + output.writeUInt64(3, dBSize_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cpuUsage_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, cpuUsage_); + } + if (memoryUsage_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, memoryUsage_); + } + if (dBSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, dBSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_systemInfo)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_systemInfo other = (org.aion.api.server.pb.Message.rsp_systemInfo) obj; + + boolean result = true; + result = result && ( + java.lang.Float.floatToIntBits(getCpuUsage()) + == java.lang.Float.floatToIntBits( + other.getCpuUsage())); + result = result && (getMemoryUsage() + == other.getMemoryUsage()); + result = result && (getDBSize() + == other.getDBSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CPUUSAGE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getCpuUsage()); + hash = (37 * hash) + MEMORYUSAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemoryUsage()); + hash = (37 * hash) + DBSIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDBSize()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_systemInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_systemInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_systemInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_systemInfo) + org.aion.api.server.pb.Message.rsp_systemInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_systemInfo.class, org.aion.api.server.pb.Message.rsp_systemInfo.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_systemInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + cpuUsage_ = 0F; + + memoryUsage_ = 0L; + + dBSize_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_systemInfo build() { + org.aion.api.server.pb.Message.rsp_systemInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_systemInfo buildPartial() { + org.aion.api.server.pb.Message.rsp_systemInfo result = new org.aion.api.server.pb.Message.rsp_systemInfo(this); + result.cpuUsage_ = cpuUsage_; + result.memoryUsage_ = memoryUsage_; + result.dBSize_ = dBSize_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_systemInfo) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_systemInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_systemInfo other) { + if (other == org.aion.api.server.pb.Message.rsp_systemInfo.getDefaultInstance()) return this; + if (other.getCpuUsage() != 0F) { + setCpuUsage(other.getCpuUsage()); + } + if (other.getMemoryUsage() != 0L) { + setMemoryUsage(other.getMemoryUsage()); + } + if (other.getDBSize() != 0L) { + setDBSize(other.getDBSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_systemInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_systemInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float cpuUsage_ ; + /** + * float cpuUsage = 1; + */ + public float getCpuUsage() { + return cpuUsage_; + } + /** + * float cpuUsage = 1; + */ + public Builder setCpuUsage(float value) { + + cpuUsage_ = value; + onChanged(); + return this; + } + /** + * float cpuUsage = 1; + */ + public Builder clearCpuUsage() { + + cpuUsage_ = 0F; + onChanged(); + return this; + } + + private long memoryUsage_ ; + /** + * uint64 memoryUsage = 2; + */ + public long getMemoryUsage() { + return memoryUsage_; + } + /** + * uint64 memoryUsage = 2; + */ + public Builder setMemoryUsage(long value) { + + memoryUsage_ = value; + onChanged(); + return this; + } + /** + * uint64 memoryUsage = 2; + */ + public Builder clearMemoryUsage() { + + memoryUsage_ = 0L; + onChanged(); + return this; + } + + private long dBSize_ ; + /** + * uint64 DBSize = 3; + */ + public long getDBSize() { + return dBSize_; + } + /** + * uint64 DBSize = 3; + */ + public Builder setDBSize(long value) { + + dBSize_ = value; + onChanged(); + return this; + } + /** + * uint64 DBSize = 3; + */ + public Builder clearDBSize() { + + dBSize_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_systemInfo) + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_systemInfo) + private static final org.aion.api.server.pb.Message.rsp_systemInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_systemInfo(); + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_systemInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_systemInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public org.aion.api.server.pb.Message.rsp_systemInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + } + + public interface req_eventRegisterOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventRegister) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string events = 1; + */ + java.util.List + getEventsList(); + /** + * repeated string events = 1; + */ + int getEventsCount(); + /** + * repeated string events = 1; + */ + java.lang.String getEvents(int index); + /** + * repeated string events = 1; + */ + com.google.protobuf.ByteString + getEventsBytes(int index); + + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + boolean hasFilter(); + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + org.aion.api.server.pb.Message.t_FilterCt getFilter(); + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_eventRegister} + */ + public static final class req_eventRegister extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventRegister) + req_eventRegisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_eventRegister.newBuilder() to construct. + private req_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_eventRegister() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_eventRegister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add(s); + break; + } + case 18: { + org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = input.readMessage(org.aion.api.server.pb.Message.t_FilterCt.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventRegister.class, org.aion.api.server.pb.Message.req_eventRegister.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - } + private int bitField0_; + public static final int EVENTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList events_; + /** + * repeated string events = 1; + */ + public com.google.protobuf.ProtocolStringList + getEventsList() { + return events_; + } + /** + * repeated string events = 1; + */ + public int getEventsCount() { + return events_.size(); + } + /** + * repeated string events = 1; + */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** + * repeated string events = 1; + */ + public com.google.protobuf.ByteString + getEventsBytes(int index) { + return events_.getByteString(index); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - .class, - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - .Builder - .class); - } + public static final int FILTER_FIELD_NUMBER = 2; + private org.aion.api.server.pb.Message.t_FilterCt filter_; + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public boolean hasFilter() { + return filter_ != null; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + return getFilter(); + } - // Construct using - // org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + memoizedIsInitialized = 1; + return true; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < events_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); + } + if (filter_ != null) { + output.writeMessage(2, getFilter()); + } + unknownFields.writeTo(output); + } - public Builder clear() { - super.clear(); - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < events_.size(); i++) { + dataSize += computeStringSizeNoTag(events_.getRaw(i)); + } + size += dataSize; + size += 1 * getEventsList().size(); + } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFilter()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_eventRegister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_eventRegister other = (org.aion.api.server.pb.Message.req_eventRegister) obj; + + boolean result = true; + result = result && getEventsList() + .equals(other.getEventsList()); + result = result && (hasFilter() == other.hasFilter()); + if (hasFilter()) { + result = result && getFilter() + .equals(other.getFilter()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - .getDefaultInstance(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList build() { - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - buildPartial() { - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = - new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addresses_ = addresses_; - onBuilt(); - return result; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_eventRegister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_eventRegister} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventRegister) + org.aion.api.server.pb.Message.req_eventRegisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventRegister.class, org.aion.api.server.pb.Message.req_eventRegister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_eventRegister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + } + + public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_eventRegister build() { + org.aion.api.server.pb.Message.req_eventRegister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_eventRegister buildPartial() { + org.aion.api.server.pb.Message.req_eventRegister result = new org.aion.api.server.pb.Message.req_eventRegister(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.events_ = events_; + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_eventRegister) { + return mergeFrom((org.aion.api.server.pb.Message.req_eventRegister)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventRegister other) { + if (other == org.aion.api.server.pb.Message.req_eventRegister.getDefaultInstance()) return this; + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_eventRegister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_eventRegister) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(events_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string events = 1; + */ + public com.google.protobuf.ProtocolStringList + getEventsList() { + return events_.getUnmodifiableView(); + } + /** + * repeated string events = 1; + */ + public int getEventsCount() { + return events_.size(); + } + /** + * repeated string events = 1; + */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** + * repeated string events = 1; + */ + public com.google.protobuf.ByteString + getEventsBytes(int index) { + return events_.getByteString(index); + } + /** + * repeated string events = 1; + */ + public Builder setEvents( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder addEvents( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder addAllEvents( + java.lang.Iterable values) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder clearEvents() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder addEventsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + + private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> filterBuilder_; + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public Builder setFilter( + org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + org.aion.api.server.pb.Message.t_FilterCt.newBuilder(filter_).mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; + } + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventRegister) + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventRegister) + private static final org.aion.api.server.pb.Message.req_eventRegister DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventRegister(); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public static org.aion.api.server.pb.Message.req_eventRegister getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_eventRegister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_eventRegister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public org.aion.api.server.pb.Message.req_eventRegister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) - other); - } else { - super.mergeFrom(other); - return this; - } - } + } + + public interface rsp_eventRegisterOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventRegister) + com.google.protobuf.MessageOrBuilder { + + /** + * bool result = 1; + */ + boolean getResult(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} + */ + public static final class rsp_eventRegister extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventRegister) + rsp_eventRegisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_eventRegister.newBuilder() to construct. + private rsp_eventRegister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_eventRegister() { + result_ = false; + } - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other) { - if (other - == org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - .getDefaultInstance()) return this; - if (!other.addresses_.isEmpty()) { - if (addresses_.isEmpty()) { - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddressesIsMutable(); - addresses_.addAll(other.addresses_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_eventRegister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + result_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + } - public final boolean isInitialized() { - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventRegister.class, org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static final int RESULT_FIELD_NUMBER = 1; + private boolean result_; + /** + * bool result = 1; + */ + public boolean getResult() { + return result_; + } - private int bitField0_; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private java.util.List addresses_ = - java.util.Collections.emptyList(); + memoizedIsInitialized = 1; + return true; + } - private void ensureAddressesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - addresses_ = - new java.util.ArrayList(addresses_); - bitField0_ |= 0x00000001; - } - } - /** repeated bytes addresses = 1; */ - public java.util.List getAddressesList() { - return java.util.Collections.unmodifiableList(addresses_); - } - /** repeated bytes addresses = 1; */ - public int getAddressesCount() { - return addresses_.size(); - } - /** repeated bytes addresses = 1; */ - public com.google.protobuf.ByteString getAddresses(int index) { - return addresses_.get(index); - } - /** repeated bytes addresses = 1; */ - public Builder setAddresses(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.set(index, value); - onChanged(); - return this; - } - /** repeated bytes addresses = 1; */ - public Builder addAddresses(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - return this; - } - /** repeated bytes addresses = 1; */ - public Builder addAllAddresses( - java.lang.Iterable values) { - ensureAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); - onChanged(); - return this; - } - /** repeated bytes addresses = 1; */ - public Builder clearAddresses() { - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != false) { + output.writeBool(1, result_); + } + unknownFields.writeTo(output); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, result_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventRegister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_eventRegister other = (org.aion.api.server.pb.Message.rsp_eventRegister) obj; + + boolean result = true; + result = result && (getResult() + == other.getResult()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getResult()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) - private static final org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - DEFAULT_INSTANCE; + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_eventRegister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - static { - DEFAULT_INSTANCE = - new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_eventRegister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_eventRegister} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventRegister) + org.aion.api.server.pb.Message.rsp_eventRegisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventRegister.class, org.aion.api.server.pb.Message.rsp_eventRegister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_eventRegister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + result_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_eventRegister build() { + org.aion.api.server.pb.Message.rsp_eventRegister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_eventRegister buildPartial() { + org.aion.api.server.pb.Message.rsp_eventRegister result = new org.aion.api.server.pb.Message.rsp_eventRegister(this); + result.result_ = result_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_eventRegister) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_eventRegister)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventRegister other) { + if (other == org.aion.api.server.pb.Message.rsp_eventRegister.getDefaultInstance()) return this; + if (other.getResult() != false) { + setResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_eventRegister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_eventRegister) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean result_ ; + /** + * bool result = 1; + */ + public boolean getResult() { + return result_; + } + /** + * bool result = 1; + */ + public Builder setResult(boolean value) { + + result_ = value; + onChanged(); + return this; + } + /** + * bool result = 1; + */ + public Builder clearResult() { + + result_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventRegister) + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getAccountDetailsByAddressList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getAccountDetailsByAddressList(input, extensionRegistry); - } - }; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventRegister) + private static final org.aion.api.server.pb.Message.rsp_eventRegister DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventRegister(); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_eventRegister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_eventRegister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public interface rsp_getAccountDetailsByAddressListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - com.google.protobuf.MessageOrBuilder { + public org.aion.api.server.pb.Message.rsp_eventRegister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - java.util.List getAccountsList(); - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index); - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - int getAccountsCount(); - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - java.util.List - getAccountsOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder(int index); + } + + public interface req_eventDeregisterOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_eventDeregister) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string events = 1; + */ + java.util.List + getEventsList(); + /** + * repeated string events = 1; + */ + int getEventsCount(); + /** + * repeated string events = 1; + */ + java.lang.String getEvents(int index); + /** + * repeated string events = 1; + */ + com.google.protobuf.ByteString + getEventsBytes(int index); + + /** + * bytes contractAddr = 2; + */ + com.google.protobuf.ByteString getContractAddr(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} + */ + public static final class req_eventDeregister extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_eventDeregister) + req_eventDeregisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_eventDeregister.newBuilder() to construct. + private req_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_eventDeregister() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + contractAddr_ = com.google.protobuf.ByteString.EMPTY; } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} */ - public static final class rsp_getAccountDetailsByAddressList - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - rsp_getAccountDetailsByAddressListOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getAccountDetailsByAddressList.newBuilder() to construct. - private rsp_getAccountDetailsByAddressList( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getAccountDetailsByAddressList() { - accounts_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_eventDeregister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add(s); + break; + } + case 18: { + + contractAddr_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventDeregister.class, org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); + } - private rsp_getAccountDetailsByAddressList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message - .t_AccountDetail>(); - mutable_bitField0_ |= 0x00000001; - } - accounts_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_AccountDetail - .parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + private int bitField0_; + public static final int EVENTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList events_; + /** + * repeated string events = 1; + */ + public com.google.protobuf.ProtocolStringList + getEventsList() { + return events_; + } + /** + * repeated string events = 1; + */ + public int getEventsCount() { + return events_.size(); + } + /** + * repeated string events = 1; + */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** + * repeated string events = 1; + */ + public com.google.protobuf.ByteString + getEventsBytes(int index) { + return events_.getByteString(index); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - } + public static final int CONTRACTADDR_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString contractAddr_; + /** + * bytes contractAddr = 2; + */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.class, - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - .Builder - .class); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int ACCOUNTS_FIELD_NUMBER = 1; - private java.util.List accounts_; - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public java.util.List getAccountsList() { - return accounts_; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public int getAccountsCount() { - return accounts_.size(); - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { - return accounts_.get(index); - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } + memoizedIsInitialized = 1; + return true; + } - private byte memoizedIsInitialized = -1; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < events_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, events_.getRaw(i)); + } + if (!contractAddr_.isEmpty()) { + output.writeBytes(2, contractAddr_); + } + unknownFields.writeTo(output); + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < events_.size(); i++) { + dataSize += computeStringSizeNoTag(events_.getRaw(i)); + } + size += dataSize; + size += 1 * getEventsList().size(); + } + if (!contractAddr_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, contractAddr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_eventDeregister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_eventDeregister other = (org.aion.api.server.pb.Message.req_eventDeregister) obj; + + boolean result = true; + result = result && getEventsList() + .equals(other.getEventsList()); + result = result && getContractAddr() + .equals(other.getContractAddr()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (37 * hash) + CONTRACTADDR_FIELD_NUMBER; + hash = (53 * hash) + getContractAddr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, accounts_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_eventDeregister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other = - (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) obj; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_eventDeregister} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_eventDeregister) + org.aion.api.server.pb.Message.req_eventDeregisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_eventDeregister.class, org.aion.api.server.pb.Message.req_eventDeregister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_eventDeregister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + contractAddr_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + } + + public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_eventDeregister build() { + org.aion.api.server.pb.Message.req_eventDeregister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_eventDeregister buildPartial() { + org.aion.api.server.pb.Message.req_eventDeregister result = new org.aion.api.server.pb.Message.req_eventDeregister(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = events_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.events_ = events_; + result.contractAddr_ = contractAddr_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_eventDeregister) { + return mergeFrom((org.aion.api.server.pb.Message.req_eventDeregister)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventDeregister other) { + if (other == org.aion.api.server.pb.Message.req_eventDeregister.getDefaultInstance()) return this; + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { + setContractAddr(other.getContractAddr()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_eventDeregister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_eventDeregister) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + events_ = new com.google.protobuf.LazyStringArrayList(events_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string events = 1; + */ + public com.google.protobuf.ProtocolStringList + getEventsList() { + return events_.getUnmodifiableView(); + } + /** + * repeated string events = 1; + */ + public int getEventsCount() { + return events_.size(); + } + /** + * repeated string events = 1; + */ + public java.lang.String getEvents(int index) { + return events_.get(index); + } + /** + * repeated string events = 1; + */ + public com.google.protobuf.ByteString + getEventsBytes(int index) { + return events_.getByteString(index); + } + /** + * repeated string events = 1; + */ + public Builder setEvents( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder addEvents( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder addAllEvents( + java.lang.Iterable values) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder clearEvents() { + events_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string events = 1; + */ + public Builder addEventsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString contractAddr_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes contractAddr = 2; + */ + public com.google.protobuf.ByteString getContractAddr() { + return contractAddr_; + } + /** + * bytes contractAddr = 2; + */ + public Builder setContractAddr(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contractAddr_ = value; + onChanged(); + return this; + } + /** + * bytes contractAddr = 2; + */ + public Builder clearContractAddr() { + + contractAddr_ = getDefaultInstance().getContractAddr(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_eventDeregister) + } - boolean result = true; - result = result && getAccountsList().equals(other.getAccountsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_eventDeregister) + private static final org.aion.api.server.pb.Message.req_eventDeregister DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_eventDeregister(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_eventDeregister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_eventDeregister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public org.aion.api.server.pb.Message.req_eventDeregister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + } + + public interface rsp_eventDeregisterOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_eventDeregister) + com.google.protobuf.MessageOrBuilder { + + /** + * bool result = 1; + */ + boolean getResult(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} + */ + public static final class rsp_eventDeregister extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_eventDeregister) + rsp_eventDeregisterOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_eventDeregister.newBuilder() to construct. + private rsp_eventDeregister(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_eventDeregister() { + result_ = false; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_eventDeregister( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + result_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventDeregister.class, org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int RESULT_FIELD_NUMBER = 1; + private boolean result_; + /** + * bool result = 1; + */ + public boolean getResult() { + return result_; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + if (result_ != false) { + output.writeBool(1, result_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, result_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_eventDeregister)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_eventDeregister other = (org.aion.api.server.pb.Message.rsp_eventDeregister) obj; + + boolean result = true; + result = result && (getResult() + == other.getResult()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getResult()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_eventDeregister parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_eventDeregister prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_eventDeregister} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_eventDeregister) + org.aion.api.server.pb.Message.rsp_eventDeregisterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_eventDeregister.class, org.aion.api.server.pb.Message.rsp_eventDeregister.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_eventDeregister.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + result_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_eventDeregister build() { + org.aion.api.server.pb.Message.rsp_eventDeregister result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_eventDeregister buildPartial() { + org.aion.api.server.pb.Message.rsp_eventDeregister result = new org.aion.api.server.pb.Message.rsp_eventDeregister(this); + result.result_ = result_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_eventDeregister) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_eventDeregister)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventDeregister other) { + if (other == org.aion.api.server.pb.Message.rsp_eventDeregister.getDefaultInstance()) return this; + if (other.getResult() != false) { + setResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_eventDeregister parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_eventDeregister) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean result_ ; + /** + * bool result = 1; + */ + public boolean getResult() { + return result_; + } + /** + * bool result = 1; + */ + public Builder setResult(boolean value) { + + result_ = value; + onChanged(); + return this; + } + /** + * bool result = 1; + */ + public Builder clearResult() { + + result_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_eventDeregister) + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_eventDeregister) + private static final org.aion.api.server.pb.Message.rsp_eventDeregister DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_eventDeregister(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - .class, - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - .Builder - .class); - } + public static org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // Construct using - // org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_eventDeregister parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_eventDeregister(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAccountsFieldBuilder(); - } - } + public org.aion.api.server.pb.Message.rsp_eventDeregister getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder clear() { - super.clear(); - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - accountsBuilder_.clear(); - } - return this; - } + } + + public interface rsp_EventCtCallbackOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_EventCtCallback) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + java.util.List + getEcList(); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + org.aion.api.server.pb.Message.t_EventCt getEc(int index); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + int getEcCount(); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + java.util.List + getEcOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} + */ + public static final class rsp_EventCtCallback extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_EventCtCallback) + rsp_EventCtCallbackOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_EventCtCallback.newBuilder() to construct. + private rsp_EventCtCallback(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_EventCtCallback() { + ec_ = java.util.Collections.emptyList(); + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_EventCtCallback( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ec_.add( + input.readMessage(org.aion.api.server.pb.Message.t_EventCt.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + } - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - .getDefaultInstance(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_EventCtCallback.class, org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); + } - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList build() { - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static final int EC_FIELD_NUMBER = 1; + private java.util.List ec_; + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List getEcList() { + return ec_; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List + getEcOrBuilderList() { + return ec_; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public int getEcCount() { + return ec_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + return ec_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( + int index) { + return ec_.get(index); + } - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - buildPartial() { - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = - new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(this); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - onBuilt(); - return result; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder clone() { - return (Builder) super.clone(); - } + memoizedIsInitialized = 1; + return true; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < ec_.size(); i++) { + output.writeMessage(1, ec_.get(i)); + } + unknownFields.writeTo(output); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < ec_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, ec_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_EventCtCallback other = (org.aion.api.server.pb.Message.rsp_EventCtCallback) obj; + + boolean result = true; + result = result && getEcList() + .equals(other.getEcList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEcCount() > 0) { + hash = (37 * hash) + EC_FIELD_NUMBER; + hash = (53 * hash) + getEcList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_EventCtCallback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_EventCtCallback} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_EventCtCallback) + org.aion.api.server.pb.Message.rsp_EventCtCallbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_EventCtCallback.class, org.aion.api.server.pb.Message.rsp_EventCtCallback.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_EventCtCallback.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEcFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ecBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_EventCtCallback build() { + org.aion.api.server.pb.Message.rsp_EventCtCallback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_EventCtCallback buildPartial() { + org.aion.api.server.pb.Message.rsp_EventCtCallback result = new org.aion.api.server.pb.Message.rsp_EventCtCallback(this); + int from_bitField0_ = bitField0_; + if (ecBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ec_ = ec_; + } else { + result.ec_ = ecBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_EventCtCallback) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_EventCtCallback)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_EventCtCallback other) { + if (other == org.aion.api.server.pb.Message.rsp_EventCtCallback.getDefaultInstance()) return this; + if (ecBuilder_ == null) { + if (!other.ec_.isEmpty()) { + if (ec_.isEmpty()) { + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEcIsMutable(); + ec_.addAll(other.ec_); + } + onChanged(); + } + } else { + if (!other.ec_.isEmpty()) { + if (ecBuilder_.isEmpty()) { + ecBuilder_.dispose(); + ecBuilder_ = null; + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + ecBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEcFieldBuilder() : null; + } else { + ecBuilder_.addAllMessages(other.ec_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_EventCtCallback parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_EventCtCallback) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List ec_ = + java.util.Collections.emptyList(); + private void ensureEcIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = new java.util.ArrayList(ec_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> ecBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List getEcList() { + if (ecBuilder_ == null) { + return java.util.Collections.unmodifiableList(ec_); + } else { + return ecBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public int getEcCount() { + if (ecBuilder_ == null) { + return ec_.size(); + } else { + return ecBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + if (ecBuilder_ == null) { + return ec_.get(index); + } else { + return ecBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder setEc( + int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.set(index, value); + onChanged(); + } else { + ecBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder setEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.set(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(value); + onChanged(); + } else { + ecBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc( + int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(index, value); + onChanged(); + } else { + ecBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc( + org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addAllEc( + java.lang.Iterable values) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ec_); + onChanged(); + } else { + ecBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder clearEc() { + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ecBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder removeEc(int index) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.remove(index); + onChanged(); + } else { + ecBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder( + int index) { + return getEcFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( + int index) { + if (ecBuilder_ == null) { + return ec_.get(index); } else { + return ecBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List + getEcOrBuilderList() { + if (ecBuilder_ != null) { + return ecBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ec_); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { + return getEcFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder( + int index) { + return getEcFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List + getEcBuilderList() { + return getEcFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> + getEcFieldBuilder() { + if (ecBuilder_ == null) { + ecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder>( + ec_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + ec_ = null; + } + return ecBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_EventCtCallback) + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) - other); - } else { - super.mergeFrom(other); - return this; - } - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_EventCtCallback) + private static final org.aion.api.server.pb.Message.rsp_EventCtCallback DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_EventCtCallback(); + } - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other) { - if (other - == org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - .getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAccountsFieldBuilder() - : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final boolean isInitialized() { - return true; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_EventCtCallback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_EventCtCallback(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private int bitField0_; + public org.aion.api.server.pb.Message.rsp_EventCtCallback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private java.util.List accounts_ = - java.util.Collections.emptyList(); + } + + public interface req_accountCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string password = 1; + */ + java.util.List + getPasswordList(); + /** + * repeated string password = 1; + */ + int getPasswordCount(); + /** + * repeated string password = 1; + */ + java.lang.String getPassword(int index); + /** + * repeated string password = 1; + */ + com.google.protobuf.ByteString + getPasswordBytes(int index); + + /** + * bool privateKey = 2; + */ + boolean getPrivateKey(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_accountCreate} + */ + public static final class req_accountCreate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountCreate) + req_accountCreateOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_accountCreate.newBuilder() to construct. + private req_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_accountCreate() { + password_ = com.google.protobuf.LazyStringArrayList.EMPTY; + privateKey_ = false; + } - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - accounts_ = - new java.util.ArrayList( - accounts_); - bitField0_ |= 0x00000001; - } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_accountCreate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + password_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + password_.add(s); + break; + } + case 16: { + + privateKey_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + password_ = password_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AccountDetail, - org.aion.api.server.pb.Message.t_AccountDetail.Builder, - org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> - accountsBuilder_; - - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public java.util.List - getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder setAccounts( - int index, org.aion.api.server.pb.Message.t_AccountDetail value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder setAccounts( - int index, - org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder addAccounts(org.aion.api.server.pb.Message.t_AccountDetail value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder addAccounts( - int index, org.aion.api.server.pb.Message.t_AccountDetail value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder addAccounts( - org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder addAccounts( - int index, - org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder addAllAccounts( - java.lang.Iterable - values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public org.aion.api.server.pb.Message.t_AccountDetail.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder() { - return getAccountsFieldBuilder() - .addBuilder( - org.aion.api.server.pb.Message.t_AccountDetail - .getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_AccountDetail - .getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountCreate.class, org.aion.api.server.pb.Message.req_accountCreate.Builder.class); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AccountDetail, - org.aion.api.server.pb.Message.t_AccountDetail.Builder, - org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_AccountDetail, - org.aion.api.server.pb.Message.t_AccountDetail.Builder, - org.aion.api.server.pb.Message.t_AccountDetailOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } + private int bitField0_; + public static final int PASSWORD_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList password_; + /** + * repeated string password = 1; + */ + public com.google.protobuf.ProtocolStringList + getPasswordList() { + return password_; + } + /** + * repeated string password = 1; + */ + public int getPasswordCount() { + return password_.size(); + } + /** + * repeated string password = 1; + */ + public java.lang.String getPassword(int index) { + return password_.get(index); + } + /** + * repeated string password = 1; + */ + public com.google.protobuf.ByteString + getPasswordBytes(int index) { + return password_.getByteString(index); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static final int PRIVATEKEY_FIELD_NUMBER = 2; + private boolean privateKey_; + /** + * bool privateKey = 2; + */ + public boolean getPrivateKey() { + return privateKey_; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - } + memoizedIsInitialized = 1; + return true; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) - private static final org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - DEFAULT_INSTANCE; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < password_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, password_.getRaw(i)); + } + if (privateKey_ != false) { + output.writeBool(2, privateKey_); + } + unknownFields.writeTo(output); + } - static { - DEFAULT_INSTANCE = - new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < password_.size(); i++) { + dataSize += computeStringSizeNoTag(password_.getRaw(i)); + } + size += dataSize; + size += 1 * getPasswordList().size(); + } + if (privateKey_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, privateKey_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_accountCreate)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_accountCreate other = (org.aion.api.server.pb.Message.req_accountCreate) obj; + + boolean result = true; + result = result && getPasswordList() + .equals(other.getPasswordList()); + result = result && (getPrivateKey() + == other.getPrivateKey()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getAccountDetailsByAddressList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getAccountDetailsByAddressList(input, extensionRegistry); - } - }; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPasswordCount() > 0) { + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPasswordList().hashCode(); + } + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrivateKey()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_accountCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_accountCreate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountCreate) + org.aion.api.server.pb.Message.req_accountCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountCreate.class, org.aion.api.server.pb.Message.req_accountCreate.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_accountCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + password_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + privateKey_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + } + + public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_accountCreate build() { + org.aion.api.server.pb.Message.req_accountCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_accountCreate buildPartial() { + org.aion.api.server.pb.Message.req_accountCreate result = new org.aion.api.server.pb.Message.req_accountCreate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + password_ = password_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.password_ = password_; + result.privateKey_ = privateKey_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_accountCreate) { + return mergeFrom((org.aion.api.server.pb.Message.req_accountCreate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountCreate other) { + if (other == org.aion.api.server.pb.Message.req_accountCreate.getDefaultInstance()) return this; + if (!other.password_.isEmpty()) { + if (password_.isEmpty()) { + password_ = other.password_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePasswordIsMutable(); + password_.addAll(other.password_); + } + onChanged(); + } + if (other.getPrivateKey() != false) { + setPrivateKey(other.getPrivateKey()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_accountCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_accountCreate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList password_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePasswordIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + password_ = new com.google.protobuf.LazyStringArrayList(password_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string password = 1; + */ + public com.google.protobuf.ProtocolStringList + getPasswordList() { + return password_.getUnmodifiableView(); + } + /** + * repeated string password = 1; + */ + public int getPasswordCount() { + return password_.size(); + } + /** + * repeated string password = 1; + */ + public java.lang.String getPassword(int index) { + return password_.get(index); + } + /** + * repeated string password = 1; + */ + public com.google.protobuf.ByteString + getPasswordBytes(int index) { + return password_.getByteString(index); + } + /** + * repeated string password = 1; + */ + public Builder setPassword( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePasswordIsMutable(); + password_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string password = 1; + */ + public Builder addPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePasswordIsMutable(); + password_.add(value); + onChanged(); + return this; + } + /** + * repeated string password = 1; + */ + public Builder addAllPassword( + java.lang.Iterable values) { + ensurePasswordIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, password_); + onChanged(); + return this; + } + /** + * repeated string password = 1; + */ + public Builder clearPassword() { + password_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string password = 1; + */ + public Builder addPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePasswordIsMutable(); + password_.add(value); + onChanged(); + return this; + } + + private boolean privateKey_ ; + /** + * bool privateKey = 2; + */ + public boolean getPrivateKey() { + return privateKey_; + } + /** + * bool privateKey = 2; + */ + public Builder setPrivateKey(boolean value) { + + privateKey_ = value; + onChanged(); + return this; + } + /** + * bool privateKey = 2; + */ + public Builder clearPrivateKey() { + + privateKey_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountCreate) } - public interface req_getBlockSqlByRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockSqlByRange) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountCreate) + private static final org.aion.api.server.pb.Message.req_accountCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountCreate(); + } - /** uint64 blkNumberStart = 1; */ - long getBlkNumberStart(); + public static org.aion.api.server.pb.Message.req_accountCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** uint64 blkNumberEnd = 2; */ - long getBlkNumberEnd(); + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_accountCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_accountCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} */ - public static final class req_getBlockSqlByRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockSqlByRange) - req_getBlockSqlByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockSqlByRange.newBuilder() to construct. - private req_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockSqlByRange() { - blkNumberStart_ = 0L; - blkNumberEnd_ = 0L; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public org.aion.api.server.pb.Message.req_accountCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private req_getBlockSqlByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blkNumberStart_ = input.readUInt64(); - break; - } - case 16: - { - blkNumberEnd_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + } + + public interface rsp_accountCreateOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountCreate) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes address = 1; + */ + java.util.List getAddressList(); + /** + * repeated bytes address = 1; + */ + int getAddressCount(); + /** + * repeated bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(int index); + + /** + * repeated bytes privateKey = 2; + */ + java.util.List getPrivateKeyList(); + /** + * repeated bytes privateKey = 2; + */ + int getPrivateKeyCount(); + /** + * repeated bytes privateKey = 2; + */ + com.google.protobuf.ByteString getPrivateKey(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} + */ + public static final class rsp_accountCreate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountCreate) + rsp_accountCreateOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_accountCreate.newBuilder() to construct. + private rsp_accountCreate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_accountCreate() { + address_ = java.util.Collections.emptyList(); + privateKey_ = java.util.Collections.emptyList(); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_accountCreate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + address_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + address_.add(input.readBytes()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + privateKey_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + address_ = java.util.Collections.unmodifiableList(address_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, - org.aion.api.server.pb.Message.req_getBlockSqlByRange.Builder.class); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountCreate.class, org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); + } - public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; - private long blkNumberStart_; - /** uint64 blkNumberStart = 1; */ - public long getBlkNumberStart() { - return blkNumberStart_; - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private java.util.List address_; + /** + * repeated bytes address = 1; + */ + public java.util.List + getAddressList() { + return address_; + } + /** + * repeated bytes address = 1; + */ + public int getAddressCount() { + return address_.size(); + } + /** + * repeated bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress(int index) { + return address_.get(index); + } - public static final int BLKNUMBEREND_FIELD_NUMBER = 2; - private long blkNumberEnd_; - /** uint64 blkNumberEnd = 2; */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } + public static final int PRIVATEKEY_FIELD_NUMBER = 2; + private java.util.List privateKey_; + /** + * repeated bytes privateKey = 2; + */ + public java.util.List + getPrivateKeyList() { + return privateKey_; + } + /** + * repeated bytes privateKey = 2; + */ + public int getPrivateKeyCount() { + return privateKey_.size(); + } + /** + * repeated bytes privateKey = 2; + */ + public com.google.protobuf.ByteString getPrivateKey(int index) { + return privateKey_.get(index); + } - private byte memoizedIsInitialized = -1; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + memoizedIsInitialized = 1; + return true; + } - memoizedIsInitialized = 1; - return true; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < address_.size(); i++) { + output.writeBytes(1, address_.get(i)); + } + for (int i = 0; i < privateKey_.size(); i++) { + output.writeBytes(2, privateKey_.get(i)); + } + unknownFields.writeTo(output); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blkNumberStart_ != 0L) { - output.writeUInt64(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - output.writeUInt64(2, blkNumberEnd_); - } - unknownFields.writeTo(output); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < address_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(address_.get(i)); + } + size += dataSize; + size += 1 * getAddressList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < privateKey_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(privateKey_.get(i)); + } + size += dataSize; + size += 1 * getPrivateKeyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountCreate)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_accountCreate other = (org.aion.api.server.pb.Message.rsp_accountCreate) obj; + + boolean result = true; + result = result && getAddressList() + .equals(other.getAddressList()); + result = result && getPrivateKeyList() + .equals(other.getPrivateKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - size = 0; - if (blkNumberStart_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blkNumberEnd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressCount() > 0) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddressList().hashCode(); + } + if (getPrivateKeyCount() > 0) { + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockSqlByRange other = - (org.aion.api.server.pb.Message.req_getBlockSqlByRange) obj; + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accountCreate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - boolean result = true; - result = result && (getBlkNumberStart() == other.getBlkNumberStart()); - result = result && (getBlkNumberEnd() == other.getBlkNumberEnd()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accountCreate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberStart()); - hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberEnd()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_accountCreate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountCreate) + org.aion.api.server.pb.Message.rsp_accountCreateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountCreate.class, org.aion.api.server.pb.Message.rsp_accountCreate.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_accountCreate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_accountCreate build() { + org.aion.api.server.pb.Message.rsp_accountCreate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_accountCreate buildPartial() { + org.aion.api.server.pb.Message.rsp_accountCreate result = new org.aion.api.server.pb.Message.rsp_accountCreate(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + address_ = java.util.Collections.unmodifiableList(address_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.address_ = address_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.privateKey_ = privateKey_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_accountCreate) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_accountCreate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountCreate other) { + if (other == org.aion.api.server.pb.Message.rsp_accountCreate.getDefaultInstance()) return this; + if (!other.address_.isEmpty()) { + if (address_.isEmpty()) { + address_ = other.address_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressIsMutable(); + address_.addAll(other.address_); + } + onChanged(); + } + if (!other.privateKey_.isEmpty()) { + if (privateKey_.isEmpty()) { + privateKey_ = other.privateKey_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePrivateKeyIsMutable(); + privateKey_.addAll(other.privateKey_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_accountCreate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_accountCreate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List address_ = java.util.Collections.emptyList(); + private void ensureAddressIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + address_ = new java.util.ArrayList(address_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated bytes address = 1; + */ + public java.util.List + getAddressList() { + return java.util.Collections.unmodifiableList(address_); + } + /** + * repeated bytes address = 1; + */ + public int getAddressCount() { + return address_.size(); + } + /** + * repeated bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress(int index) { + return address_.get(index); + } + /** + * repeated bytes address = 1; + */ + public Builder setAddress( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIsMutable(); + address_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes address = 1; + */ + public Builder addAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIsMutable(); + address_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes address = 1; + */ + public Builder addAllAddress( + java.lang.Iterable values) { + ensureAddressIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, address_); + onChanged(); + return this; + } + /** + * repeated bytes address = 1; + */ + public Builder clearAddress() { + address_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List privateKey_ = java.util.Collections.emptyList(); + private void ensurePrivateKeyIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + privateKey_ = new java.util.ArrayList(privateKey_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated bytes privateKey = 2; + */ + public java.util.List + getPrivateKeyList() { + return java.util.Collections.unmodifiableList(privateKey_); + } + /** + * repeated bytes privateKey = 2; + */ + public int getPrivateKeyCount() { + return privateKey_.size(); + } + /** + * repeated bytes privateKey = 2; + */ + public com.google.protobuf.ByteString getPrivateKey(int index) { + return privateKey_.get(index); + } + /** + * repeated bytes privateKey = 2; + */ + public Builder setPrivateKey( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes privateKey = 2; + */ + public Builder addPrivateKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes privateKey = 2; + */ + public Builder addAllPrivateKey( + java.lang.Iterable values) { + ensurePrivateKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, privateKey_); + onChanged(); + return this; + } + /** + * repeated bytes privateKey = 2; + */ + public Builder clearPrivateKey() { + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountCreate) + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountCreate) + private static final org.aion.api.server.pb.Message.rsp_accountCreate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountCreate(); + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_accountCreate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_accountCreate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public org.aion.api.server.pb.Message.rsp_accountCreate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + } + + public interface req_accountlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_accountlock) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes account = 1; + */ + com.google.protobuf.ByteString getAccount(); + + /** + * string password = 2; + */ + java.lang.String getPassword(); + /** + * string password = 2; + */ + com.google.protobuf.ByteString + getPasswordBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_accountlock} + */ + public static final class req_accountlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_accountlock) + req_accountlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_accountlock.newBuilder() to construct. + private req_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_accountlock() { + account_ = com.google.protobuf.ByteString.EMPTY; + password_ = ""; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_accountlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + account_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountlock.class, org.aion.api.server.pb.Message.req_accountlock.Builder.class); + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString account_; + /** + * bytes account = 1; + */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!account_.isEmpty()) { + output.writeBytes(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!account_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, account_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockSqlByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_accountlock)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_accountlock other = (org.aion.api.server.pb.Message.req_accountlock) obj; + + boolean result = true; + result = result && getAccount() + .equals(other.getAccount()); + result = result && getPassword() + .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockSqlByRange) - org.aion.api.server.pb.Message.req_getBlockSqlByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_accountlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_accountlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, - org.aion.api.server.pb.Message.req_getBlockSqlByRange - .Builder - .class); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_accountlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - // Construct using org.aion.api.server.pb.Message.req_getBlockSqlByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_accountlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_accountlock) + org.aion.api.server.pb.Message.req_accountlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_accountlock.class, org.aion.api.server.pb.Message.req_accountlock.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_accountlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + account_ = com.google.protobuf.ByteString.EMPTY; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + } + + public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_accountlock build() { + org.aion.api.server.pb.Message.req_accountlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_accountlock buildPartial() { + org.aion.api.server.pb.Message.req_accountlock result = new org.aion.api.server.pb.Message.req_accountlock(this); + result.account_ = account_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_accountlock) { + return mergeFrom((org.aion.api.server.pb.Message.req_accountlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountlock other) { + if (other == org.aion.api.server.pb.Message.req_accountlock.getDefaultInstance()) return this; + if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { + setAccount(other.getAccount()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_accountlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_accountlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes account = 1; + */ + public com.google.protobuf.ByteString getAccount() { + return account_; + } + /** + * bytes account = 1; + */ + public Builder setAccount(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + account_ = value; + onChanged(); + return this; + } + /** + * bytes account = 1; + */ + public Builder clearAccount() { + + account_ = getDefaultInstance().getAccount(); + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string password = 2; + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_accountlock) + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_accountlock) + private static final org.aion.api.server.pb.Message.req_accountlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_accountlock(); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public static org.aion.api.server.pb.Message.req_accountlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder clear() { - super.clear(); - blkNumberStart_ = 0L; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_accountlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_accountlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - blkNumberEnd_ = 0L; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - return this; - } + public org.aion.api.server.pb.Message.req_accountlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - } + } + + public interface rsp_accountlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_accountlock) + com.google.protobuf.MessageOrBuilder { + + /** + * bool locked = 1; + */ + boolean getLocked(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} + */ + public static final class rsp_accountlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_accountlock) + rsp_accountlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_accountlock.newBuilder() to construct. + private rsp_accountlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_accountlock() { + locked_ = false; + } - public org.aion.api.server.pb.Message.req_getBlockSqlByRange - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockSqlByRange.getDefaultInstance(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_accountlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + locked_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + } - public org.aion.api.server.pb.Message.req_getBlockSqlByRange build() { - org.aion.api.server.pb.Message.req_getBlockSqlByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountlock.class, org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); + } - public org.aion.api.server.pb.Message.req_getBlockSqlByRange buildPartial() { - org.aion.api.server.pb.Message.req_getBlockSqlByRange result = - new org.aion.api.server.pb.Message.req_getBlockSqlByRange(this); - result.blkNumberStart_ = blkNumberStart_; - result.blkNumberEnd_ = blkNumberEnd_; - onBuilt(); - return result; - } + public static final int LOCKED_FIELD_NUMBER = 1; + private boolean locked_; + /** + * bool locked = 1; + */ + public boolean getLocked() { + return locked_; + } - public Builder clone() { - return (Builder) super.clone(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + memoizedIsInitialized = 1; + return true; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (locked_ != false) { + output.writeBool(1, locked_); + } + unknownFields.writeTo(output); + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locked_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, locked_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_accountlock)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_accountlock other = (org.aion.api.server.pb.Message.rsp_accountlock) obj; + + boolean result = true; + result = result && (getLocked() + == other.getLocked()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLocked()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange) { - return mergeFrom((org.aion.api.server.pb.Message.req_getBlockSqlByRange) other); - } else { - super.mergeFrom(other); - return this; - } - } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_accountlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockSqlByRange other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockSqlByRange - .getDefaultInstance()) return this; - if (other.getBlkNumberStart() != 0L) { - setBlkNumberStart(other.getBlkNumberStart()); - } - if (other.getBlkNumberEnd() != 0L) { - setBlkNumberEnd(other.getBlkNumberEnd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_accountlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public final boolean isInitialized() { - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_accountlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_accountlock) + org.aion.api.server.pb.Message.rsp_accountlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_accountlock.class, org.aion.api.server.pb.Message.rsp_accountlock.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_accountlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + locked_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_accountlock build() { + org.aion.api.server.pb.Message.rsp_accountlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_accountlock buildPartial() { + org.aion.api.server.pb.Message.rsp_accountlock result = new org.aion.api.server.pb.Message.rsp_accountlock(this); + result.locked_ = locked_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_accountlock) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_accountlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountlock other) { + if (other == org.aion.api.server.pb.Message.rsp_accountlock.getDefaultInstance()) return this; + if (other.getLocked() != false) { + setLocked(other.getLocked()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_accountlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_accountlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean locked_ ; + /** + * bool locked = 1; + */ + public boolean getLocked() { + return locked_; + } + /** + * bool locked = 1; + */ + public Builder setLocked(boolean value) { + + locked_ = value; + onChanged(); + return this; + } + /** + * bool locked = 1; + */ + public Builder clearLocked() { + + locked_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_accountlock) + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockSqlByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockSqlByRange) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_accountlock) + private static final org.aion.api.server.pb.Message.rsp_accountlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_accountlock(); + } - private long blkNumberStart_; - /** uint64 blkNumberStart = 1; */ - public long getBlkNumberStart() { - return blkNumberStart_; - } - /** uint64 blkNumberStart = 1; */ - public Builder setBlkNumberStart(long value) { + public static org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } - blkNumberStart_ = value; - onChanged(); - return this; - } - /** uint64 blkNumberStart = 1; */ - public Builder clearBlkNumberStart() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_accountlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_accountlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - blkNumberStart_ = 0L; - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private long blkNumberEnd_; - /** uint64 blkNumberEnd = 2; */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } - /** uint64 blkNumberEnd = 2; */ - public Builder setBlkNumberEnd(long value) { + public org.aion.api.server.pb.Message.rsp_accountlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - blkNumberEnd_ = value; - onChanged(); - return this; - } - /** uint64 blkNumberEnd = 2; */ - public Builder clearBlkNumberEnd() { + } + + public interface req_userPrivilegeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_userPrivilege) + com.google.protobuf.MessageOrBuilder { + + /** + * string username = 1; + */ + java.lang.String getUsername(); + /** + * string username = 1; + */ + com.google.protobuf.ByteString + getUsernameBytes(); + + /** + * string password = 2; + */ + java.lang.String getPassword(); + /** + * string password = 2; + */ + com.google.protobuf.ByteString + getPasswordBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} + */ + public static final class req_userPrivilege extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_userPrivilege) + req_userPrivilegeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_userPrivilege.newBuilder() to construct. + private req_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_userPrivilege() { + username_ = ""; + password_ = ""; + } - blkNumberEnd_ = 0L; - onChanged(); - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_userPrivilege( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_userPrivilege.class, org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + * string username = 1; + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + * string username = 1; + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockSqlByRange) - } + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockSqlByRange) - private static final org.aion.api.server.pb.Message.req_getBlockSqlByRange DEFAULT_INSTANCE; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockSqlByRange(); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockSqlByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockSqlByRange(input, extensionRegistry); - } - }; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_userPrivilege)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_userPrivilege other = (org.aion.api.server.pb.Message.req_userPrivilege) obj; + + boolean result = true; + result = result && getUsername() + .equals(other.getUsername()); + result = result && getPassword() + .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public interface rsp_getBlockSqlByRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockSqlByRange) - com.google.protobuf.MessageOrBuilder { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_userPrivilege prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - java.util.List getBlkSqlList(); - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index); - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - int getBlkSqlCount(); - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - java.util.List - getBlkSqlOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder(int index); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_userPrivilege} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_userPrivilege) + org.aion.api.server.pb.Message.req_userPrivilegeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_userPrivilege.class, org.aion.api.server.pb.Message.req_userPrivilege.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_userPrivilege.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + } + + public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_userPrivilege build() { + org.aion.api.server.pb.Message.req_userPrivilege result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_userPrivilege buildPartial() { + org.aion.api.server.pb.Message.req_userPrivilege result = new org.aion.api.server.pb.Message.req_userPrivilege(this); + result.username_ = username_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_userPrivilege) { + return mergeFrom((org.aion.api.server.pb.Message.req_userPrivilege)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_userPrivilege other) { + if (other == org.aion.api.server.pb.Message.req_userPrivilege.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_userPrivilege parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_userPrivilege) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object username_ = ""; + /** + * string username = 1; + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string username = 1; + */ + public com.google.protobuf.ByteString + getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string username = 1; + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * string username = 1; + */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * string username = 1; + */ + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string password = 2; + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_userPrivilege) } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} */ - public static final class rsp_getBlockSqlByRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) - rsp_getBlockSqlByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockSqlByRange.newBuilder() to construct. - private rsp_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockSqlByRange() { - blkSql_ = java.util.Collections.emptyList(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_userPrivilege) + private static final org.aion.api.server.pb.Message.req_userPrivilege DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_userPrivilege(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public static org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private rsp_getBlockSqlByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_BlockSql>(); - mutable_bitField0_ |= 0x00000001; - } - blkSql_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_BlockSql.parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = java.util.Collections.unmodifiableList(blkSql_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_userPrivilege parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_userPrivilege(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.Builder.class); - } + public org.aion.api.server.pb.Message.req_userPrivilege getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int BLKSQL_FIELD_NUMBER = 1; - private java.util.List blkSql_; - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public java.util.List getBlkSqlList() { - return blkSql_; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public java.util.List - getBlkSqlOrBuilderList() { - return blkSql_; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public int getBlkSqlCount() { - return blkSql_.size(); - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { - return blkSql_.get(index); - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder(int index) { - return blkSql_.get(index); - } + } + + public interface rsp_userPrivilegeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_userPrivilege) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string privilege = 1; + */ + java.util.List + getPrivilegeList(); + /** + * repeated string privilege = 1; + */ + int getPrivilegeCount(); + /** + * repeated string privilege = 1; + */ + java.lang.String getPrivilege(int index); + /** + * repeated string privilege = 1; + */ + com.google.protobuf.ByteString + getPrivilegeBytes(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} + */ + public static final class rsp_userPrivilege extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_userPrivilege) + rsp_userPrivilegeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_userPrivilege.newBuilder() to construct. + private rsp_userPrivilege(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_userPrivilege() { + privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_userPrivilege( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + privilege_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = privilege_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_userPrivilege.class, org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + public static final int PRIVILEGE_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList privilege_; + /** + * repeated string privilege = 1; + */ + public com.google.protobuf.ProtocolStringList + getPrivilegeList() { + return privilege_; + } + /** + * repeated string privilege = 1; + */ + public int getPrivilegeCount() { + return privilege_.size(); + } + /** + * repeated string privilege = 1; + */ + public java.lang.String getPrivilege(int index) { + return privilege_.get(index); + } + /** + * repeated string privilege = 1; + */ + public com.google.protobuf.ByteString + getPrivilegeBytes(int index) { + return privilege_.getByteString(index); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkSql_.size(); i++) { - output.writeMessage(1, blkSql_.get(i)); - } - unknownFields.writeTo(output); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + memoizedIsInitialized = 1; + return true; + } - size = 0; - for (int i = 0; i < blkSql_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blkSql_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < privilege_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privilege_.getRaw(i)); + } + unknownFields.writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other = - (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) obj; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < privilege_.size(); i++) { + dataSize += computeStringSizeNoTag(privilege_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrivilegeList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - boolean result = true; - result = result && getBlkSqlList().equals(other.getBlkSqlList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_userPrivilege)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_userPrivilege other = (org.aion.api.server.pb.Message.rsp_userPrivilege) obj; + + boolean result = true; + result = result && getPrivilegeList() + .equals(other.getPrivilegeList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkSqlCount() > 0) { - hash = (37 * hash) + BLKSQL_FIELD_NUMBER; - hash = (53 * hash) + getBlkSqlList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivilegeCount() > 0) { + hash = (37 * hash) + PRIVILEGE_FIELD_NUMBER; + hash = (53 * hash) + getPrivilegeList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_userPrivilege parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_userPrivilege prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_userPrivilege} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_userPrivilege) + org.aion.api.server.pb.Message.rsp_userPrivilegeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_userPrivilege.class, org.aion.api.server.pb.Message.rsp_userPrivilege.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_userPrivilege.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_userPrivilege build() { + org.aion.api.server.pb.Message.rsp_userPrivilege result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_userPrivilege buildPartial() { + org.aion.api.server.pb.Message.rsp_userPrivilege result = new org.aion.api.server.pb.Message.rsp_userPrivilege(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = privilege_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privilege_ = privilege_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_userPrivilege) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_userPrivilege)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_userPrivilege other) { + if (other == org.aion.api.server.pb.Message.rsp_userPrivilege.getDefaultInstance()) return this; + if (!other.privilege_.isEmpty()) { + if (privilege_.isEmpty()) { + privilege_ = other.privilege_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivilegeIsMutable(); + privilege_.addAll(other.privilege_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_userPrivilege parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_userPrivilege) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePrivilegeIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + privilege_ = new com.google.protobuf.LazyStringArrayList(privilege_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string privilege = 1; + */ + public com.google.protobuf.ProtocolStringList + getPrivilegeList() { + return privilege_.getUnmodifiableView(); + } + /** + * repeated string privilege = 1; + */ + public int getPrivilegeCount() { + return privilege_.size(); + } + /** + * repeated string privilege = 1; + */ + public java.lang.String getPrivilege(int index) { + return privilege_.get(index); + } + /** + * repeated string privilege = 1; + */ + public com.google.protobuf.ByteString + getPrivilegeBytes(int index) { + return privilege_.getByteString(index); + } + /** + * repeated string privilege = 1; + */ + public Builder setPrivilege( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivilegeIsMutable(); + privilege_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string privilege = 1; + */ + public Builder addPrivilege( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivilegeIsMutable(); + privilege_.add(value); + onChanged(); + return this; + } + /** + * repeated string privilege = 1; + */ + public Builder addAllPrivilege( + java.lang.Iterable values) { + ensurePrivilegeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, privilege_); + onChanged(); + return this; + } + /** + * repeated string privilege = 1; + */ + public Builder clearPrivilege() { + privilege_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string privilege = 1; + */ + public Builder addPrivilegeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrivilegeIsMutable(); + privilege_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_userPrivilege) + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_userPrivilege) + private static final org.aion.api.server.pb.Message.rsp_userPrivilege DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_userPrivilege(); + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_userPrivilege parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_userPrivilege(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public org.aion.api.server.pb.Message.rsp_userPrivilege getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + } + + public interface req_queryCtEventsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_queryCtEvents) + com.google.protobuf.MessageOrBuilder { + + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + boolean hasFilter(); + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + org.aion.api.server.pb.Message.t_FilterCt getFilter(); + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} + */ + public static final class req_queryCtEvents extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_queryCtEvents) + req_queryCtEventsOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_queryCtEvents.newBuilder() to construct. + private req_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_queryCtEvents() { + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_queryCtEvents( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.aion.api.server.pb.Message.t_FilterCt.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = input.readMessage(org.aion.api.server.pb.Message.t_FilterCt.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_queryCtEvents.class, org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final int FILTER_FIELD_NUMBER = 1; + private org.aion.api.server.pb.Message.t_FilterCt filter_; + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public boolean hasFilter() { + return filter_ != null; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + return getFilter(); + } - public Builder newBuilderForType() { - return newBuilder(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + memoizedIsInitialized = 1; + return true; + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (filter_ != null) { + output.writeMessage(1, getFilter()); + } + unknownFields.writeTo(output); + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFilter()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) - org.aion.api.server.pb.Message.rsp_getBlockSqlByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_queryCtEvents)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_queryCtEvents other = (org.aion.api.server.pb.Message.req_queryCtEvents) obj; + + boolean result = true; + result = result && (hasFilter() == other.hasFilter()); + if (hasFilter()) { + result = result && getFilter() + .equals(other.getFilter()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange - .Builder - .class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - // Construct using org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_queryCtEvents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlkSqlFieldBuilder(); - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_queryCtEvents} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_queryCtEvents) + org.aion.api.server.pb.Message.req_queryCtEventsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_queryCtEvents.class, org.aion.api.server.pb.Message.req_queryCtEvents.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_queryCtEvents.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + } + + public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_queryCtEvents build() { + org.aion.api.server.pb.Message.req_queryCtEvents result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_queryCtEvents buildPartial() { + org.aion.api.server.pb.Message.req_queryCtEvents result = new org.aion.api.server.pb.Message.req_queryCtEvents(this); + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_queryCtEvents) { + return mergeFrom((org.aion.api.server.pb.Message.req_queryCtEvents)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_queryCtEvents other) { + if (other == org.aion.api.server.pb.Message.req_queryCtEvents.getDefaultInstance()) return this; + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_queryCtEvents parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_queryCtEvents) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private org.aion.api.server.pb.Message.t_FilterCt filter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> filterBuilder_; + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public org.aion.api.server.pb.Message.t_FilterCt getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public Builder setFilter( + org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + org.aion.api.server.pb.Message.t_FilterCt.newBuilder(filter_).mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + org.aion.api.server.pb.Message.t_FilterCt.getDefaultInstance() : filter_; + } + } + /** + * .org.aion.api.server.pb.t_FilterCt filter = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.aion.api.server.pb.Message.t_FilterCt, org.aion.api.server.pb.Message.t_FilterCt.Builder, org.aion.api.server.pb.Message.t_FilterCtOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_queryCtEvents) + } - public Builder clear() { - super.clear(); - if (blkSqlBuilder_ == null) { - blkSql_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkSqlBuilder_.clear(); - } - return this; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_queryCtEvents) + private static final org.aion.api.server.pb.Message.req_queryCtEvents DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_queryCtEvents(); + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - } + public static org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.getDefaultInstance(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_queryCtEvents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_queryCtEvents(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange build() { - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = - new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(this); - int from_bitField0_ = bitField0_; - if (blkSqlBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = java.util.Collections.unmodifiableList(blkSql_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkSql_ = blkSql_; - } else { - result.blkSql_ = blkSqlBuilder_.build(); - } - onBuilt(); - return result; - } + public org.aion.api.server.pb.Message.req_queryCtEvents getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder clone() { - return (Builder) super.clone(); - } + } + + public interface rsp_queryCtEventsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_queryCtEvents) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + java.util.List + getEcList(); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + org.aion.api.server.pb.Message.t_EventCt getEc(int index); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + int getEcCount(); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + java.util.List + getEcOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} + */ + public static final class rsp_queryCtEvents extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_queryCtEvents) + rsp_queryCtEventsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_queryCtEvents.newBuilder() to construct. + private rsp_queryCtEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_queryCtEvents() { + ec_ = java.util.Collections.emptyList(); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_queryCtEvents( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ec_.add( + input.readMessage(org.aion.api.server.pb.Message.t_EventCt.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_queryCtEvents.class, org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + public static final int EC_FIELD_NUMBER = 1; + private java.util.List ec_; + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List getEcList() { + return ec_; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List + getEcOrBuilderList() { + return ec_; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public int getEcCount() { + return ec_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + return ec_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( + int index) { + return ec_.get(index); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + memoizedIsInitialized = 1; + return true; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) other); - } else { - super.mergeFrom(other); - return this; - } - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < ec_.size(); i++) { + output.writeMessage(1, ec_.get(i)); + } + unknownFields.writeTo(output); + } - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other) { - if (other - == org.aion.api.server.pb.Message.rsp_getBlockSqlByRange - .getDefaultInstance()) return this; - if (blkSqlBuilder_ == null) { - if (!other.blkSql_.isEmpty()) { - if (blkSql_.isEmpty()) { - blkSql_ = other.blkSql_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkSqlIsMutable(); - blkSql_.addAll(other.blkSql_); - } - onChanged(); - } - } else { - if (!other.blkSql_.isEmpty()) { - if (blkSqlBuilder_.isEmpty()) { - blkSqlBuilder_.dispose(); - blkSqlBuilder_ = null; - blkSql_ = other.blkSql_; - bitField0_ = (bitField0_ & ~0x00000001); - blkSqlBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlkSqlFieldBuilder() - : null; - } else { - blkSqlBuilder_.addAllMessages(other.blkSql_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < ec_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, ec_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_queryCtEvents other = (org.aion.api.server.pb.Message.rsp_queryCtEvents) obj; + + boolean result = true; + result = result && getEcList() + .equals(other.getEcList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEcCount() > 0) { + hash = (37 * hash) + EC_FIELD_NUMBER; + hash = (53 * hash) + getEcList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private int bitField0_; + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private java.util.List blkSql_ = - java.util.Collections.emptyList(); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_queryCtEvents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private void ensureBlkSqlIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkSql_ = - new java.util.ArrayList( - blkSql_); - bitField0_ |= 0x00000001; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_queryCtEvents} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_queryCtEvents) + org.aion.api.server.pb.Message.rsp_queryCtEventsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_queryCtEvents.class, org.aion.api.server.pb.Message.rsp_queryCtEvents.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_queryCtEvents.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEcFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ecBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_queryCtEvents build() { + org.aion.api.server.pb.Message.rsp_queryCtEvents result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_queryCtEvents buildPartial() { + org.aion.api.server.pb.Message.rsp_queryCtEvents result = new org.aion.api.server.pb.Message.rsp_queryCtEvents(this); + int from_bitField0_ = bitField0_; + if (ecBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = java.util.Collections.unmodifiableList(ec_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ec_ = ec_; + } else { + result.ec_ = ecBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_queryCtEvents) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_queryCtEvents)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_queryCtEvents other) { + if (other == org.aion.api.server.pb.Message.rsp_queryCtEvents.getDefaultInstance()) return this; + if (ecBuilder_ == null) { + if (!other.ec_.isEmpty()) { + if (ec_.isEmpty()) { + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEcIsMutable(); + ec_.addAll(other.ec_); + } + onChanged(); + } + } else { + if (!other.ec_.isEmpty()) { + if (ecBuilder_.isEmpty()) { + ecBuilder_.dispose(); + ecBuilder_ = null; + ec_ = other.ec_; + bitField0_ = (bitField0_ & ~0x00000001); + ecBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEcFieldBuilder() : null; + } else { + ecBuilder_.addAllMessages(other.ec_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_queryCtEvents parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_queryCtEvents) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List ec_ = + java.util.Collections.emptyList(); + private void ensureEcIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + ec_ = new java.util.ArrayList(ec_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> ecBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List getEcList() { + if (ecBuilder_ == null) { + return java.util.Collections.unmodifiableList(ec_); + } else { + return ecBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public int getEcCount() { + if (ecBuilder_ == null) { + return ec_.size(); + } else { + return ecBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt getEc(int index) { + if (ecBuilder_ == null) { + return ec_.get(index); + } else { + return ecBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder setEc( + int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.set(index, value); + onChanged(); + } else { + ecBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder setEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.set(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc(org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(value); + onChanged(); + } else { + ecBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc( + int index, org.aion.api.server.pb.Message.t_EventCt value) { + if (ecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEcIsMutable(); + ec_.add(index, value); + onChanged(); + } else { + ecBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc( + org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addEc( + int index, org.aion.api.server.pb.Message.t_EventCt.Builder builderForValue) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.add(index, builderForValue.build()); + onChanged(); + } else { + ecBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder addAllEc( + java.lang.Iterable values) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ec_); + onChanged(); + } else { + ecBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder clearEc() { + if (ecBuilder_ == null) { + ec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ecBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public Builder removeEc(int index) { + if (ecBuilder_ == null) { + ensureEcIsMutable(); + ec_.remove(index); + onChanged(); + } else { + ecBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt.Builder getEcBuilder( + int index) { + return getEcFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCtOrBuilder getEcOrBuilder( + int index) { + if (ecBuilder_ == null) { + return ec_.get(index); } else { + return ecBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List + getEcOrBuilderList() { + if (ecBuilder_ != null) { + return ecBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ec_); + } + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder() { + return getEcFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder( + int index) { + return getEcFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_EventCt.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_EventCt ec = 1; + */ + public java.util.List + getEcBuilderList() { + return getEcFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder> + getEcFieldBuilder() { + if (ecBuilder_ == null) { + ecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_EventCt, org.aion.api.server.pb.Message.t_EventCt.Builder, org.aion.api.server.pb.Message.t_EventCtOrBuilder>( + ec_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + ec_ = null; + } + return ecBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_queryCtEvents) + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockSql, - org.aion.api.server.pb.Message.t_BlockSql.Builder, - org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> - blkSqlBuilder_; - - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public java.util.List getBlkSqlList() { - if (blkSqlBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkSql_); - } else { - return blkSqlBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public int getBlkSqlCount() { - if (blkSqlBuilder_ == null) { - return blkSql_.size(); - } else { - return blkSqlBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { - if (blkSqlBuilder_ == null) { - return blkSql_.get(index); - } else { - return blkSqlBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder setBlkSql(int index, org.aion.api.server.pb.Message.t_BlockSql value) { - if (blkSqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkSqlIsMutable(); - blkSql_.set(index, value); - onChanged(); - } else { - blkSqlBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder setBlkSql( - int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.set(index, builderForValue.build()); - onChanged(); - } else { - blkSqlBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder addBlkSql(org.aion.api.server.pb.Message.t_BlockSql value) { - if (blkSqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkSqlIsMutable(); - blkSql_.add(value); - onChanged(); - } else { - blkSqlBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder addBlkSql(int index, org.aion.api.server.pb.Message.t_BlockSql value) { - if (blkSqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkSqlIsMutable(); - blkSql_.add(index, value); - onChanged(); - } else { - blkSqlBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder addBlkSql( - org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.add(builderForValue.build()); - onChanged(); - } else { - blkSqlBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder addBlkSql( - int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.add(index, builderForValue.build()); - onChanged(); - } else { - blkSqlBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder addAllBlkSql( - java.lang.Iterable - values) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkSql_); - onChanged(); - } else { - blkSqlBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder clearBlkSql() { - if (blkSqlBuilder_ == null) { - blkSql_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkSqlBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public Builder removeBlkSql(int index) { - if (blkSqlBuilder_ == null) { - ensureBlkSqlIsMutable(); - blkSql_.remove(index); - onChanged(); - } else { - blkSqlBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public org.aion.api.server.pb.Message.t_BlockSql.Builder getBlkSqlBuilder(int index) { - return getBlkSqlFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( - int index) { - if (blkSqlBuilder_ == null) { - return blkSql_.get(index); - } else { - return blkSqlBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public java.util.List - getBlkSqlOrBuilderList() { - if (blkSqlBuilder_ != null) { - return blkSqlBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkSql_); - } - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder() { - return getBlkSqlFieldBuilder() - .addBuilder(org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder(int index) { - return getBlkSqlFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; */ - public java.util.List - getBlkSqlBuilderList() { - return getBlkSqlFieldBuilder().getBuilderList(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_queryCtEvents) + private static final org.aion.api.server.pb.Message.rsp_queryCtEvents DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_queryCtEvents(); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockSql, - org.aion.api.server.pb.Message.t_BlockSql.Builder, - org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> - getBlkSqlFieldBuilder() { - if (blkSqlBuilder_ == null) { - blkSqlBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockSql, - org.aion.api.server.pb.Message.t_BlockSql.Builder, - org.aion.api.server.pb.Message.t_BlockSqlOrBuilder>( - blkSql_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkSql_ = null; - } - return blkSqlBuilder_; - } + public static org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_queryCtEvents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_queryCtEvents(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) - } + public org.aion.api.server.pb.Message.rsp_queryCtEvents getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) - private static final org.aion.api.server.pb.Message.rsp_getBlockSqlByRange DEFAULT_INSTANCE; + } + + public interface t_PrivateKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_PrivateKey) + com.google.protobuf.MessageOrBuilder { + + /** + * string privateKey = 1; + */ + java.lang.String getPrivateKey(); + /** + * string privateKey = 1; + */ + com.google.protobuf.ByteString + getPrivateKeyBytes(); + + /** + * string password = 2; + */ + java.lang.String getPassword(); + /** + * string password = 2; + */ + com.google.protobuf.ByteString + getPasswordBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} + */ + public static final class t_PrivateKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_PrivateKey) + t_PrivateKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_PrivateKey.newBuilder() to construct. + private t_PrivateKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_PrivateKey() { + privateKey_ = ""; + password_ = ""; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_PrivateKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + privateKey_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_PrivateKey.class, org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlockSqlByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockSqlByRange(input, extensionRegistry); - } - }; + public static final int PRIVATEKEY_FIELD_NUMBER = 1; + private volatile java.lang.Object privateKey_; + /** + * string privateKey = 1; + */ + public java.lang.String getPrivateKey() { + java.lang.Object ref = privateKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKey_ = s; + return s; + } + } + /** + * string privateKey = 1; + */ + public com.google.protobuf.ByteString + getPrivateKeyBytes() { + java.lang.Object ref = privateKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; } - public interface req_getBlockDetailsByRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByRange) - com.google.protobuf.MessageOrBuilder { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPrivateKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateKey_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } - /** uint64 blkNumberStart = 1; */ - long getBlkNumberStart(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPrivateKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateKey_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - /** uint64 blkNumberEnd = 2; */ - long getBlkNumberEnd(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_PrivateKey)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_PrivateKey other = (org.aion.api.server.pb.Message.t_PrivateKey) obj; + + boolean result = true; + result = result && getPrivateKey() + .equals(other.getPrivateKey()); + result = result && getPassword() + .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} */ - public static final class req_getBlockDetailsByRange - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) - req_getBlockDetailsByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getBlockDetailsByRange.newBuilder() to construct. - private req_getBlockDetailsByRange( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getBlockDetailsByRange() { - blkNumberStart_ = 0L; - blkNumberEnd_ = 0L; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKey().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_PrivateKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private req_getBlockDetailsByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - blkNumberStart_ = input.readUInt64(); - break; - } - case 16: - { - blkNumberEnd_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_PrivateKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_PrivateKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_PrivateKey) + org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_PrivateKey.class, org.aion.api.server.pb.Message.t_PrivateKey.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_PrivateKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + privateKey_ = ""; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + } + + public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_PrivateKey build() { + org.aion.api.server.pb.Message.t_PrivateKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_PrivateKey buildPartial() { + org.aion.api.server.pb.Message.t_PrivateKey result = new org.aion.api.server.pb.Message.t_PrivateKey(this); + result.privateKey_ = privateKey_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_PrivateKey) { + return mergeFrom((org.aion.api.server.pb.Message.t_PrivateKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_PrivateKey other) { + if (other == org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()) return this; + if (!other.getPrivateKey().isEmpty()) { + privateKey_ = other.privateKey_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_PrivateKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_PrivateKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object privateKey_ = ""; + /** + * string privateKey = 1; + */ + public java.lang.String getPrivateKey() { + java.lang.Object ref = privateKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string privateKey = 1; + */ + public com.google.protobuf.ByteString + getPrivateKeyBytes() { + java.lang.Object ref = privateKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string privateKey = 1; + */ + public Builder setPrivateKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateKey_ = value; + onChanged(); + return this; + } + /** + * string privateKey = 1; + */ + public Builder clearPrivateKey() { + + privateKey_ = getDefaultInstance().getPrivateKey(); + onChanged(); + return this; + } + /** + * string privateKey = 1; + */ + public Builder setPrivateKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string password = 2; + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_PrivateKey) + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, - org.aion.api.server.pb.Message.req_getBlockDetailsByRange - .Builder - .class); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_PrivateKey) + private static final org.aion.api.server.pb.Message.t_PrivateKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_PrivateKey(); + } - public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; - private long blkNumberStart_; - /** uint64 blkNumberStart = 1; */ - public long getBlkNumberStart() { - return blkNumberStart_; - } + public static org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int BLKNUMBEREND_FIELD_NUMBER = 2; - private long blkNumberEnd_; - /** uint64 blkNumberEnd = 2; */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_PrivateKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_PrivateKey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public org.aion.api.server.pb.Message.t_PrivateKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - memoizedIsInitialized = 1; - return true; - } + } + + public interface req_importAccountsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_importAccounts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + java.util.List + getPrivateKeyList(); + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index); + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + int getPrivateKeyCount(); + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + java.util.List + getPrivateKeyOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_importAccounts} + */ + public static final class req_importAccounts extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_importAccounts) + req_importAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_importAccounts.newBuilder() to construct. + private req_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_importAccounts() { + privateKey_ = java.util.Collections.emptyList(); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (blkNumberStart_ != 0L) { - output.writeUInt64(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - output.writeUInt64(2, blkNumberEnd_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_importAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + privateKey_.add( + input.readMessage(org.aion.api.server.pb.Message.t_PrivateKey.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_importAccounts.class, org.aion.api.server.pb.Message.req_importAccounts.Builder.class); + } - size = 0; - if (blkNumberStart_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, blkNumberStart_); - } - if (blkNumberEnd_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, blkNumberEnd_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static final int PRIVATEKEY_FIELD_NUMBER = 1; + private java.util.List privateKey_; + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public java.util.List getPrivateKeyList() { + return privateKey_; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public java.util.List + getPrivateKeyOrBuilderList() { + return privateKey_; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public int getPrivateKeyCount() { + return privateKey_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { + return privateKey_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( + int index) { + return privateKey_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getBlockDetailsByRange other = - (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) obj; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - boolean result = true; - result = result && (getBlkNumberStart() == other.getBlkNumberStart()); - result = result && (getBlkNumberEnd() == other.getBlkNumberEnd()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberStart()); - hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBlkNumberEnd()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < privateKey_.size(); i++) { + output.writeMessage(1, privateKey_.get(i)); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateKey_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, privateKey_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_importAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_importAccounts other = (org.aion.api.server.pb.Message.req_importAccounts) obj; + + boolean result = true; + result = result && getPrivateKeyList() + .equals(other.getPrivateKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateKeyCount() > 0) { + hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_importAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_importAccounts} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_importAccounts) + org.aion.api.server.pb.Message.req_importAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_importAccounts.class, org.aion.api.server.pb.Message.req_importAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_importAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPrivateKeyFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (privateKeyBuilder_ == null) { + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + privateKeyBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_importAccounts build() { + org.aion.api.server.pb.Message.req_importAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_importAccounts buildPartial() { + org.aion.api.server.pb.Message.req_importAccounts result = new org.aion.api.server.pb.Message.req_importAccounts(this); + int from_bitField0_ = bitField0_; + if (privateKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = java.util.Collections.unmodifiableList(privateKey_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateKey_ = privateKey_; + } else { + result.privateKey_ = privateKeyBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_importAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.req_importAccounts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_importAccounts other) { + if (other == org.aion.api.server.pb.Message.req_importAccounts.getDefaultInstance()) return this; + if (privateKeyBuilder_ == null) { + if (!other.privateKey_.isEmpty()) { + if (privateKey_.isEmpty()) { + privateKey_ = other.privateKey_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateKeyIsMutable(); + privateKey_.addAll(other.privateKey_); + } + onChanged(); + } + } else { + if (!other.privateKey_.isEmpty()) { + if (privateKeyBuilder_.isEmpty()) { + privateKeyBuilder_.dispose(); + privateKeyBuilder_ = null; + privateKey_ = other.privateKey_; + bitField0_ = (bitField0_ & ~0x00000001); + privateKeyBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPrivateKeyFieldBuilder() : null; + } else { + privateKeyBuilder_.addAllMessages(other.privateKey_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_importAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_importAccounts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List privateKey_ = + java.util.Collections.emptyList(); + private void ensurePrivateKeyIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + privateKey_ = new java.util.ArrayList(privateKey_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_PrivateKey, org.aion.api.server.pb.Message.t_PrivateKey.Builder, org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> privateKeyBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public java.util.List getPrivateKeyList() { + if (privateKeyBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateKey_); + } else { + return privateKeyBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public int getPrivateKeyCount() { + if (privateKeyBuilder_ == null) { + return privateKey_.size(); + } else { + return privateKeyBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public org.aion.api.server.pb.Message.t_PrivateKey getPrivateKey(int index) { + if (privateKeyBuilder_ == null) { + return privateKey_.get(index); + } else { + return privateKeyBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder setPrivateKey( + int index, org.aion.api.server.pb.Message.t_PrivateKey value) { + if (privateKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.set(index, value); + onChanged(); + } else { + privateKeyBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder setPrivateKey( + int index, org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.set(index, builderForValue.build()); + onChanged(); + } else { + privateKeyBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder addPrivateKey(org.aion.api.server.pb.Message.t_PrivateKey value) { + if (privateKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.add(value); + onChanged(); + } else { + privateKeyBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder addPrivateKey( + int index, org.aion.api.server.pb.Message.t_PrivateKey value) { + if (privateKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKeyIsMutable(); + privateKey_.add(index, value); + onChanged(); + } else { + privateKeyBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder addPrivateKey( + org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.add(builderForValue.build()); + onChanged(); + } else { + privateKeyBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder addPrivateKey( + int index, org.aion.api.server.pb.Message.t_PrivateKey.Builder builderForValue) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.add(index, builderForValue.build()); + onChanged(); + } else { + privateKeyBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder addAllPrivateKey( + java.lang.Iterable values) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, privateKey_); + onChanged(); + } else { + privateKeyBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder clearPrivateKey() { + if (privateKeyBuilder_ == null) { + privateKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateKeyBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public Builder removePrivateKey(int index) { + if (privateKeyBuilder_ == null) { + ensurePrivateKeyIsMutable(); + privateKey_.remove(index); + onChanged(); + } else { + privateKeyBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public org.aion.api.server.pb.Message.t_PrivateKey.Builder getPrivateKeyBuilder( + int index) { + return getPrivateKeyFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder getPrivateKeyOrBuilder( + int index) { + if (privateKeyBuilder_ == null) { + return privateKey_.get(index); } else { + return privateKeyBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public java.util.List + getPrivateKeyOrBuilderList() { + if (privateKeyBuilder_ != null) { + return privateKeyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateKey_); + } + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder() { + return getPrivateKeyFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder( + int index) { + return getPrivateKeyFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_PrivateKey.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_PrivateKey privateKey = 1; + */ + public java.util.List + getPrivateKeyBuilderList() { + return getPrivateKeyFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_PrivateKey, org.aion.api.server.pb.Message.t_PrivateKey.Builder, org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder> + getPrivateKeyFieldBuilder() { + if (privateKeyBuilder_ == null) { + privateKeyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_PrivateKey, org.aion.api.server.pb.Message.t_PrivateKey.Builder, org.aion.api.server.pb.Message.t_PrivateKeyOrBuilder>( + privateKey_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + privateKey_ = null; + } + return privateKeyBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_importAccounts) + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_importAccounts) + private static final org.aion.api.server.pb.Message.req_importAccounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_importAccounts(); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_importAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_importAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_importAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public org.aion.api.server.pb.Message.req_importAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + } + + public interface rsp_importAccountsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_importAccounts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string invalidKey = 1; + */ + java.util.List + getInvalidKeyList(); + /** + * repeated string invalidKey = 1; + */ + int getInvalidKeyCount(); + /** + * repeated string invalidKey = 1; + */ + java.lang.String getInvalidKey(int index); + /** + * repeated string invalidKey = 1; + */ + com.google.protobuf.ByteString + getInvalidKeyBytes(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} + */ + public static final class rsp_importAccounts extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_importAccounts) + rsp_importAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_importAccounts.newBuilder() to construct. + private rsp_importAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_importAccounts() { + invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_importAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + invalidKey_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = invalidKey_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_importAccounts.class, org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.req_getBlockDetailsByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final int INVALIDKEY_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList invalidKey_; + /** + * repeated string invalidKey = 1; + */ + public com.google.protobuf.ProtocolStringList + getInvalidKeyList() { + return invalidKey_; + } + /** + * repeated string invalidKey = 1; + */ + public int getInvalidKeyCount() { + return invalidKey_.size(); + } + /** + * repeated string invalidKey = 1; + */ + public java.lang.String getInvalidKey(int index) { + return invalidKey_.get(index); + } + /** + * repeated string invalidKey = 1; + */ + public com.google.protobuf.ByteString + getInvalidKeyBytes(int index) { + return invalidKey_.getByteString(index); + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) - org.aion.api.server.pb.Message.req_getBlockDetailsByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, - org.aion.api.server.pb.Message.req_getBlockDetailsByRange - .Builder - .class); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < invalidKey_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, invalidKey_.getRaw(i)); + } + unknownFields.writeTo(output); + } - // Construct using - // org.aion.api.server.pb.Message.req_getBlockDetailsByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < invalidKey_.size(); i++) { + dataSize += computeStringSizeNoTag(invalidKey_.getRaw(i)); + } + size += dataSize; + size += 1 * getInvalidKeyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_importAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_importAccounts other = (org.aion.api.server.pb.Message.rsp_importAccounts) obj; + + boolean result = true; + result = result && getInvalidKeyList() + .equals(other.getInvalidKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInvalidKeyCount() > 0) { + hash = (37 * hash) + INVALIDKEY_FIELD_NUMBER; + hash = (53 * hash) + getInvalidKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder clear() { - super.clear(); - blkNumberStart_ = 0L; + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_importAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - blkNumberEnd_ = 0L; + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_importAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_importAccounts} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_importAccounts) + org.aion.api.server.pb.Message.rsp_importAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_importAccounts.class, org.aion.api.server.pb.Message.rsp_importAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_importAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_importAccounts build() { + org.aion.api.server.pb.Message.rsp_importAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_importAccounts buildPartial() { + org.aion.api.server.pb.Message.rsp_importAccounts result = new org.aion.api.server.pb.Message.rsp_importAccounts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = invalidKey_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.invalidKey_ = invalidKey_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_importAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_importAccounts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_importAccounts other) { + if (other == org.aion.api.server.pb.Message.rsp_importAccounts.getDefaultInstance()) return this; + if (!other.invalidKey_.isEmpty()) { + if (invalidKey_.isEmpty()) { + invalidKey_ = other.invalidKey_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInvalidKeyIsMutable(); + invalidKey_.addAll(other.invalidKey_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_importAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_importAccounts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInvalidKeyIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + invalidKey_ = new com.google.protobuf.LazyStringArrayList(invalidKey_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string invalidKey = 1; + */ + public com.google.protobuf.ProtocolStringList + getInvalidKeyList() { + return invalidKey_.getUnmodifiableView(); + } + /** + * repeated string invalidKey = 1; + */ + public int getInvalidKeyCount() { + return invalidKey_.size(); + } + /** + * repeated string invalidKey = 1; + */ + public java.lang.String getInvalidKey(int index) { + return invalidKey_.get(index); + } + /** + * repeated string invalidKey = 1; + */ + public com.google.protobuf.ByteString + getInvalidKeyBytes(int index) { + return invalidKey_.getByteString(index); + } + /** + * repeated string invalidKey = 1; + */ + public Builder setInvalidKey( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidKeyIsMutable(); + invalidKey_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string invalidKey = 1; + */ + public Builder addInvalidKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidKeyIsMutable(); + invalidKey_.add(value); + onChanged(); + return this; + } + /** + * repeated string invalidKey = 1; + */ + public Builder addAllInvalidKey( + java.lang.Iterable values) { + ensureInvalidKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, invalidKey_); + onChanged(); + return this; + } + /** + * repeated string invalidKey = 1; + */ + public Builder clearInvalidKey() { + invalidKey_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string invalidKey = 1; + */ + public Builder addInvalidKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInvalidKeyIsMutable(); + invalidKey_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_importAccounts) + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_importAccounts) + private static final org.aion.api.server.pb.Message.rsp_importAccounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_importAccounts(); + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getBlockDetailsByRange - .getDefaultInstance(); - } + public static org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange build() { - org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_importAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_importAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange buildPartial() { - org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = - new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(this); - result.blkNumberStart_ = blkNumberStart_; - result.blkNumberEnd_ = blkNumberEnd_; - onBuilt(); - return result; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder clone() { - return (Builder) super.clone(); - } + public org.aion.api.server.pb.Message.rsp_importAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + } + + public interface t_KeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.t_Key) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + + /** + * string password = 2; + */ + java.lang.String getPassword(); + /** + * string password = 2; + */ + com.google.protobuf.ByteString + getPasswordBytes(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Key} + */ + public static final class t_Key extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.t_Key) + t_KeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use t_Key.newBuilder() to construct. + private t_Key(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private t_Key() { + address_ = com.google.protobuf.ByteString.EMPTY; + password_ = ""; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private t_Key( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_descriptor; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Key.class, org.aion.api.server.pb.Message.t_Key.Builder.class); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange) { - return mergeFrom( - (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) other); - } else { - super.mergeFrom(other); - return this; - } - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder mergeFrom( - org.aion.api.server.pb.Message.req_getBlockDetailsByRange other) { - if (other - == org.aion.api.server.pb.Message.req_getBlockDetailsByRange - .getDefaultInstance()) return this; - if (other.getBlkNumberStart() != 0L) { - setBlkNumberStart(other.getBlkNumberStart()); - } - if (other.getBlkNumberEnd() != 0L) { - setBlkNumberEnd(other.getBlkNumberEnd()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - public final boolean isInitialized() { - return true; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + unknownFields.writeTo(output); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getBlockDetailsByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private long blkNumberStart_; - /** uint64 blkNumberStart = 1; */ - public long getBlkNumberStart() { - return blkNumberStart_; - } - /** uint64 blkNumberStart = 1; */ - public Builder setBlkNumberStart(long value) { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.t_Key)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.t_Key other = (org.aion.api.server.pb.Message.t_Key) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && getPassword() + .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - blkNumberStart_ = value; - onChanged(); - return this; - } - /** uint64 blkNumberStart = 1; */ - public Builder clearBlkNumberStart() { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - blkNumberStart_ = 0L; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Key parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.t_Key parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - private long blkNumberEnd_; - /** uint64 blkNumberEnd = 2; */ - public long getBlkNumberEnd() { - return blkNumberEnd_; - } - /** uint64 blkNumberEnd = 2; */ - public Builder setBlkNumberEnd(long value) { + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.t_Key prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - blkNumberEnd_ = value; - onChanged(); - return this; - } - /** uint64 blkNumberEnd = 2; */ - public Builder clearBlkNumberEnd() { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.t_Key} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.t_Key) + org.aion.api.server.pb.Message.t_KeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.t_Key.class, org.aion.api.server.pb.Message.t_Key.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.t_Key.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + password_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_t_Key_descriptor; + } + + public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.t_Key.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.t_Key build() { + org.aion.api.server.pb.Message.t_Key result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.t_Key buildPartial() { + org.aion.api.server.pb.Message.t_Key result = new org.aion.api.server.pb.Message.t_Key(this); + result.address_ = address_; + result.password_ = password_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.t_Key) { + return mergeFrom((org.aion.api.server.pb.Message.t_Key)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.t_Key other) { + if (other == org.aion.api.server.pb.Message.t_Key.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.t_Key parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.t_Key) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * string password = 2; + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string password = 2; + */ + public com.google.protobuf.ByteString + getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string password = 2; + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * string password = 2; + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.t_Key) + } - blkNumberEnd_ = 0L; - onChanged(); - return this; - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.t_Key) + private static final org.aion.api.server.pb.Message.t_Key DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.t_Key(); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static org.aion.api.server.pb.Message.t_Key getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public t_Key parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new t_Key(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) - private static final org.aion.api.server.pb.Message.req_getBlockDetailsByRange - DEFAULT_INSTANCE; + public org.aion.api.server.pb.Message.t_Key getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(); - } + } + + public interface req_exportAccountsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_exportAccounts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + java.util.List + getKeyFileList(); + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + org.aion.api.server.pb.Message.t_Key getKeyFile(int index); + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + int getKeyFileCount(); + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + java.util.List + getKeyFileOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} + */ + public static final class req_exportAccounts extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_exportAccounts) + req_exportAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_exportAccounts.newBuilder() to construct. + private req_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_exportAccounts() { + keyFile_ = java.util.Collections.emptyList(); + } - public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_exportAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keyFile_.add( + input.readMessage(org.aion.api.server.pb.Message.t_Key.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getBlockDetailsByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getBlockDetailsByRange(input, extensionRegistry); - } - }; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_exportAccounts.class, org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int KEYFILE_FIELD_NUMBER = 1; + private java.util.List keyFile_; + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public java.util.List getKeyFileList() { + return keyFile_; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public java.util.List + getKeyFileOrBuilderList() { + return keyFile_; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public int getKeyFileCount() { + return keyFile_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { + return keyFile_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder( + int index) { + return keyFile_.get(index); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public org.aion.api.server.pb.Message.req_getBlockDetailsByRange - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; } - public interface rsp_getBlockDetailsByRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - com.google.protobuf.MessageOrBuilder { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < keyFile_.size(); i++) { + output.writeMessage(1, keyFile_.get(i)); + } + unknownFields.writeTo(output); + } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - java.util.List getBlkDetailsList(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - int getBlkDetailsCount(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - java.util.List - getBlkDetailsOrBuilderList(); - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder(int index); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < keyFile_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keyFile_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} */ - public static final class rsp_getBlockDetailsByRange - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - rsp_getBlockDetailsByRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getBlockDetailsByRange.newBuilder() to construct. - private rsp_getBlockDetailsByRange( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getBlockDetailsByRange() { - blkDetails_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_exportAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_exportAccounts other = (org.aion.api.server.pb.Message.req_exportAccounts) obj; + + boolean result = true; + result = result && getKeyFileList() + .equals(other.getKeyFileList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeyFileCount() > 0) { + hash = (37 * hash) + KEYFILE_FIELD_NUMBER; + hash = (53 * hash) + getKeyFileList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - private rsp_getBlockDetailsByRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = - new java.util.ArrayList< - org.aion.api.server.pb.Message.t_BlockDetail>(); - mutable_bitField0_ |= 0x00000001; - } - blkDetails_.add( - input.readMessage( - org.aion.api.server.pb.Message.t_BlockDetail - .parser(), - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_exportAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - .Builder - .class); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_exportAccounts} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_exportAccounts) + org.aion.api.server.pb.Message.req_exportAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_exportAccounts.class, org.aion.api.server.pb.Message.req_exportAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_exportAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getKeyFileFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (keyFileBuilder_ == null) { + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + keyFileBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_exportAccounts build() { + org.aion.api.server.pb.Message.req_exportAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_exportAccounts buildPartial() { + org.aion.api.server.pb.Message.req_exportAccounts result = new org.aion.api.server.pb.Message.req_exportAccounts(this); + int from_bitField0_ = bitField0_; + if (keyFileBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keyFile_ = keyFile_; + } else { + result.keyFile_ = keyFileBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_exportAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.req_exportAccounts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_exportAccounts other) { + if (other == org.aion.api.server.pb.Message.req_exportAccounts.getDefaultInstance()) return this; + if (keyFileBuilder_ == null) { + if (!other.keyFile_.isEmpty()) { + if (keyFile_.isEmpty()) { + keyFile_ = other.keyFile_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeyFileIsMutable(); + keyFile_.addAll(other.keyFile_); + } + onChanged(); + } + } else { + if (!other.keyFile_.isEmpty()) { + if (keyFileBuilder_.isEmpty()) { + keyFileBuilder_.dispose(); + keyFileBuilder_ = null; + keyFile_ = other.keyFile_; + bitField0_ = (bitField0_ & ~0x00000001); + keyFileBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeyFileFieldBuilder() : null; + } else { + keyFileBuilder_.addAllMessages(other.keyFile_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_exportAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_exportAccounts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List keyFile_ = + java.util.Collections.emptyList(); + private void ensureKeyFileIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = new java.util.ArrayList(keyFile_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Key, org.aion.api.server.pb.Message.t_Key.Builder, org.aion.api.server.pb.Message.t_KeyOrBuilder> keyFileBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public java.util.List getKeyFileList() { + if (keyFileBuilder_ == null) { + return java.util.Collections.unmodifiableList(keyFile_); + } else { + return keyFileBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public int getKeyFileCount() { + if (keyFileBuilder_ == null) { + return keyFile_.size(); + } else { + return keyFileBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public org.aion.api.server.pb.Message.t_Key getKeyFile(int index) { + if (keyFileBuilder_ == null) { + return keyFile_.get(index); + } else { + return keyFileBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder setKeyFile( + int index, org.aion.api.server.pb.Message.t_Key value) { + if (keyFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.set(index, value); + onChanged(); + } else { + keyFileBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder setKeyFile( + int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.set(index, builderForValue.build()); + onChanged(); + } else { + keyFileBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder addKeyFile(org.aion.api.server.pb.Message.t_Key value) { + if (keyFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.add(value); + onChanged(); + } else { + keyFileBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder addKeyFile( + int index, org.aion.api.server.pb.Message.t_Key value) { + if (keyFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.add(index, value); + onChanged(); + } else { + keyFileBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder addKeyFile( + org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.add(builderForValue.build()); + onChanged(); + } else { + keyFileBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder addKeyFile( + int index, org.aion.api.server.pb.Message.t_Key.Builder builderForValue) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.add(index, builderForValue.build()); + onChanged(); + } else { + keyFileBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder addAllKeyFile( + java.lang.Iterable values) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keyFile_); + onChanged(); + } else { + keyFileBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder clearKeyFile() { + if (keyFileBuilder_ == null) { + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keyFileBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public Builder removeKeyFile(int index) { + if (keyFileBuilder_ == null) { + ensureKeyFileIsMutable(); + keyFile_.remove(index); + onChanged(); + } else { + keyFileBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public org.aion.api.server.pb.Message.t_Key.Builder getKeyFileBuilder( + int index) { + return getKeyFileFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public org.aion.api.server.pb.Message.t_KeyOrBuilder getKeyFileOrBuilder( + int index) { + if (keyFileBuilder_ == null) { + return keyFile_.get(index); } else { + return keyFileBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public java.util.List + getKeyFileOrBuilderList() { + if (keyFileBuilder_ != null) { + return keyFileBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keyFile_); + } + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder() { + return getKeyFileFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder( + int index) { + return getKeyFileFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_Key.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Key keyFile = 1; + */ + public java.util.List + getKeyFileBuilderList() { + return getKeyFileFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Key, org.aion.api.server.pb.Message.t_Key.Builder, org.aion.api.server.pb.Message.t_KeyOrBuilder> + getKeyFileFieldBuilder() { + if (keyFileBuilder_ == null) { + keyFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Key, org.aion.api.server.pb.Message.t_Key.Builder, org.aion.api.server.pb.Message.t_KeyOrBuilder>( + keyFile_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + keyFile_ = null; + } + return keyFileBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_exportAccounts) + } - public static final int BLKDETAILS_FIELD_NUMBER = 1; - private java.util.List blkDetails_; - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List getBlkDetailsList() { - return blkDetails_; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsOrBuilderList() { - return blkDetails_; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public int getBlkDetailsCount() { - return blkDetails_.size(); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - return blkDetails_.get(index); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - return blkDetails_.get(index); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_exportAccounts) + private static final org.aion.api.server.pb.Message.req_exportAccounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_exportAccounts(); + } - private byte memoizedIsInitialized = -1; + public static org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_exportAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_exportAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < blkDetails_.size(); i++) { - output.writeMessage(1, blkDetails_.get(i)); - } - unknownFields.writeTo(output); - } + public org.aion.api.server.pb.Message.req_exportAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + } + + public interface rsp_exportAccountsOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_exportAccounts) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes keyFile = 1; + */ + java.util.List getKeyFileList(); + /** + * repeated bytes keyFile = 1; + */ + int getKeyFileCount(); + /** + * repeated bytes keyFile = 1; + */ + com.google.protobuf.ByteString getKeyFile(int index); + + /** + * repeated bytes failedKey = 2; + */ + java.util.List getFailedKeyList(); + /** + * repeated bytes failedKey = 2; + */ + int getFailedKeyCount(); + /** + * repeated bytes failedKey = 2; + */ + com.google.protobuf.ByteString getFailedKey(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} + */ + public static final class rsp_exportAccounts extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_exportAccounts) + rsp_exportAccountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_exportAccounts.newBuilder() to construct. + private rsp_exportAccounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_exportAccounts() { + keyFile_ = java.util.Collections.emptyList(); + failedKey_ = java.util.Collections.emptyList(); + } - size = 0; - for (int i = 0; i < blkDetails_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, blkDetails_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_exportAccounts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keyFile_.add(input.readBytes()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + failedKey_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = java.util.Collections.unmodifiableList(failedKey_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other = - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) obj; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_exportAccounts.class, org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); + } - boolean result = true; - result = result && getBlkDetailsList().equals(other.getBlkDetailsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static final int KEYFILE_FIELD_NUMBER = 1; + private java.util.List keyFile_; + /** + * repeated bytes keyFile = 1; + */ + public java.util.List + getKeyFileList() { + return keyFile_; + } + /** + * repeated bytes keyFile = 1; + */ + public int getKeyFileCount() { + return keyFile_.size(); + } + /** + * repeated bytes keyFile = 1; + */ + public com.google.protobuf.ByteString getKeyFile(int index) { + return keyFile_.get(index); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBlkDetailsCount() > 0) { - hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; - hash = (53 * hash) + getBlkDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static final int FAILEDKEY_FIELD_NUMBER = 2; + private java.util.List failedKey_; + /** + * repeated bytes failedKey = 2; + */ + public java.util.List + getFailedKeyList() { + return failedKey_; + } + /** + * repeated bytes failedKey = 2; + */ + public int getFailedKeyCount() { + return failedKey_.size(); + } + /** + * repeated bytes failedKey = 2; + */ + public com.google.protobuf.ByteString getFailedKey(int index) { + return failedKey_.get(index); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < keyFile_.size(); i++) { + output.writeBytes(1, keyFile_.get(i)); + } + for (int i = 0; i < failedKey_.size(); i++) { + output.writeBytes(2, failedKey_.get(i)); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < keyFile_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(keyFile_.get(i)); + } + size += dataSize; + size += 1 * getKeyFileList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < failedKey_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(failedKey_.get(i)); + } + size += dataSize; + size += 1 * getFailedKeyList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_exportAccounts)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_exportAccounts other = (org.aion.api.server.pb.Message.rsp_exportAccounts) obj; + + boolean result = true; + result = result && getKeyFileList() + .equals(other.getKeyFileList()); + result = result && getFailedKeyList() + .equals(other.getFailedKeyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeyFileCount() > 0) { + hash = (37 * hash) + KEYFILE_FIELD_NUMBER; + hash = (53 * hash) + getKeyFileList().hashCode(); + } + if (getFailedKeyCount() > 0) { + hash = (37 * hash) + FAILEDKEY_FIELD_NUMBER; + hash = (53 * hash) + getFailedKeyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_exportAccounts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_exportAccounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_exportAccounts} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_exportAccounts) + org.aion.api.server.pb.Message.rsp_exportAccountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_exportAccounts.class, org.aion.api.server.pb.Message.rsp_exportAccounts.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_exportAccounts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + failedKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_exportAccounts build() { + org.aion.api.server.pb.Message.rsp_exportAccounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_exportAccounts buildPartial() { + org.aion.api.server.pb.Message.rsp_exportAccounts result = new org.aion.api.server.pb.Message.rsp_exportAccounts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = java.util.Collections.unmodifiableList(keyFile_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keyFile_ = keyFile_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = java.util.Collections.unmodifiableList(failedKey_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.failedKey_ = failedKey_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_exportAccounts) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_exportAccounts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_exportAccounts other) { + if (other == org.aion.api.server.pb.Message.rsp_exportAccounts.getDefaultInstance()) return this; + if (!other.keyFile_.isEmpty()) { + if (keyFile_.isEmpty()) { + keyFile_ = other.keyFile_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeyFileIsMutable(); + keyFile_.addAll(other.keyFile_); + } + onChanged(); + } + if (!other.failedKey_.isEmpty()) { + if (failedKey_.isEmpty()) { + failedKey_ = other.failedKey_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFailedKeyIsMutable(); + failedKey_.addAll(other.failedKey_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_exportAccounts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_exportAccounts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List keyFile_ = java.util.Collections.emptyList(); + private void ensureKeyFileIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + keyFile_ = new java.util.ArrayList(keyFile_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated bytes keyFile = 1; + */ + public java.util.List + getKeyFileList() { + return java.util.Collections.unmodifiableList(keyFile_); + } + /** + * repeated bytes keyFile = 1; + */ + public int getKeyFileCount() { + return keyFile_.size(); + } + /** + * repeated bytes keyFile = 1; + */ + public com.google.protobuf.ByteString getKeyFile(int index) { + return keyFile_.get(index); + } + /** + * repeated bytes keyFile = 1; + */ + public Builder setKeyFile( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes keyFile = 1; + */ + public Builder addKeyFile(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeyFileIsMutable(); + keyFile_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes keyFile = 1; + */ + public Builder addAllKeyFile( + java.lang.Iterable values) { + ensureKeyFileIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keyFile_); + onChanged(); + return this; + } + /** + * repeated bytes keyFile = 1; + */ + public Builder clearKeyFile() { + keyFile_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List failedKey_ = java.util.Collections.emptyList(); + private void ensureFailedKeyIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + failedKey_ = new java.util.ArrayList(failedKey_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated bytes failedKey = 2; + */ + public java.util.List + getFailedKeyList() { + return java.util.Collections.unmodifiableList(failedKey_); + } + /** + * repeated bytes failedKey = 2; + */ + public int getFailedKeyCount() { + return failedKey_.size(); + } + /** + * repeated bytes failedKey = 2; + */ + public com.google.protobuf.ByteString getFailedKey(int index) { + return failedKey_.get(index); + } + /** + * repeated bytes failedKey = 2; + */ + public Builder setFailedKey( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedKeyIsMutable(); + failedKey_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes failedKey = 2; + */ + public Builder addFailedKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFailedKeyIsMutable(); + failedKey_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes failedKey = 2; + */ + public Builder addAllFailedKey( + java.lang.Iterable values) { + ensureFailedKeyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failedKey_); + onChanged(); + return this; + } + /** + * repeated bytes failedKey = 2; + */ + public Builder clearFailedKey() { + failedKey_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_exportAccounts) + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_exportAccounts) + private static final org.aion.api.server.pb.Message.rsp_exportAccounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_exportAccounts(); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_exportAccounts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_exportAccounts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public org.aion.api.server.pb.Message.rsp_exportAccounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + } + + public interface rsp_getCurrentTotalDifficultyOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes totalDiff = 1; + */ + com.google.protobuf.ByteString getTotalDiff(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} + */ + public static final class rsp_getCurrentTotalDifficulty extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + rsp_getCurrentTotalDifficultyOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getCurrentTotalDifficulty.newBuilder() to construct. + private rsp_getCurrentTotalDifficulty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getCurrentTotalDifficulty() { + totalDiff_ = com.google.protobuf.ByteString.EMPTY; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getCurrentTotalDifficulty( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + totalDiff_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.Builder.class); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - .Builder - .class); - } + public static final int TOTALDIFF_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString totalDiff_; + /** + * bytes totalDiff = 1; + */ + public com.google.protobuf.ByteString getTotalDiff() { + return totalDiff_; + } - // Construct using - // org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + memoizedIsInitialized = 1; + return true; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlkDetailsFieldBuilder(); - } - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!totalDiff_.isEmpty()) { + output.writeBytes(1, totalDiff_); + } + unknownFields.writeTo(output); + } - public Builder clear() { - super.clear(); - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!totalDiff_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, totalDiff_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other = (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) obj; + + boolean result = true; + result = result && getTotalDiff() + .equals(other.getTotalDiff()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - .getDefaultInstance(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTALDIFF_FIELD_NUMBER; + hash = (53 * hash) + getTotalDiff().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange build() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange buildPartial() { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = - new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(this); - int from_bitField0_ = bitField0_; - if (blkDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.blkDetails_ = blkDetails_; - } else { - result.blkDetails_ = blkDetailsBuilder_.build(); - } - onBuilt(); - return result; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getCurrentTotalDifficulty} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficultyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.class, org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + totalDiff_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty build() { + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty buildPartial() { + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty result = new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(this); + result.totalDiff_ = totalDiff_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty other) { + if (other == org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty.getDefaultInstance()) return this; + if (other.getTotalDiff() != com.google.protobuf.ByteString.EMPTY) { + setTotalDiff(other.getTotalDiff()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString totalDiff_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes totalDiff = 1; + */ + public com.google.protobuf.ByteString getTotalDiff() { + return totalDiff_; + } + /** + * bytes totalDiff = 1; + */ + public Builder setTotalDiff(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + totalDiff_ = value; + onChanged(); + return this; + } + /** + * bytes totalDiff = 1; + */ + public Builder clearTotalDiff() { + + totalDiff_ = getDefaultInstance().getTotalDiff(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getCurrentTotalDifficulty) + private static final org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty(); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public static org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getCurrentTotalDifficulty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getCurrentTotalDifficulty(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public org.aion.api.server.pb.Message.rsp_getCurrentTotalDifficulty getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) { - return mergeFrom( - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) other); - } else { - super.mergeFrom(other); - return this; - } - } + } + + public interface req_getBlockDetailsByNumberOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByNumber) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated uint64 blkNumbers = 1; + */ + java.util.List getBlkNumbersList(); + /** + * repeated uint64 blkNumbers = 1; + */ + int getBlkNumbersCount(); + /** + * repeated uint64 blkNumbers = 1; + */ + long getBlkNumbers(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} + */ + public static final class req_getBlockDetailsByNumber extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) + req_getBlockDetailsByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockDetailsByNumber.newBuilder() to construct. + private req_getBlockDetailsByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockDetailsByNumber() { + blkNumbers_ = java.util.Collections.emptyList(); + } - public Builder mergeFrom( - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other) { - if (other - == org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - .getDefaultInstance()) return this; - if (blkDetailsBuilder_ == null) { - if (!other.blkDetails_.isEmpty()) { - if (blkDetails_.isEmpty()) { - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBlkDetailsIsMutable(); - blkDetails_.addAll(other.blkDetails_); - } - onChanged(); - } - } else { - if (!other.blkDetails_.isEmpty()) { - if (blkDetailsBuilder_.isEmpty()) { - blkDetailsBuilder_.dispose(); - blkDetailsBuilder_ = null; - blkDetails_ = other.blkDetails_; - bitField0_ = (bitField0_ & ~0x00000001); - blkDetailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlkDetailsFieldBuilder() - : null; - } else { - blkDetailsBuilder_.addAllMessages(other.blkDetails_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockDetailsByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blkNumbers_.add(input.readUInt64()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + blkNumbers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + blkNumbers_.add(input.readUInt64()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + } - public final boolean isInitialized() { - return true; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.Builder.class); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public static final int BLKNUMBERS_FIELD_NUMBER = 1; + private java.util.List blkNumbers_; + /** + * repeated uint64 blkNumbers = 1; + */ + public java.util.List + getBlkNumbersList() { + return blkNumbers_; + } + /** + * repeated uint64 blkNumbers = 1; + */ + public int getBlkNumbersCount() { + return blkNumbers_.size(); + } + /** + * repeated uint64 blkNumbers = 1; + */ + public long getBlkNumbers(int index) { + return blkNumbers_.get(index); + } + private int blkNumbersMemoizedSerializedSize = -1; - private int bitField0_; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private java.util.List blkDetails_ = - java.util.Collections.emptyList(); + memoizedIsInitialized = 1; + return true; + } - private void ensureBlkDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - blkDetails_ = - new java.util.ArrayList( - blkDetails_); - bitField0_ |= 0x00000001; - } - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getBlkNumbersList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(blkNumbersMemoizedSerializedSize); + } + for (int i = 0; i < blkNumbers_.size(); i++) { + output.writeUInt64NoTag(blkNumbers_.get(i)); + } + unknownFields.writeTo(output); + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - blkDetailsBuilder_; - - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsList() { - if (blkDetailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(blkDetails_); - } else { - return blkDetailsBuilder_.getMessageList(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public int getBlkDetailsCount() { - if (blkDetailsBuilder_ == null) { - return blkDetails_.size(); - } else { - return blkDetailsBuilder_.getCount(); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessage(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder setBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, value); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder setBlkDetails( - int index, - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.set(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - int index, org.aion.api.server.pb.Message.t_BlockDetail value) { - if (blkDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, value); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, value); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addBlkDetails( - int index, - org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.add(index, builderForValue.build()); - onChanged(); - } else { - blkDetailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder addAllBlkDetails( - java.lang.Iterable - values) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blkDetails_); - onChanged(); - } else { - blkDetailsBuilder_.addAllMessages(values); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder clearBlkDetails() { - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkDetailsBuilder_.clear(); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public Builder removeBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.remove(index); - onChanged(); - } else { - blkDetailsBuilder_.remove(index); - } - return this; - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder().getBuilder(index); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( - int index) { - if (blkDetailsBuilder_ == null) { - return blkDetails_.get(index); - } else { - return blkDetailsBuilder_.getMessageOrBuilder(index); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsOrBuilderList() { - if (blkDetailsBuilder_ != null) { - return blkDetailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(blkDetails_); - } - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { - return getBlkDetailsFieldBuilder() - .addBuilder( - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( - int index) { - return getBlkDetailsFieldBuilder() - .addBuilder( - index, - org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); - } - /** repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; */ - public java.util.List - getBlkDetailsBuilderList() { - return getBlkDetailsFieldBuilder().getBuilderList(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < blkNumbers_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(blkNumbers_.get(i)); + } + size += dataSize; + if (!getBlkNumbersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + blkNumbersMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> - getBlkDetailsFieldBuilder() { - if (blkDetailsBuilder_ == null) { - blkDetailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - org.aion.api.server.pb.Message.t_BlockDetail, - org.aion.api.server.pb.Message.t_BlockDetail.Builder, - org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( - blkDetails_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - blkDetails_ = null; - } - return blkDetailsBuilder_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other = (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) obj; + + boolean result = true; + result = result && getBlkNumbersList() + .equals(other.getBlkNumbersList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkNumbersCount() > 0) { + hash = (37 * hash) + BLKNUMBERS_FIELD_NUMBER; + hash = (53 * hash) + getBlkNumbersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockDetailsByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) - private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - DEFAULT_INSTANCE; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByNumber} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByNumber) + org.aion.api.server.pb.Message.req_getBlockDetailsByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blkNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber build() { + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber buildPartial() { + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber result = new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkNumbers_ = blkNumbers_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockDetailsByNumber)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByNumber other) { + if (other == org.aion.api.server.pb.Message.req_getBlockDetailsByNumber.getDefaultInstance()) return this; + if (!other.blkNumbers_.isEmpty()) { + if (blkNumbers_.isEmpty()) { + blkNumbers_ = other.blkNumbers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkNumbersIsMutable(); + blkNumbers_.addAll(other.blkNumbers_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockDetailsByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockDetailsByNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blkNumbers_ = java.util.Collections.emptyList(); + private void ensureBlkNumbersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkNumbers_ = new java.util.ArrayList(blkNumbers_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated uint64 blkNumbers = 1; + */ + public java.util.List + getBlkNumbersList() { + return java.util.Collections.unmodifiableList(blkNumbers_); + } + /** + * repeated uint64 blkNumbers = 1; + */ + public int getBlkNumbersCount() { + return blkNumbers_.size(); + } + /** + * repeated uint64 blkNumbers = 1; + */ + public long getBlkNumbers(int index) { + return blkNumbers_.get(index); + } + /** + * repeated uint64 blkNumbers = 1; + */ + public Builder setBlkNumbers( + int index, long value) { + ensureBlkNumbersIsMutable(); + blkNumbers_.set(index, value); + onChanged(); + return this; + } + /** + * repeated uint64 blkNumbers = 1; + */ + public Builder addBlkNumbers(long value) { + ensureBlkNumbersIsMutable(); + blkNumbers_.add(value); + onChanged(); + return this; + } + /** + * repeated uint64 blkNumbers = 1; + */ + public Builder addAllBlkNumbers( + java.lang.Iterable values) { + ensureBlkNumbersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blkNumbers_); + onChanged(); + return this; + } + /** + * repeated uint64 blkNumbers = 1; + */ + public Builder clearBlkNumbers() { + blkNumbers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByNumber) + private static final org.aion.api.server.pb.Message.req_getBlockDetailsByNumber DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByNumber(); + } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getBlockDetailsByRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getBlockDetailsByRange(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockDetailsByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockDetailsByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + } + + public interface rsp_getBlockDetailsByNumberOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + java.util.List + getBlkDetailsList(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + int getBlkDetailsCount(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + java.util.List + getBlkDetailsOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} + */ + public static final class rsp_getBlockDetailsByNumber extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + rsp_getBlockDetailsByNumberOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockDetailsByNumber.newBuilder() to construct. + private rsp_getBlockDetailsByNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlockDetailsByNumber() { + blkDetails_ = java.util.Collections.emptyList(); } - public interface req_getNonceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNonce) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlockDetailsByNumber( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blkDetails_.add( + input.readMessage(org.aion.api.server.pb.Message.t_BlockDetail.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + } - /** bytes address = 1; */ - com.google.protobuf.ByteString getAddress(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.Builder.class); } - /** Protobuf type {@code org.aion.api.server.pb.req_getNonce} */ - public static final class req_getNonce extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNonce) - req_getNonceOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getNonce.newBuilder() to construct. - private req_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private req_getNonce() { - address_ = com.google.protobuf.ByteString.EMPTY; - } + public static final int BLKDETAILS_FIELD_NUMBER = 1; + private java.util.List blkDetails_; + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List getBlkDetailsList() { + return blkDetails_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsOrBuilderList() { + return blkDetails_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public int getBlkDetailsCount() { + return blkDetails_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + return blkDetails_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + return blkDetails_.get(index); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private req_getNonce( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - address_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + memoizedIsInitialized = 1; + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkDetails_.size(); i++) { + output.writeMessage(1, blkDetails_.get(i)); + } + unknownFields.writeTo(output); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNonce.class, - org.aion.api.server.pb.Message.req_getNonce.Builder.class); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blkDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blkDetails_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int ADDRESS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString address_; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) obj; + + boolean result = true; + result = result && getBlkDetailsList() + .equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkDetailsCount() > 0) { + hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBlkDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!address_.isEmpty()) { - output.writeBytes(1, address_); - } - unknownFields.writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByNumber} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlkDetailsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber build() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber result = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(this); + int from_bitField0_ = bitField0_; + if (blkDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkDetails_ = blkDetails_; + } else { + result.blkDetails_ = blkDetailsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber.getDefaultInstance()) return this; + if (blkDetailsBuilder_ == null) { + if (!other.blkDetails_.isEmpty()) { + if (blkDetails_.isEmpty()) { + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkDetailsIsMutable(); + blkDetails_.addAll(other.blkDetails_); + } + onChanged(); + } + } else { + if (!other.blkDetails_.isEmpty()) { + if (blkDetailsBuilder_.isEmpty()) { + blkDetailsBuilder_.dispose(); + blkDetailsBuilder_ = null; + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + blkDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlkDetailsFieldBuilder() : null; + } else { + blkDetailsBuilder_.addAllMessages(other.blkDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blkDetails_ = + java.util.Collections.emptyList(); + private void ensureBlkDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = new java.util.ArrayList(blkDetails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> blkDetailsBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List getBlkDetailsList() { + if (blkDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkDetails_); + } else { + return blkDetailsBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public int getBlkDetailsCount() { + if (blkDetailsBuilder_ == null) { + return blkDetails_.size(); + } else { + return blkDetailsBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, value); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addAllBlkDetails( + java.lang.Iterable values) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blkDetails_); + onChanged(); + } else { + blkDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder clearBlkDetails() { + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder removeBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.remove(index); + onChanged(); + } else { + blkDetailsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); } else { + return blkDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsOrBuilderList() { + if (blkDetailsBuilder_ != null) { + return blkDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkDetails_); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { + return getBlkDetailsFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsBuilderList() { + return getBlkDetailsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + getBlkDetailsFieldBuilder() { + if (blkDetailsBuilder_ == null) { + blkDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( + blkDetails_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkDetails_ = null; + } + return blkDetailsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByNumber) + private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber(); + } - size = 0; - if (!address_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, address_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getNonce)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getNonce other = - (org.aion.api.server.pb.Message.req_getNonce) obj; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlockDetailsByNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockDetailsByNumber(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - boolean result = true; - result = result && getAddress().equals(other.getAddress()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByNumber getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + } + + public interface req_getBlockDetailsByLatestOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByLatest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 count = 1; + */ + long getCount(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} + */ + public static final class req_getBlockDetailsByLatest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) + req_getBlockDetailsByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockDetailsByLatest.newBuilder() to construct. + private req_getBlockDetailsByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockDetailsByLatest() { + count_ = 0L; + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockDetailsByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + count_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.Builder.class); + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int COUNT_FIELD_NUMBER = 1; + private long count_; + /** + * uint64 count = 1; + */ + public long getCount() { + return count_; + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (count_ != 0L) { + output.writeUInt64(1, count_); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other = (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) obj; + + boolean result = true; + result = result && (getCount() + == other.getCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getNonce parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockDetailsByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByLatest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByLatest) + org.aion.api.server.pb.Message.req_getBlockDetailsByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + count_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest build() { + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest buildPartial() { + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest result = new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(this); + result.count_ = count_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockDetailsByLatest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByLatest other) { + if (other == org.aion.api.server.pb.Message.req_getBlockDetailsByLatest.getDefaultInstance()) return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockDetailsByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockDetailsByLatest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long count_ ; + /** + * uint64 count = 1; + */ + public long getCount() { + return count_; + } + /** + * uint64 count = 1; + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint64 count = 1; + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByLatest) + private static final org.aion.api.server.pb.Message.req_getBlockDetailsByLatest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByLatest(); + } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNonce prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByLatest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockDetailsByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockDetailsByLatest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getNonce} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNonce) - org.aion.api.server.pb.Message.req_getNonceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNonce.class, - org.aion.api.server.pb.Message.req_getNonce.Builder.class); - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByLatest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - // Construct using org.aion.api.server.pb.Message.req_getNonce.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + } + + public interface rsp_getBlockDetailsByLatestOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + java.util.List + getBlkDetailsList(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + int getBlkDetailsCount(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + java.util.List + getBlkDetailsOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} + */ + public static final class rsp_getBlockDetailsByLatest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + rsp_getBlockDetailsByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockDetailsByLatest.newBuilder() to construct. + private rsp_getBlockDetailsByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlockDetailsByLatest() { + blkDetails_ = java.util.Collections.emptyList(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlockDetailsByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blkDetails_.add( + input.readMessage(org.aion.api.server.pb.Message.t_BlockDetail.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.Builder.class); + } - public Builder clear() { - super.clear(); - address_ = com.google.protobuf.ByteString.EMPTY; + public static final int BLKDETAILS_FIELD_NUMBER = 1; + private java.util.List blkDetails_; + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List getBlkDetailsList() { + return blkDetails_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsOrBuilderList() { + return blkDetails_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public int getBlkDetailsCount() { + return blkDetails_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + return blkDetails_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + return blkDetails_.get(index); + } - return this; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkDetails_.size(); i++) { + output.writeMessage(1, blkDetails_.get(i)); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.req_getNonce build() { - org.aion.api.server.pb.Message.req_getNonce result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blkDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blkDetails_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public org.aion.api.server.pb.Message.req_getNonce buildPartial() { - org.aion.api.server.pb.Message.req_getNonce result = - new org.aion.api.server.pb.Message.req_getNonce(this); - result.address_ = address_; - onBuilt(); - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) obj; + + boolean result = true; + result = result && getBlkDetailsList() + .equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder clone() { - return (Builder) super.clone(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkDetailsCount() > 0) { + hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBlkDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByLatest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlkDetailsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest build() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest result = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(this); + int from_bitField0_ = bitField0_; + if (blkDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkDetails_ = blkDetails_; + } else { + result.blkDetails_ = blkDetailsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest.getDefaultInstance()) return this; + if (blkDetailsBuilder_ == null) { + if (!other.blkDetails_.isEmpty()) { + if (blkDetails_.isEmpty()) { + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkDetailsIsMutable(); + blkDetails_.addAll(other.blkDetails_); + } + onChanged(); + } + } else { + if (!other.blkDetails_.isEmpty()) { + if (blkDetailsBuilder_.isEmpty()) { + blkDetailsBuilder_.dispose(); + blkDetailsBuilder_ = null; + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + blkDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlkDetailsFieldBuilder() : null; + } else { + blkDetailsBuilder_.addAllMessages(other.blkDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blkDetails_ = + java.util.Collections.emptyList(); + private void ensureBlkDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = new java.util.ArrayList(blkDetails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> blkDetailsBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List getBlkDetailsList() { + if (blkDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkDetails_); + } else { + return blkDetailsBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public int getBlkDetailsCount() { + if (blkDetailsBuilder_ == null) { + return blkDetails_.size(); + } else { + return blkDetailsBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, value); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addAllBlkDetails( + java.lang.Iterable values) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blkDetails_); + onChanged(); + } else { + blkDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder clearBlkDetails() { + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder removeBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.remove(index); + onChanged(); + } else { + blkDetailsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); } else { + return blkDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsOrBuilderList() { + if (blkDetailsBuilder_ != null) { + return blkDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkDetails_); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { + return getBlkDetailsFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsBuilderList() { + return getBlkDetailsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + getBlkDetailsFieldBuilder() { + if (blkDetailsBuilder_ == null) { + blkDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( + blkDetails_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkDetails_ = null; + } + return blkDetailsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByLatest) + private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest(); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getNonce) { - return mergeFrom((org.aion.api.server.pb.Message.req_getNonce) other); - } else { - super.mergeFrom(other); - return this; - } - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlockDetailsByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockDetailsByLatest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNonce other) { - if (other == org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance()) - return this; - if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { - setAddress(other.getAddress()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public final boolean isInitialized() { - return true; - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByLatest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getNonce parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getNonce) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + } + + public interface req_getBlocksByLatestOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlocksByLatest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 count = 1; + */ + long getCount(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} + */ + public static final class req_getBlocksByLatest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlocksByLatest) + req_getBlocksByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlocksByLatest.newBuilder() to construct. + private req_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlocksByLatest() { + count_ = 0L; + } - private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; - /** bytes address = 1; */ - public com.google.protobuf.ByteString getAddress() { - return address_; - } - /** bytes address = 1; */ - public Builder setAddress(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - address_ = value; - onChanged(); - return this; - } - /** bytes address = 1; */ - public Builder clearAddress() { + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlocksByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + count_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + } - address_ = getDefaultInstance().getAddress(); - onChanged(); - return this; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlocksByLatest.class, org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + public static final int COUNT_FIELD_NUMBER = 1; + private long count_; + /** + * uint64 count = 1; + */ + public long getCount() { + return count_; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNonce) - } + memoizedIsInitialized = 1; + return true; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNonce) - private static final org.aion.api.server.pb.Message.req_getNonce DEFAULT_INSTANCE; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (count_ != 0L) { + output.writeUInt64(1, count_); + } + unknownFields.writeTo(output); + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNonce(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getNonce getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlocksByLatest other = (org.aion.api.server.pb.Message.req_getBlocksByLatest) obj; + + boolean result = true; + result = result && (getCount() + == other.getCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getNonce parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getNonce(input, extensionRegistry); - } - }; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlocksByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlocksByLatest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlocksByLatest) + org.aion.api.server.pb.Message.req_getBlocksByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlocksByLatest.class, org.aion.api.server.pb.Message.req_getBlocksByLatest.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlocksByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + count_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlocksByLatest.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlocksByLatest build() { + org.aion.api.server.pb.Message.req_getBlocksByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlocksByLatest buildPartial() { + org.aion.api.server.pb.Message.req_getBlocksByLatest result = new org.aion.api.server.pb.Message.req_getBlocksByLatest(this); + result.count_ = count_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlocksByLatest) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlocksByLatest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlocksByLatest other) { + if (other == org.aion.api.server.pb.Message.req_getBlocksByLatest.getDefaultInstance()) return this; + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlocksByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlocksByLatest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long count_ ; + /** + * uint64 count = 1; + */ + public long getCount() { + return count_; + } + /** + * uint64 count = 1; + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint64 count = 1; + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlocksByLatest) } - public interface rsp_getNonceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNonce) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlocksByLatest) + private static final org.aion.api.server.pb.Message.req_getBlocksByLatest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlocksByLatest(); + } - /** bytes nonce = 1; */ - com.google.protobuf.ByteString getNonce(); + public static org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstance() { + return DEFAULT_INSTANCE; } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} */ - public static final class rsp_getNonce extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNonce) - rsp_getNonceOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getNonce.newBuilder() to construct. - private rsp_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getNonce() { - nonce_ = com.google.protobuf.ByteString.EMPTY; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlocksByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlocksByLatest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - private rsp_getNonce( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: - { - nonce_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public org.aion.api.server.pb.Message.req_getBlocksByLatest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - } + } + + public interface rsp_getBlocksByLatestOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlocksByLatest) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + java.util.List + getBlksList(); + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + org.aion.api.server.pb.Message.t_Block getBlks(int index); + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + int getBlksCount(); + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + java.util.List + getBlksOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} + */ + public static final class rsp_getBlocksByLatest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) + rsp_getBlocksByLatestOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlocksByLatest.newBuilder() to construct. + private rsp_getBlocksByLatest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlocksByLatest() { + blks_ = java.util.Collections.emptyList(); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNonce.class, - org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlocksByLatest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blks_.add( + input.readMessage(org.aion.api.server.pb.Message.t_Block.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = java.util.Collections.unmodifiableList(blks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + } - public static final int NONCE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString nonce_; - /** bytes nonce = 1; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); + } - private byte memoizedIsInitialized = -1; + public static final int BLKS_FIELD_NUMBER = 1; + private java.util.List blks_; + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public java.util.List getBlksList() { + return blks_; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public java.util.List + getBlksOrBuilderList() { + return blks_; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public int getBlksCount() { + return blks_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public org.aion.api.server.pb.Message.t_Block getBlks(int index) { + return blks_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder( + int index) { + return blks_.get(index); + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - memoizedIsInitialized = 1; - return true; - } + memoizedIsInitialized = 1; + return true; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!nonce_.isEmpty()) { - output.writeBytes(1, nonce_); - } - unknownFields.writeTo(output); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blks_.size(); i++) { + output.writeMessage(1, blks_.get(i)); + } + unknownFields.writeTo(output); + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blks_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - size = 0; - if (!nonce_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, nonce_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlocksByLatest other = (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) obj; + + boolean result = true; + result = result && getBlksList() + .equals(other.getBlksList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNonce)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getNonce other = - (org.aion.api.server.pb.Message.rsp_getNonce) obj; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlksCount() > 0) { + hash = (37 * hash) + BLKS_FIELD_NUMBER; + hash = (53 * hash) + getBlksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - boolean result = true; - result = result && getNonce().equals(other.getNonce()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NONCE_FIELD_NUMBER; - hash = (53 * hash) + getNonce().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlocksByLatest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlocksByLatest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlocksByLatest) + org.aion.api.server.pb.Message.rsp_getBlocksByLatestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlocksByLatest.class, org.aion.api.server.pb.Message.rsp_getBlocksByLatest.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlocksByLatest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlksFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (blksBuilder_ == null) { + blks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blksBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlocksByLatest.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest build() { + org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlocksByLatest result = new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(this); + int from_bitField0_ = bitField0_; + if (blksBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = java.util.Collections.unmodifiableList(blks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blks_ = blks_; + } else { + result.blks_ = blksBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlocksByLatest) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlocksByLatest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlocksByLatest other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlocksByLatest.getDefaultInstance()) return this; + if (blksBuilder_ == null) { + if (!other.blks_.isEmpty()) { + if (blks_.isEmpty()) { + blks_ = other.blks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlksIsMutable(); + blks_.addAll(other.blks_); + } + onChanged(); + } + } else { + if (!other.blks_.isEmpty()) { + if (blksBuilder_.isEmpty()) { + blksBuilder_.dispose(); + blksBuilder_ = null; + blks_ = other.blks_; + bitField0_ = (bitField0_ & ~0x00000001); + blksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlksFieldBuilder() : null; + } else { + blksBuilder_.addAllMessages(other.blks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlocksByLatest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlocksByLatest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blks_ = + java.util.Collections.emptyList(); + private void ensureBlksIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blks_ = new java.util.ArrayList(blks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Block, org.aion.api.server.pb.Message.t_Block.Builder, org.aion.api.server.pb.Message.t_BlockOrBuilder> blksBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public java.util.List getBlksList() { + if (blksBuilder_ == null) { + return java.util.Collections.unmodifiableList(blks_); + } else { + return blksBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public int getBlksCount() { + if (blksBuilder_ == null) { + return blks_.size(); + } else { + return blksBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public org.aion.api.server.pb.Message.t_Block getBlks(int index) { + if (blksBuilder_ == null) { + return blks_.get(index); + } else { + return blksBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder setBlks( + int index, org.aion.api.server.pb.Message.t_Block value) { + if (blksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlksIsMutable(); + blks_.set(index, value); + onChanged(); + } else { + blksBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder setBlks( + int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.set(index, builderForValue.build()); + onChanged(); + } else { + blksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder addBlks(org.aion.api.server.pb.Message.t_Block value) { + if (blksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlksIsMutable(); + blks_.add(value); + onChanged(); + } else { + blksBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder addBlks( + int index, org.aion.api.server.pb.Message.t_Block value) { + if (blksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlksIsMutable(); + blks_.add(index, value); + onChanged(); + } else { + blksBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder addBlks( + org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.add(builderForValue.build()); + onChanged(); + } else { + blksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder addBlks( + int index, org.aion.api.server.pb.Message.t_Block.Builder builderForValue) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.add(index, builderForValue.build()); + onChanged(); + } else { + blksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder addAllBlks( + java.lang.Iterable values) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blks_); + onChanged(); + } else { + blksBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder clearBlks() { + if (blksBuilder_ == null) { + blks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blksBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public Builder removeBlks(int index) { + if (blksBuilder_ == null) { + ensureBlksIsMutable(); + blks_.remove(index); + onChanged(); + } else { + blksBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public org.aion.api.server.pb.Message.t_Block.Builder getBlksBuilder( + int index) { + return getBlksFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public org.aion.api.server.pb.Message.t_BlockOrBuilder getBlksOrBuilder( + int index) { + if (blksBuilder_ == null) { + return blks_.get(index); } else { + return blksBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public java.util.List + getBlksOrBuilderList() { + if (blksBuilder_ != null) { + return blksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blks_); + } + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder() { + return getBlksFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder( + int index) { + return getBlksFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_Block.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_Block blks = 1; + */ + public java.util.List + getBlksBuilderList() { + return getBlksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Block, org.aion.api.server.pb.Message.t_Block.Builder, org.aion.api.server.pb.Message.t_BlockOrBuilder> + getBlksFieldBuilder() { + if (blksBuilder_ == null) { + blksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_Block, org.aion.api.server.pb.Message.t_Block.Builder, org.aion.api.server.pb.Message.t_BlockOrBuilder>( + blks_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blks_ = null; + } + return blksBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlocksByLatest) + private static final org.aion.api.server.pb.Message.rsp_getBlocksByLatest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlocksByLatest(); + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlocksByLatest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlocksByLatest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public org.aion.api.server.pb.Message.rsp_getBlocksByLatest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + } + + public interface req_getAccountDetailsByAddressListOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes addresses = 1; + */ + java.util.List getAddressesList(); + /** + * repeated bytes addresses = 1; + */ + int getAddressesCount(); + /** + * repeated bytes addresses = 1; + */ + com.google.protobuf.ByteString getAddresses(int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} + */ + public static final class req_getAccountDetailsByAddressList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + req_getAccountDetailsByAddressListOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getAccountDetailsByAddressList.newBuilder() to construct. + private req_getAccountDetailsByAddressList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getAccountDetailsByAddressList() { + addresses_ = java.util.Collections.emptyList(); + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getAccountDetailsByAddressList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + addresses_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static final int ADDRESSES_FIELD_NUMBER = 1; + private java.util.List addresses_; + /** + * repeated bytes addresses = 1; + */ + public java.util.List + getAddressesList() { + return addresses_; + } + /** + * repeated bytes addresses = 1; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * repeated bytes addresses = 1; + */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public Builder newBuilderForType() { - return newBuilder(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < addresses_.size(); i++) { + output.writeBytes(1, addresses_.get(i)); + } + unknownFields.writeTo(output); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(addresses_.get(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNonce prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other = (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) obj; + + boolean result = true; + result = result && getAddressesList() + .equals(other.getAddressesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNonce) - org.aion.api.server.pb.Message.rsp_getNonceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNonce.class, - org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - // Construct using org.aion.api.server.pb.Message.rsp_getNonce.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getAccountDetailsByAddressList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + } + + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList build() { + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList buildPartial() { + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList result = new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = java.util.Collections.unmodifiableList(addresses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addresses_ = addresses_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) { + return mergeFrom((org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList other) { + if (other == org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList.getDefaultInstance()) return this; + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List addresses_ = java.util.Collections.emptyList(); + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = new java.util.ArrayList(addresses_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated bytes addresses = 1; + */ + public java.util.List + getAddressesList() { + return java.util.Collections.unmodifiableList(addresses_); + } + /** + * repeated bytes addresses = 1; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + * repeated bytes addresses = 1; + */ + public com.google.protobuf.ByteString getAddresses(int index) { + return addresses_.get(index); + } + /** + * repeated bytes addresses = 1; + */ + public Builder setAddresses( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes addresses = 1; + */ + public Builder addAddresses(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes addresses = 1; + */ + public Builder addAllAddresses( + java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, addresses_); + onChanged(); + return this; + } + /** + * repeated bytes addresses = 1; + */ + public Builder clearAddresses() { + addresses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getAccountDetailsByAddressList) + private static final org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList(); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + public static org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder clear() { - super.clear(); - nonce_ = com.google.protobuf.ByteString.EMPTY; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getAccountDetailsByAddressList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getAccountDetailsByAddressList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - } + public org.aion.api.server.pb.Message.req_getAccountDetailsByAddressList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance(); - } + } + + public interface rsp_getAccountDetailsByAddressListOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + java.util.List + getAccountsList(); + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index); + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + int getAccountsCount(); + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + java.util.List + getAccountsOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} + */ + public static final class rsp_getAccountDetailsByAddressList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + rsp_getAccountDetailsByAddressListOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getAccountDetailsByAddressList.newBuilder() to construct. + private rsp_getAccountDetailsByAddressList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getAccountDetailsByAddressList() { + accounts_ = java.util.Collections.emptyList(); + } - public org.aion.api.server.pb.Message.rsp_getNonce build() { - org.aion.api.server.pb.Message.rsp_getNonce result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getAccountDetailsByAddressList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + accounts_.add( + input.readMessage(org.aion.api.server.pb.Message.t_AccountDetail.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + } - public org.aion.api.server.pb.Message.rsp_getNonce buildPartial() { - org.aion.api.server.pb.Message.rsp_getNonce result = - new org.aion.api.server.pb.Message.rsp_getNonce(this); - result.nonce_ = nonce_; - onBuilt(); - return result; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.Builder.class); + } - public Builder clone() { - return (Builder) super.clone(); - } + public static final int ACCOUNTS_FIELD_NUMBER = 1; + private java.util.List accounts_; + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public java.util.List getAccountsList() { + return accounts_; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public java.util.List + getAccountsOrBuilderList() { + return accounts_; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public int getAccountsCount() { + return accounts_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { + return accounts_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( + int index) { + return accounts_.get(index); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + memoizedIsInitialized = 1; + return true; + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < accounts_.size(); i++) { + output.writeMessage(1, accounts_.get(i)); + } + unknownFields.writeTo(output); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, accounts_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other = (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) obj; + + boolean result = true; + result = result && getAccountsList() + .equals(other.getAccountsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getNonce) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getNonce) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccountsCount() > 0) { + hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getAccountsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNonce other) { - if (other == org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance()) - return this; - if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { - setNonce(other.getNonce()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public final boolean isInitialized() { - return true; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getNonce parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getNonce) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getAccountDetailsByAddressList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.class, org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAccountsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + accountsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList build() { + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList buildPartial() { + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList result = new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(this); + int from_bitField0_ = bitField0_; + if (accountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accounts_ = accounts_; + } else { + result.accounts_ = accountsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList other) { + if (other == org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList.getDefaultInstance()) return this; + if (accountsBuilder_ == null) { + if (!other.accounts_.isEmpty()) { + if (accounts_.isEmpty()) { + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccountsIsMutable(); + accounts_.addAll(other.accounts_); + } + onChanged(); + } + } else { + if (!other.accounts_.isEmpty()) { + if (accountsBuilder_.isEmpty()) { + accountsBuilder_.dispose(); + accountsBuilder_ = null; + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + accountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAccountsFieldBuilder() : null; + } else { + accountsBuilder_.addAllMessages(other.accounts_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List accounts_ = + java.util.Collections.emptyList(); + private void ensureAccountsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + accounts_ = new java.util.ArrayList(accounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AccountDetail, org.aion.api.server.pb.Message.t_AccountDetail.Builder, org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> accountsBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public java.util.List getAccountsList() { + if (accountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accounts_); + } else { + return accountsBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public int getAccountsCount() { + if (accountsBuilder_ == null) { + return accounts_.size(); + } else { + return accountsBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public org.aion.api.server.pb.Message.t_AccountDetail getAccounts(int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder setAccounts( + int index, org.aion.api.server.pb.Message.t_AccountDetail value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.set(index, value); + onChanged(); + } else { + accountsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder setAccounts( + int index, org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.set(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder addAccounts(org.aion.api.server.pb.Message.t_AccountDetail value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(value); + onChanged(); + } else { + accountsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder addAccounts( + int index, org.aion.api.server.pb.Message.t_AccountDetail value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(index, value); + onChanged(); + } else { + accountsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder addAccounts( + org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder addAccounts( + int index, org.aion.api.server.pb.Message.t_AccountDetail.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder addAllAccounts( + java.lang.Iterable values) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accounts_); + onChanged(); + } else { + accountsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder clearAccounts() { + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accountsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public Builder removeAccounts(int index) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.remove(index); + onChanged(); + } else { + accountsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public org.aion.api.server.pb.Message.t_AccountDetail.Builder getAccountsBuilder( + int index) { + return getAccountsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public org.aion.api.server.pb.Message.t_AccountDetailOrBuilder getAccountsOrBuilder( + int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); } else { + return accountsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public java.util.List + getAccountsOrBuilderList() { + if (accountsBuilder_ != null) { + return accountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accounts_); + } + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder() { + return getAccountsFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder( + int index) { + return getAccountsFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_AccountDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_AccountDetail accounts = 1; + */ + public java.util.List + getAccountsBuilderList() { + return getAccountsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AccountDetail, org.aion.api.server.pb.Message.t_AccountDetail.Builder, org.aion.api.server.pb.Message.t_AccountDetailOrBuilder> + getAccountsFieldBuilder() { + if (accountsBuilder_ == null) { + accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_AccountDetail, org.aion.api.server.pb.Message.t_AccountDetail.Builder, org.aion.api.server.pb.Message.t_AccountDetailOrBuilder>( + accounts_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + accounts_ = null; + } + return accountsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + } - private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; - /** bytes nonce = 1; */ - public com.google.protobuf.ByteString getNonce() { - return nonce_; - } - /** bytes nonce = 1; */ - public Builder setNonce(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - nonce_ = value; - onChanged(); - return this; - } - /** bytes nonce = 1; */ - public Builder clearNonce() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getAccountDetailsByAddressList) + private static final org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList(); + } - nonce_ = getDefaultInstance().getNonce(); - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getAccountDetailsByAddressList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getAccountDetailsByAddressList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNonce) - } + public org.aion.api.server.pb.Message.rsp_getAccountDetailsByAddressList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNonce) - private static final org.aion.api.server.pb.Message.rsp_getNonce DEFAULT_INSTANCE; + } + + public interface req_getBlockSqlByRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockSqlByRange) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blkNumberStart = 1; + */ + long getBlkNumberStart(); + + /** + * uint64 blkNumberEnd = 2; + */ + long getBlkNumberEnd(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} + */ + public static final class req_getBlockSqlByRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockSqlByRange) + req_getBlockSqlByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockSqlByRange.newBuilder() to construct. + private req_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockSqlByRange() { + blkNumberStart_ = 0L; + blkNumberEnd_ = 0L; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNonce(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockSqlByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blkNumberStart_ = input.readUInt64(); + break; + } + case 16: { + + blkNumberEnd_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstance() { - return DEFAULT_INSTANCE; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, org.aion.api.server.pb.Message.req_getBlockSqlByRange.Builder.class); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getNonce parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getNonce(input, extensionRegistry); - } - }; + public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; + private long blkNumberStart_; + /** + * uint64 blkNumberStart = 1; + */ + public long getBlkNumberStart() { + return blkNumberStart_; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int BLKNUMBEREND_FIELD_NUMBER = 2; + private long blkNumberEnd_; + /** + * uint64 blkNumberEnd = 2; + */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; } - public interface req_getNrgPriceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNrgPrice) - com.google.protobuf.MessageOrBuilder {} - /** Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} */ - public static final class req_getNrgPrice extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNrgPrice) - req_getNrgPriceOrBuilder { - private static final long serialVersionUID = 0L; - // Use req_getNrgPrice.newBuilder() to construct. - private req_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blkNumberStart_ != 0L) { + output.writeUInt64(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + output.writeUInt64(2, blkNumberEnd_); + } + unknownFields.writeTo(output); + } - private req_getNrgPrice() {} + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blkNumberStart_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, blkNumberEnd_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockSqlByRange other = (org.aion.api.server.pb.Message.req_getBlockSqlByRange) obj; + + boolean result = true; + result = result && (getBlkNumberStart() + == other.getBlkNumberStart()); + result = result && (getBlkNumberEnd() + == other.getBlkNumberEnd()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private req_getNrgPrice( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlkNumberStart()); + hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlkNumberEnd()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNrgPrice.class, - org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockSqlByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockSqlByRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockSqlByRange) + org.aion.api.server.pb.Message.req_getBlockSqlByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockSqlByRange.class, org.aion.api.server.pb.Message.req_getBlockSqlByRange.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockSqlByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blkNumberStart_ = 0L; + + blkNumberEnd_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockSqlByRange.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockSqlByRange build() { + org.aion.api.server.pb.Message.req_getBlockSqlByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockSqlByRange buildPartial() { + org.aion.api.server.pb.Message.req_getBlockSqlByRange result = new org.aion.api.server.pb.Message.req_getBlockSqlByRange(this); + result.blkNumberStart_ = blkNumberStart_; + result.blkNumberEnd_ = blkNumberEnd_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockSqlByRange) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockSqlByRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockSqlByRange other) { + if (other == org.aion.api.server.pb.Message.req_getBlockSqlByRange.getDefaultInstance()) return this; + if (other.getBlkNumberStart() != 0L) { + setBlkNumberStart(other.getBlkNumberStart()); + } + if (other.getBlkNumberEnd() != 0L) { + setBlkNumberEnd(other.getBlkNumberEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockSqlByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockSqlByRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blkNumberStart_ ; + /** + * uint64 blkNumberStart = 1; + */ + public long getBlkNumberStart() { + return blkNumberStart_; + } + /** + * uint64 blkNumberStart = 1; + */ + public Builder setBlkNumberStart(long value) { + + blkNumberStart_ = value; + onChanged(); + return this; + } + /** + * uint64 blkNumberStart = 1; + */ + public Builder clearBlkNumberStart() { + + blkNumberStart_ = 0L; + onChanged(); + return this; + } + + private long blkNumberEnd_ ; + /** + * uint64 blkNumberEnd = 2; + */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } + /** + * uint64 blkNumberEnd = 2; + */ + public Builder setBlkNumberEnd(long value) { + + blkNumberEnd_ = value; + onChanged(); + return this; + } + /** + * uint64 blkNumberEnd = 2; + */ + public Builder clearBlkNumberEnd() { + + blkNumberEnd_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockSqlByRange) + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockSqlByRange) + private static final org.aion.api.server.pb.Message.req_getBlockSqlByRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockSqlByRange(); + } - memoizedIsInitialized = 1; - return true; - } + public static org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockSqlByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockSqlByRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public org.aion.api.server.pb.Message.req_getBlockSqlByRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.req_getNrgPrice)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.req_getNrgPrice other = - (org.aion.api.server.pb.Message.req_getNrgPrice) obj; + } + + public interface rsp_getBlockSqlByRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockSqlByRange) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + java.util.List + getBlkSqlList(); + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index); + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + int getBlkSqlCount(); + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + java.util.List + getBlkSqlOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} + */ + public static final class rsp_getBlockSqlByRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) + rsp_getBlockSqlByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockSqlByRange.newBuilder() to construct. + private rsp_getBlockSqlByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlockSqlByRange() { + blkSql_ = java.util.Collections.emptyList(); + } - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlockSqlByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blkSql_.add( + input.readMessage(org.aion.api.server.pb.Message.t_BlockSql.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = java.util.Collections.unmodifiableList(blkSql_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.Builder.class); + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int BLKSQL_FIELD_NUMBER = 1; + private java.util.List blkSql_; + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public java.util.List getBlkSqlList() { + return blkSql_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public java.util.List + getBlkSqlOrBuilderList() { + return blkSql_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public int getBlkSqlCount() { + return blkSql_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { + return blkSql_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( + int index) { + return blkSql_.get(index); + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkSql_.size(); i++) { + output.writeMessage(1, blkSql_.get(i)); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blkSql_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blkSql_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other = (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) obj; + + boolean result = true; + result = result && getBlkSqlList() + .equals(other.getBlkSqlList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkSqlCount() > 0) { + hash = (37 * hash) + BLKSQL_FIELD_NUMBER; + hash = (53 * hash) + getBlkSqlList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockSqlByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockSqlByRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockSqlByRange) + org.aion.api.server.pb.Message.rsp_getBlockSqlByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.class, org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlkSqlFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (blkSqlBuilder_ == null) { + blkSql_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkSqlBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange build() { + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange result = new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(this); + int from_bitField0_ = bitField0_; + if (blkSqlBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = java.util.Collections.unmodifiableList(blkSql_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkSql_ = blkSql_; + } else { + result.blkSql_ = blkSqlBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockSqlByRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockSqlByRange other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlockSqlByRange.getDefaultInstance()) return this; + if (blkSqlBuilder_ == null) { + if (!other.blkSql_.isEmpty()) { + if (blkSql_.isEmpty()) { + blkSql_ = other.blkSql_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkSqlIsMutable(); + blkSql_.addAll(other.blkSql_); + } + onChanged(); + } + } else { + if (!other.blkSql_.isEmpty()) { + if (blkSqlBuilder_.isEmpty()) { + blkSqlBuilder_.dispose(); + blkSqlBuilder_ = null; + blkSql_ = other.blkSql_; + bitField0_ = (bitField0_ & ~0x00000001); + blkSqlBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlkSqlFieldBuilder() : null; + } else { + blkSqlBuilder_.addAllMessages(other.blkSql_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockSqlByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockSqlByRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blkSql_ = + java.util.Collections.emptyList(); + private void ensureBlkSqlIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkSql_ = new java.util.ArrayList(blkSql_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockSql, org.aion.api.server.pb.Message.t_BlockSql.Builder, org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> blkSqlBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public java.util.List getBlkSqlList() { + if (blkSqlBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkSql_); + } else { + return blkSqlBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public int getBlkSqlCount() { + if (blkSqlBuilder_ == null) { + return blkSql_.size(); + } else { + return blkSqlBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public org.aion.api.server.pb.Message.t_BlockSql getBlkSql(int index) { + if (blkSqlBuilder_ == null) { + return blkSql_.get(index); + } else { + return blkSqlBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder setBlkSql( + int index, org.aion.api.server.pb.Message.t_BlockSql value) { + if (blkSqlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkSqlIsMutable(); + blkSql_.set(index, value); + onChanged(); + } else { + blkSqlBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder setBlkSql( + int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.set(index, builderForValue.build()); + onChanged(); + } else { + blkSqlBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder addBlkSql(org.aion.api.server.pb.Message.t_BlockSql value) { + if (blkSqlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkSqlIsMutable(); + blkSql_.add(value); + onChanged(); + } else { + blkSqlBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder addBlkSql( + int index, org.aion.api.server.pb.Message.t_BlockSql value) { + if (blkSqlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkSqlIsMutable(); + blkSql_.add(index, value); + onChanged(); + } else { + blkSqlBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder addBlkSql( + org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.add(builderForValue.build()); + onChanged(); + } else { + blkSqlBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder addBlkSql( + int index, org.aion.api.server.pb.Message.t_BlockSql.Builder builderForValue) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.add(index, builderForValue.build()); + onChanged(); + } else { + blkSqlBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder addAllBlkSql( + java.lang.Iterable values) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blkSql_); + onChanged(); + } else { + blkSqlBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder clearBlkSql() { + if (blkSqlBuilder_ == null) { + blkSql_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkSqlBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public Builder removeBlkSql(int index) { + if (blkSqlBuilder_ == null) { + ensureBlkSqlIsMutable(); + blkSql_.remove(index); + onChanged(); + } else { + blkSqlBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public org.aion.api.server.pb.Message.t_BlockSql.Builder getBlkSqlBuilder( + int index) { + return getBlkSqlFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public org.aion.api.server.pb.Message.t_BlockSqlOrBuilder getBlkSqlOrBuilder( + int index) { + if (blkSqlBuilder_ == null) { + return blkSql_.get(index); } else { + return blkSqlBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public java.util.List + getBlkSqlOrBuilderList() { + if (blkSqlBuilder_ != null) { + return blkSqlBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkSql_); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder() { + return getBlkSqlFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder( + int index) { + return getBlkSqlFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_BlockSql.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockSql blkSql = 1; + */ + public java.util.List + getBlkSqlBuilderList() { + return getBlkSqlFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockSql, org.aion.api.server.pb.Message.t_BlockSql.Builder, org.aion.api.server.pb.Message.t_BlockSqlOrBuilder> + getBlkSqlFieldBuilder() { + if (blkSqlBuilder_ == null) { + blkSqlBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockSql, org.aion.api.server.pb.Message.t_BlockSql.Builder, org.aion.api.server.pb.Message.t_BlockSqlOrBuilder>( + blkSql_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkSql_ = null; + } + return blkSqlBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockSqlByRange) + private static final org.aion.api.server.pb.Message.rsp_getBlockSqlByRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockSqlByRange(); + } - public static org.aion.api.server.pb.Message.req_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder newBuilderForType() { - return newBuilder(); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlockSqlByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockSqlByRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNrgPrice prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public org.aion.api.server.pb.Message.rsp_getBlockSqlByRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + } + + public interface req_getBlockDetailsByRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getBlockDetailsByRange) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 blkNumberStart = 1; + */ + long getBlkNumberStart(); + + /** + * uint64 blkNumberEnd = 2; + */ + long getBlkNumberEnd(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} + */ + public static final class req_getBlockDetailsByRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) + req_getBlockDetailsByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getBlockDetailsByRange.newBuilder() to construct. + private req_getBlockDetailsByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getBlockDetailsByRange() { + blkNumberStart_ = 0L; + blkNumberEnd_ = 0L; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.req_getNrgPrice} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNrgPrice) - org.aion.api.server.pb.Message.req_getNrgPriceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getBlockDetailsByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + blkNumberStart_ = input.readUInt64(); + break; + } + case 16: { + + blkNumberEnd_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.req_getNrgPrice.class, - org.aion.api.server.pb.Message.req_getNrgPrice.Builder.class); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.req_getBlockDetailsByRange.Builder.class); + } - // Construct using org.aion.api.server.pb.Message.req_getNrgPrice.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; + private long blkNumberStart_; + /** + * uint64 blkNumberStart = 1; + */ + public long getBlkNumberStart() { + return blkNumberStart_; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public static final int BLKNUMBEREND_FIELD_NUMBER = 2; + private long blkNumberEnd_; + /** + * uint64 blkNumberEnd = 2; + */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder clear() { - super.clear(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (blkNumberStart_ != 0L) { + output.writeUInt64(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + output.writeUInt64(2, blkNumberEnd_); + } + unknownFields.writeTo(output); + } - public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance(); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (blkNumberStart_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, blkNumberStart_); + } + if (blkNumberEnd_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, blkNumberEnd_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public org.aion.api.server.pb.Message.req_getNrgPrice build() { - org.aion.api.server.pb.Message.req_getNrgPrice result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getBlockDetailsByRange other = (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) obj; + + boolean result = true; + result = result && (getBlkNumberStart() + == other.getBlkNumberStart()); + result = result && (getBlkNumberEnd() + == other.getBlkNumberEnd()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public org.aion.api.server.pb.Message.req_getNrgPrice buildPartial() { - org.aion.api.server.pb.Message.req_getNrgPrice result = - new org.aion.api.server.pb.Message.req_getNrgPrice(this); - onBuilt(); - return result; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlkNumberStart()); + hash = (37 * hash) + BLKNUMBEREND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBlkNumberEnd()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public Builder clone() { - return (Builder) super.clone(); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getBlockDetailsByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getBlockDetailsByRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getBlockDetailsByRange) + org.aion.api.server.pb.Message.req_getBlockDetailsByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.req_getBlockDetailsByRange.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getBlockDetailsByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + blkNumberStart_ = 0L; + + blkNumberEnd_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getBlockDetailsByRange.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange build() { + org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange buildPartial() { + org.aion.api.server.pb.Message.req_getBlockDetailsByRange result = new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(this); + result.blkNumberStart_ = blkNumberStart_; + result.blkNumberEnd_ = blkNumberEnd_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getBlockDetailsByRange) { + return mergeFrom((org.aion.api.server.pb.Message.req_getBlockDetailsByRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByRange other) { + if (other == org.aion.api.server.pb.Message.req_getBlockDetailsByRange.getDefaultInstance()) return this; + if (other.getBlkNumberStart() != 0L) { + setBlkNumberStart(other.getBlkNumberStart()); + } + if (other.getBlkNumberEnd() != 0L) { + setBlkNumberEnd(other.getBlkNumberEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getBlockDetailsByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getBlockDetailsByRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long blkNumberStart_ ; + /** + * uint64 blkNumberStart = 1; + */ + public long getBlkNumberStart() { + return blkNumberStart_; + } + /** + * uint64 blkNumberStart = 1; + */ + public Builder setBlkNumberStart(long value) { + + blkNumberStart_ = value; + onChanged(); + return this; + } + /** + * uint64 blkNumberStart = 1; + */ + public Builder clearBlkNumberStart() { + + blkNumberStart_ = 0L; + onChanged(); + return this; + } + + private long blkNumberEnd_ ; + /** + * uint64 blkNumberEnd = 2; + */ + public long getBlkNumberEnd() { + return blkNumberEnd_; + } + /** + * uint64 blkNumberEnd = 2; + */ + public Builder setBlkNumberEnd(long value) { + + blkNumberEnd_ = value; + onChanged(); + return this; + } + /** + * uint64 blkNumberEnd = 2; + */ + public Builder clearBlkNumberEnd() { + + blkNumberEnd_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) + } - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getBlockDetailsByRange) + private static final org.aion.api.server.pb.Message.req_getBlockDetailsByRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getBlockDetailsByRange(); + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public static org.aion.api.server.pb.Message.req_getBlockDetailsByRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getBlockDetailsByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getBlockDetailsByRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.req_getNrgPrice) { - return mergeFrom((org.aion.api.server.pb.Message.req_getNrgPrice) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNrgPrice other) { - if (other == org.aion.api.server.pb.Message.req_getNrgPrice.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + public org.aion.api.server.pb.Message.req_getBlockDetailsByRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public final boolean isInitialized() { - return true; - } + } + + public interface rsp_getBlockDetailsByRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + java.util.List + getBlkDetailsList(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + int getBlkDetailsCount(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + java.util.List + getBlkDetailsOrBuilderList(); + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} + */ + public static final class rsp_getBlockDetailsByRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + rsp_getBlockDetailsByRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getBlockDetailsByRange.newBuilder() to construct. + private rsp_getBlockDetailsByRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getBlockDetailsByRange() { + blkDetails_ = java.util.Collections.emptyList(); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.req_getNrgPrice parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.req_getNrgPrice) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getBlockDetailsByRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + blkDetails_.add( + input.readMessage(org.aion.api.server.pb.Message.t_BlockDetail.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.Builder.class); + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + public static final int BLKDETAILS_FIELD_NUMBER = 1; + private java.util.List blkDetails_; + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List getBlkDetailsList() { + return blkDetails_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsOrBuilderList() { + return blkDetails_; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public int getBlkDetailsCount() { + return blkDetails_.size(); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + return blkDetails_.get(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + return blkDetails_.get(index); + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNrgPrice) - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNrgPrice) - private static final org.aion.api.server.pb.Message.req_getNrgPrice DEFAULT_INSTANCE; + memoizedIsInitialized = 1; + return true; + } - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNrgPrice(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < blkDetails_.size(); i++) { + output.writeMessage(1, blkDetails_.get(i)); + } + unknownFields.writeTo(output); + } - public static org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < blkDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blkDetails_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public req_getNrgPrice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new req_getNrgPrice(input, extensionRegistry); - } - }; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) obj; + + boolean result = true; + result = result && getBlkDetailsList() + .equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBlkDetailsCount() > 0) { + hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBlkDetailsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public org.aion.api.server.pb.Message.req_getNrgPrice getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public interface rsp_getNrgPriceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNrgPrice) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getBlockDetailsByRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.class, org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlkDetailsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange build() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange buildPartial() { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange result = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(this); + int from_bitField0_ = bitField0_; + if (blkDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.blkDetails_ = blkDetails_; + } else { + result.blkDetails_ = blkDetailsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange other) { + if (other == org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange.getDefaultInstance()) return this; + if (blkDetailsBuilder_ == null) { + if (!other.blkDetails_.isEmpty()) { + if (blkDetails_.isEmpty()) { + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBlkDetailsIsMutable(); + blkDetails_.addAll(other.blkDetails_); + } + onChanged(); + } + } else { + if (!other.blkDetails_.isEmpty()) { + if (blkDetailsBuilder_.isEmpty()) { + blkDetailsBuilder_.dispose(); + blkDetailsBuilder_ = null; + blkDetails_ = other.blkDetails_; + bitField0_ = (bitField0_ & ~0x00000001); + blkDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlkDetailsFieldBuilder() : null; + } else { + blkDetailsBuilder_.addAllMessages(other.blkDetails_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List blkDetails_ = + java.util.Collections.emptyList(); + private void ensureBlkDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + blkDetails_ = new java.util.ArrayList(blkDetails_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> blkDetailsBuilder_; + + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List getBlkDetailsList() { + if (blkDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blkDetails_); + } else { + return blkDetailsBuilder_.getMessageList(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public int getBlkDetailsCount() { + if (blkDetailsBuilder_ == null) { + return blkDetails_.size(); + } else { + return blkDetailsBuilder_.getCount(); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail getBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); + } else { + return blkDetailsBuilder_.getMessage(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, value); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder setBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails(org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail value) { + if (blkDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, value); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addBlkDetails( + int index, org.aion.api.server.pb.Message.t_BlockDetail.Builder builderForValue) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + blkDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder addAllBlkDetails( + java.lang.Iterable values) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blkDetails_); + onChanged(); + } else { + blkDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder clearBlkDetails() { + if (blkDetailsBuilder_ == null) { + blkDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blkDetailsBuilder_.clear(); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public Builder removeBlkDetails(int index) { + if (blkDetailsBuilder_ == null) { + ensureBlkDetailsIsMutable(); + blkDetails_.remove(index); + onChanged(); + } else { + blkDetailsBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder getBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().getBuilder(index); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetailOrBuilder getBlkDetailsOrBuilder( + int index) { + if (blkDetailsBuilder_ == null) { + return blkDetails_.get(index); } else { + return blkDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsOrBuilderList() { + if (blkDetailsBuilder_ != null) { + return blkDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blkDetails_); + } + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder() { + return getBlkDetailsFieldBuilder().addBuilder( + org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder( + int index) { + return getBlkDetailsFieldBuilder().addBuilder( + index, org.aion.api.server.pb.Message.t_BlockDetail.getDefaultInstance()); + } + /** + * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + */ + public java.util.List + getBlkDetailsBuilderList() { + return getBlkDetailsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder> + getBlkDetailsFieldBuilder() { + if (blkDetailsBuilder_ == null) { + blkDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.aion.api.server.pb.Message.t_BlockDetail, org.aion.api.server.pb.Message.t_BlockDetail.Builder, org.aion.api.server.pb.Message.t_BlockDetailOrBuilder>( + blkDetails_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + blkDetails_ = null; + } + return blkDetailsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + } - /** uint64 nrgPrice = 1; */ - long getNrgPrice(); + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + private static final org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange(); } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} */ - public static final class rsp_getNrgPrice extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNrgPrice) - rsp_getNrgPriceOrBuilder { - private static final long serialVersionUID = 0L; - // Use rsp_getNrgPrice.newBuilder() to construct. - private rsp_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private rsp_getNrgPrice() { - nrgPrice_ = 0L; - } + public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getBlockDetailsByRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getBlockDetailsByRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private rsp_getNrgPrice( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: - { - nrgPrice_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - } + public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNrgPrice.class, - org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); - } + } + + public interface req_getNonceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.req_getNonce) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes address = 1; + */ + com.google.protobuf.ByteString getAddress(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getNonce} + */ + public static final class req_getNonce extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.req_getNonce) + req_getNonceOrBuilder { + private static final long serialVersionUID = 0L; + // Use req_getNonce.newBuilder() to construct. + private req_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private req_getNonce() { + address_ = com.google.protobuf.ByteString.EMPTY; + } - public static final int NRGPRICE_FIELD_NUMBER = 1; - private long nrgPrice_; - /** uint64 nrgPrice = 1; */ - public long getNrgPrice() { - return nrgPrice_; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private req_getNonce( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + address_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + } - private byte memoizedIsInitialized = -1; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNonce.class, org.aion.api.server.pb.Message.req_getNonce.Builder.class); + } - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString address_; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nrgPrice_ != 0L) { - output.writeUInt64(1, nrgPrice_); - } - unknownFields.writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!address_.isEmpty()) { + output.writeBytes(1, address_); + } + unknownFields.writeTo(output); + } - size = 0; - if (nrgPrice_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, nrgPrice_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!address_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, address_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice)) { - return super.equals(obj); - } - org.aion.api.server.pb.Message.rsp_getNrgPrice other = - (org.aion.api.server.pb.Message.rsp_getNrgPrice) obj; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.req_getNonce)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.req_getNonce other = (org.aion.api.server.pb.Message.req_getNonce) obj; + + boolean result = true; + result = result && getAddress() + .equals(other.getAddress()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - boolean result = true; - result = result && (getNrgPrice() == other.getNrgPrice()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNrgPrice()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getNonce parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.req_getNonce parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.req_getNonce prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.req_getNonce} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.req_getNonce) + org.aion.api.server.pb.Message.req_getNonceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.req_getNonce.class, org.aion.api.server.pb.Message.req_getNonce.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.req_getNonce.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + address_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + } + + public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.req_getNonce build() { + org.aion.api.server.pb.Message.req_getNonce result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.req_getNonce buildPartial() { + org.aion.api.server.pb.Message.req_getNonce result = new org.aion.api.server.pb.Message.req_getNonce(this); + result.address_ = address_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.req_getNonce) { + return mergeFrom((org.aion.api.server.pb.Message.req_getNonce)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.req_getNonce other) { + if (other == org.aion.api.server.pb.Message.req_getNonce.getDefaultInstance()) return this; + if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { + setAddress(other.getAddress()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.req_getNonce parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.req_getNonce) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes address = 1; + */ + public com.google.protobuf.ByteString getAddress() { + return address_; + } + /** + * bytes address = 1; + */ + public Builder setAddress(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + address_ = value; + onChanged(); + return this; + } + /** + * bytes address = 1; + */ + public Builder clearAddress() { + + address_ = getDefaultInstance().getAddress(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.req_getNonce) + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.req_getNonce) + private static final org.aion.api.server.pb.Message.req_getNonce DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.req_getNonce(); + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static org.aion.api.server.pb.Message.req_getNonce getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public req_getNonce parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new req_getNonce(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + } + + public interface rsp_getNonceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNonce) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes nonce = 1; + */ + com.google.protobuf.ByteString getNonce(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} + */ + public static final class rsp_getNonce extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNonce) + rsp_getNonceOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getNonce.newBuilder() to construct. + private rsp_getNonce(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getNonce() { + nonce_ = com.google.protobuf.ByteString.EMPTY; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getNonce( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + nonce_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNonce.class, org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int NONCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 1; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } - public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder newBuilderForType() { - return newBuilder(); - } + memoizedIsInitialized = 1; + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!nonce_.isEmpty()) { + output.writeBytes(1, nonce_); + } + unknownFields.writeTo(output); + } - public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNrgPrice prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!nonce_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, nonce_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNonce)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getNonce other = (org.aion.api.server.pb.Message.rsp_getNonce) obj; + + boolean result = true; + result = result && getNonce() + .equals(other.getNonce()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNrgPrice) - org.aion.api.server.pb.Message.rsp_getNrgPriceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NONCE_FIELD_NUMBER; + hash = (53 * hash) + getNonce().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.aion.api.server.pb.Message.rsp_getNrgPrice.class, - org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); - } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNonce parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - // Construct using org.aion.api.server.pb.Message.rsp_getNrgPrice.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNonce prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getNonce} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNonce) + org.aion.api.server.pb.Message.rsp_getNonceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNonce.class, org.aion.api.server.pb.Message.rsp_getNonce.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getNonce.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nonce_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getNonce build() { + org.aion.api.server.pb.Message.rsp_getNonce result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getNonce buildPartial() { + org.aion.api.server.pb.Message.rsp_getNonce result = new org.aion.api.server.pb.Message.rsp_getNonce(this); + result.nonce_ = nonce_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getNonce) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getNonce)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNonce other) { + if (other == org.aion.api.server.pb.Message.rsp_getNonce.getDefaultInstance()) return this; + if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) { + setNonce(other.getNonce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getNonce parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getNonce) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes nonce = 1; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + /** + * bytes nonce = 1; + */ + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); + return this; + } + /** + * bytes nonce = 1; + */ + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNonce) + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNonce) + private static final org.aion.api.server.pb.Message.rsp_getNonce DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNonce(); + } - public Builder clear() { - super.clear(); - nrgPrice_ = 0L; + public static org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstance() { + return DEFAULT_INSTANCE; + } - return this; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getNonce parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getNonce(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.aion.api.server.pb.Message - .internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { - return org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance(); - } + public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public org.aion.api.server.pb.Message.rsp_getNrgPrice build() { - org.aion.api.server.pb.Message.rsp_getNrgPrice result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + } + + public interface rsp_getNrgPriceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.aion.api.server.pb.rsp_getNrgPrice) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 nrgPrice = 1; + */ + long getNrgPrice(); + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} + */ + public static final class rsp_getNrgPrice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.aion.api.server.pb.rsp_getNrgPrice) + rsp_getNrgPriceOrBuilder { + private static final long serialVersionUID = 0L; + // Use rsp_getNrgPrice.newBuilder() to construct. + private rsp_getNrgPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private rsp_getNrgPrice() { + nrgPrice_ = 0L; + } - public org.aion.api.server.pb.Message.rsp_getNrgPrice buildPartial() { - org.aion.api.server.pb.Message.rsp_getNrgPrice result = - new org.aion.api.server.pb.Message.rsp_getNrgPrice(this); - result.nrgPrice_ = nrgPrice_; - onBuilt(); - return result; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private rsp_getNrgPrice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + nrgPrice_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } - public Builder clone() { - return (Builder) super.clone(); - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNrgPrice.class, org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); + } - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } + public static final int NRGPRICE_FIELD_NUMBER = 1; + private long nrgPrice_; + /** + * uint64 nrgPrice = 1; + */ + public long getNrgPrice() { + return nrgPrice_; + } - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } + memoizedIsInitialized = 1; + return true; + } - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nrgPrice_ != 0L) { + output.writeUInt64(1, nrgPrice_); + } + unknownFields.writeTo(output); + } - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nrgPrice_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, nrgPrice_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice) { - return mergeFrom((org.aion.api.server.pb.Message.rsp_getNrgPrice) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice)) { + return super.equals(obj); + } + org.aion.api.server.pb.Message.rsp_getNrgPrice other = (org.aion.api.server.pb.Message.rsp_getNrgPrice) obj; + + boolean result = true; + result = result && (getNrgPrice() + == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNrgPrice other) { - if (other == org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance()) - return this; - if (other.getNrgPrice() != 0L) { - setNrgPrice(other.getNrgPrice()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NRGPRICE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNrgPrice()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } - public final boolean isInitialized() { - return true; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.aion.api.server.pb.Message.rsp_getNrgPrice parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (org.aion.api.server.pb.Message.rsp_getNrgPrice) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.aion.api.server.pb.Message.rsp_getNrgPrice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private long nrgPrice_; - /** uint64 nrgPrice = 1; */ - public long getNrgPrice() { - return nrgPrice_; - } - /** uint64 nrgPrice = 1; */ - public Builder setNrgPrice(long value) { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.aion.api.server.pb.rsp_getNrgPrice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.aion.api.server.pb.rsp_getNrgPrice) + org.aion.api.server.pb.Message.rsp_getNrgPriceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.aion.api.server.pb.Message.rsp_getNrgPrice.class, org.aion.api.server.pb.Message.rsp_getNrgPrice.Builder.class); + } + + // Construct using org.aion.api.server.pb.Message.rsp_getNrgPrice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nrgPrice_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.aion.api.server.pb.Message.internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { + return org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance(); + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice build() { + org.aion.api.server.pb.Message.rsp_getNrgPrice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.aion.api.server.pb.Message.rsp_getNrgPrice buildPartial() { + org.aion.api.server.pb.Message.rsp_getNrgPrice result = new org.aion.api.server.pb.Message.rsp_getNrgPrice(this); + result.nrgPrice_ = nrgPrice_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.aion.api.server.pb.Message.rsp_getNrgPrice) { + return mergeFrom((org.aion.api.server.pb.Message.rsp_getNrgPrice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getNrgPrice other) { + if (other == org.aion.api.server.pb.Message.rsp_getNrgPrice.getDefaultInstance()) return this; + if (other.getNrgPrice() != 0L) { + setNrgPrice(other.getNrgPrice()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.aion.api.server.pb.Message.rsp_getNrgPrice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.aion.api.server.pb.Message.rsp_getNrgPrice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nrgPrice_ ; + /** + * uint64 nrgPrice = 1; + */ + public long getNrgPrice() { + return nrgPrice_; + } + /** + * uint64 nrgPrice = 1; + */ + public Builder setNrgPrice(long value) { + + nrgPrice_ = value; + onChanged(); + return this; + } + /** + * uint64 nrgPrice = 1; + */ + public Builder clearNrgPrice() { + + nrgPrice_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNrgPrice) + } - nrgPrice_ = value; - onChanged(); - return this; - } - /** uint64 nrgPrice = 1; */ - public Builder clearNrgPrice() { + // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNrgPrice) + private static final org.aion.api.server.pb.Message.rsp_getNrgPrice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNrgPrice(); + } - nrgPrice_ = 0L; - onChanged(); - return this; - } + public static org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public rsp_getNrgPrice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new rsp_getNrgPrice(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNrgPrice) - } - - // @@protoc_insertion_point(class_scope:org.aion.api.server.pb.rsp_getNrgPrice) - private static final org.aion.api.server.pb.Message.rsp_getNrgPrice DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNrgPrice(); - } - - public static org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public rsp_getNrgPrice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new rsp_getNrgPrice(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Contract_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_AionTx_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Node_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_LgEle_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_EventCt_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Block_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_compile_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_compile_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getCode_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_call_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_call_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBalance_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_submitWork_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_mining_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_accountlock_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_t_Key_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getNonce_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + public org.aion.api.server.pb.Message.rsp_getNrgPrice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - static { - java.lang.String[] descriptorData = { - "\n\rmessage.proto\022\026org.aion.api.server.pb\"" - + "\234\001\n\nt_Contract\022\014\n\004code\030\001 \001(\t\022\r\n\005error\030\002 " - + "\001(\t\022\016\n\006source\030\003 \001(\t\022\027\n\017compilerVersion\030\004" - + " \001(\t\022\027\n\017compilerOptions\030\005 \001(\t\022\016\n\006abiDef\030" - + "\006 \001(\014\022\017\n\007userDoc\030\007 \001(\014\022\016\n\006devDoc\030\010 \001(\014\"\207" - + "\001\n\010t_AionTx\022\016\n\006txHash\030\001 \001(\014\022\014\n\004from\030\002 \001(" - + "\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(\014\022\014\n\004data\030\005 \001" - + "(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgConsumed\030\007 \001(\004\022\020" - + "\n\010nrgPrice\030\010 \001(\004\"n\n\006t_Node\022\023\n\013blockNumbe" - + "r\030\001 \001(\004\022\016\n\006nodeId\030\002 \001(\t\022\025\n\rremote_p2p_ip" - + "\030\003 \001(\t\022\027\n\017remote_p2p_port\030\004 \001(\r\022\017\n\007laten" - + "cy\030\005 \001(\r\"8\n\007t_LgEle\022\017\n\007address\030\001 \001(\014\022\014\n\004" - + "data\030\002 \001(\014\022\016\n\006topics\030\003 \003(\t\"s\n\nt_FilterCt" - + "\022\014\n\004from\030\001 \001(\t\022\n\n\002to\030\002 \001(\t\022\024\n\014contractAd" - + "dr\030\003 \001(\014\022\021\n\taddresses\030\004 \003(\014\022\016\n\006topics\030\005 " - + "\003(\t\022\022\n\nexpireTime\030\006 \001(\004\"\251\001\n\tt_EventCt\022\017\n" - + "\007address\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022\021\n\tblockHas" - + "h\030\003 \001(\014\022\023\n\013blockNumber\030\004 \001(\004\022\020\n\010logIndex" - + "\030\005 \001(\r\022\021\n\teventName\030\006 \001(\t\022\017\n\007removed\030\007 \001" - + "(\010\022\017\n\007txIndex\030\010 \001(\r\022\016\n\006txHash\030\t \001(\014\"\233\003\n\r" - + "t_BlockDetail\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tti" - + "mestamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nr" - + "gLimit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014mine" - + "rAddress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxT" - + "rieRoot\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021" - + "\n\tlogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n" - + "\017totalDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(" - + "\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004ha" - + "sh\030\020 \001(\014\022\014\n\004size\030\021 \001(\r\022.\n\002tx\030\022 \003(\0132\".org" - + ".aion.api.server.pb.t_TxDetail\022\021\n\tblockT" - + "ime\030\023 \001(\004\"\375\001\n\nt_TxDetail\022\016\n\006txHash\030\001 \001(\014" - + "\022\014\n\004from\030\002 \001(\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(" - + "\014\022\014\n\004data\030\005 \001(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgCon" - + "sumed\030\007 \001(\004\022\020\n\010nrgPrice\030\010 \001(\004\022\017\n\007txIndex" - + "\030\t \001(\r\022\020\n\010contract\030\n \001(\014\022-\n\004logs\030\013 \003(\0132\037" - + ".org.aion.api.server.pb.t_LgEle\022\021\n\ttimes" - + "tamp\030\014 \001(\004\022\r\n\005error\030\r \001(\t\"3\n\017t_AccountDe" - + "tail\022\017\n\007address\030\001 \001(\014\022\017\n\007balance\030\002 \001(\014\"\342" - + "\002\n\007t_Block\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" - + "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" - + "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" - + "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" - + "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" - + "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n\017to" - + "talDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(\014\022\r" - + "\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004hash\030" - + "\020 \001(\014\022\014\n\004size\030\021 \001(\r\022\016\n\006txHash\030\022 \003(\014\"c\n\nt" - + "_BlockSql\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tblockH" - + "ash\030\002 \001(\t\022\022\n\nparentHash\030\003 \001(\t\022\r\n\005block\030\004" - + " \001(\t\022\n\n\002tx\030\005 \003(\t\" \n\014rsp_errormsg\022\020\n\010erro" - + "rmsg\030\001 \001(\t\"v\n\023rsp_protocolVersion\022\016\n\006ker" - + "nel\030\001 \001(\t\022\013\n\003net\030\002 \001(\t\022\013\n\003api\030\003 \001(\t\022\n\n\002v" - + "m\030\004 \001(\t\022\n\n\002db\030\005 \001(\t\022\r\n\005miner\030\006 \001(\t\022\016\n\006tx" - + "pool\030\007 \001(\t\"%\n\020rsp_minerAddress\022\021\n\tminerA" - + "ddr\030\001 \001(\014\"+\n\024req_getBlockByNumber\022\023\n\013blo" - + "ckNumber\030\001 \001(\004\"\347\002\n\014rsp_getBlock\022\023\n\013block" - + "Number\030\001 \001(\004\022\021\n\ttimestamp\030\002 \001(\004\022\023\n\013nrgCo" - + "nsumed\030\003 \001(\004\022\020\n\010nrgLimit\030\004 \001(\004\022\022\n\nparent" - + "Hash\030\005 \001(\014\022\024\n\014minerAddress\030\006 \001(\014\022\021\n\tstat" - + "eRoot\030\007 \001(\014\022\022\n\ntxTrieRoot\030\010 \001(\014\022\027\n\017recei" - + "ptTrieRoot\030\t \001(\014\022\021\n\tlogsBloom\030\n \001(\014\022\022\n\nd" - + "ifficulty\030\013 \001(\014\022\027\n\017totalDifficulty\030\014 \001(\014" - + "\022\021\n\textraData\030\r \001(\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010so" - + "lution\030\017 \001(\014\022\014\n\004hash\030\020 \001(\014\022\014\n\004size\030\021 \001(\r" - + "\022\016\n\006txHash\030\022 \003(\014\"1\n\032req_getBlockHeaderBy" - + "Number\022\023\n\013blockNumber\030\001 \001(\004\"\304\002\n\022rsp_getB" - + "lockHeader\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" - + "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" - + "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" - + "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" - + "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" - + "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\021\n\tex" - + "traData\030\014 \001(\014\022\r\n\005nonce\030\r \001(\014\022\020\n\010solution" - + "\030\016 \001(\014\022\014\n\004hash\030\017 \001(\014\022\014\n\004size\030\020 \001(\r\"z\n\023re" - + "q_sendTransaction\022\014\n\004from\030\001 \001(\014\022\n\n\002to\030\002 " - + "\001(\014\022\r\n\005value\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005nonc" - + "e\030\005 \001(\014\022\013\n\003nrg\030\006 \001(\004\022\020\n\010nrgPrice\030\007 \001(\004\"%" - + "\n\023rsp_sendTransaction\022\016\n\006txHash\030\001 \001(\014\"*\n" - + "\030req_getTransactionByHash\022\016\n\006txHash\030\001 \001(" - + "\014\"\334\001\n\022rsp_getTransaction\022\017\n\007txIndex\030\001 \001(" - + "\r\022\023\n\013blocknumber\030\002 \001(\004\022\021\n\ttimeStamp\030\003 \001(" - + "\004\022\022\n\nnrgConsume\030\004 \001(\004\022\020\n\010nrgPrice\030\005 \001(\004\022" - + "\021\n\tblockhash\030\006 \001(\014\022\014\n\004from\030\007 \001(\014\022\016\n\006txHa" - + "sh\030\010 \001(\014\022\014\n\004data\030\t \001(\014\022\r\n\005nonce\030\n \001(\014\022\n\n" - + "\002to\030\013 \001(\014\022\r\n\005value\030\014 \001(\014\"H\n\021req_unlockAc" - + "count\022\017\n\007account\030\001 \001(\014\022\020\n\010password\030\002 \001(\t" - + "\022\020\n\010duration\030\003 \001(\r\"\036\n\014rsp_accounts\022\016\n\006ac" - + "cout\030\001 \003(\014\"\033\n\013req_compile\022\014\n\004code\030\001 \001(\t\"" - + "\255\001\n\013rsp_compile\022G\n\nconstracts\030\001 \003(\01323.or" - + "g.aion.api.server.pb.rsp_compile.Constra" - + "ctsEntry\032U\n\017ConstractsEntry\022\013\n\003key\030\001 \001(\t" - + "\0221\n\005value\030\002 \001(\0132\".org.aion.api.server.pb" - + ".t_Contract:\0028\001\"3\n\013req_getCode\022\017\n\007addres" - + "s\030\001 \001(\014\022\023\n\013blocknumber\030\002 \001(\004\"\033\n\013rsp_getC" - + "ode\022\014\n\004code\030\001 \001(\014\"c\n\022req_contractDeploy\022" - + "\020\n\010nrgLimit\030\001 \001(\004\022\020\n\010nrgPrice\030\002 \001(\004\022\014\n\004f" - + "rom\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005value\030\005 \001(\014\"=" - + "\n\022rsp_contractDeploy\022\016\n\006txHash\030\001 \001(\014\022\027\n\017" - + "contractAddress\030\002 \001(\014\"`\n\010req_call\022\014\n\004fro" - + "m\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\014\n\004data\030\003 \001(\014\022\r\n\005val" - + "ue\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 \001(\004\"" - + "\032\n\010rsp_call\022\016\n\006result\030\001 \001(\014\"\'\n\022req_getBl" - + "ockByHash\022\021\n\tblockHash\030\001 \001(\014\"-\n\030req_getB" - + "lockHeaderByHash\022\021\n\tblockHash\030\001 \001(\014\"?\n\027r" - + "eq_getTransactionCount\022\017\n\007address\030\001 \001(\014\022" - + "\023\n\013blocknumber\030\002 \001(\004\"*\n\027rsp_getTransacti" - + "onCount\022\017\n\007txCount\030\001 \001(\004\"/\n\035req_getTrans" - + "actionCountByHash\022\016\n\006txHash\030\001 \001(\014\"&\n\017rsp" - + "_blockNumber\022\023\n\013blocknumber\030\001 \001(\004\"6\n\016req" - + "_getBalance\022\017\n\007address\030\001 \001(\014\022\023\n\013blockNum" - + "ber\030\002 \001(\004\"!\n\016rsp_getBalance\022\017\n\007balance\030\001" - + " \001(\014\"E\n\020req_getStorageAt\022\017\n\007address\030\001 \001(" - + "\014\022\013\n\003key\030\002 \001(\t\022\023\n\013blocknumber\030\003 \001(\004\"#\n\020r" - + "sp_getStorageAt\022\017\n\007storage\030\001 \001(\t\"7\n\"req_" - + "getBlockTransactionCountByHash\022\021\n\tblockH" - + "ash\030\001 \001(\014\"/\n\034rsp_getBlockTransactionCoun" - + "t\022\017\n\007txCount\030\001 \001(\r\";\n$req_getBlockTransa" - + "ctionCountByNumber\022\023\n\013blockNumber\030\001 \001(\004\"" - + "K\n%req_getTransactionByBlockHashAndIndex" - + "\022\021\n\tblockHash\030\001 \001(\014\022\017\n\007txIndex\030\002 \001(\r\"O\n\'" - + "req_getTransactionByBlockNumberAndIndex\022" - + "\023\n\013blockNumber\030\001 \001(\004\022\017\n\007txIndex\030\002 \001(\r\"+\n" - + "\031req_getTransactionReceipt\022\016\n\006txHash\030\001 \001" - + "(\014\"\366\001\n\031rsp_getTransactionReceipt\022\017\n\007txIn" - + "dex\030\001 \001(\r\022\023\n\013blockNumber\030\002 \001(\004\022\023\n\013nrgCon" - + "sumed\030\003 \001(\004\022\031\n\021cumulativeNrgUsed\030\004 \001(\004\022\021" - + "\n\tblockHash\030\005 \001(\014\022\016\n\006txHash\030\006 \001(\014\022\014\n\004fro" - + "m\030\007 \001(\014\022\n\n\002to\030\010 \001(\014\022\027\n\017contractAddress\030\t" - + " \001(\014\022-\n\004logs\030\n \003(\0132\037.org.aion.api.server" - + ".pb.t_LgEle\"C\n\037req_getUncleByBlockHashAn" - + "dIndex\022\021\n\tblockHash\030\001 \001(\014\022\r\n\005index\030\002 \001(\r" - + "\"$\n\020rsp_getCompilers\022\020\n\010compiler\030\001 \003(\t\"%" - + "\n\023req_compileSolidity\022\016\n\006source\030\001 \001(\t\"U\n" - + "\023rsp_compileSolidity\022\014\n\004code\030\001 \001(\t\0220\n\004in" - + "fo\030\002 \001(\0132\".org.aion.api.server.pb.t_Cont" - + "ract\"\033\n\013rsp_getWork\022\014\n\004work\030\001 \003(\t\"A\n\016req" - + "_submitWork\022\r\n\005nonce\030\001 \001(\014\022\020\n\010solution\030\002" - + " \001(\014\022\016\n\006digest\030\003 \001(\014\"&\n\016rsp_submitWork\022\024" - + "\n\014workAccepted\030\001 \001(\010\"K\n\033rsp_fetchQueuedT" - + "ransactions\022,\n\002tx\030\001 \003(\0132 .org.aion.api.s" - + "erver.pb.t_AionTx\"\'\n\022req_rawTransaction\022" - + "\021\n\tencodedTx\030\001 \001(\014\"g\n\017req_estimateNrg\022\014\n" - + "\004from\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022\014" - + "\n\004data\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 " - + "\001(\004\"\036\n\017rsp_estimateNrg\022\013\n\003nrg\030\001 \001(\004\"\034\n\nr" - + "sp_mining\022\016\n\006mining\030\001 \001(\010\"J\n\013rsp_syncing" - + "\022\017\n\007syncing\030\001 \001(\010\022\024\n\014currentBlock\030\002 \001(\004\022" - + "\024\n\014highestBlock\030\003 \001(\004\" \n\014rsp_hashrate\022\020\n" - + "\010hashrate\030\001 \001(\004\"B\n\022rsp_getActiveNodes\022,\n" - + "\004node\030\001 \003(\0132\036.org.aion.api.server.pb.t_N" - + "ode\"B\n\022rsp_getStaticNodes\022,\n\004node\030\001 \003(\0132" - + "\036.org.aion.api.server.pb.t_Node\"!\n\022rsp_g" - + "etSolcVersion\022\013\n\003ver\030\001 \001(\t\" \n\rrsp_isSync" - + "ing\022\017\n\007syncing\030\001 \001(\010\"j\n\014rsp_syncInfo\022\017\n\007" - + "syncing\030\001 \001(\010\022\030\n\020networkBestBlock\030\002 \001(\004\022" - + "\026\n\016chainBestBlock\030\003 \001(\004\022\027\n\017maxImportBloc" - + "ks\030\004 \001(\r\"G\n\016rsp_systemInfo\022\020\n\010cpuUsage\030\001" - + " \001(\002\022\023\n\013memoryUsage\030\002 \001(\004\022\016\n\006DBSize\030\003 \001(" - + "\004\"W\n\021req_eventRegister\022\016\n\006events\030\001 \003(\t\0222" - + "\n\006filter\030\002 \001(\0132\".org.aion.api.server.pb." - + "t_FilterCt\"#\n\021rsp_eventRegister\022\016\n\006resul" - + "t\030\001 \001(\010\";\n\023req_eventDeregister\022\016\n\006events" - + "\030\001 \003(\t\022\024\n\014contractAddr\030\002 \001(\014\"%\n\023rsp_even" - + "tDeregister\022\016\n\006result\030\001 \001(\010\"D\n\023rsp_Event" - + "CtCallback\022-\n\002ec\030\001 \003(\0132!.org.aion.api.se" - + "rver.pb.t_EventCt\"9\n\021req_accountCreate\022\020" - + "\n\010password\030\001 \003(\t\022\022\n\nprivateKey\030\002 \001(\010\"8\n\021" - + "rsp_accountCreate\022\017\n\007address\030\001 \003(\014\022\022\n\npr" - + "ivateKey\030\002 \003(\014\"4\n\017req_accountlock\022\017\n\007acc" - + "ount\030\001 \001(\014\022\020\n\010password\030\002 \001(\t\"!\n\017rsp_acco" - + "untlock\022\016\n\006locked\030\001 \001(\010\"7\n\021req_userPrivi" - + "lege\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t" - + "\"&\n\021rsp_userPrivilege\022\021\n\tprivilege\030\001 \003(\t" - + "\"G\n\021req_queryCtEvents\0222\n\006filter\030\001 \001(\0132\"." - + "org.aion.api.server.pb.t_FilterCt\"B\n\021rsp" - + "_queryCtEvents\022-\n\002ec\030\001 \003(\0132!.org.aion.ap" - + "i.server.pb.t_EventCt\"4\n\014t_PrivateKey\022\022\n" - + "\nprivateKey\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"N\n\022r" - + "eq_importAccounts\0228\n\nprivateKey\030\001 \003(\0132$." - + "org.aion.api.server.pb.t_PrivateKey\"(\n\022r" - + "sp_importAccounts\022\022\n\ninvalidKey\030\001 \003(\t\"*\n" - + "\005t_Key\022\017\n\007address\030\001 \001(\014\022\020\n\010password\030\002 \001(" - + "\t\"D\n\022req_exportAccounts\022.\n\007keyFile\030\001 \003(\013" - + "2\035.org.aion.api.server.pb.t_Key\"8\n\022rsp_e" - + "xportAccounts\022\017\n\007keyFile\030\001 \003(\014\022\021\n\tfailed" - + "Key\030\002 \003(\014\"2\n\035rsp_getCurrentTotalDifficul" - + "ty\022\021\n\ttotalDiff\030\001 \001(\014\"1\n\033req_getBlockDet" - + "ailsByNumber\022\022\n\nblkNumbers\030\001 \003(\004\"X\n\033rsp_" - + "getBlockDetailsByNumber\0229\n\nblkDetails\030\001 " - + "\003(\0132%.org.aion.api.server.pb.t_BlockDeta" - + "il\",\n\033req_getBlockDetailsByLatest\022\r\n\005cou" - + "nt\030\001 \001(\004\"X\n\033rsp_getBlockDetailsByLatest\022" - + "9\n\nblkDetails\030\001 \003(\0132%.org.aion.api.serve" - + "r.pb.t_BlockDetail\"&\n\025req_getBlocksByLat" - + "est\022\r\n\005count\030\001 \001(\004\"F\n\025rsp_getBlocksByLat" - + "est\022-\n\004blks\030\001 \003(\0132\037.org.aion.api.server." - + "pb.t_Block\"7\n\"req_getAccountDetailsByAdd" - + "ressList\022\021\n\taddresses\030\001 \003(\014\"_\n\"rsp_getAc" - + "countDetailsByAddressList\0229\n\010accounts\030\001 " - + "\003(\0132\'.org.aion.api.server.pb.t_AccountDe" - + "tail\"F\n\026req_getBlockSqlByRange\022\026\n\016blkNum" - + "berStart\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"L\n\026" - + "rsp_getBlockSqlByRange\0222\n\006blkSql\030\001 \003(\0132\"" - + ".org.aion.api.server.pb.t_BlockSql\"J\n\032re" - + "q_getBlockDetailsByRange\022\026\n\016blkNumberSta" - + "rt\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"W\n\032rsp_ge" - + "tBlockDetailsByRange\0229\n\nblkDetails\030\001 \003(\013" - + "2%.org.aion.api.server.pb.t_BlockDetail\"" - + "\037\n\014req_getNonce\022\017\n\007address\030\001 \001(\014\"\035\n\014rsp_" - + "getNonce\022\r\n\005nonce\030\001 \001(\014\"\021\n\017req_getNrgPri" - + "ce\"#\n\017rsp_getNrgPrice\022\020\n\010nrgPrice\030\001 \001(\004*" - + "\204\001\n\005Servs\022\010\n\004s_hb\020\000\022\013\n\007s_admin\020\001\022\013\n\007s_ch" - + "ain\020\002\022\r\n\ts_account\020\003\022\010\n\004s_tx\020\004\022\t\n\005s_net\020" - + "\005\022\n\n\006s_mine\020\006\022\017\n\013s_privilege\020\007\022\014\n\010s_wall" - + "et\020\010\022\010\n\004s_NA\020\t*\310\n\n\005Funcs\022\025\n\021f_protocolVe" - + "rsion\020\000\022\022\n\016f_minerAddress\020\001\022\016\n\nf_account" - + "s\020\002\022\021\n\rf_blockNumber\020\003\022\020\n\014f_getBalance\020\004" - + "\022\022\n\016f_getStorageAt\020\005\022\023\n\017f_unlockAccount\020" - + "\006\022\025\n\021f_sendTransaction\020\007\022\032\n\026f_getTransac" - + "tionByHash\020\010\022\r\n\tf_compile\020\t\022\024\n\020f_contrac" - + "tDeploy\020\n\022\031\n\025f_getTransactionCount\020\013\022$\n " - + "f_getBlockTransactionCountByHash\020\014\022&\n\"f_" - + "getBlockTransactionCountByNumber\020\r\022\r\n\tf_" - + "getCode\020\016\022\n\n\006f_call\020\017\022\024\n\020f_getBlockByHas" - + "h\020\020\022\026\n\022f_getBlockByNumber\020\021\022\'\n#f_getTran" - + "sactionByBlockHashAndIndex\020\022\022)\n%f_getTra" - + "nsactionByBlockNumberAndIndex\020\023\022\033\n\027f_get" - + "TransactionReceipt\020\024\022\022\n\016f_getCompilers\020\025" - + "\022\025\n\021f_compileSolidity\020\026\022\r\n\tf_getWork\020\027\022\020" - + "\n\014f_submitWork\020\030\022\035\n\031f_fetchQueuedTransac" - + "tions\020\031\022\027\n\023f_signedTransaction\020\032\022\024\n\020f_ra" - + "wTransaction\020\033\022\021\n\rf_estimateNrg\020\034\022\014\n\010f_m" - + "ining\020\035\022\016\n\nf_hashrate\020\036\022\024\n\020f_getActiveNo" - + "des\020\037\022\024\n\020f_getSolcVersion\020 \022\017\n\013f_isSynci" - + "ng\020!\022\016\n\nf_syncInfo\020\"\022\023\n\017f_getSystemInfo\020" - + "#\022\023\n\017f_eventRegister\020$\022\025\n\021f_eventDeregis" - + "ter\020%\022\023\n\017f_accountCreate\020&\022\021\n\rf_accountL" - + "ock\020\'\022\023\n\017f_userPrivilege\020(\022\020\n\014f_eventQue" - + "ry\020)\022\024\n\020f_importAccounts\020*\022\024\n\020f_exportAc" - + "counts\020+\022\034\n\030f_getBlockHeaderByNumber\020,\022\032" - + "\n\026f_getBlockHeaderByHash\020-\022\037\n\033f_getCurre" - + "ntTotalDifficulty\020.\022\024\n\020f_getStaticNodes\020" - + "/\022\035\n\031f_getBlockDetailsByNumber\0200\022\035\n\031f_ge" - + "tBlockDetailsByLatest\0201\022\027\n\023f_getBlocksBy" - + "Latest\0202\022$\n f_getAccountDetailsByAddress" - + "List\0203\022\024\n\020f_backupAccounts\0204\022\010\n\004f_NA\0205\022\030" - + "\n\024f_getBlockSqlByRange\0206\022\034\n\030f_getBlockDe" - + "tailsByRange\0207\022\016\n\nf_getNonce\0208\022\021\n\rf_getN" - + "rgPrice\0209*\241\007\n\007Retcode\022\n\n\006r_fail\020\000\022\r\n\tr_s" - + "uccess\020\001\022\023\n\017r_wallet_nullcb\020\002\022\025\n\021r_heart" - + "beatReturn\020\003\022\025\n\021r_privilegeReturn\020\004\022\r\n\tr" - + "_tx_Init\020d\022\017\n\013r_tx_Recved\020e\022\020\n\014r_tx_Drop" - + "ped\020f\022\023\n\017r_tx_NewPending\020g\022\020\n\014r_tx_Pendi" - + "ng\020h\022\021\n\rr_tx_Included\020i\022\020\n\014r_tx_eventCb\020" - + "j\022\010\n\004r_NA\020k\022\036\n\021r_fail_header_len\020\377\377\377\377\377\377\377" - + "\377\377\001\022 \n\023r_fail_service_call\020\376\377\377\377\377\377\377\377\377\001\022!\n" - + "\024r_fail_function_call\020\375\377\377\377\377\377\377\377\377\001\022&\n\031r_fa" - + "il_function_exception\020\374\377\377\377\377\377\377\377\377\001\022\037\n\022r_fa" - + "il_api_version\020\373\377\377\377\377\377\377\377\377\001\022\037\n\022r_fail_ct_b" - + "ytecode\020\372\377\377\377\377\377\377\377\377\001\022\034\n\017r_fail_null_rsp\020\371\377" - + "\377\377\377\377\377\377\377\001\022 \n\023r_fail_invalid_addr\020\370\377\377\377\377\377\377\377" - + "\377\001\022\'\n\032r_fail_null_compile_source\020\367\377\377\377\377\377\377" - + "\377\377\001\022$\n\027r_fail_compile_contract\020\366\377\377\377\377\377\377\377\377" - + "\001\022#\n\026r_fail_sendTx_null_rep\020\365\377\377\377\377\377\377\377\377\001\022\036" - + "\n\021r_fail_getcode_to\020\364\377\377\377\377\377\377\377\377\001\022*\n\035r_fail" - + "_getTxReceipt_null_recp\020\363\377\377\377\377\377\377\377\377\001\022(\n\033r_" - + "fail_zmqHandler_exception\020\362\377\377\377\377\377\377\377\377\001\022(\n\033" - + "r_fail_hit_pending_tx_limit\020\361\377\377\377\377\377\377\377\377\001\022%" - + "\n\030r_fail_txqueue_exception\020\360\377\377\377\377\377\377\377\377\001\022&\n" - + "\031r_fail_function_arguments\020\357\377\377\377\377\377\377\377\377\001\022!\n" - + "\024r_fail_unsupport_api\020\356\377\377\377\377\377\377\377\377\001\022\033\n\016r_fa" - + "il_unknown\020\355\377\377\377\377\377\377\377\377\001b\006proto3" + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Contract_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_AionTx_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Node_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_LgEle_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_FilterCt_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_EventCt_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_TxDetail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Block_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_BlockSql_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_accounts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_compile_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_compile_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getCode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getCode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_call_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_call_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBalance_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getWork_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_submitWork_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_mining_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_syncing_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_eventRegister_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_accountCreate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_accountlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_importAccounts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_t_Key_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_req_getNonce_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\rmessage.proto\022\026org.aion.api.server.pb\"" + + "\234\001\n\nt_Contract\022\014\n\004code\030\001 \001(\t\022\r\n\005error\030\002 " + + "\001(\t\022\016\n\006source\030\003 \001(\t\022\027\n\017compilerVersion\030\004" + + " \001(\t\022\027\n\017compilerOptions\030\005 \001(\t\022\016\n\006abiDef\030" + + "\006 \001(\014\022\017\n\007userDoc\030\007 \001(\014\022\016\n\006devDoc\030\010 \001(\014\"\207" + + "\001\n\010t_AionTx\022\016\n\006txHash\030\001 \001(\014\022\014\n\004from\030\002 \001(" + + "\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(\014\022\014\n\004data\030\005 \001" + + "(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgConsumed\030\007 \001(\004\022\020" + + "\n\010nrgPrice\030\010 \001(\004\"n\n\006t_Node\022\023\n\013blockNumbe" + + "r\030\001 \001(\004\022\016\n\006nodeId\030\002 \001(\t\022\025\n\rremote_p2p_ip" + + "\030\003 \001(\t\022\027\n\017remote_p2p_port\030\004 \001(\r\022\017\n\007laten" + + "cy\030\005 \001(\r\"8\n\007t_LgEle\022\017\n\007address\030\001 \001(\014\022\014\n\004" + + "data\030\002 \001(\014\022\016\n\006topics\030\003 \003(\t\"s\n\nt_FilterCt" + + "\022\014\n\004from\030\001 \001(\t\022\n\n\002to\030\002 \001(\t\022\024\n\014contractAd" + + "dr\030\003 \001(\014\022\021\n\taddresses\030\004 \003(\014\022\016\n\006topics\030\005 " + + "\003(\t\022\022\n\nexpireTime\030\006 \001(\004\"\251\001\n\tt_EventCt\022\017\n" + + "\007address\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022\021\n\tblockHas" + + "h\030\003 \001(\014\022\023\n\013blockNumber\030\004 \001(\004\022\020\n\010logIndex" + + "\030\005 \001(\r\022\021\n\teventName\030\006 \001(\t\022\017\n\007removed\030\007 \001" + + "(\010\022\017\n\007txIndex\030\010 \001(\r\022\016\n\006txHash\030\t \001(\014\"\233\003\n\r" + + "t_BlockDetail\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tti" + + "mestamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nr" + + "gLimit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014mine" + + "rAddress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxT" + + "rieRoot\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021" + + "\n\tlogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n" + + "\017totalDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(" + + "\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004ha" + + "sh\030\020 \001(\014\022\014\n\004size\030\021 \001(\r\022.\n\002tx\030\022 \003(\0132\".org" + + ".aion.api.server.pb.t_TxDetail\022\021\n\tblockT" + + "ime\030\023 \001(\004\"\375\001\n\nt_TxDetail\022\016\n\006txHash\030\001 \001(\014" + + "\022\014\n\004from\030\002 \001(\014\022\n\n\002to\030\003 \001(\014\022\r\n\005value\030\004 \001(" + + "\014\022\014\n\004data\030\005 \001(\014\022\r\n\005nonce\030\006 \001(\014\022\023\n\013nrgCon" + + "sumed\030\007 \001(\004\022\020\n\010nrgPrice\030\010 \001(\004\022\017\n\007txIndex" + + "\030\t \001(\r\022\020\n\010contract\030\n \001(\014\022-\n\004logs\030\013 \003(\0132\037" + + ".org.aion.api.server.pb.t_LgEle\022\021\n\ttimes" + + "tamp\030\014 \001(\004\022\r\n\005error\030\r \001(\t\"3\n\017t_AccountDe" + + "tail\022\017\n\007address\030\001 \001(\014\022\017\n\007balance\030\002 \001(\014\"\342" + + "\002\n\007t_Block\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" + + "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" + + "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" + + "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" + + "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" + + "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\027\n\017to" + + "talDifficulty\030\014 \001(\014\022\021\n\textraData\030\r \001(\014\022\r" + + "\n\005nonce\030\016 \001(\014\022\020\n\010solution\030\017 \001(\014\022\014\n\004hash\030" + + "\020 \001(\014\022\014\n\004size\030\021 \001(\r\022\016\n\006txHash\030\022 \003(\014\"c\n\nt" + + "_BlockSql\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\tblockH" + + "ash\030\002 \001(\t\022\022\n\nparentHash\030\003 \001(\t\022\r\n\005block\030\004" + + " \001(\t\022\n\n\002tx\030\005 \003(\t\" \n\014rsp_errormsg\022\020\n\010erro" + + "rmsg\030\001 \001(\t\"v\n\023rsp_protocolVersion\022\016\n\006ker" + + "nel\030\001 \001(\t\022\013\n\003net\030\002 \001(\t\022\013\n\003api\030\003 \001(\t\022\n\n\002v" + + "m\030\004 \001(\t\022\n\n\002db\030\005 \001(\t\022\r\n\005miner\030\006 \001(\t\022\016\n\006tx" + + "pool\030\007 \001(\t\"%\n\020rsp_minerAddress\022\021\n\tminerA" + + "ddr\030\001 \001(\014\"+\n\024req_getBlockByNumber\022\023\n\013blo" + + "ckNumber\030\001 \001(\004\"\347\002\n\014rsp_getBlock\022\023\n\013block" + + "Number\030\001 \001(\004\022\021\n\ttimestamp\030\002 \001(\004\022\023\n\013nrgCo" + + "nsumed\030\003 \001(\004\022\020\n\010nrgLimit\030\004 \001(\004\022\022\n\nparent" + + "Hash\030\005 \001(\014\022\024\n\014minerAddress\030\006 \001(\014\022\021\n\tstat" + + "eRoot\030\007 \001(\014\022\022\n\ntxTrieRoot\030\010 \001(\014\022\027\n\017recei" + + "ptTrieRoot\030\t \001(\014\022\021\n\tlogsBloom\030\n \001(\014\022\022\n\nd" + + "ifficulty\030\013 \001(\014\022\027\n\017totalDifficulty\030\014 \001(\014" + + "\022\021\n\textraData\030\r \001(\014\022\r\n\005nonce\030\016 \001(\014\022\020\n\010so" + + "lution\030\017 \001(\014\022\014\n\004hash\030\020 \001(\014\022\014\n\004size\030\021 \001(\r" + + "\022\016\n\006txHash\030\022 \003(\014\"1\n\032req_getBlockHeaderBy" + + "Number\022\023\n\013blockNumber\030\001 \001(\004\"\304\002\n\022rsp_getB" + + "lockHeader\022\023\n\013blockNumber\030\001 \001(\004\022\021\n\ttimes" + + "tamp\030\002 \001(\004\022\023\n\013nrgConsumed\030\003 \001(\004\022\020\n\010nrgLi" + + "mit\030\004 \001(\004\022\022\n\nparentHash\030\005 \001(\014\022\024\n\014minerAd" + + "dress\030\006 \001(\014\022\021\n\tstateRoot\030\007 \001(\014\022\022\n\ntxTrie" + + "Root\030\010 \001(\014\022\027\n\017receiptTrieRoot\030\t \001(\014\022\021\n\tl" + + "ogsBloom\030\n \001(\014\022\022\n\ndifficulty\030\013 \001(\014\022\021\n\tex" + + "traData\030\014 \001(\014\022\r\n\005nonce\030\r \001(\014\022\020\n\010solution" + + "\030\016 \001(\014\022\014\n\004hash\030\017 \001(\014\022\014\n\004size\030\020 \001(\r\"z\n\023re" + + "q_sendTransaction\022\014\n\004from\030\001 \001(\014\022\n\n\002to\030\002 " + + "\001(\014\022\r\n\005value\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005nonc" + + "e\030\005 \001(\014\022\013\n\003nrg\030\006 \001(\004\022\020\n\010nrgPrice\030\007 \001(\004\"%" + + "\n\023rsp_sendTransaction\022\016\n\006txHash\030\001 \001(\014\"*\n" + + "\030req_getTransactionByHash\022\016\n\006txHash\030\001 \001(" + + "\014\"\334\001\n\022rsp_getTransaction\022\017\n\007txIndex\030\001 \001(" + + "\r\022\023\n\013blocknumber\030\002 \001(\004\022\021\n\ttimeStamp\030\003 \001(" + + "\004\022\022\n\nnrgConsume\030\004 \001(\004\022\020\n\010nrgPrice\030\005 \001(\004\022" + + "\021\n\tblockhash\030\006 \001(\014\022\014\n\004from\030\007 \001(\014\022\016\n\006txHa" + + "sh\030\010 \001(\014\022\014\n\004data\030\t \001(\014\022\r\n\005nonce\030\n \001(\014\022\n\n" + + "\002to\030\013 \001(\014\022\r\n\005value\030\014 \001(\014\"H\n\021req_unlockAc" + + "count\022\017\n\007account\030\001 \001(\014\022\020\n\010password\030\002 \001(\t" + + "\022\020\n\010duration\030\003 \001(\r\"\036\n\014rsp_accounts\022\016\n\006ac" + + "cout\030\001 \003(\014\"\033\n\013req_compile\022\014\n\004code\030\001 \001(\t\"" + + "\255\001\n\013rsp_compile\022G\n\nconstracts\030\001 \003(\01323.or" + + "g.aion.api.server.pb.rsp_compile.Constra" + + "ctsEntry\032U\n\017ConstractsEntry\022\013\n\003key\030\001 \001(\t" + + "\0221\n\005value\030\002 \001(\0132\".org.aion.api.server.pb" + + ".t_Contract:\0028\001\"3\n\013req_getCode\022\017\n\007addres" + + "s\030\001 \001(\014\022\023\n\013blocknumber\030\002 \001(\004\"\033\n\013rsp_getC" + + "ode\022\014\n\004code\030\001 \001(\014\"c\n\022req_contractDeploy\022" + + "\020\n\010nrgLimit\030\001 \001(\004\022\020\n\010nrgPrice\030\002 \001(\004\022\014\n\004f" + + "rom\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022\r\n\005value\030\005 \001(\014\"=" + + "\n\022rsp_contractDeploy\022\016\n\006txHash\030\001 \001(\014\022\027\n\017" + + "contractAddress\030\002 \001(\014\"`\n\010req_call\022\014\n\004fro" + + "m\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\014\n\004data\030\003 \001(\014\022\r\n\005val" + + "ue\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 \001(\004\"" + + "\032\n\010rsp_call\022\016\n\006result\030\001 \001(\014\"\'\n\022req_getBl" + + "ockByHash\022\021\n\tblockHash\030\001 \001(\014\"-\n\030req_getB" + + "lockHeaderByHash\022\021\n\tblockHash\030\001 \001(\014\"?\n\027r" + + "eq_getTransactionCount\022\017\n\007address\030\001 \001(\014\022" + + "\023\n\013blocknumber\030\002 \001(\004\"*\n\027rsp_getTransacti" + + "onCount\022\017\n\007txCount\030\001 \001(\004\"/\n\035req_getTrans" + + "actionCountByHash\022\016\n\006txHash\030\001 \001(\014\"&\n\017rsp" + + "_blockNumber\022\023\n\013blocknumber\030\001 \001(\004\"6\n\016req" + + "_getBalance\022\017\n\007address\030\001 \001(\014\022\023\n\013blockNum" + + "ber\030\002 \001(\004\"!\n\016rsp_getBalance\022\017\n\007balance\030\001" + + " \001(\014\"E\n\020req_getStorageAt\022\017\n\007address\030\001 \001(" + + "\014\022\013\n\003key\030\002 \001(\t\022\023\n\013blocknumber\030\003 \001(\004\"#\n\020r" + + "sp_getStorageAt\022\017\n\007storage\030\001 \001(\t\"7\n\"req_" + + "getBlockTransactionCountByHash\022\021\n\tblockH" + + "ash\030\001 \001(\014\"/\n\034rsp_getBlockTransactionCoun" + + "t\022\017\n\007txCount\030\001 \001(\r\";\n$req_getBlockTransa" + + "ctionCountByNumber\022\023\n\013blockNumber\030\001 \001(\004\"" + + "K\n%req_getTransactionByBlockHashAndIndex" + + "\022\021\n\tblockHash\030\001 \001(\014\022\017\n\007txIndex\030\002 \001(\r\"O\n\'" + + "req_getTransactionByBlockNumberAndIndex\022" + + "\023\n\013blockNumber\030\001 \001(\004\022\017\n\007txIndex\030\002 \001(\r\"+\n" + + "\031req_getTransactionReceipt\022\016\n\006txHash\030\001 \001" + + "(\014\"\366\001\n\031rsp_getTransactionReceipt\022\017\n\007txIn" + + "dex\030\001 \001(\r\022\023\n\013blockNumber\030\002 \001(\004\022\023\n\013nrgCon" + + "sumed\030\003 \001(\004\022\031\n\021cumulativeNrgUsed\030\004 \001(\004\022\021" + + "\n\tblockHash\030\005 \001(\014\022\016\n\006txHash\030\006 \001(\014\022\014\n\004fro" + + "m\030\007 \001(\014\022\n\n\002to\030\010 \001(\014\022\027\n\017contractAddress\030\t" + + " \001(\014\022-\n\004logs\030\n \003(\0132\037.org.aion.api.server" + + ".pb.t_LgEle\"C\n\037req_getUncleByBlockHashAn" + + "dIndex\022\021\n\tblockHash\030\001 \001(\014\022\r\n\005index\030\002 \001(\r" + + "\"$\n\020rsp_getCompilers\022\020\n\010compiler\030\001 \003(\t\"%" + + "\n\023req_compileSolidity\022\016\n\006source\030\001 \001(\t\"U\n" + + "\023rsp_compileSolidity\022\014\n\004code\030\001 \001(\t\0220\n\004in" + + "fo\030\002 \001(\0132\".org.aion.api.server.pb.t_Cont" + + "ract\"\033\n\013rsp_getWork\022\014\n\004work\030\001 \003(\t\"A\n\016req" + + "_submitWork\022\r\n\005nonce\030\001 \001(\014\022\020\n\010solution\030\002" + + " \001(\014\022\016\n\006digest\030\003 \001(\014\"&\n\016rsp_submitWork\022\024" + + "\n\014workAccepted\030\001 \001(\010\"K\n\033rsp_fetchQueuedT" + + "ransactions\022,\n\002tx\030\001 \003(\0132 .org.aion.api.s" + + "erver.pb.t_AionTx\"\'\n\022req_rawTransaction\022" + + "\021\n\tencodedTx\030\001 \001(\014\"g\n\017req_estimateNrg\022\014\n" + + "\004from\030\001 \001(\014\022\n\n\002to\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022\014" + + "\n\004data\030\004 \001(\014\022\013\n\003nrg\030\005 \001(\004\022\020\n\010nrgPrice\030\006 " + + "\001(\004\"\036\n\017rsp_estimateNrg\022\013\n\003nrg\030\001 \001(\004\"\034\n\nr" + + "sp_mining\022\016\n\006mining\030\001 \001(\010\"J\n\013rsp_syncing" + + "\022\017\n\007syncing\030\001 \001(\010\022\024\n\014currentBlock\030\002 \001(\004\022" + + "\024\n\014highestBlock\030\003 \001(\004\" \n\014rsp_hashrate\022\020\n" + + "\010hashrate\030\001 \001(\004\"B\n\022rsp_getActiveNodes\022,\n" + + "\004node\030\001 \003(\0132\036.org.aion.api.server.pb.t_N" + + "ode\"B\n\022rsp_getStaticNodes\022,\n\004node\030\001 \003(\0132" + + "\036.org.aion.api.server.pb.t_Node\"!\n\022rsp_g" + + "etSolcVersion\022\013\n\003ver\030\001 \001(\t\" \n\rrsp_isSync" + + "ing\022\017\n\007syncing\030\001 \001(\010\"j\n\014rsp_syncInfo\022\017\n\007" + + "syncing\030\001 \001(\010\022\030\n\020networkBestBlock\030\002 \001(\004\022" + + "\026\n\016chainBestBlock\030\003 \001(\004\022\027\n\017maxImportBloc" + + "ks\030\004 \001(\r\"G\n\016rsp_systemInfo\022\020\n\010cpuUsage\030\001" + + " \001(\002\022\023\n\013memoryUsage\030\002 \001(\004\022\016\n\006DBSize\030\003 \001(" + + "\004\"W\n\021req_eventRegister\022\016\n\006events\030\001 \003(\t\0222" + + "\n\006filter\030\002 \001(\0132\".org.aion.api.server.pb." + + "t_FilterCt\"#\n\021rsp_eventRegister\022\016\n\006resul" + + "t\030\001 \001(\010\";\n\023req_eventDeregister\022\016\n\006events" + + "\030\001 \003(\t\022\024\n\014contractAddr\030\002 \001(\014\"%\n\023rsp_even" + + "tDeregister\022\016\n\006result\030\001 \001(\010\"D\n\023rsp_Event" + + "CtCallback\022-\n\002ec\030\001 \003(\0132!.org.aion.api.se" + + "rver.pb.t_EventCt\"9\n\021req_accountCreate\022\020" + + "\n\010password\030\001 \003(\t\022\022\n\nprivateKey\030\002 \001(\010\"8\n\021" + + "rsp_accountCreate\022\017\n\007address\030\001 \003(\014\022\022\n\npr" + + "ivateKey\030\002 \003(\014\"4\n\017req_accountlock\022\017\n\007acc" + + "ount\030\001 \001(\014\022\020\n\010password\030\002 \001(\t\"!\n\017rsp_acco" + + "untlock\022\016\n\006locked\030\001 \001(\010\"7\n\021req_userPrivi" + + "lege\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t" + + "\"&\n\021rsp_userPrivilege\022\021\n\tprivilege\030\001 \003(\t" + + "\"G\n\021req_queryCtEvents\0222\n\006filter\030\001 \001(\0132\"." + + "org.aion.api.server.pb.t_FilterCt\"B\n\021rsp" + + "_queryCtEvents\022-\n\002ec\030\001 \003(\0132!.org.aion.ap" + + "i.server.pb.t_EventCt\"4\n\014t_PrivateKey\022\022\n" + + "\nprivateKey\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"N\n\022r" + + "eq_importAccounts\0228\n\nprivateKey\030\001 \003(\0132$." + + "org.aion.api.server.pb.t_PrivateKey\"(\n\022r" + + "sp_importAccounts\022\022\n\ninvalidKey\030\001 \003(\t\"*\n" + + "\005t_Key\022\017\n\007address\030\001 \001(\014\022\020\n\010password\030\002 \001(" + + "\t\"D\n\022req_exportAccounts\022.\n\007keyFile\030\001 \003(\013" + + "2\035.org.aion.api.server.pb.t_Key\"8\n\022rsp_e" + + "xportAccounts\022\017\n\007keyFile\030\001 \003(\014\022\021\n\tfailed" + + "Key\030\002 \003(\014\"2\n\035rsp_getCurrentTotalDifficul" + + "ty\022\021\n\ttotalDiff\030\001 \001(\014\"1\n\033req_getBlockDet" + + "ailsByNumber\022\022\n\nblkNumbers\030\001 \003(\004\"X\n\033rsp_" + + "getBlockDetailsByNumber\0229\n\nblkDetails\030\001 " + + "\003(\0132%.org.aion.api.server.pb.t_BlockDeta" + + "il\",\n\033req_getBlockDetailsByLatest\022\r\n\005cou" + + "nt\030\001 \001(\004\"X\n\033rsp_getBlockDetailsByLatest\022" + + "9\n\nblkDetails\030\001 \003(\0132%.org.aion.api.serve" + + "r.pb.t_BlockDetail\"&\n\025req_getBlocksByLat" + + "est\022\r\n\005count\030\001 \001(\004\"F\n\025rsp_getBlocksByLat" + + "est\022-\n\004blks\030\001 \003(\0132\037.org.aion.api.server." + + "pb.t_Block\"7\n\"req_getAccountDetailsByAdd" + + "ressList\022\021\n\taddresses\030\001 \003(\014\"_\n\"rsp_getAc" + + "countDetailsByAddressList\0229\n\010accounts\030\001 " + + "\003(\0132\'.org.aion.api.server.pb.t_AccountDe" + + "tail\"F\n\026req_getBlockSqlByRange\022\026\n\016blkNum" + + "berStart\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"L\n\026" + + "rsp_getBlockSqlByRange\0222\n\006blkSql\030\001 \003(\0132\"" + + ".org.aion.api.server.pb.t_BlockSql\"J\n\032re" + + "q_getBlockDetailsByRange\022\026\n\016blkNumberSta" + + "rt\030\001 \001(\004\022\024\n\014blkNumberEnd\030\002 \001(\004\"W\n\032rsp_ge" + + "tBlockDetailsByRange\0229\n\nblkDetails\030\001 \003(\013" + + "2%.org.aion.api.server.pb.t_BlockDetail\"" + + "\037\n\014req_getNonce\022\017\n\007address\030\001 \001(\014\"\035\n\014rsp_" + + "getNonce\022\r\n\005nonce\030\001 \001(\014\"#\n\017rsp_getNrgPri" + + "ce\022\020\n\010nrgPrice\030\001 \001(\004*\204\001\n\005Servs\022\010\n\004s_hb\020\000" + + "\022\013\n\007s_admin\020\001\022\013\n\007s_chain\020\002\022\r\n\ts_account\020" + + "\003\022\010\n\004s_tx\020\004\022\t\n\005s_net\020\005\022\n\n\006s_mine\020\006\022\017\n\013s_" + + "privilege\020\007\022\014\n\010s_wallet\020\010\022\010\n\004s_NA\020\t*\310\n\n\005" + + "Funcs\022\025\n\021f_protocolVersion\020\000\022\022\n\016f_minerA" + + "ddress\020\001\022\016\n\nf_accounts\020\002\022\021\n\rf_blockNumbe" + + "r\020\003\022\020\n\014f_getBalance\020\004\022\022\n\016f_getStorageAt\020" + + "\005\022\023\n\017f_unlockAccount\020\006\022\025\n\021f_sendTransact" + + "ion\020\007\022\032\n\026f_getTransactionByHash\020\010\022\r\n\tf_c" + + "ompile\020\t\022\024\n\020f_contractDeploy\020\n\022\031\n\025f_getT" + + "ransactionCount\020\013\022$\n f_getBlockTransacti" + + "onCountByHash\020\014\022&\n\"f_getBlockTransaction" + + "CountByNumber\020\r\022\r\n\tf_getCode\020\016\022\n\n\006f_call" + + "\020\017\022\024\n\020f_getBlockByHash\020\020\022\026\n\022f_getBlockBy" + + "Number\020\021\022\'\n#f_getTransactionByBlockHashA" + + "ndIndex\020\022\022)\n%f_getTransactionByBlockNumb" + + "erAndIndex\020\023\022\033\n\027f_getTransactionReceipt\020" + + "\024\022\022\n\016f_getCompilers\020\025\022\025\n\021f_compileSolidi" + + "ty\020\026\022\r\n\tf_getWork\020\027\022\020\n\014f_submitWork\020\030\022\035\n" + + "\031f_fetchQueuedTransactions\020\031\022\027\n\023f_signed" + + "Transaction\020\032\022\024\n\020f_rawTransaction\020\033\022\021\n\rf" + + "_estimateNrg\020\034\022\014\n\010f_mining\020\035\022\016\n\nf_hashra" + + "te\020\036\022\024\n\020f_getActiveNodes\020\037\022\024\n\020f_getSolcV" + + "ersion\020 \022\017\n\013f_isSyncing\020!\022\016\n\nf_syncInfo\020" + + "\"\022\023\n\017f_getSystemInfo\020#\022\023\n\017f_eventRegiste" + + "r\020$\022\025\n\021f_eventDeregister\020%\022\023\n\017f_accountC" + + "reate\020&\022\021\n\rf_accountLock\020\'\022\023\n\017f_userPriv" + + "ilege\020(\022\020\n\014f_eventQuery\020)\022\024\n\020f_importAcc" + + "ounts\020*\022\024\n\020f_exportAccounts\020+\022\034\n\030f_getBl" + + "ockHeaderByNumber\020,\022\032\n\026f_getBlockHeaderB" + + "yHash\020-\022\037\n\033f_getCurrentTotalDifficulty\020." + + "\022\024\n\020f_getStaticNodes\020/\022\035\n\031f_getBlockDeta" + + "ilsByNumber\0200\022\035\n\031f_getBlockDetailsByLate" + + "st\0201\022\027\n\023f_getBlocksByLatest\0202\022$\n f_getAc" + + "countDetailsByAddressList\0203\022\024\n\020f_backupA" + + "ccounts\0204\022\010\n\004f_NA\0205\022\030\n\024f_getBlockSqlByRa" + + "nge\0206\022\034\n\030f_getBlockDetailsByRange\0207\022\016\n\nf" + + "_getNonce\0208\022\021\n\rf_getNrgPrice\0209*\241\007\n\007Retco" + + "de\022\n\n\006r_fail\020\000\022\r\n\tr_success\020\001\022\023\n\017r_walle" + + "t_nullcb\020\002\022\025\n\021r_heartbeatReturn\020\003\022\025\n\021r_p" + + "rivilegeReturn\020\004\022\r\n\tr_tx_Init\020d\022\017\n\013r_tx_" + + "Recved\020e\022\020\n\014r_tx_Dropped\020f\022\023\n\017r_tx_NewPe" + + "nding\020g\022\020\n\014r_tx_Pending\020h\022\021\n\rr_tx_Includ" + + "ed\020i\022\020\n\014r_tx_eventCb\020j\022\010\n\004r_NA\020k\022\036\n\021r_fa" + + "il_header_len\020\377\377\377\377\377\377\377\377\377\001\022 \n\023r_fail_servi" + + "ce_call\020\376\377\377\377\377\377\377\377\377\001\022!\n\024r_fail_function_ca" + + "ll\020\375\377\377\377\377\377\377\377\377\001\022&\n\031r_fail_function_excepti" + + "on\020\374\377\377\377\377\377\377\377\377\001\022\037\n\022r_fail_api_version\020\373\377\377\377" + + "\377\377\377\377\377\001\022\037\n\022r_fail_ct_bytecode\020\372\377\377\377\377\377\377\377\377\001\022" + + "\034\n\017r_fail_null_rsp\020\371\377\377\377\377\377\377\377\377\001\022 \n\023r_fail_" + + "invalid_addr\020\370\377\377\377\377\377\377\377\377\001\022\'\n\032r_fail_null_c" + + "ompile_source\020\367\377\377\377\377\377\377\377\377\001\022$\n\027r_fail_compi" + + "le_contract\020\366\377\377\377\377\377\377\377\377\001\022#\n\026r_fail_sendTx_" + + "null_rep\020\365\377\377\377\377\377\377\377\377\001\022\036\n\021r_fail_getcode_to" + + "\020\364\377\377\377\377\377\377\377\377\001\022*\n\035r_fail_getTxReceipt_null_" + + "recp\020\363\377\377\377\377\377\377\377\377\001\022(\n\033r_fail_zmqHandler_exc" + + "eption\020\362\377\377\377\377\377\377\377\377\001\022(\n\033r_fail_hit_pending_" + + "tx_limit\020\361\377\377\377\377\377\377\377\377\001\022%\n\030r_fail_txqueue_ex" + + "ception\020\360\377\377\377\377\377\377\377\377\001\022&\n\031r_fail_function_ar" + + "guments\020\357\377\377\377\377\377\377\377\377\001\022!\n\024r_fail_unsupport_a" + + "pi\020\356\377\377\377\377\377\377\377\377\001\022\033\n\016r_fail_unknown\020\355\377\377\377\377\377\377\377" + + "\377\001b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner); - internal_static_org_aion_api_server_pb_t_Contract_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Contract_descriptor, - new java.lang.String[] { - "Code", - "Error", - "Source", - "CompilerVersion", - "CompilerOptions", - "AbiDef", - "UserDoc", - "DevDoc", - }); - internal_static_org_aion_api_server_pb_t_AionTx_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_AionTx_descriptor, - new java.lang.String[] { - "TxHash", - "From", - "To", - "Value", - "Data", - "Nonce", - "NrgConsumed", - "NrgPrice", - }); - internal_static_org_aion_api_server_pb_t_Node_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Node_descriptor, - new java.lang.String[] { - "BlockNumber", "NodeId", "RemoteP2PIp", "RemoteP2PPort", "Latency", - }); - internal_static_org_aion_api_server_pb_t_LgEle_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_LgEle_descriptor, - new java.lang.String[] { - "Address", "Data", "Topics", - }); - internal_static_org_aion_api_server_pb_t_FilterCt_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_FilterCt_descriptor, - new java.lang.String[] { - "From", "To", "ContractAddr", "Addresses", "Topics", "ExpireTime", - }); - internal_static_org_aion_api_server_pb_t_EventCt_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_EventCt_descriptor, - new java.lang.String[] { - "Address", - "Data", - "BlockHash", - "BlockNumber", - "LogIndex", - "EventName", - "Removed", - "TxIndex", - "TxHash", - }); - internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor, - new java.lang.String[] { - "BlockNumber", - "Timestamp", - "NrgConsumed", - "NrgLimit", - "ParentHash", - "MinerAddress", - "StateRoot", - "TxTrieRoot", - "ReceiptTrieRoot", - "LogsBloom", - "Difficulty", - "TotalDifficulty", - "ExtraData", - "Nonce", - "Solution", - "Hash", - "Size", - "Tx", - "BlockTime", - }); - internal_static_org_aion_api_server_pb_t_TxDetail_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_TxDetail_descriptor, - new java.lang.String[] { - "TxHash", - "From", - "To", - "Value", - "Data", - "Nonce", - "NrgConsumed", - "NrgPrice", - "TxIndex", - "Contract", - "Logs", - "Timestamp", - "Error", - }); - internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor, - new java.lang.String[] { - "Address", "Balance", - }); - internal_static_org_aion_api_server_pb_t_Block_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Block_descriptor, - new java.lang.String[] { - "BlockNumber", - "Timestamp", - "NrgConsumed", - "NrgLimit", - "ParentHash", - "MinerAddress", - "StateRoot", - "TxTrieRoot", - "ReceiptTrieRoot", - "LogsBloom", - "Difficulty", - "TotalDifficulty", - "ExtraData", - "Nonce", - "Solution", - "Hash", - "Size", - "TxHash", - }); - internal_static_org_aion_api_server_pb_t_BlockSql_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_BlockSql_descriptor, - new java.lang.String[] { - "BlockNumber", "BlockHash", "ParentHash", "Block", "Tx", - }); - internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor, - new java.lang.String[] { - "Errormsg", - }); - internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor, - new java.lang.String[] { - "Kernel", "Net", "Api", "Vm", "Db", "Miner", "Txpool", - }); - internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor, - new java.lang.String[] { - "MinerAddr", - }); - internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor, - new java.lang.String[] { - "BlockNumber", - }); - internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor, - new java.lang.String[] { - "BlockNumber", - "Timestamp", - "NrgConsumed", - "NrgLimit", - "ParentHash", - "MinerAddress", - "StateRoot", - "TxTrieRoot", - "ReceiptTrieRoot", - "LogsBloom", - "Difficulty", - "TotalDifficulty", - "ExtraData", - "Nonce", - "Solution", - "Hash", - "Size", - "TxHash", - }); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor, - new java.lang.String[] { - "BlockNumber", - }); - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor, - new java.lang.String[] { - "BlockNumber", - "Timestamp", - "NrgConsumed", - "NrgLimit", - "ParentHash", - "MinerAddress", - "StateRoot", - "TxTrieRoot", - "ReceiptTrieRoot", - "LogsBloom", - "Difficulty", - "ExtraData", - "Nonce", - "Solution", - "Hash", - "Size", - }); - internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor, - new java.lang.String[] { - "From", "To", "Value", "Data", "Nonce", "Nrg", "NrgPrice", - }); - internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor, - new java.lang.String[] { - "TxHash", - }); - internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor, - new java.lang.String[] { - "TxHash", - }); - internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor, - new java.lang.String[] { - "TxIndex", - "Blocknumber", - "TimeStamp", - "NrgConsume", - "NrgPrice", - "Blockhash", - "From", - "TxHash", - "Data", - "Nonce", - "To", - "Value", - }); - internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor, - new java.lang.String[] { - "Account", "Password", "Duration", - }); - internal_static_org_aion_api_server_pb_rsp_accounts_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_accounts_descriptor, - new java.lang.String[] { - "Accout", - }); - internal_static_org_aion_api_server_pb_req_compile_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_compile_descriptor, - new java.lang.String[] { - "Code", - }); - internal_static_org_aion_api_server_pb_rsp_compile_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_compile_descriptor, - new java.lang.String[] { - "Constracts", - }); - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor = - internal_static_org_aion_api_server_pb_rsp_compile_descriptor - .getNestedTypes() - .get(0); - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_org_aion_api_server_pb_req_getCode_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getCode_descriptor, - new java.lang.String[] { - "Address", "Blocknumber", - }); - internal_static_org_aion_api_server_pb_rsp_getCode_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getCode_descriptor, - new java.lang.String[] { - "Code", - }); - internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor, - new java.lang.String[] { - "NrgLimit", "NrgPrice", "From", "Data", "Value", - }); - internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor, - new java.lang.String[] { - "TxHash", "ContractAddress", - }); - internal_static_org_aion_api_server_pb_req_call_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_call_descriptor, - new java.lang.String[] { - "From", "To", "Data", "Value", "Nrg", "NrgPrice", - }); - internal_static_org_aion_api_server_pb_rsp_call_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_call_descriptor, - new java.lang.String[] { - "Result", - }); - internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor, - new java.lang.String[] { - "BlockHash", - }); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor, - new java.lang.String[] { - "BlockHash", - }); - internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor, - new java.lang.String[] { - "Address", "Blocknumber", - }); - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor, - new java.lang.String[] { - "TxCount", - }); - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor, - new java.lang.String[] { - "TxHash", - }); - internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor, - new java.lang.String[] { - "Blocknumber", - }); - internal_static_org_aion_api_server_pb_req_getBalance_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBalance_descriptor, - new java.lang.String[] { - "Address", "BlockNumber", - }); - internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor, - new java.lang.String[] { - "Balance", - }); - internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor, - new java.lang.String[] { - "Address", "Key", "Blocknumber", - }); - internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor, - new java.lang.String[] { - "Storage", - }); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor, - new java.lang.String[] { - "BlockHash", - }); - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor, - new java.lang.String[] { - "TxCount", - }); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor, - new java.lang.String[] { - "BlockNumber", - }); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor, - new java.lang.String[] { - "BlockHash", "TxIndex", - }); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor, - new java.lang.String[] { - "BlockNumber", "TxIndex", - }); - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor, - new java.lang.String[] { - "TxHash", - }); - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor, - new java.lang.String[] { - "TxIndex", - "BlockNumber", - "NrgConsumed", - "CumulativeNrgUsed", - "BlockHash", - "TxHash", - "From", - "To", - "ContractAddress", - "Logs", - }); - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor, - new java.lang.String[] { - "BlockHash", "Index", - }); - internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor, - new java.lang.String[] { - "Compiler", - }); - internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor, - new java.lang.String[] { - "Source", - }); - internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor, - new java.lang.String[] { - "Code", "Info", - }); - internal_static_org_aion_api_server_pb_rsp_getWork_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getWork_descriptor, - new java.lang.String[] { - "Work", - }); - internal_static_org_aion_api_server_pb_req_submitWork_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_submitWork_descriptor, - new java.lang.String[] { - "Nonce", "Solution", "Digest", - }); - internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor, - new java.lang.String[] { - "WorkAccepted", - }); - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor, - new java.lang.String[] { - "Tx", - }); - internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor, - new java.lang.String[] { - "EncodedTx", - }); - internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor, - new java.lang.String[] { - "From", "To", "Value", "Data", "Nrg", "NrgPrice", - }); - internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor, - new java.lang.String[] { - "Nrg", - }); - internal_static_org_aion_api_server_pb_rsp_mining_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_mining_descriptor, - new java.lang.String[] { - "Mining", - }); - internal_static_org_aion_api_server_pb_rsp_syncing_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_syncing_descriptor, - new java.lang.String[] { - "Syncing", "CurrentBlock", "HighestBlock", - }); - internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor, - new java.lang.String[] { - "Hashrate", - }); - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor, - new java.lang.String[] { - "Node", - }); - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor, - new java.lang.String[] { - "Node", - }); - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor, - new java.lang.String[] { - "Ver", - }); - internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor, - new java.lang.String[] { - "Syncing", - }); - internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor, - new java.lang.String[] { - "Syncing", "NetworkBestBlock", "ChainBestBlock", "MaxImportBlocks", - }); - internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor, - new java.lang.String[] { - "CpuUsage", "MemoryUsage", "DBSize", - }); - internal_static_org_aion_api_server_pb_req_eventRegister_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_eventRegister_descriptor, - new java.lang.String[] { - "Events", "Filter", - }); - internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor, - new java.lang.String[] { - "Result", - }); - internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor, - new java.lang.String[] { - "Events", "ContractAddr", - }); - internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor = - getDescriptor().getMessageTypes().get(72); - internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor, - new java.lang.String[] { - "Result", - }); - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor = - getDescriptor().getMessageTypes().get(73); - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor, - new java.lang.String[] { - "Ec", - }); - internal_static_org_aion_api_server_pb_req_accountCreate_descriptor = - getDescriptor().getMessageTypes().get(74); - internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_accountCreate_descriptor, - new java.lang.String[] { - "Password", "PrivateKey", - }); - internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor = - getDescriptor().getMessageTypes().get(75); - internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor, - new java.lang.String[] { - "Address", "PrivateKey", - }); - internal_static_org_aion_api_server_pb_req_accountlock_descriptor = - getDescriptor().getMessageTypes().get(76); - internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_accountlock_descriptor, - new java.lang.String[] { - "Account", "Password", - }); - internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor = - getDescriptor().getMessageTypes().get(77); - internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor, - new java.lang.String[] { - "Locked", - }); - internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor = - getDescriptor().getMessageTypes().get(78); - internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor = - getDescriptor().getMessageTypes().get(79); - internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor, - new java.lang.String[] { - "Privilege", - }); - internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor = - getDescriptor().getMessageTypes().get(80); - internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor, - new java.lang.String[] { - "Filter", - }); - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor = - getDescriptor().getMessageTypes().get(81); - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor, - new java.lang.String[] { - "Ec", - }); - internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor = - getDescriptor().getMessageTypes().get(82); - internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor, - new java.lang.String[] { - "PrivateKey", "Password", - }); - internal_static_org_aion_api_server_pb_req_importAccounts_descriptor = - getDescriptor().getMessageTypes().get(83); - internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_importAccounts_descriptor, - new java.lang.String[] { - "PrivateKey", - }); - internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor = - getDescriptor().getMessageTypes().get(84); - internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor, - new java.lang.String[] { - "InvalidKey", - }); - internal_static_org_aion_api_server_pb_t_Key_descriptor = - getDescriptor().getMessageTypes().get(85); - internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_t_Key_descriptor, - new java.lang.String[] { - "Address", "Password", - }); - internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor = - getDescriptor().getMessageTypes().get(86); - internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor, - new java.lang.String[] { - "KeyFile", - }); - internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor = - getDescriptor().getMessageTypes().get(87); - internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor, - new java.lang.String[] { - "KeyFile", "FailedKey", - }); - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor = - getDescriptor().getMessageTypes().get(88); - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor, - new java.lang.String[] { - "TotalDiff", - }); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor = - getDescriptor().getMessageTypes().get(89); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor, - new java.lang.String[] { - "BlkNumbers", - }); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor = - getDescriptor().getMessageTypes().get(90); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor, - new java.lang.String[] { - "BlkDetails", - }); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor = - getDescriptor().getMessageTypes().get(91); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor, - new java.lang.String[] { - "Count", - }); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor = - getDescriptor().getMessageTypes().get(92); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor, - new java.lang.String[] { - "BlkDetails", - }); - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor = - getDescriptor().getMessageTypes().get(93); - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor, - new java.lang.String[] { - "Count", - }); - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor = - getDescriptor().getMessageTypes().get(94); - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor, - new java.lang.String[] { - "Blks", - }); - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor = - getDescriptor().getMessageTypes().get(95); - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor, - new java.lang.String[] { - "Addresses", - }); - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor = - getDescriptor().getMessageTypes().get(96); - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor, - new java.lang.String[] { - "Accounts", - }); - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor = - getDescriptor().getMessageTypes().get(97); - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor, - new java.lang.String[] { - "BlkNumberStart", "BlkNumberEnd", - }); - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor = - getDescriptor().getMessageTypes().get(98); - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor, - new java.lang.String[] { - "BlkSql", - }); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor = - getDescriptor().getMessageTypes().get(99); - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor, - new java.lang.String[] { - "BlkNumberStart", "BlkNumberEnd", - }); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor = - getDescriptor().getMessageTypes().get(100); - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor, - new java.lang.String[] { - "BlkDetails", - }); - internal_static_org_aion_api_server_pb_req_getNonce_descriptor = - getDescriptor().getMessageTypes().get(101); - internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getNonce_descriptor, - new java.lang.String[] { - "Address", - }); - internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor = - getDescriptor().getMessageTypes().get(102); - internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor, - new java.lang.String[] { - "Nonce", - }); - internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor = - getDescriptor().getMessageTypes().get(103); - internal_static_org_aion_api_server_pb_req_getNrgPrice_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_req_getNrgPrice_descriptor, - new java.lang.String[] {}); - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor = - getDescriptor().getMessageTypes().get(104); - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor, - new java.lang.String[] { - "NrgPrice", - }); - } - - // @@protoc_insertion_point(outer_class_scope) + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_org_aion_api_server_pb_t_Contract_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_org_aion_api_server_pb_t_Contract_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Contract_descriptor, + new java.lang.String[] { "Code", "Error", "Source", "CompilerVersion", "CompilerOptions", "AbiDef", "UserDoc", "DevDoc", }); + internal_static_org_aion_api_server_pb_t_AionTx_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_org_aion_api_server_pb_t_AionTx_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_AionTx_descriptor, + new java.lang.String[] { "TxHash", "From", "To", "Value", "Data", "Nonce", "NrgConsumed", "NrgPrice", }); + internal_static_org_aion_api_server_pb_t_Node_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_org_aion_api_server_pb_t_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Node_descriptor, + new java.lang.String[] { "BlockNumber", "NodeId", "RemoteP2PIp", "RemoteP2PPort", "Latency", }); + internal_static_org_aion_api_server_pb_t_LgEle_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_org_aion_api_server_pb_t_LgEle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_LgEle_descriptor, + new java.lang.String[] { "Address", "Data", "Topics", }); + internal_static_org_aion_api_server_pb_t_FilterCt_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_org_aion_api_server_pb_t_FilterCt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_FilterCt_descriptor, + new java.lang.String[] { "From", "To", "ContractAddr", "Addresses", "Topics", "ExpireTime", }); + internal_static_org_aion_api_server_pb_t_EventCt_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_org_aion_api_server_pb_t_EventCt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_EventCt_descriptor, + new java.lang.String[] { "Address", "Data", "BlockHash", "BlockNumber", "LogIndex", "EventName", "Removed", "TxIndex", "TxHash", }); + internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_org_aion_api_server_pb_t_BlockDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_BlockDetail_descriptor, + new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "TotalDifficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", "Tx", "BlockTime", }); + internal_static_org_aion_api_server_pb_t_TxDetail_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_org_aion_api_server_pb_t_TxDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_TxDetail_descriptor, + new java.lang.String[] { "TxHash", "From", "To", "Value", "Data", "Nonce", "NrgConsumed", "NrgPrice", "TxIndex", "Contract", "Logs", "Timestamp", "Error", }); + internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_org_aion_api_server_pb_t_AccountDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_AccountDetail_descriptor, + new java.lang.String[] { "Address", "Balance", }); + internal_static_org_aion_api_server_pb_t_Block_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_org_aion_api_server_pb_t_Block_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Block_descriptor, + new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "TotalDifficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", "TxHash", }); + internal_static_org_aion_api_server_pb_t_BlockSql_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_org_aion_api_server_pb_t_BlockSql_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_BlockSql_descriptor, + new java.lang.String[] { "BlockNumber", "BlockHash", "ParentHash", "Block", "Tx", }); + internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_org_aion_api_server_pb_rsp_errormsg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_errormsg_descriptor, + new java.lang.String[] { "Errormsg", }); + internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_org_aion_api_server_pb_rsp_protocolVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_protocolVersion_descriptor, + new java.lang.String[] { "Kernel", "Net", "Api", "Vm", "Db", "Miner", "Txpool", }); + internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_org_aion_api_server_pb_rsp_minerAddress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_minerAddress_descriptor, + new java.lang.String[] { "MinerAddr", }); + internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_org_aion_api_server_pb_req_getBlockByNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockByNumber_descriptor, + new java.lang.String[] { "BlockNumber", }); + internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_org_aion_api_server_pb_rsp_getBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlock_descriptor, + new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "TotalDifficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", "TxHash", }); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockHeaderByNumber_descriptor, + new java.lang.String[] { "BlockNumber", }); + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockHeader_descriptor, + new java.lang.String[] { "BlockNumber", "Timestamp", "NrgConsumed", "NrgLimit", "ParentHash", "MinerAddress", "StateRoot", "TxTrieRoot", "ReceiptTrieRoot", "LogsBloom", "Difficulty", "ExtraData", "Nonce", "Solution", "Hash", "Size", }); + internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_org_aion_api_server_pb_req_sendTransaction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_sendTransaction_descriptor, + new java.lang.String[] { "From", "To", "Value", "Data", "Nonce", "Nrg", "NrgPrice", }); + internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_org_aion_api_server_pb_rsp_sendTransaction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_sendTransaction_descriptor, + new java.lang.String[] { "TxHash", }); + internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_org_aion_api_server_pb_req_getTransactionByHash_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionByHash_descriptor, + new java.lang.String[] { "TxHash", }); + internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_org_aion_api_server_pb_rsp_getTransaction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getTransaction_descriptor, + new java.lang.String[] { "TxIndex", "Blocknumber", "TimeStamp", "NrgConsume", "NrgPrice", "Blockhash", "From", "TxHash", "Data", "Nonce", "To", "Value", }); + internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_org_aion_api_server_pb_req_unlockAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_unlockAccount_descriptor, + new java.lang.String[] { "Account", "Password", "Duration", }); + internal_static_org_aion_api_server_pb_rsp_accounts_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_org_aion_api_server_pb_rsp_accounts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_accounts_descriptor, + new java.lang.String[] { "Accout", }); + internal_static_org_aion_api_server_pb_req_compile_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_org_aion_api_server_pb_req_compile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_compile_descriptor, + new java.lang.String[] { "Code", }); + internal_static_org_aion_api_server_pb_rsp_compile_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_org_aion_api_server_pb_rsp_compile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_compile_descriptor, + new java.lang.String[] { "Constracts", }); + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor = + internal_static_org_aion_api_server_pb_rsp_compile_descriptor.getNestedTypes().get(0); + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_compile_ConstractsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_org_aion_api_server_pb_req_getCode_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_org_aion_api_server_pb_req_getCode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getCode_descriptor, + new java.lang.String[] { "Address", "Blocknumber", }); + internal_static_org_aion_api_server_pb_rsp_getCode_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_org_aion_api_server_pb_rsp_getCode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getCode_descriptor, + new java.lang.String[] { "Code", }); + internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_org_aion_api_server_pb_req_contractDeploy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_contractDeploy_descriptor, + new java.lang.String[] { "NrgLimit", "NrgPrice", "From", "Data", "Value", }); + internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_org_aion_api_server_pb_rsp_contractDeploy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_contractDeploy_descriptor, + new java.lang.String[] { "TxHash", "ContractAddress", }); + internal_static_org_aion_api_server_pb_req_call_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_org_aion_api_server_pb_req_call_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_call_descriptor, + new java.lang.String[] { "From", "To", "Data", "Value", "Nrg", "NrgPrice", }); + internal_static_org_aion_api_server_pb_rsp_call_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_org_aion_api_server_pb_rsp_call_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_call_descriptor, + new java.lang.String[] { "Result", }); + internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_org_aion_api_server_pb_req_getBlockByHash_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockByHash_descriptor, + new java.lang.String[] { "BlockHash", }); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockHeaderByHash_descriptor, + new java.lang.String[] { "BlockHash", }); + internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_org_aion_api_server_pb_req_getTransactionCount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionCount_descriptor, + new java.lang.String[] { "Address", "Blocknumber", }); + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getTransactionCount_descriptor, + new java.lang.String[] { "TxCount", }); + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionCountByHash_descriptor, + new java.lang.String[] { "TxHash", }); + internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_org_aion_api_server_pb_rsp_blockNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_blockNumber_descriptor, + new java.lang.String[] { "Blocknumber", }); + internal_static_org_aion_api_server_pb_req_getBalance_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_org_aion_api_server_pb_req_getBalance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBalance_descriptor, + new java.lang.String[] { "Address", "BlockNumber", }); + internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_org_aion_api_server_pb_rsp_getBalance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBalance_descriptor, + new java.lang.String[] { "Balance", }); + internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_org_aion_api_server_pb_req_getStorageAt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getStorageAt_descriptor, + new java.lang.String[] { "Address", "Key", "Blocknumber", }); + internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_org_aion_api_server_pb_rsp_getStorageAt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getStorageAt_descriptor, + new java.lang.String[] { "Storage", }); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByHash_descriptor, + new java.lang.String[] { "BlockHash", }); + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockTransactionCount_descriptor, + new java.lang.String[] { "TxCount", }); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockTransactionCountByNumber_descriptor, + new java.lang.String[] { "BlockNumber", }); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionByBlockHashAndIndex_descriptor, + new java.lang.String[] { "BlockHash", "TxIndex", }); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionByBlockNumberAndIndex_descriptor, + new java.lang.String[] { "BlockNumber", "TxIndex", }); + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getTransactionReceipt_descriptor, + new java.lang.String[] { "TxHash", }); + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getTransactionReceipt_descriptor, + new java.lang.String[] { "TxIndex", "BlockNumber", "NrgConsumed", "CumulativeNrgUsed", "BlockHash", "TxHash", "From", "To", "ContractAddress", "Logs", }); + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getUncleByBlockHashAndIndex_descriptor, + new java.lang.String[] { "BlockHash", "Index", }); + internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_org_aion_api_server_pb_rsp_getCompilers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getCompilers_descriptor, + new java.lang.String[] { "Compiler", }); + internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_org_aion_api_server_pb_req_compileSolidity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_compileSolidity_descriptor, + new java.lang.String[] { "Source", }); + internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_org_aion_api_server_pb_rsp_compileSolidity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_compileSolidity_descriptor, + new java.lang.String[] { "Code", "Info", }); + internal_static_org_aion_api_server_pb_rsp_getWork_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_org_aion_api_server_pb_rsp_getWork_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getWork_descriptor, + new java.lang.String[] { "Work", }); + internal_static_org_aion_api_server_pb_req_submitWork_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_org_aion_api_server_pb_req_submitWork_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_submitWork_descriptor, + new java.lang.String[] { "Nonce", "Solution", "Digest", }); + internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_org_aion_api_server_pb_rsp_submitWork_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_submitWork_descriptor, + new java.lang.String[] { "WorkAccepted", }); + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_fetchQueuedTransactions_descriptor, + new java.lang.String[] { "Tx", }); + internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_org_aion_api_server_pb_req_rawTransaction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_rawTransaction_descriptor, + new java.lang.String[] { "EncodedTx", }); + internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_org_aion_api_server_pb_req_estimateNrg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_estimateNrg_descriptor, + new java.lang.String[] { "From", "To", "Value", "Data", "Nrg", "NrgPrice", }); + internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_org_aion_api_server_pb_rsp_estimateNrg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_estimateNrg_descriptor, + new java.lang.String[] { "Nrg", }); + internal_static_org_aion_api_server_pb_rsp_mining_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_org_aion_api_server_pb_rsp_mining_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_mining_descriptor, + new java.lang.String[] { "Mining", }); + internal_static_org_aion_api_server_pb_rsp_syncing_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_org_aion_api_server_pb_rsp_syncing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_syncing_descriptor, + new java.lang.String[] { "Syncing", "CurrentBlock", "HighestBlock", }); + internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_org_aion_api_server_pb_rsp_hashrate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_hashrate_descriptor, + new java.lang.String[] { "Hashrate", }); + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getActiveNodes_descriptor, + new java.lang.String[] { "Node", }); + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getStaticNodes_descriptor, + new java.lang.String[] { "Node", }); + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getSolcVersion_descriptor, + new java.lang.String[] { "Ver", }); + internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_org_aion_api_server_pb_rsp_isSyncing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_isSyncing_descriptor, + new java.lang.String[] { "Syncing", }); + internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_org_aion_api_server_pb_rsp_syncInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_syncInfo_descriptor, + new java.lang.String[] { "Syncing", "NetworkBestBlock", "ChainBestBlock", "MaxImportBlocks", }); + internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_org_aion_api_server_pb_rsp_systemInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_systemInfo_descriptor, + new java.lang.String[] { "CpuUsage", "MemoryUsage", "DBSize", }); + internal_static_org_aion_api_server_pb_req_eventRegister_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_org_aion_api_server_pb_req_eventRegister_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_eventRegister_descriptor, + new java.lang.String[] { "Events", "Filter", }); + internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_org_aion_api_server_pb_rsp_eventRegister_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_eventRegister_descriptor, + new java.lang.String[] { "Result", }); + internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_org_aion_api_server_pb_req_eventDeregister_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_eventDeregister_descriptor, + new java.lang.String[] { "Events", "ContractAddr", }); + internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_org_aion_api_server_pb_rsp_eventDeregister_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_eventDeregister_descriptor, + new java.lang.String[] { "Result", }); + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_EventCtCallback_descriptor, + new java.lang.String[] { "Ec", }); + internal_static_org_aion_api_server_pb_req_accountCreate_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_org_aion_api_server_pb_req_accountCreate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_accountCreate_descriptor, + new java.lang.String[] { "Password", "PrivateKey", }); + internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor = + getDescriptor().getMessageTypes().get(75); + internal_static_org_aion_api_server_pb_rsp_accountCreate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_accountCreate_descriptor, + new java.lang.String[] { "Address", "PrivateKey", }); + internal_static_org_aion_api_server_pb_req_accountlock_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_org_aion_api_server_pb_req_accountlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_accountlock_descriptor, + new java.lang.String[] { "Account", "Password", }); + internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_org_aion_api_server_pb_rsp_accountlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_accountlock_descriptor, + new java.lang.String[] { "Locked", }); + internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_org_aion_api_server_pb_req_userPrivilege_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_userPrivilege_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_org_aion_api_server_pb_rsp_userPrivilege_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_userPrivilege_descriptor, + new java.lang.String[] { "Privilege", }); + internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_org_aion_api_server_pb_req_queryCtEvents_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_queryCtEvents_descriptor, + new java.lang.String[] { "Filter", }); + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_queryCtEvents_descriptor, + new java.lang.String[] { "Ec", }); + internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor = + getDescriptor().getMessageTypes().get(82); + internal_static_org_aion_api_server_pb_t_PrivateKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_PrivateKey_descriptor, + new java.lang.String[] { "PrivateKey", "Password", }); + internal_static_org_aion_api_server_pb_req_importAccounts_descriptor = + getDescriptor().getMessageTypes().get(83); + internal_static_org_aion_api_server_pb_req_importAccounts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_importAccounts_descriptor, + new java.lang.String[] { "PrivateKey", }); + internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor = + getDescriptor().getMessageTypes().get(84); + internal_static_org_aion_api_server_pb_rsp_importAccounts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_importAccounts_descriptor, + new java.lang.String[] { "InvalidKey", }); + internal_static_org_aion_api_server_pb_t_Key_descriptor = + getDescriptor().getMessageTypes().get(85); + internal_static_org_aion_api_server_pb_t_Key_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_t_Key_descriptor, + new java.lang.String[] { "Address", "Password", }); + internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor = + getDescriptor().getMessageTypes().get(86); + internal_static_org_aion_api_server_pb_req_exportAccounts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_exportAccounts_descriptor, + new java.lang.String[] { "KeyFile", }); + internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor = + getDescriptor().getMessageTypes().get(87); + internal_static_org_aion_api_server_pb_rsp_exportAccounts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_exportAccounts_descriptor, + new java.lang.String[] { "KeyFile", "FailedKey", }); + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor = + getDescriptor().getMessageTypes().get(88); + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getCurrentTotalDifficulty_descriptor, + new java.lang.String[] { "TotalDiff", }); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor = + getDescriptor().getMessageTypes().get(89); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockDetailsByNumber_descriptor, + new java.lang.String[] { "BlkNumbers", }); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor = + getDescriptor().getMessageTypes().get(90); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByNumber_descriptor, + new java.lang.String[] { "BlkDetails", }); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor = + getDescriptor().getMessageTypes().get(91); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockDetailsByLatest_descriptor, + new java.lang.String[] { "Count", }); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor = + getDescriptor().getMessageTypes().get(92); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByLatest_descriptor, + new java.lang.String[] { "BlkDetails", }); + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor = + getDescriptor().getMessageTypes().get(93); + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlocksByLatest_descriptor, + new java.lang.String[] { "Count", }); + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor = + getDescriptor().getMessageTypes().get(94); + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlocksByLatest_descriptor, + new java.lang.String[] { "Blks", }); + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor = + getDescriptor().getMessageTypes().get(95); + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getAccountDetailsByAddressList_descriptor, + new java.lang.String[] { "Addresses", }); + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor = + getDescriptor().getMessageTypes().get(96); + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getAccountDetailsByAddressList_descriptor, + new java.lang.String[] { "Accounts", }); + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor = + getDescriptor().getMessageTypes().get(97); + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockSqlByRange_descriptor, + new java.lang.String[] { "BlkNumberStart", "BlkNumberEnd", }); + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor = + getDescriptor().getMessageTypes().get(98); + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockSqlByRange_descriptor, + new java.lang.String[] { "BlkSql", }); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor = + getDescriptor().getMessageTypes().get(99); + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getBlockDetailsByRange_descriptor, + new java.lang.String[] { "BlkNumberStart", "BlkNumberEnd", }); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor = + getDescriptor().getMessageTypes().get(100); + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getBlockDetailsByRange_descriptor, + new java.lang.String[] { "BlkDetails", }); + internal_static_org_aion_api_server_pb_req_getNonce_descriptor = + getDescriptor().getMessageTypes().get(101); + internal_static_org_aion_api_server_pb_req_getNonce_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_req_getNonce_descriptor, + new java.lang.String[] { "Address", }); + internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor = + getDescriptor().getMessageTypes().get(102); + internal_static_org_aion_api_server_pb_rsp_getNonce_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getNonce_descriptor, + new java.lang.String[] { "Nonce", }); + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor = + getDescriptor().getMessageTypes().get(103); + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_aion_api_server_pb_rsp_getNrgPrice_descriptor, + new java.lang.String[] { "NrgPrice", }); + } + + // @@protoc_insertion_point(outer_class_scope) } From bfd5c8558e4371f7b3a0052f22c66999aa2a30a5 Mon Sep 17 00:00:00 2001 From: aionick Date: Wed, 23 May 2018 11:10:27 -0400 Subject: [PATCH 050/129] add null check back in --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index e417cc4dfa..f35b252894 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -130,7 +130,7 @@ public P2pMgr( for (String _bootNode : _bootNodes) { Node node = Node.parseP2p(_bootNode); - if (validateNode(node)) { + if (node != null && validateNode(node)) { nodeMgr.addTempNode(node); nodeMgr.seedIpAdd(node.getIpStr()); } From 0bdb50963bbb1ef36184d7705fa9a1a1b44d6939 Mon Sep 17 00:00:00 2001 From: aionJoey Date: Wed, 23 May 2018 15:37:13 -0400 Subject: [PATCH 051/129] logger features --- modBoot/src/org/aion/Aion.java | 166 ++++++++++----------- modMcf/src/org/aion/mcf/config/CfgLog.java | 35 +---- 2 files changed, 84 insertions(+), 117 deletions(-) diff --git a/modBoot/src/org/aion/Aion.java b/modBoot/src/org/aion/Aion.java index 5ced73e85b..7d8ceb7b49 100644 --- a/modBoot/src/org/aion/Aion.java +++ b/modBoot/src/org/aion/Aion.java @@ -17,17 +17,14 @@ * along with the aion network project source files. * If not, see . * - * Contributors: + * Contributors to the aion source files in decreasing order of code volume: + * * Aion foundation. * ******************************************************************************/ -package org.aion; -import static org.aion.crypto.ECKeyFac.ECKeyType.ED25519; -import static org.aion.crypto.HashUtil.H256Type.BLAKE2B_256; -import static org.aion.zero.impl.Version.KERNEL_VERSION; +package org.aion; -import java.util.ServiceLoader; import org.aion.api.server.http.NanoServer; import org.aion.api.server.pb.ApiAion0; import org.aion.api.server.pb.IHdlr; @@ -46,6 +43,12 @@ import org.aion.zero.impl.config.CfgAion; import org.slf4j.Logger; +import java.util.ServiceLoader; + +import static org.aion.crypto.ECKeyFac.ECKeyType.ED25519; +import static org.aion.crypto.HashUtil.H256Type.BLAKE2B_256; +import static org.aion.zero.impl.Version.KERNEL_VERSION; + public class Aion { public static void main(String args[]) throws InterruptedException { @@ -68,7 +71,9 @@ public static void main(String args[]) throws InterruptedException { * if in the config.xml id is set as default [NODE-ID-PLACEHOLDER] * return true which means should save back to xml config */ - if (cfg.fromXML()) cfg.toXML(new String[] {"--id=" + cfg.getId()}); + if(cfg.fromXML()) + cfg.toXML(new String[]{ "--id=" + cfg.getId() }); + try { ServiceLoader.load(AionLoggerFactory.class); @@ -77,28 +82,30 @@ public static void main(String args[]) throws InterruptedException { throw e; } - // If commit this out, the config setting will be ignore. all log module been set to "INFO" - // Level - /** Changed INITIALIZE signature to include LOGFILE and LOGPATH*/ - AionLoggerFactory.init(cfg.getLog().getModules(), cfg.getLog().getLogFile(), cfg.getLog().getLogPath()); - Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.toString()); - - /** Outputs message to console depending on logPath validity */ - if(cfg.getLog().getOriginal()) { + System.out.println( + " _____ \n" + + " .'. | .~ ~. |.. |\n" + + " .' `. | | | | ``.. |\n" + + " .''''''''`. | | | | ``.. |\n" + + ".' `. | `._____.' | ``|\n\n" + + " NETWORK v" + KERNEL_VERSION + + "\n\n" + ); + + /** Outputs relevant logger configuration */ + if (!cfg.getLog().getLogFile()) { + System.out.println("Logger disabled; to enable please check log settings in config.xml\n"); + } else if (!cfg.getLog().isValidPath() && cfg.getLog().getLogFile()) { + System.out.println("File path is invalid; please check log setting in config.xml\n"); + return; + } else if (cfg.getLog().isValidPath() && cfg.getLog().getLogFile()) { System.out.println("Logger file path: '" + cfg.getLog().getLogPath() + "'\n"); - } else { - System.out.println("File path is invalid; set to default: 'log'\n"); } - System.out.println( - " _____ \n" - + " .'. | .~ ~. |.. |\n" - + " .' `. | | | | ``.. |\n" - + " .''''''''`. | | | | ``.. |\n" - + ".' `. | `._____.' | ``|\n\n" - + " NETWORK v" - + KERNEL_VERSION - + "\n\n"); + // If commit this out, the config setting will be ignore. all log module been set to "INFO" Level + /** Changed INITIALIZE signature to include LOGFILE and LOGPATH*/ + AionLoggerFactory.init(cfg.getLog().getModules(), cfg.getLog().getLogFile(), cfg.getLog().getLogPath()); + Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.toString()); IAionChain ac = AionFactory.create(); @@ -121,25 +128,21 @@ public static void main(String args[]) throws InterruptedException { IHdlr handler = new HdlrZmq(new ApiAion0(ac)); processor = new ProtocolProcessor(handler, cfg.getApi().getZmq()); ProtocolProcessor finalProcessor = processor; - zmqThread = - new Thread( - () -> { - finalProcessor.run(); - }, - "zmq-api"); + zmqThread = new Thread(() -> { + finalProcessor.run(); + }, "zmq-api"); zmqThread.start(); } NanoServer rpcServer = null; - if (cfg.getApi().getRpc().getActive()) { - CfgApiRpc rpcCfg = cfg.getApi().getRpc(); - rpcServer = - new NanoServer( - rpcCfg.getIp(), - rpcCfg.getPort(), - rpcCfg.getCorsEnabled(), - rpcCfg.getEnabled(), - rpcCfg.getMaxthread()); + if(cfg.getApi().getRpc().getActive()) { + CfgApiRpc rpcCfg = cfg.getApi().getRpc(); + rpcServer = new NanoServer( + rpcCfg.getIp(), + rpcCfg.getPort(), + rpcCfg.getCorsEnabled(), + rpcCfg.getEnabled(), + rpcCfg.getMaxthread()); rpcServer.start(); } @@ -153,8 +156,7 @@ class ShutdownThreadHolder { final ProtocolProcessor pp; final NanoServer rpc; - private ShutdownThreadHolder( - Thread zmqThread, IMineRunner nm, ProtocolProcessor pp, NanoServer rpc) { + private ShutdownThreadHolder(Thread zmqThread, IMineRunner nm, ProtocolProcessor pp, NanoServer rpc) { this.zmqThread = zmqThread; this.miner = nm; this.pp = pp; @@ -164,45 +166,41 @@ private ShutdownThreadHolder( ShutdownThreadHolder holder = new ShutdownThreadHolder(zmqThread, nm, processor, rpcServer); - Runtime.getRuntime() - .addShutdownHook( - new Thread( - () -> { - LOG.info("Starting shutdown process..."); - - if (holder.rpc != null) { - LOG.info("Shutting down RpcServer"); - holder.rpc.shutdown(); - LOG.info("Shutdown RpcServer ... Done!"); - } - - if (holder.pp != null) { - LOG.info("Shutting down zmq ProtocolProcessor"); - try { - holder.pp.shutdown(); - LOG.info("Shutdown zmq ProtocolProcessor... Done!"); - } catch (InterruptedException e) { - LOG.info( - "Shutdown zmq ProtocolProcessor failed! {}", - e.getMessage()); - Thread.currentThread().interrupt(); - } - } - - if (holder.miner != null) { - LOG.info("Shutting down sealer"); - holder.miner.stopMining(); - holder.miner.shutdown(); - LOG.info("Shutdown sealer... Done!"); - } - - LOG.info("Shutting down the AionHub..."); - ac.getAionHub().close(); - - LOG.info("---------------------------------------------"); - LOG.info("| Aion kernel graceful shutdown successful! |"); - LOG.info("---------------------------------------------"); - }, - "shutdown")); + Runtime.getRuntime().addShutdownHook(new Thread(() -> { + + LOG.info("Starting shutdown process..."); + + if (holder.rpc != null) { + LOG.info("Shutting down RpcServer"); + holder.rpc.shutdown(); + LOG.info("Shutdown RpcServer ... Done!"); + } + + if (holder.pp != null) { + LOG.info("Shutting down zmq ProtocolProcessor"); + try { + holder.pp.shutdown(); + LOG.info("Shutdown zmq ProtocolProcessor... Done!"); + } catch (InterruptedException e) { + LOG.info("Shutdown zmq ProtocolProcessor failed! {}", e.getMessage()); + Thread.currentThread().interrupt(); + } + } + + if (holder.miner != null) { + LOG.info("Shutting down sealer"); + holder.miner.stopMining(); + holder.miner.shutdown(); + LOG.info("Shutdown sealer... Done!"); + } + + LOG.info("Shutting down the AionHub..."); + ac.getAionHub().close(); + + LOG.info("---------------------------------------------"); + LOG.info("| Aion kernel graceful shutdown successful! |"); + LOG.info("---------------------------------------------"); + + }, "shutdown")); } -} +} \ No newline at end of file diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index bfd431a4da..a86601e8b2 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -40,8 +40,6 @@ public class CfgLog { private Map modules; private boolean logFile; private String logPath; - private boolean validPath; - private boolean original; public CfgLog() { modules = new HashMap<>(); @@ -55,8 +53,6 @@ public CfgLog() { modules.put(LogEnum.TXPOOL.name(), LogLevels.ERROR.name()); this.logFile = false; this.logPath = "log"; - this.validPath = true; - this.original = true; } public void fromXML(final XMLStreamReader sr) throws XMLStreamException { @@ -75,9 +71,6 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { break; case "log-path": this.logPath = Cfg.readValue(sr); - if(!isValidPath()) { - this.original = false; - } break; default: break; @@ -121,11 +114,6 @@ public String toXML() { xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n"); - /** If file path is invalid, outputs message to config */ - if(!isValidPath()) { - xmlWriter.writeCharacters("\t\tInvalid file path; set to default: 'log'\r\n" ); - } - for (Map.Entry module : this.modules.entrySet()) { xmlWriter.writeCharacters("\t\t"); xmlWriter.writeStartElement(module.getKey().toUpperCase()); @@ -157,30 +145,11 @@ public boolean getLogFile() { /** Method returns user input path of logFile */ public String getLogPath() { - if(!isValidPath()) { - return this.logPath = "log"; - } else { - return this.logPath; - } + return this.logPath; } /** Method checks logPath for illegal inputs */ public boolean isValidPath() { - if(logPath.contains("-") || logPath.contains("+") || logPath.contains("=") - || logPath.contains("?") || logPath.contains("!") || logPath.contains("@") - || logPath.contains("#") || logPath.contains("$") || logPath.contains("%") - || logPath.contains("^") || logPath.contains("*") || logPath.contains(":") - || logPath.contains(";") || logPath.contains(".") || logPath.contains(",") - || logPath.contains("'") || logPath.contains("|")) { - return this.validPath = false; - } else { - return this.validPath = true; - } + return !logPath.matches(".*[-=+,.?;:'!@#$%^&*].*"); } - - /** Method returns logPath input validity */ - public boolean getOriginal() { - return this.original; - } - } From 5f4ecec5c9940bc0fb0e3c2740de5acf62de7b10 Mon Sep 17 00:00:00 2001 From: aionick Date: Wed, 23 May 2018 15:41:26 -0400 Subject: [PATCH 052/129] improved binding and db locking error messages --- .../src/org/aion/db/impl/h2/H2MVMap.java | 3 +- .../src/org/aion/db/impl/leveldb/LevelDB.java | 9 ++++- .../aion/db/impl/rocksdb/RocksDBWrapper.java | 8 ++++- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 34 ++++++++++--------- 4 files changed, 35 insertions(+), 19 deletions(-) diff --git a/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java b/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java index fc08918bc2..78c86f91d7 100644 --- a/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java +++ b/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java @@ -148,7 +148,8 @@ public boolean open() { } catch (Exception e) { if (e instanceof NullPointerException) { LOG.error("Failed to open the database " + this.toString() - + ". A probable cause is that the H2 database cannot access the file path.", e); + + ". A probable cause is that the H2 database cannot access the file path. " + + "Check that you do not have two instances running on the same database.", e); } else { LOG.error("Failed to open the database " + this.toString() + " due to: ", e); } diff --git a/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java b/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java index db7b188433..11b6bc8ffc 100644 --- a/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java +++ b/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java @@ -142,7 +142,14 @@ public boolean open() { try { db = JniDBFactory.factory.open(f, options); } catch (Exception e1) { - LOG.error("Failed to open the database " + this.toString() + " due to: ", e1); + if (e1.getMessage().contains("lock")) { + LOG.error("Failed to open the database " + this.toString() + + "\nCheck that you do not have two instances running on the same database." + + "\nFailure due to: ", e1); + } else { + LOG.error("Failed to open the database " + this.toString() + " due to: ", e1); + } + if (e1.getMessage() != null && e1.getMessage().contains("No space left on device")) { LOG.error("Shutdown due to lack of disk space."); System.exit(0); diff --git a/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java b/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java index 639bd798f3..7fce007dae 100644 --- a/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java +++ b/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java @@ -90,7 +90,13 @@ public boolean open() { try { db = RocksDB.open(options, f.getAbsolutePath()); } catch (RocksDBException e) { - LOG.error("Failed to open the database " + this.toString() + " due to: ", e); + if (e.getMessage().contains("lock")) { + LOG.error("Failed to open the database " + this.toString() + + "\nCheck that you do not have two instances running on the same database." + + "\nFailure due to: ", e); + } else { + LOG.error("Failed to open the database " + this.toString() + " due to: ", e); + } // close the connection and cleanup if needed close(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index f35b252894..3bfa649c3e 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -27,6 +27,7 @@ import java.io.IOException; import java.net.InetSocketAddress; +import java.net.SocketException; import java.nio.channels.*; import java.util.*; import java.util.concurrent.*; @@ -161,13 +162,13 @@ public void run() { if (showLog) this.handlers.forEach( - (route, callbacks) -> { - Handler handler = callbacks.get(0); - Header h = handler.getHeader(); - System.out.println( - getRouteMsg(route, h.getVer(), h.getCtrl(), h.getAction(), - handler.getClass().getSimpleName())); - }); + (route, callbacks) -> { + Handler handler = callbacks.get(0); + Header h = handler.getHeader(); + System.out.println( + getRouteMsg(route, h.getVer(), h.getCtrl(), h.getAction(), + handler.getClass().getSimpleName())); + }); for (int i = 0; i < TaskSend.TOTAL_LANE; i++) { Thread thrdOut = new Thread(getSendInstance(i), "p2p-out-" + i); @@ -183,10 +184,10 @@ public void run() { if (upnpEnable) scheduledWorkers.scheduleWithFixedDelay( - new TaskUPnPManager(selfPort), - 1, - PERIOD_UPNP_PORT_MAPPING, - TimeUnit.MILLISECONDS); + new TaskUPnPManager(selfPort), + 1, + PERIOD_UPNP_PORT_MAPPING, + TimeUnit.MILLISECONDS); if (showStatus) scheduledWorkers.scheduleWithFixedDelay( @@ -197,10 +198,10 @@ public void run() { if (!syncSeedsOnly) scheduledWorkers.scheduleWithFixedDelay( - new TaskRequestActiveNodes(this), - 5000, - PERIOD_REQUEST_ACTIVE_NODES, - TimeUnit.MILLISECONDS); + new TaskRequestActiveNodes(this), + 5000, + PERIOD_REQUEST_ACTIVE_NODES, + TimeUnit.MILLISECONDS); Thread thrdClear = new Thread(getClearInstance(), "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); @@ -209,7 +210,8 @@ public void run() { Thread thrdConn = new Thread(getConnectPeersInstance(), "p2p-conn"); thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); - + } catch (SocketException e) { + if (showLog) System.out.println(" " + e.getMessage()); } catch (IOException e) { if (showLog) System.out.println(""); } From 2e89e3f3543c809d2d73948cbbfe618d70de4ee6 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 23 May 2018 16:46:39 -0400 Subject: [PATCH 053/129] bugfix: reseting the root back to its initial value after recovery --- .../src/org/aion/zero/impl/AionBlockchainImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index dfa660e1d3..650bcebcba 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -1356,6 +1356,9 @@ public synchronized boolean recoverWorldState(IRepository repository, AionBlock AionRepositoryImpl repo = (AionRepositoryImpl) repository; + // keeping track of the original root + byte[] originalRoot = repo.getRoot(); + Deque dirtyBlocks = new ArrayDeque<>(); // already known to be missing the state dirtyBlocks.push(block); @@ -1397,6 +1400,9 @@ public synchronized boolean recoverWorldState(IRepository repository, AionBlock // update the repository repo.flush(); + // setting the root back to its correct value + repo.syncToRoot(originalRoot); + // return a flag indicating if the recovery worked return repo.isValidRoot(block.getStateRoot()); } From f8242dbbe22a4f16305b57140c597aab3cd0916c Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 23 May 2018 16:49:49 -0400 Subject: [PATCH 054/129] optimizing the sync BACKWARD and FORWARD behavior --- .../aion/zero/impl/sync/TaskImportBlocks.java | 46 +++++++++++++------ 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java index bb7577a2d2..e69aa9ae3e 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java @@ -29,6 +29,11 @@ package org.aion.zero.impl.sync; +import java.util.List; +import java.util.Map; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.stream.Collectors; import org.aion.base.util.ByteArrayWrapper; import org.aion.mcf.core.ImportResult; import org.aion.p2p.IP2pMgr; @@ -36,16 +41,12 @@ import org.aion.zero.impl.types.AionBlock; import org.slf4j.Logger; -import java.util.List; -import java.util.Map; -import java.util.concurrent.BlockingQueue; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.stream.Collectors; - /** - * @author chris * handle process of importing blocks to repo - * TODO: targeted send + * + *

TODO: targeted send + * + * @author chris */ final class TaskImportBlocks implements Runnable { @@ -73,8 +74,7 @@ final class TaskImportBlocks implements Runnable { final BlockingQueue downloadedBlocks, final Map importedBlockHashes, final Map peerStates, - final Logger log - ) { + final Logger log) { this.p2p = p2p; this.chain = _chain; this.start = _start; @@ -103,7 +103,8 @@ public void run() { PeerState state = peerStates.get(bw.getNodeIdHash()); if (state == null) { - log.warn("This is not supposed to happen, but the peer is sending us blocks without ask"); + log.warn( + "This is not supposed to happen, but the peer is sending us blocks without ask"); } for (AionBlock b : batch) { @@ -113,20 +114,24 @@ public void run() { importResult = this.chain.tryToConnect(b); } catch (Throwable e) { log.error(" {}", e.toString()); - if (e.getMessage() != null && e.getMessage().contains("No space left on device")) { + if (e.getMessage() != null + && e.getMessage().contains("No space left on device")) { log.error("Shutdown due to lack of disk space."); System.exit(0); } continue; } long t2 = System.currentTimeMillis(); - log.info("", + log.info( + "", bw.getDisplayId(), + state.getMode(), b.getShortHash(), b.getNumber(), b.getTransactionsList().size(), importResult, t2 - t1); + switch (importResult) { case IMPORTED_BEST: case IMPORTED_NOT_BEST: @@ -154,13 +159,20 @@ public void run() { // we found the fork point state.setMode(PeerState.Mode.FORWARD); state.setBase(lastBlock); - } else if (mode == PeerState.Mode.FORWARD) { // continue state.setBase(lastBlock); // if the imported best block, switch back to normal mode if (importResult == ImportResult.IMPORTED_BEST) { state.setMode(PeerState.Mode.NORMAL); + // switch peers to NORMAL otherwise they may never switch back + for (PeerState peerState : peerStates.values()) { + if (peerState.getMode() != PeerState.Mode.NORMAL) { + peerState.setMode(PeerState.Mode.NORMAL); + peerState.setBase(b.getNumber()); + peerState.resetLastHeaderRequest(); + } + } } } break; @@ -176,6 +188,12 @@ public void run() { break; } } + + // if any block results in NO_PARENT, all subsequent blocks will too + if (importResult == ImportResult.NO_PARENT) { + log.debug("Stopped importing batch due to NO_PARENT result."); + break; + } } if (state != null) { From cf03e5426ba64bbc659565e0f8eb1c7a5b95c9a5 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 23 May 2018 17:36:11 -0400 Subject: [PATCH 055/129] fixing config file --- modBoot/resource/config.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/modBoot/resource/config.xml b/modBoot/resource/config.xml index a3234cb7a4..b81265be81 100644 --- a/modBoot/resource/config.xml +++ b/modBoot/resource/config.xml @@ -73,8 +73,6 @@ 10000 - - 1000 leveldb From 67209d30ea85a5d72b76384cbbb36ece5c3ad81c Mon Sep 17 00:00:00 2001 From: aionJoey Date: Wed, 23 May 2018 17:43:36 -0400 Subject: [PATCH 056/129] added test for valid log path check --- modMcf/src/org/aion/mcf/config/CfgLog.java | 2 +- .../test/org/aion/mcf/config/CfgLogTest.java | 52 +++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 modMcf/test/org/aion/mcf/config/CfgLogTest.java diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index a86601e8b2..8004dde48d 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -39,7 +39,7 @@ public class CfgLog { private Map modules; private boolean logFile; - private String logPath; + protected String logPath; public CfgLog() { modules = new HashMap<>(); diff --git a/modMcf/test/org/aion/mcf/config/CfgLogTest.java b/modMcf/test/org/aion/mcf/config/CfgLogTest.java new file mode 100644 index 0000000000..9990eb080d --- /dev/null +++ b/modMcf/test/org/aion/mcf/config/CfgLogTest.java @@ -0,0 +1,52 @@ +package org.aion.mcf.config; + +import org.junit.Before; +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Tests for CfgLog.java + */ +public class CfgLogTest extends CfgLog { + + private final static String user1 = "logger"; // valid file path + private final static String user2 = "l!@#g"; // invalid file path + private final static String user3 = "log/logger"; // folder hierarchy path + private final static String user4 = ""; // null file path + + @Before + public void setup() { + + } + + @Test + public void testLogPath() { + + // Test for default file path + CfgLog config = new CfgLog(); + assertTrue(config.isValidPath()); + assertEquals("log", config.getLogPath()); + + // Test for valid file path + config.logPath = user1; + assertTrue(config.isValidPath()); + assertEquals("logger", config.getLogPath()); + + // Test for invalid file path + config.logPath = user2; + assertFalse(config.isValidPath()); + + // Test for folder hierarchy path + config.logPath = user3; + assertTrue(config.isValidPath()); + assertEquals("log/logger", config.getLogPath()); + + // Test for null path + config.logPath = user4; + assertTrue(config.isValidPath()); + assertEquals("", config.getLogPath()); + + } + +} \ No newline at end of file From 8522525a1de8e5fd464ffc7aa78d0b528d20f148 Mon Sep 17 00:00:00 2001 From: aionick Date: Thu, 24 May 2018 08:41:49 -0400 Subject: [PATCH 057/129] changed to check if you have.. --- modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java | 2 +- modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java | 2 +- modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java b/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java index 78c86f91d7..7ae454e061 100644 --- a/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java +++ b/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java @@ -149,7 +149,7 @@ public boolean open() { if (e instanceof NullPointerException) { LOG.error("Failed to open the database " + this.toString() + ". A probable cause is that the H2 database cannot access the file path. " - + "Check that you do not have two instances running on the same database.", e); + + "Check if you have two instances running on the same database.", e); } else { LOG.error("Failed to open the database " + this.toString() + " due to: ", e); } diff --git a/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java b/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java index 11b6bc8ffc..bc2fcd44d4 100644 --- a/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java +++ b/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java @@ -144,7 +144,7 @@ public boolean open() { } catch (Exception e1) { if (e1.getMessage().contains("lock")) { LOG.error("Failed to open the database " + this.toString() + - "\nCheck that you do not have two instances running on the same database." + + "\nCheck if you have two instances running on the same database." + "\nFailure due to: ", e1); } else { LOG.error("Failed to open the database " + this.toString() + " due to: ", e1); diff --git a/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java b/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java index 7fce007dae..cbd5db2be4 100644 --- a/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java +++ b/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java @@ -92,7 +92,7 @@ public boolean open() { } catch (RocksDBException e) { if (e.getMessage().contains("lock")) { LOG.error("Failed to open the database " + this.toString() - + "\nCheck that you do not have two instances running on the same database." + + "\nCheck if you have two instances running on the same database." + "\nFailure due to: ", e); } else { LOG.error("Failed to open the database " + this.toString() + " due to: ", e); From 47da91467d4fe3587c0dbe2b7efce30143afc6a2 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 24 May 2018 09:57:32 -0400 Subject: [PATCH 058/129] bugfix: printing the size of the trie states should only consider the main chain --- .../org/aion/zero/impl/db/RecoveryUtils.java | 97 ++++++++++++------- 1 file changed, 60 insertions(+), 37 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java index fa5590f630..7afe26f58c 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java +++ b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -22,6 +22,9 @@ ******************************************************************************/ package org.aion.zero.impl.db; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; import org.aion.base.type.IBlock; import org.aion.log.AionLoggerFactory; import org.aion.mcf.db.IBlockStoreBase; @@ -30,19 +33,15 @@ import org.aion.zero.impl.core.IAionBlockchain; import org.aion.zero.impl.types.AionBlock; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - public class RecoveryUtils { public enum Status { - SUCCESS, FAILURE, ILLEGAL_ARGUMENT + SUCCESS, + FAILURE, + ILLEGAL_ARGUMENT } - /** - * Used by the CLI call. - */ + /** Used by the CLI call. */ public static Status revertTo(long nbBlock) { // ensure mining is disabled CfgAion cfg = CfgAion.inst(); @@ -66,9 +65,7 @@ public static Status revertTo(long nbBlock) { return status; } - /** - * Used by the CLI call. - */ + /** Used by the CLI call. */ public static void pruneAndCorrect() { // ensure mining is disabled CfgAion cfg = CfgAion.inst(); @@ -101,9 +98,7 @@ public static void pruneAndCorrect() { blockchain.getRepository().close(); } - /** - * Used by the CLI call. - */ + /** Used by the CLI call. */ public static void dbCompact() { // ensure mining is disabled CfgAion cfg = CfgAion.inst(); @@ -126,9 +121,7 @@ public static void dbCompact() { repository.close(); } - /** - * Used by the CLI call. - */ + /** Used by the CLI call. */ public static void dumpBlocks(long count) { // ensure mining is disabled CfgAion cfg = CfgAion.inst(); @@ -161,9 +154,7 @@ public static void dumpBlocks(long count) { repository.close(); } - /** - * Used by internal world state recovery method. - */ + /** Used by internal world state recovery method. */ public static Status revertTo(IAionBlockchain blockchain, long nbBlock) { IBlockStoreBase store = blockchain.getBlockStore(); @@ -175,12 +166,15 @@ public static Status revertTo(IAionBlockchain blockchain, long nbBlock) { long nbBestBlock = bestBlock.getNumber(); - System.out.println("Attempting to revert best block from " + nbBestBlock + " to " + nbBlock + " ..."); + System.out.println( + "Attempting to revert best block from " + nbBestBlock + " to " + nbBlock + " ..."); // exit with warning if the given block is larger or negative if (nbBlock < 0) { System.out.println( - "Negative values <" + nbBlock + "> cannot be interpreted as block numbers. Nothing to do."); + "Negative values <" + + nbBlock + + "> cannot be interpreted as block numbers. Nothing to do."); return Status.ILLEGAL_ARGUMENT; } if (nbBestBlock == 0) { @@ -189,13 +183,19 @@ public static Status revertTo(IAionBlockchain blockchain, long nbBlock) { } if (nbBlock == nbBestBlock) { System.out.println( - "The block " + nbBlock + " is the current best block stored in the database. Nothing to do."); + "The block " + + nbBlock + + " is the current best block stored in the database. Nothing to do."); return Status.ILLEGAL_ARGUMENT; } if (nbBlock > nbBestBlock) { - System.out.println("The block #" + nbBlock + " is greater than the current best block #" + nbBestBlock - + " stored in the database. " - + "Cannot move to that block without synchronizing with peers. Start Aion instance to sync."); + System.out.println( + "The block #" + + nbBlock + + " is greater than the current best block #" + + nbBestBlock + + " stored in the database. " + + "Cannot move to that block without synchronizing with peers. Start Aion instance to sync."); return Status.ILLEGAL_ARGUMENT; } @@ -224,7 +224,7 @@ public static void printStateTrieSize(long blockNumber) { AionRepositoryImpl repository = AionRepositoryImpl.inst(); AionBlockStore store = repository.getBlockStore(); - long topBlock = store.getMaxNumber(); + long topBlock = store.getBestBlock().getNumber(); if (topBlock < 0) { System.out.println("The database is empty. Cannot print block information."); return; @@ -244,17 +244,33 @@ public static void printStateTrieSize(long blockNumber) { stateRoot = block.getStateRoot(); try { System.out.println( - "Block hash: " + block.getShortHash() + ", number: " + block.getNumber() + ", tx count: " - + block.getTransactionsList().size() + ", state trie kv count = " + repository - .getWorldState().getTrieSize(stateRoot)); + "Block hash: " + + block.getShortHash() + + ", number: " + + block.getNumber() + + ", tx count: " + + block.getTransactionsList().size() + + ", state trie kv count = " + + repository.getWorldState().getTrieSize(stateRoot)); } catch (RuntimeException e) { System.out.println( - "Block hash: " + block.getShortHash() + ", number: " + block.getNumber() + ", tx count: " - + block.getTransactionsList().size() + ", state trie kv count threw exception: " + e - .getMessage()); + "Block hash: " + + block.getShortHash() + + ", number: " + + block.getNumber() + + ", tx count: " + + block.getTransactionsList().size() + + ", state trie kv count threw exception: " + + e.getMessage()); } } else { - System.out.println("Null block found at level " + targetBlock + "."); + long count = store.getBlocksByNumber(targetBlock).size(); + System.out.println( + "Null block found at level " + + targetBlock + + ". There " + + (count == 1 ? "is 1 block" : "are " + count + " blocks") + + " at this level. No main chain block found."); } targetBlock++; } @@ -296,8 +312,15 @@ public static void printStateTrieDump(long blockNumber) { } byte[] stateRoot = block.getStateRoot(); - System.out.println("\nBlock hash: " + block.getShortHash() + ", number: " + blockNumber + ", tx count: " + block - .getTransactionsList().size() + "\n\n" + repository.getWorldState().getTrieDump(stateRoot)); + System.out.println( + "\nBlock hash: " + + block.getShortHash() + + ", number: " + + blockNumber + + ", tx count: " + + block.getTransactionsList().size() + + "\n\n" + + repository.getWorldState().getTrieDump(stateRoot)); repository.close(); } From 54270e0a50bdb675a6e6e09c4c50d03b5107b6fe Mon Sep 17 00:00:00 2001 From: AionJayT Date: Thu, 24 May 2018 10:38:21 -0400 Subject: [PATCH 059/129] fix javaapi doesn't shutdown properly and revise some wording in the shutdown log --- .../impl/sync/handler/BroadcastTxHandler.java | 2 +- .../api/server/zmq/ProtocolProcessor.java | 101 +++++++++--------- .../src/org/aion/api/server/zmq/Proxy.java | 6 +- 3 files changed, 56 insertions(+), 53 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/handler/BroadcastTxHandler.java b/modAionImpl/src/org/aion/zero/impl/sync/handler/BroadcastTxHandler.java index 5675ef8bf3..6507fe8708 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/handler/BroadcastTxHandler.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/handler/BroadcastTxHandler.java @@ -181,7 +181,7 @@ private List castRawTx(List broadCastTx) { @Override public void shutDown() { - log.info("BroadcastTxHandler shutdown!"); + log.info("BroadcastTxHandler shutting down!"); if (ex != null) { ex.shutdown(); } diff --git a/modApiServer/src/org/aion/api/server/zmq/ProtocolProcessor.java b/modApiServer/src/org/aion/api/server/zmq/ProtocolProcessor.java index 523a853cf8..4453dfd186 100644 --- a/modApiServer/src/org/aion/api/server/zmq/ProtocolProcessor.java +++ b/modApiServer/src/org/aion/api/server/zmq/ProtocolProcessor.java @@ -65,6 +65,7 @@ public class ProtocolProcessor implements Runnable { private static final long zmqHWM = 100_000; private static final int SOCKETID_LEN = 5; + private static final int SOCKET_RECV_TIMEOUT = 3000; public ProtocolProcessor(IHdlr _handler, final CfgApiZmq cfg) { this.handler = _handler; @@ -73,6 +74,8 @@ public ProtocolProcessor(IHdlr _handler, final CfgApiZmq cfg) { public void shutdown() throws InterruptedException { handler.shutDown(); + shutDown.set(true); + Thread.sleep(SOCKET_RECV_TIMEOUT); Proxy.shutdown(); } @@ -117,9 +120,8 @@ public void run() { } if (LOG.isInfoEnabled()) { - LOG.info("Shutting down Sockets..."); + LOG.info("Shutting down Zmq sockets..."); } - shutDown.set(true); // Shutdown HdlrZmq ((HdlrZmq) handler).shutdown(); // Shutdown ZmqSocket @@ -133,7 +135,7 @@ public void run() { ctx.close(); if (LOG.isInfoEnabled()) { - LOG.info("Shutdown Sockets... Done!"); + LOG.info("Shutdown Zmq sockets... Done!"); } } catch (Exception e) { @@ -172,7 +174,7 @@ private void eventRun(Context ctx) { try { byte[] socketId = ByteBuffer.allocate(5).put(ByteUtil.longToBytes(i), 3, 5).array(); sock.send(socketId, ZMQ.SNDMORE); - sock.send(rsp, ZMQ.PAIR); + sock.send(rsp, ZMQ.DONTWAIT); } catch (Exception e) { LOG.error("ProtocolProcessor.callbackRun sock.send exception: " + e.getMessage()); } @@ -187,8 +189,8 @@ private void eventRun(Context ctx) { } } sock.close(); - if (LOG.isInfoEnabled()) { - LOG.info("close eventRun Sockets..."); + if (LOG.isDebugEnabled()) { + LOG.debug("close eventRun sockets..."); } } @@ -228,7 +230,7 @@ private void callbackRun(Context ctx) { } try { sock.send(tps.getSocketId(), ZMQ.SNDMORE); - sock.send(rsp, ZMQ.PAIR); + sock.send(rsp, ZMQ.DONTWAIT); } catch (Exception e) { if (LOG.isErrorEnabled()) { LOG.error("ProtocolProcessor.callbackRun sock.send exception: " + e.getMessage()); @@ -236,14 +238,15 @@ private void callbackRun(Context ctx) { } } sock.close(); - if (LOG.isInfoEnabled()) { - LOG.info("close callbackRun Sockets..."); + if (LOG.isDebugEnabled()) { + LOG.debug("close callbackRun sockets..."); } } private void workerRun(ZMQ.Context ctx) { Socket sock = ctx.socket(ZMQ.DEALER); sock.connect(AION_ZMQ_WK_TH); + sock.setReceiveTimeOut(SOCKET_RECV_TIMEOUT); while (!shutDown.get()) { try { @@ -253,27 +256,27 @@ private void workerRun(ZMQ.Context ctx) { } if (socketId != null && socketId.length == SOCKETID_LEN) { byte[] req = sock.recv(0); - if (LOG.isTraceEnabled()) { - LOG.trace("ProtocolProcessor.workerRun reqMsg: [{}]", Hex.toHexString(req)); - } - byte[] rsp = ((HdlrZmq) this.handler).process(req, socketId); - if (LOG.isTraceEnabled()) { - LOG.trace("ProtocolProcessor.workerRun rspMsg: [{}]", Hex.toHexString(rsp)); - } + if (req != null) { + if (LOG.isTraceEnabled()) { + LOG.trace("ProtocolProcessor.workerRun reqMsg: [{}]", + Hex.toHexString(req)); + } + byte[] rsp = ((HdlrZmq) this.handler).process(req, socketId); + if (LOG.isTraceEnabled()) { + LOG.trace("ProtocolProcessor.workerRun rspMsg: [{}]", + Hex.toHexString(rsp)); + } - try { - sock.send(socketId, ZMQ.SNDMORE); - sock.send(rsp, ZMQ.PAIR); - } catch (Exception e) { - if (LOG.isErrorEnabled()) { - LOG.error("ProtocolProcessor.workerRun sock.send exception: " + e.getMessage()); + try { + sock.send(socketId, ZMQ.SNDMORE); + sock.send(rsp, ZMQ.DONTWAIT); + } catch (Exception e) { + if (LOG.isErrorEnabled()) { + LOG.error("ProtocolProcessor.workerRun sock.send exception: " + e + .getMessage()); + } } } - } else { - if (LOG.isErrorEnabled()) { - LOG.error("ProtocolProcessor.workerRun incorrect socketID [{}]", - socketId == null ? "null" : Hex.toHexString(socketId)); - } } } catch (Exception e) { if (LOG.isErrorEnabled()) { @@ -282,14 +285,15 @@ private void workerRun(ZMQ.Context ctx) { } } sock.close(); - if (LOG.isInfoEnabled()) { - LOG.info("close workerRun Sockets..."); + if (LOG.isDebugEnabled()) { + LOG.debug("close workerRun sockets..."); } } private void hbRun(ZMQ.Context ctx) { Socket sock = ctx.socket(ZMQ.DEALER); sock.connect(AION_ZMQ_HB_TH); + sock.setReceiveTimeOut(SOCKET_RECV_TIMEOUT); while (!shutDown.get()) { try { @@ -299,27 +303,26 @@ private void hbRun(ZMQ.Context ctx) { } if (socketId != null && socketId.length == SOCKETID_LEN) { byte[] req = sock.recv(0); - if (LOG.isTraceEnabled()) { - LOG.trace("ProtocolProcessor.hbRun reqMsg: [{}]", Hex.toHexString(req)); - } - byte[] rsp = ApiUtil.toReturnHeader(JAVAAPI_VAR, Message.Retcode.r_heartbeatReturn_VALUE); - if (LOG.isTraceEnabled()) { - LOG.trace("ProtocolProcessor.hbRun rspMsg: [{}]", Hex.toHexString(rsp)); - } + if (req != null) { + if (LOG.isTraceEnabled()) { + LOG.trace("ProtocolProcessor.hbRun reqMsg: [{}]", Hex.toHexString(req)); + } + byte[] rsp = ApiUtil + .toReturnHeader(JAVAAPI_VAR, Message.Retcode.r_heartbeatReturn_VALUE); + if (LOG.isTraceEnabled()) { + LOG.trace("ProtocolProcessor.hbRun rspMsg: [{}]", Hex.toHexString(rsp)); + } - try { - sock.send(socketId, ZMQ.SNDMORE); - sock.send(rsp, ZMQ.PAIR); - } catch (Exception e) { - if (LOG.isErrorEnabled()) { - LOG.error("ProtocolProcessor.hbRun sock.send exception: " + e.getMessage()); + try { + sock.send(socketId, ZMQ.SNDMORE); + sock.send(rsp, ZMQ.DONTWAIT); + } catch (Exception e) { + if (LOG.isErrorEnabled()) { + LOG.error("ProtocolProcessor.hbRun sock.send exception: " + e + .getMessage()); + } } } - } else { - if (LOG.isErrorEnabled()) { - LOG.error("ProtocolProcessor.hbRun incorrect socketID [{}]", - socketId == null ? "null" : Hex.toHexString(socketId)); - } } } catch (Exception e) { if (LOG.isErrorEnabled()) { @@ -328,8 +331,8 @@ private void hbRun(ZMQ.Context ctx) { } } sock.close(); - if (LOG.isInfoEnabled()) { - LOG.info("close hbRun Sockets..."); + if (LOG.isDebugEnabled()) { + LOG.debug("close hbRun sockets..."); } } } diff --git a/modApiServer/src/org/aion/api/server/zmq/Proxy.java b/modApiServer/src/org/aion/api/server/zmq/Proxy.java index d5c950ffdd..906c434ed7 100644 --- a/modApiServer/src/org/aion/api/server/zmq/Proxy.java +++ b/modApiServer/src/org/aion/api/server/zmq/Proxy.java @@ -105,7 +105,7 @@ static void proxy(Socket frontend, Socket backend, Socket callback, Socket event } } - LOG.info("zmq-proxy thread was interrupted."); + LOG.debug("zmq-proxy thread was interrupted."); } catch (Exception e) { LOG.error("aion.api.server.zmq.Proxy exception" + e.getMessage()); } @@ -173,10 +173,10 @@ private static boolean msgProcessSend(Socket receiver, Socket sender) { } public static void shutdown() throws InterruptedException { - LOG.info("zmq-proxy thread shuting down..."); + LOG.debug("zmq-proxy thread shutting down..."); shutDown.set(true); - LOG.info("waiting zmq-proxy thread shutdown"); + LOG.debug("waiting zmq-proxy thread shutdown"); Thread.sleep(3000); } } From b42dd5043b3db15e428555a4b7f1991ee68f4a7f Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 24 May 2018 10:39:06 -0400 Subject: [PATCH 060/129] additional stop condition for sync FORWARD mode --- .../org/aion/zero/impl/sync/PeerState.java | 62 ++++++++----- .../aion/zero/impl/sync/TaskGetHeaders.java | 91 +++++++++++-------- .../aion/zero/impl/sync/TaskImportBlocks.java | 17 +++- 3 files changed, 110 insertions(+), 60 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/PeerState.java b/modAionImpl/src/org/aion/zero/impl/sync/PeerState.java index 36e8020e15..7d0d52fabc 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/PeerState.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/PeerState.java @@ -3,42 +3,28 @@ public class PeerState { public enum Mode { - /** - * The peer is in main-chain; use normal syncing strategy. - */ + /** The peer is in main-chain; use normal syncing strategy. */ NORMAL, - /** - * The peer is in side-chain; sync backward to find the fork point. - */ + /** The peer is in side-chain; sync backward to find the fork point. */ BACKWARD, - /** - * The peer is in side-chain; sync forward to catch up. - */ + /** The peer is in side-chain; sync forward to catch up. */ FORWARD } // TODO: enforce rules on this public enum State { - /** - * The initial state. - */ + /** The initial state. */ INITIAL, - /** - * Status request, waiting for response. - */ + /** Status request, waiting for response. */ STATUS_REQUESTED, - /** - * Block headers request, waiting for response. - */ + /** Block headers request, waiting for response. */ HEADERS_REQUESTED, - /** - * Block bodies request, waiting for response. - */ + /** Block bodies request, waiting for response. */ BODIES_REQUESTED, } @@ -46,6 +32,11 @@ public enum State { private Mode mode; private long base; + // used in FORWARD mode to prevent endlessly importing EXISTing blocks + // compute how many times to go forward without importing a new block + private int repeated; + private int maxRepeats; + // The syncing status private State state; private long lastHeaderRequest; @@ -98,4 +89,33 @@ public void setLastHeaderRequest(long lastStatusRequest) { public void resetLastHeaderRequest() { this.lastHeaderRequest = 0; } + + public int getRepeated() { + return repeated; + } + + public void resetRepeated() { + this.repeated = 0; + } + + public void incRepeated() { + this.repeated++; + } + + /** + * This number is set based on the BACKWARD step size and the size of each requested batch in + * FORWARD mode. Passing the number of repeats allowed means that we have entered in the + * previous BACKWARD step. If that step would have been viable, we never would have made another + * step back, so it effectively ends the FORWARD pass. + * + * @return The number of times that a node in FORWARD mode can import only blocks that already + * EXIST. + */ + public int getMaxRepeats() { + return maxRepeats; + } + + public void setMaxRepeats(int maxRepeats) { + this.maxRepeats = maxRepeats; + } } diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java index 7c8cf75f91..31df4901af 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java @@ -29,21 +29,18 @@ package org.aion.zero.impl.sync; -import org.aion.p2p.INode; -import org.aion.p2p.IP2pMgr; -import org.aion.zero.impl.sync.msg.ReqBlocksHeaders; -import org.slf4j.Logger; - import java.math.BigInteger; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Random; import java.util.stream.Collectors; +import org.aion.p2p.INode; +import org.aion.p2p.IP2pMgr; +import org.aion.zero.impl.sync.msg.ReqBlocksHeaders; +import org.slf4j.Logger; -/** - * @author chris - */ +/** @author chris */ final class TaskGetHeaders implements Runnable { private final IP2pMgr p2p; @@ -58,7 +55,12 @@ final class TaskGetHeaders implements Runnable { private final Random random = new Random(System.currentTimeMillis()); - TaskGetHeaders(IP2pMgr p2p, long selfNumber, BigInteger selfTd, Map peerStates, Logger log) { + TaskGetHeaders( + IP2pMgr p2p, + long selfNumber, + BigInteger selfTd, + Map peerStates, + Logger log) { this.p2p = p2p; this.selfNumber = selfNumber; this.selfTd = selfTd; @@ -78,8 +80,9 @@ public void run() { // higher td n.getTotalDifficulty() != null && n.getTotalDifficulty().compareTo(this.selfTd) >= 0 // not recently requested - && (now - 5000) > peerStates.computeIfAbsent(n.getIdHash(), k -> new PeerState(PeerState.Mode.NORMAL, selfNumber)).getLastHeaderRequest() - ) + && (now - 5000) > peerStates + .computeIfAbsent(n.getIdHash(), k -> new PeerState(PeerState.Mode.NORMAL, selfNumber)) + .getLastHeaderRequest()) .collect(Collectors.toList()); if (nodesFiltered.isEmpty()) { return; @@ -94,39 +97,51 @@ public void run() { // decide the start block number long from = 0; int size = 24; + + // depends on the number of blocks going BACKWARD + state.setMaxRepeats(128 / size + 1); + switch (state.getMode()) { - case NORMAL: { - // update base block - state.setBase(selfNumber); - - // normal mode - long nodeNumber = node.getBestBlockNumber(); - if (nodeNumber >= selfNumber + 128) { - from = Math.max(1, selfNumber + 1 - 4); - } else if (nodeNumber >= selfNumber - 128) { - from = Math.max(1, selfNumber + 1 - 16); - } else { - // no need to request from this node. His TD is probably corrupted. - return; + case NORMAL: + { + // update base block + state.setBase(selfNumber); + + // normal mode + long nodeNumber = node.getBestBlockNumber(); + if (nodeNumber >= selfNumber + 128) { + from = Math.max(1, selfNumber + 1 - 4); + } else if (nodeNumber >= selfNumber - 128) { + from = Math.max(1, selfNumber + 1 - 16); + } else { + // no need to request from this node. His TD is probably corrupted. + return; + } + + break; + } + case BACKWARD: + { + // step back by 128 blocks + from = Math.max(1, state.getBase() - 128); + break; + } + case FORWARD: + { + // start from base block + from = state.getBase() + 1; + break; } - - break; - } - case BACKWARD: { - // step back by 128 blocks - from = Math.max(1, state.getBase() - 128); - break; - } - case FORWARD: { - // start from base block - from = state.getBase() + 1; - break; - } } // send request if (log.isDebugEnabled()) { - log.debug("", state.getMode(), from, size, node.getIdShort()); + log.debug( + "", + state.getMode(), + from, + size, + node.getIdShort()); } ReqBlocksHeaders rbh = new ReqBlocksHeaders(from, size); this.p2p.send(node.getIdHash(), node.getIdShort(), rbh); diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java index e69aa9ae3e..c80f292348 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java @@ -107,9 +107,9 @@ public void run() { "This is not supposed to happen, but the peer is sending us blocks without ask"); } + ImportResult importResult = ImportResult.IMPORTED_NOT_BEST; for (AionBlock b : batch) { long t1 = System.currentTimeMillis(); - ImportResult importResult; try { importResult = this.chain.tryToConnect(b); } catch (Throwable e) { @@ -159,6 +159,7 @@ public void run() { // we found the fork point state.setMode(PeerState.Mode.FORWARD); state.setBase(lastBlock); + state.resetRepeated(); } else if (mode == PeerState.Mode.FORWARD) { // continue state.setBase(lastBlock); @@ -174,6 +175,14 @@ public void run() { } } } + // if the maximum number of repeats is passed + // then the peer is stuck endlessly importing old blocks + // otherwise it would have found an IMPORTED block already + if (state.getRepeated() >= state.getMaxRepeats()) { + state.setMode(PeerState.Mode.NORMAL); + state.setBase(chain.getBestBlock().getNumber()); + state.resetLastHeaderRequest(); + } } break; case NO_PARENT: @@ -196,6 +205,12 @@ public void run() { } } + if (state != null && state.getMode() == PeerState.Mode.FORWARD && importResult == ImportResult.EXIST) { + // increment the repeat count every time + // we finish a batch of imports with EXIST + state.incRepeated(); + } + if (state != null) { state.resetLastHeaderRequest(); // so we can continue immediately } From 27a7a5255217d28f97b99d52a58226a129457a88 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 24 May 2018 16:37:37 -0400 Subject: [PATCH 061/129] new pruning configurations and default values --- .../src/org/aion/base/db/IPruneConfig.java | 7 ++ .../aion/zero/impl/AionBlockchainImpl.java | 2 +- modBoot/resource/config.xml | 14 ++-- modMcf/src/org/aion/mcf/config/CfgDb.java | 46 +++++++++++-- modMcf/src/org/aion/mcf/config/CfgPrune.java | 68 +++++++++++++------ .../org/aion/mcf/db/AbstractRepository.java | 32 ++++++--- .../aion/mcf/trie/JournalPruneDataSource.java | 2 +- 7 files changed, 126 insertions(+), 45 deletions(-) diff --git a/modAionBase/src/org/aion/base/db/IPruneConfig.java b/modAionBase/src/org/aion/base/db/IPruneConfig.java index 871537b85a..3b93b1fb50 100644 --- a/modAionBase/src/org/aion/base/db/IPruneConfig.java +++ b/modAionBase/src/org/aion/base/db/IPruneConfig.java @@ -14,6 +14,13 @@ public interface IPruneConfig { */ boolean isEnabled(); + /** + * Indicates if archiving should be enabled or disabled. + * + * @return {@code true} when archiving enabled, {@code false} when archiving disabled. + */ + boolean isArchived(); + /** * @return the number of topmost blocks for which the full data should be maintained on disk. */ diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index 650bcebcba..0fc6955479 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java @@ -1351,7 +1351,7 @@ public synchronized boolean recoverWorldState(IRepository repository, AionBlock } long blockNumber = block.getNumber(); - LOG.info("Corrupt world state at block hash: {}, number: {}." + LOG.info("Pruned or corrupt world state at block hash: {}, number: {}." + " Looking for ancestor block with valid world state ...", block.getShortHash(), blockNumber); AionRepositoryImpl repo = (AionRepositoryImpl) repository; diff --git a/modBoot/resource/config.xml b/modBoot/resource/config.xml index b81265be81..872285a788 100644 --- a/modBoot/resource/config.xml +++ b/modBoot/resource/config.xml @@ -64,15 +64,11 @@ database true - - - - true - - 128 - - 10000 - + + + + + FULL leveldb diff --git a/modMcf/src/org/aion/mcf/config/CfgDb.java b/modMcf/src/org/aion/mcf/config/CfgDb.java index 3ec6abc924..fb0d075099 100644 --- a/modMcf/src/org/aion/mcf/config/CfgDb.java +++ b/modMcf/src/org/aion/mcf/config/CfgDb.java @@ -62,6 +62,7 @@ public static class Names { private boolean compression; private boolean check_integrity; private CfgPrune prune; + private String prune_option; /** * Enabling expert mode allows more detailed database configurations. @@ -78,7 +79,8 @@ public CfgDb() { this.vendor = DBVendor.LEVELDB.toValue(); this.compression = false; this.check_integrity = true; - this.prune = new CfgPrune(); + this.prune = new CfgPrune(false); + this.prune_option = "full"; if (expert) { this.specificConfig = new HashMap<>(); @@ -100,8 +102,30 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { case "check_integrity": this.check_integrity = Boolean.parseBoolean(Cfg.readValue(sr)); break; - case "prune": - this.prune.fromXML(sr); + case "state-storage": + prune_option = Cfg.readValue(sr).toLowerCase(); + switch (prune_option) { + // journal prune only + case "top": + { + this.prune = new CfgPrune(128); + break; + } + // journal prune with archived states + case "spread": + { + this.prune = new CfgPrune(128, 10000); + break; + } + // the default is no pruning + case "full": + default: + { + this.prune = new CfgPrune(false); + this.prune_option = "full"; + break; + } + } break; // parameter considered only when expert==false case "vendor": @@ -220,8 +244,20 @@ public String toXML() { xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n\t\t"); - xmlWriter.writeComment("Configuration for data pruning behavior."); - this.prune.toXML(xmlWriter); + xmlWriter.writeComment( + "Data pruning behavior for the state database. Options: FULL, TOP, SPREAD."); + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeComment("FULL: the state is not pruned"); + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeComment( + "TOP: the state is kept only for the top K blocks; limits sync to branching only within the stored blocks"); + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeComment( + "SPREAD: the state is kept for the top K blocks and at regular block intervals"); + xmlWriter.writeCharacters("\r\n\t\t"); + xmlWriter.writeStartElement("state-storage"); + xmlWriter.writeCharacters(this.prune_option.toUpperCase()); + xmlWriter.writeEndElement(); if (!expert) { xmlWriter.writeCharacters("\r\n\t\t"); diff --git a/modMcf/src/org/aion/mcf/config/CfgPrune.java b/modMcf/src/org/aion/mcf/config/CfgPrune.java index 0fb56f98e9..842c483fe2 100644 --- a/modMcf/src/org/aion/mcf/config/CfgPrune.java +++ b/modMcf/src/org/aion/mcf/config/CfgPrune.java @@ -41,22 +41,36 @@ public class CfgPrune implements IPruneConfig { private boolean enabled; - private int current; - private int archive; + private boolean archived; + private int current_count = MINIMUM_CURRENT_COUNT; + private int archive_rate = MINIMUM_ARCHIVE_RATE; private static final int MINIMUM_CURRENT_COUNT = 128; private static final int MINIMUM_ARCHIVE_RATE = 1000; - public CfgPrune() { + public CfgPrune(boolean _enabled) { + this.enabled = _enabled; + this.archived = _enabled; + } + + public CfgPrune(int _current_count) { + // enable journal pruning this.enabled = true; - this.current = MINIMUM_CURRENT_COUNT; - this.archive = MINIMUM_ARCHIVE_RATE; + this.current_count = + _current_count > MINIMUM_CURRENT_COUNT ? _current_count : MINIMUM_CURRENT_COUNT; + // disable archiving + this.archived = false; } - public CfgPrune(boolean _enabled) { - this.enabled = _enabled; - this.current = MINIMUM_CURRENT_COUNT; - this.archive = MINIMUM_ARCHIVE_RATE; + public CfgPrune(int _current_count, int _archive_rate) { + // enable journal pruning + this.enabled = true; + this.current_count = + _current_count > MINIMUM_CURRENT_COUNT ? _current_count : MINIMUM_CURRENT_COUNT; + // enable archiving + this.archived = true; + this.archive_rate = + _archive_rate > MINIMUM_ARCHIVE_RATE ? _archive_rate : MINIMUM_ARCHIVE_RATE; } public void fromXML(final XMLStreamReader sr) throws XMLStreamException { @@ -70,18 +84,21 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { case "enabled": this.enabled = Boolean.parseBoolean(Cfg.readValue(sr)); break; + case "archived": + this.archived = Boolean.parseBoolean(Cfg.readValue(sr)); + break; case "current_count": - this.current = Integer.parseInt(Cfg.readValue(sr)); + this.current_count = Integer.parseInt(Cfg.readValue(sr)); // must be at least MINIMUM_CURRENT_COUNT - if (this.current < MINIMUM_CURRENT_COUNT) { - this.current = MINIMUM_CURRENT_COUNT; + if (this.current_count < MINIMUM_CURRENT_COUNT) { + this.current_count = MINIMUM_CURRENT_COUNT; } break; case "archive_rate": - this.archive = Integer.parseInt(Cfg.readValue(sr)); + this.archive_rate = Integer.parseInt(Cfg.readValue(sr)); // must be at least MINIMUM_ARCHIVE_RATE - if (this.archive < MINIMUM_ARCHIVE_RATE) { - this.archive = MINIMUM_ARCHIVE_RATE; + if (this.archive_rate < MINIMUM_ARCHIVE_RATE) { + this.archive_rate = MINIMUM_ARCHIVE_RATE; } break; default: @@ -106,12 +123,19 @@ public void toXML(XMLStreamWriter xmlWriter) throws XMLStreamException { xmlWriter.writeCharacters(String.valueOf(this.enabled)); xmlWriter.writeEndElement(); + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeComment("Boolean value. Enable/disable database archiving."); + xmlWriter.writeCharacters("\r\n\t\t\t"); + xmlWriter.writeStartElement("archived"); + xmlWriter.writeCharacters(String.valueOf(this.archived)); + xmlWriter.writeEndElement(); + xmlWriter.writeCharacters("\r\n\t\t\t"); xmlWriter.writeComment( "Integer value with minimum set to 128. Only blocks older than best block level minus this number are candidates for pruning."); xmlWriter.writeCharacters("\r\n\t\t\t"); xmlWriter.writeStartElement("current_count"); - xmlWriter.writeCharacters(String.valueOf(this.current)); + xmlWriter.writeCharacters(String.valueOf(this.current_count)); xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n\t\t\t"); @@ -119,24 +143,30 @@ public void toXML(XMLStreamWriter xmlWriter) throws XMLStreamException { "Integer value with minimum set to 1000. States for blocks that are exact multiples of this number will not be pruned."); xmlWriter.writeCharacters("\r\n\t\t\t"); xmlWriter.writeStartElement("archive_rate"); - xmlWriter.writeCharacters(String.valueOf(this.archive)); + xmlWriter.writeCharacters(String.valueOf(this.archive_rate)); xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeEndElement(); } + @Override public boolean isEnabled() { return enabled; } + @Override + public boolean isArchived() { + return archived; + } + @Override public int getCurrentCount() { - return current; + return current_count; } @Override public int getArchiveRate() { - return archive; + return archive_rate; } } diff --git a/modMcf/src/org/aion/mcf/db/AbstractRepository.java b/modMcf/src/org/aion/mcf/db/AbstractRepository.java index 70c4afd00b..60efd98d76 100644 --- a/modMcf/src/org/aion/mcf/db/AbstractRepository.java +++ b/modMcf/src/org/aion/mcf/db/AbstractRepository.java @@ -194,11 +194,6 @@ protected void initializeDatabasesAndCaches() throws Exception { this.stateDatabase = connectAndOpen(sharedProps); databaseGroup.add(stateDatabase); - // using state config for state_archive - sharedProps.setProperty(Props.DB_NAME, STATE_ARCHIVE_DB); - this.stateArchiveDatabase = connectAndOpen(sharedProps); - databaseGroup.add(stateArchiveDatabase); - // getting transaction specific properties sharedProps = cfg.getDatabaseConfig(TRANSACTION_DB); sharedProps.setProperty(Props.ENABLE_LOCKING, "false"); @@ -257,22 +252,39 @@ protected void initializeDatabasesAndCaches() throws Exception { // Setup the cache for transaction data source. this.detailsDS = new DetailsDataStore<>(detailsDatabase, storageDatabase, this.cfg); - stateWithArchive = new ArchivedDataSource(stateDatabase, stateArchiveDatabase); - stateDSPrune = new JournalPruneDataSource(stateWithArchive); // pruning config pruneEnabled = this.cfg.getPruneConfig().isEnabled(); pruneBlockCount = this.cfg.getPruneConfig().getCurrentCount(); archiveRate = this.cfg.getPruneConfig().getArchiveRate(); - if (pruneEnabled) { + if (pruneEnabled && this.cfg.getPruneConfig().isArchived()) { + // using state config for state_archive + sharedProps = cfg.getDatabaseConfig(STATE_DB); + sharedProps.setProperty(Props.ENABLE_LOCKING, "false"); + sharedProps.setProperty(Props.DB_PATH, cfg.getDbPath()); + sharedProps.setProperty(Props.DB_NAME, STATE_ARCHIVE_DB); + this.stateArchiveDatabase = connectAndOpen(sharedProps); + databaseGroup.add(stateArchiveDatabase); + + stateWithArchive = new ArchivedDataSource(stateDatabase, stateArchiveDatabase); + stateDSPrune = new JournalPruneDataSource(stateWithArchive); + LOGGEN.info( - "Pruning ENABLED. Block count set to {} and archive rate set to {}.", + "Pruning and archiving ENABLED. Top block count set to {} and archive rate set to {}.", pruneBlockCount, archiveRate); } else { - stateDSPrune.setPruneEnabled(false); + stateArchiveDatabase = null; + stateWithArchive = null; + stateDSPrune = new JournalPruneDataSource(stateDatabase); + + if (pruneEnabled) { + LOGGEN.info("Pruning ENABLED. Top block count set to {}.", pruneBlockCount); + } } + + stateDSPrune.setPruneEnabled(pruneEnabled); } catch (Exception e) { // Setting up databases and caches went wrong. throw e; } diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index 3141f79d65..25f74eeb9f 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -90,7 +90,7 @@ public String toString() { // block hash => updates private LinkedHashMap blockUpdates = new LinkedHashMap<>(); private Updates currentUpdates = new Updates(); - private AtomicBoolean enabled = new AtomicBoolean(true); + private AtomicBoolean enabled = new AtomicBoolean(false); private final boolean hasArchive; public JournalPruneDataSource(IByteArrayKeyValueStore src) { From f31e6baf37c149f4347ad24ca28110b67fa7c765 Mon Sep 17 00:00:00 2001 From: aionick Date: Thu, 24 May 2018 17:18:28 -0400 Subject: [PATCH 062/129] separated MsgIn and MsgOut --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 4 +- .../src/org/aion/p2p/impl1/tasks/MsgIn.java | 42 +++++++++++++++ .../src/org/aion/p2p/impl1/tasks/MsgOut.java | 51 +++++++++++++++++++ .../p2p/impl1/tasks/TaskConnectPeers.java | 1 - .../org/aion/p2p/impl1/tasks/TaskInbound.java | 2 - .../org/aion/p2p/impl1/tasks/TaskReceive.java | 28 +--------- .../org/aion/p2p/impl1/tasks/TaskSend.java | 45 ++++------------ .../org/aion/p2p/impl1/tasks/TaskStatus.java | 2 - 8 files changed, 106 insertions(+), 69 deletions(-) create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java create mode 100644 modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index f35b252894..cc90b48c85 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -38,10 +38,10 @@ import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; import org.aion.p2p.impl.zero.msg.*; +import org.aion.p2p.impl1.tasks.MsgIn; +import org.aion.p2p.impl1.tasks.MsgOut; import org.aion.p2p.impl1.tasks.TaskReceive; -import org.aion.p2p.impl1.tasks.TaskReceive.MsgIn; import org.aion.p2p.impl1.tasks.TaskSend; -import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; import org.aion.p2p.impl1.tasks.TaskClear; import org.aion.p2p.impl1.tasks.TaskConnectPeers; import org.aion.p2p.impl1.tasks.TaskInbound; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java new file mode 100644 index 0000000000..8a0015f887 --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java @@ -0,0 +1,42 @@ +package org.aion.p2p.impl1.tasks; + +/** + * An incoming message. + */ +public class MsgIn { + private final int nodeId; + private final String displayId; + private final int route; + private final byte[] msg; + + /** + * Constructs an incoming message. + * + * @param nodeId The node id. + * @param displayId The display id. + * @param route The route. + * @param msg The message. + */ + public MsgIn(int nodeId, String displayId, int route, byte[] msg) { + this.nodeId = nodeId; + this.displayId = displayId; + this.route = route; + this.msg = msg; + } + + public int getNodeId() { + return this.nodeId; + } + + public String getDisplayId() { + return this.displayId; + } + + public int getRoute() { + return this.route; + } + + public byte[] getMsg() { + return this.msg; + } +} diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java new file mode 100644 index 0000000000..708329396f --- /dev/null +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java @@ -0,0 +1,51 @@ +package org.aion.p2p.impl1.tasks; + +import org.aion.p2p.Msg; +import org.aion.p2p.impl1.P2pMgr.Dest; + +/** + * An outgoing message. + */ +public class MsgOut { + private final int nodeId; + private final String displayId; + private final Msg msg; + private final Dest dest; + private final long timestamp; + + /** + * Constructs an outgoing message. + * + * @param nodeId The node id. + * @param displayId The display id. + * @param msg The message. + * @param dest The destination. + */ + public MsgOut(int nodeId, String displayId, Msg msg, Dest dest) { + this.nodeId = nodeId; + this.displayId = displayId; + this.msg = msg; + this.dest = dest; + timestamp = System.currentTimeMillis(); + } + + public int getNodeId() { + return this.nodeId; + } + + public String getDisplayId() { + return this.displayId; + } + + public Msg getMsg() { + return this.msg; + } + + public Dest getDest() { + return this.dest; + } + + public long getTimestamp() { + return this.timestamp; + } +} diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index 7201b9cb20..0b76d01a76 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -37,7 +37,6 @@ import org.aion.p2p.impl.zero.msg.ReqHandshake1; import org.aion.p2p.impl1.P2pMgr; import org.aion.p2p.impl1.P2pMgr.Dest; -import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; public class TaskConnectPeers implements Runnable { private static final int PERIOD_CONNECT_OUTBOUND = 1000; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index c22f466b15..13258496fe 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -56,8 +56,6 @@ import org.aion.p2p.impl1.P2pException; import org.aion.p2p.impl1.P2pMgr; import org.aion.p2p.impl1.P2pMgr.Dest; -import org.aion.p2p.impl1.tasks.TaskReceive.MsgIn; -import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; public class TaskInbound implements Runnable { private final P2pMgr mgr; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index a491bce3e2..4a70c97ed0 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -54,13 +54,13 @@ public void run() { try { MsgIn mi = this.receiveMsgQue.take(); - List hs = this.handlers.get(mi.route); + List hs = this.handlers.get(mi.getRoute()); if (hs == null) continue; for (Handler hlr : hs) { if (hlr == null) continue; try { - hlr.receive(mi.nid, mi.nsid, mi.msg); + hlr.receive(mi.getNodeId(), mi.getDisplayId(), mi.getMsg()); } catch (Exception e) { if (this.showLog) e.printStackTrace(); } @@ -74,28 +74,4 @@ public void run() { } } - /** - * An incoming message. - */ - public static class MsgIn { - private final int nid; - private final String nsid; - private final int route; - private final byte[] msg; - - /** - * Constructs an incoming message. - * - * @param nid - * @param nsid - * @param route - * @param msg - */ - public MsgIn(int nid, String nsid, int route, byte[] msg) { - this.nid = nid; - this.nsid = nsid; - this.route = route; - this.msg = msg; - } - } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index e9cb6693ac..456b09ebb7 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -69,29 +69,29 @@ public void run() { MsgOut mo = sendMsgQue.take(); // if timeout , throw away this msg. long now = System.currentTimeMillis(); - if (now - mo.timestamp > P2pConstant.WRITE_MSG_TIMEOUT) { + if (now - mo.getTimestamp() > P2pConstant.WRITE_MSG_TIMEOUT) { if (this.mgr.isShowLog()) - System.out.println(getTimeoutMsg(mo.displayId, now)); + System.out.println(getTimeoutMsg(mo.getDisplayId(), now)); continue; } // if not belong to current lane, put it back. - int targetLane = hash2Lane(mo.nodeId); + int targetLane = hash2Lane(mo.getNodeId()); if (targetLane != lane) { sendMsgQue.offer(mo); continue; } Node node = null; - switch (mo.dest) { + switch (mo.getDest()) { case ACTIVE: - node = nodeMgr.getActiveNode(mo.nodeId); + node = nodeMgr.getActiveNode(mo.getNodeId()); break; case INBOUND: - node = nodeMgr.getInboundNode(mo.nodeId); + node = nodeMgr.getInboundNode(mo.getNodeId()); break; case OUTBOUND: - node = nodeMgr.getOutboundNode(mo.nodeId); + node = nodeMgr.getOutboundNode(mo.getNodeId()); break; } @@ -105,7 +105,7 @@ public void run() { this.mgr.isShowLog(), node.getIdShort(), node.getChannel(), - mo.msg, + mo.getMsg(), (ChannelBuffer) attachment, this.mgr); tw.run(); @@ -113,7 +113,7 @@ public void run() { } } else { if (this.mgr.isShowLog()) - System.out.println(getNodeNotExitMsg(mo.dest.name(), mo.displayId)); + System.out.println(getNodeNotExitMsg(mo.getDest().name(), mo.getDisplayId())); } } catch (InterruptedException e) { if (this.mgr.isShowLog()) System.out.println(""); @@ -134,33 +134,6 @@ private int hash2Lane(int in) { return in & 0b11111; } - /** - * An outgoing message. - */ - public static class MsgOut { - private final int nodeId; - private final String displayId; - private final Msg msg; - private final Dest dest; - private final long timestamp; - - /** - * Constructs an outgoing message. - * - * @param _nodeId - * @param _displayId - * @param _msg - * @param _dest - */ - public MsgOut(int _nodeId, String _displayId, Msg _msg, Dest _dest) { - nodeId = _nodeId; - displayId = _displayId; - msg = _msg; - dest = _dest; - timestamp = System.currentTimeMillis(); - } - } - private String getTimeoutMsg(String id, long now) { return ""; } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index f935388423..ca4149b2cc 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -27,8 +27,6 @@ import java.util.concurrent.LinkedBlockingQueue; import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl1.tasks.TaskReceive.MsgIn; -import org.aion.p2p.impl1.tasks.TaskSend.MsgOut; public class TaskStatus implements Runnable { private final NodeMgr nodeMgr; From 1d48630f1d5808408bcdeb9ca4aa2abe24724460 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 25 May 2018 09:01:16 -0400 Subject: [PATCH 063/129] defined fields in terms of interfaces --- .../zero/impl/sync/BlockPropagationTest.java | 64 ++++++++++++++++++ modP2p/src/org/aion/p2p/INode.java | 26 +++++++ modP2p/src/org/aion/p2p/INodeMgr.java | 45 +++++++++++++ modP2p/src/org/aion/p2p/IP2pMgr.java | 17 +++++ modP2p/src/org/aion/p2p/IPeerMetric.java | 15 +++++ .../src/org/aion/p2p/impl/comm/Node.java | 25 +++++-- .../src/org/aion/p2p/impl/comm/NodeMgr.java | 67 ++++++++++++------- .../org/aion/p2p/impl/comm/PeerMetric.java | 10 ++- .../p2p/impl/zero/msg/ResActiveNodes.java | 10 +-- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 22 ++++-- .../org/aion/p2p/impl1/tasks/TaskClear.java | 14 ++-- .../p2p/impl1/tasks/TaskConnectPeers.java | 22 +++--- .../org/aion/p2p/impl1/tasks/TaskInbound.java | 46 ++++++------- .../org/aion/p2p/impl1/tasks/TaskReceive.java | 6 +- .../org/aion/p2p/impl1/tasks/TaskSend.java | 24 +++---- .../org/aion/p2p/impl1/tasks/TaskStatus.java | 16 ++--- .../org/aion/p2p/impl1/tasks/TaskWrite.java | 6 +- .../p2p/impl/zero/msg/ResActiveNodesTest.java | 9 +-- 18 files changed, 331 insertions(+), 113 deletions(-) create mode 100644 modP2p/src/org/aion/p2p/IPeerMetric.java diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 5b6fe0d228..2b30a62191 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -2,6 +2,7 @@ import static com.google.common.truth.Truth.assertThat; +import java.io.IOException; import java.math.BigInteger; import java.nio.channels.SocketChannel; import java.util.*; @@ -81,6 +82,42 @@ public long getTimestamp() { public String getBinaryVersion() { return ""; } + + @Override + public void setPort(int _port) { throw new IllegalStateException("not implemented"); } + + @Override + public void setConnection(String _connection) { throw new IllegalStateException("not implemented"); } + + @Override + public IPeerMetric getPeerMetric() { throw new IllegalStateException("not implemented"); } + + @Override + public void refreshTimestamp() { throw new IllegalStateException("not implemented"); } + + @Override + public void setChannel(SocketChannel _channel) { throw new IllegalStateException("not implemented"); } + + @Override + public void setId(byte[] _id) { throw new IllegalStateException("not implemented"); } + + @Override + public void setBinaryVersion(String _revision) { throw new IllegalStateException("not implemented"); } + + @Override + public boolean getIfFromBootList() { throw new IllegalStateException("not implemented"); } + + @Override + public byte[] getBestBlockHash() { throw new IllegalStateException("not implemented"); } + + @Override + public String getConnection() { throw new IllegalStateException("not implemented"); } + + @Override + public SocketChannel getChannel() { throw new IllegalStateException("not implemented"); } + + @Override + public void setFromBootList(boolean _ifBoot) { throw new IllegalStateException("not implemented"); } } private static class P2pMock implements IP2pMgr { @@ -138,6 +175,33 @@ public void closeSocket(SocketChannel _sc, String _reason) {} public int getSelfIdHash() { return 0; } + + @Override + public void dropActive(int _nodeIdHash, String _reason) { throw new IllegalStateException("not implemented."); } + + @Override + public void configChannel(SocketChannel _channel) { + throw new IllegalStateException("not implemented."); + } + + @Override + public int getMaxActiveNodes() { throw new IllegalStateException("not implemented."); } + + @Override + public boolean isSyncSeedsOnly() { throw new IllegalStateException("not implemented."); } + + @Override + public int getTxBroadCastRoute() { throw new IllegalStateException("not implemented."); } + + @Override + public int getMaxTempNodes() { throw new IllegalStateException("not implemented."); } + + @Override + public boolean validateNode(INode _node) { throw new IllegalStateException("not implemented."); } + + @Override + public int getSelfNetId() { throw new IllegalStateException("not implemented."); } + } private static List generateDefaultAccounts() { diff --git a/modP2p/src/org/aion/p2p/INode.java b/modP2p/src/org/aion/p2p/INode.java index 1b1c7d3614..187a38b4ce 100644 --- a/modP2p/src/org/aion/p2p/INode.java +++ b/modP2p/src/org/aion/p2p/INode.java @@ -26,6 +26,7 @@ package org.aion.p2p; import java.math.BigInteger; +import java.nio.channels.SocketChannel; /** * @@ -84,4 +85,29 @@ public interface INode { void updateStatus(long _bestBlockNumber, final byte[] _bestBlockHash, BigInteger _totalDifficulty); String getBinaryVersion(); + + boolean getIfFromBootList(); + + byte[] getBestBlockHash(); + + String getConnection(); + + SocketChannel getChannel(); + + void setFromBootList(boolean _ifBoot); + + void setConnection(String _connection); + + IPeerMetric getPeerMetric(); + + void refreshTimestamp(); + + void setChannel(SocketChannel _channel); + + void setId(byte[] _id); + + void setPort(int _port); + + void setBinaryVersion(String _revision); + } diff --git a/modP2p/src/org/aion/p2p/INodeMgr.java b/modP2p/src/org/aion/p2p/INodeMgr.java index ffc8e533ad..a3dd8f5b4e 100644 --- a/modP2p/src/org/aion/p2p/INodeMgr.java +++ b/modP2p/src/org/aion/p2p/INodeMgr.java @@ -1,5 +1,8 @@ package org.aion.p2p; +import java.util.List; +import java.util.Map; + public interface INodeMgr { void timeoutActive(final IP2pMgr _p2pMgr); @@ -10,4 +13,46 @@ public interface INodeMgr { void dropActive(int _nodeIdHash, final IP2pMgr _p2pMgr, String _reason); + void timeoutInbound(IP2pMgr _p2pMgr); + + Map getOutboundNodes(); + + int activeNodesSize(); + + INode tempNodesTake() throws InterruptedException; + + boolean isSeedIp(String _ip); + + void addTempNode(INode _n); + + boolean hasActiveNode(int k); + + void addOutboundNode(INode _n); + + void addInboundNode(INode _n); + + INode allocNode(String ip, int p0); + + INode getActiveNode(int k); + + List getActiveNodesList(); + + int tempNodesSize(); + + INode getInboundNode(int k); + + INode getOutboundNode(int k); + + String dumpNodeInfo(String selfShortId); + + void seedIpAdd(String _ip); + + void shutdown(IP2pMgr _p2pMgr); + + void ban(int _nodeIdHash); + + INode getRandom(); + + Map getActiveNodesMap(); + } diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index 5331080c4a..8ad2cb288e 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -25,6 +25,7 @@ package org.aion.p2p; +import java.io.IOException; import java.nio.channels.SocketChannel; import java.util.List; import java.util.Map; @@ -64,4 +65,20 @@ public interface IP2pMgr { boolean isShowLog(); void errCheck(int nodeIdHashcode, String _displayId); + + void dropActive(int _nodeIdHash, String _reason); + + void configChannel(SocketChannel _channel) throws IOException; + + int getMaxActiveNodes(); + + boolean isSyncSeedsOnly(); + + int getTxBroadCastRoute(); + + int getMaxTempNodes(); + + boolean validateNode(INode _node); + + int getSelfNetId(); } diff --git a/modP2p/src/org/aion/p2p/IPeerMetric.java b/modP2p/src/org/aion/p2p/IPeerMetric.java new file mode 100644 index 0000000000..b734e9a269 --- /dev/null +++ b/modP2p/src/org/aion/p2p/IPeerMetric.java @@ -0,0 +1,15 @@ +package org.aion.p2p; + +public interface IPeerMetric { + + boolean shouldNotConn(); + + void incFailedCount(); + + void decFailedCount(); + + void ban(); + + boolean notBan(); + +} diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java b/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java index 3f8eb4e788..f5d27c25e0 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java @@ -31,6 +31,7 @@ import java.util.Arrays; import java.util.regex.Pattern; import org.aion.p2p.INode; +import org.aion.p2p.IPeerMetric; /* * @@ -88,7 +89,12 @@ public final class Node implements INode { */ private String connection = ""; - public PeerMetric peerMetric = new PeerMetric(); + public IPeerMetric peerMetric = new PeerMetric(); + + @Override + public IPeerMetric getPeerMetric() { + return this.peerMetric; + } /** * constructor for initial stage of connections from network @@ -182,6 +188,7 @@ public static Node parseP2p(String _p2p) { return new Node(true, _id, _ip, _port); } + @Override public void setFromBootList(boolean _ifBoot) { this.fromBootList = _ifBoot; } @@ -190,6 +197,7 @@ public void setFromBootList(boolean _ifBoot) { * @param _id * byte[] */ + @Override public void setId(final byte[] _id) { this.id = _id; if (_id != null && _id.length == 36) { @@ -202,10 +210,12 @@ public void setId(final byte[] _id) { * @param _port * int */ + @Override public void setPort(final int _port) { this.port = _port; } + @Override public void setBinaryVersion(String _revision) { this.binaryVersion = _revision; } @@ -214,6 +224,7 @@ public void setBinaryVersion(String _revision) { * this method used to keep current node stage on either pending list or active * list */ + @Override public void refreshTimestamp() { this.timestamp = System.currentTimeMillis(); } @@ -222,6 +233,7 @@ public void refreshTimestamp() { * @param _channel * SocketChannel */ + @Override public void setChannel(final SocketChannel _channel) { this.channel = _channel; } @@ -230,13 +242,15 @@ public void setChannel(final SocketChannel _channel) { * @param _connection * String */ - void setConnection(String _connection) { + @Override + public void setConnection(String _connection) { this.connection = _connection; } /** * @return boolean */ + @Override public boolean getIfFromBootList() { return this.fromBootList; } @@ -270,6 +284,7 @@ public String getBinaryVersion() { /** * @return SocketChannel */ + @Override public SocketChannel getChannel() { return this.channel; } @@ -287,7 +302,8 @@ public int getIdHash() { /** * @return String */ - String getConnection() { + @Override + public String getConnection() { return this.connection; } @@ -301,7 +317,8 @@ public long getBestBlockNumber() { return this.bestBlockNumber; } - byte[] getBestBlockHash() { + @Override + public byte[] getBestBlockHash() { return this.bestBlockHash; } diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index abe281287d..014cc5b639 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -47,17 +47,17 @@ public class NodeMgr implements INodeMgr { // // )); - private final BlockingQueue tempNodes = new LinkedBlockingQueue<>(); - private final Map outboundNodes = new ConcurrentHashMap<>(); - private final Map inboundNodes = new ConcurrentHashMap<>(); - private final Map activeNodes = new ConcurrentHashMap<>(); + private final BlockingQueue tempNodes = new LinkedBlockingQueue<>(); + private final Map outboundNodes = new ConcurrentHashMap<>(); + private final Map inboundNodes = new ConcurrentHashMap<>(); + private final Map activeNodes = new ConcurrentHashMap<>(); public NodeMgr(int _maxActiveNodes, int _maxTempNodes){ this.maxActiveNodes = _maxActiveNodes; this.maxTempNodes = _maxTempNodes; } - public Map getOutboundNodes() { + public Map getOutboundNodes() { return outboundNodes; } @@ -76,6 +76,7 @@ private static String bytesToHex(byte[] bytes) { /** * @param selfShortId String */ + @Override public String dumpNodeInfo(String selfShortId) { StringBuilder sb = new StringBuilder(); sb.append("\n"); @@ -85,7 +86,7 @@ public String dumpNodeInfo(String selfShortId) { sb.append(String.format( "temp[%3d] inbound[%3d] outbound[%3d] active[%3d] s - seed node, td - total difficulty, # - block number, bv - binary version\n", tempNodesSize(), inboundNodes.size(), outboundNodes.size(), activeNodes.size())); - List sorted = new ArrayList<>(activeNodes.values()); + List sorted = new ArrayList<>(activeNodes.values()); if (sorted.size() > 0) { sb.append("\n s"); // id & seed sb.append(" td"); @@ -107,7 +108,7 @@ public String dumpNodeInfo(String selfShortId) { } else return tdCompare; }); - for (Node n : sorted) { + for (INode n : sorted) { try { sb.append(String.format("id:%6s %c %16s %10d %64s %15s %5d %8s %15s %12s\n", n.getIdShort(), @@ -130,10 +131,12 @@ public String dumpNodeInfo(String selfShortId) { /** * @param _ip String */ + @Override public void seedIpAdd(String _ip) { this.seedIps.add(_ip); } + @Override public boolean isSeedIp(String _ip) { return this.seedIps.contains(_ip); } @@ -141,64 +144,78 @@ public boolean isSeedIp(String _ip) { /** * @param _n Node */ - public synchronized void addTempNode(final Node _n) { + @Override + public synchronized void addTempNode(final INode _n) { if(tempNodes.size() < maxTempNodes) tempNodes.add(_n); } - public void addInboundNode(final Node _n) { + @Override + public void addInboundNode(final INode _n) { inboundNodes.put(_n.getChannel().hashCode(), _n); } - public void addOutboundNode(final Node _n) { + @Override + public void addOutboundNode(final INode _n) { outboundNodes.put(_n.getIdHash(), _n); } - public Node tempNodesTake() throws InterruptedException { + @Override + public INode tempNodesTake() throws InterruptedException { return tempNodes.take(); } + @Override public int tempNodesSize() { return tempNodes.size(); } + @Override public int activeNodesSize() { return activeNodes.size(); } + @Override public boolean hasActiveNode(int k) { return activeNodes.containsKey(k); } - public Node getActiveNode(int k) { + @Override + public INode getActiveNode(int k) { return activeNodes.get(k); } - public Node getInboundNode(int k) { + @Override + public INode getInboundNode(int k) { return inboundNodes.get(k); } - public Node getOutboundNode(int k) { + @Override + public INode getOutboundNode(int k) { return outboundNodes.get(k); } - public Node allocNode(String ip, int p0) { - Node n = new Node(ip, p0); + @Override + public INode allocNode(String ip, int p0) { + INode n = new Node(ip, p0); if (seedIps.contains(ip)) n.setFromBootList(true); return n; } - public List getActiveNodesList() { + @Override + public List getActiveNodesList() { return new ArrayList(activeNodes.values()); } + @Override public Map getActiveNodesMap() { synchronized(activeNodes){ return new HashMap(activeNodes); } } + @Override public INode getRandom() { int nodesCount = activeNodes.size(); if (nodesCount > 0) { @@ -243,7 +260,7 @@ private boolean activeIpAllow(String _ip){ // Attention: move node from container need sync to avoid node not belong to // any container during transit. public synchronized void moveInboundToActive(int _channelHashCode, final IP2pMgr _p2pMgr) { - Node node = inboundNodes.remove(_channelHashCode); + INode node = inboundNodes.remove(_channelHashCode); if (node != null) { if(activeNodes.size() >= maxActiveNodes){ @@ -278,7 +295,7 @@ else if(!activeIpAllow(node.getIpStr())) // Attention: move node from container need sync to avoid node not belong to // any container during transit. public synchronized void moveOutboundToActive(int _nodeIdHash, String _shortId, final IP2pMgr _p2pMgr) { - Node node = outboundNodes.remove(_nodeIdHash); + INode node = outboundNodes.remove(_nodeIdHash); if (node != null) { if(activeNodes.size() >= maxActiveNodes){ @@ -306,7 +323,7 @@ public void timeoutInbound(final IP2pMgr _p2pMgr) { Iterator inboundIt = inboundNodes.keySet().iterator(); while (inboundIt.hasNext()) { int key = (int) inboundIt.next(); - Node node = inboundNodes.get(key); + INode node = inboundNodes.get(key); if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_INBOUND_NODES) { _p2pMgr.closeSocket(node.getChannel(), "inbound-timeout ip=" + node.getIpStr()); inboundIt.remove(); @@ -327,7 +344,7 @@ public void timeoutActive(IP2pMgr _p2pMgr) { Iterator activeIt = activeNodes.keySet().iterator(); while (activeIt.hasNext()) { int key = (int) activeIt.next(); - Node node = getActiveNode(key); + INode node = getActiveNode(key); if (now - node.getTimestamp() > timeout) { _p2pMgr.closeSocket(node.getChannel(), "active-timeout node=" + node.getIdShort() + " ip=" + node.getIpStr()); @@ -342,7 +359,7 @@ public void timeoutActive(IP2pMgr _p2pMgr) { } public void dropActive(int nodeIdHash, final IP2pMgr _p2pMgr, String _reason) { - Node node = activeNodes.remove(nodeIdHash); + INode node = activeNodes.remove(nodeIdHash); if (node == null) return; _p2pMgr.closeSocket(node.getChannel(), _reason); @@ -351,6 +368,7 @@ public void dropActive(int nodeIdHash, final IP2pMgr _p2pMgr, String _reason) { /** * @param _p2pMgr P2pMgr */ + @Override public void shutdown(final IP2pMgr _p2pMgr) { try { @@ -374,10 +392,11 @@ public void shutdown(final IP2pMgr _p2pMgr) { } } + @Override public void ban(int _nodeIdHash) { - Node node = activeNodes.get(_nodeIdHash); + INode node = activeNodes.get(_nodeIdHash); if (node != null) { - node.peerMetric.ban(); + node.getPeerMetric().ban(); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java b/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java index 227553216c..dbc261b57c 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java @@ -25,34 +25,40 @@ package org.aion.p2p.impl.comm; +import org.aion.p2p.IPeerMetric; import org.aion.p2p.P2pConstant; -public final class PeerMetric { +public final class PeerMetric implements IPeerMetric { private int metricFailedConn; private long metricFailedConnTs; private long metricBanConnTs; + @Override public boolean shouldNotConn() { return (metricFailedConn > P2pConstant.STOP_CONN_AFTER_FAILED_CONN && ((System.currentTimeMillis() - metricFailedConnTs) > P2pConstant.FAILED_CONN_RETRY_INTERVAL)) || ((System.currentTimeMillis() - metricBanConnTs) < P2pConstant.BAN_CONN_RETRY_INTERVAL); } + @Override public void incFailedCount() { metricFailedConn++; metricFailedConnTs = System.currentTimeMillis(); } + @Override public void decFailedCount() { if (metricFailedConn > 0) metricFailedConn--; } - void ban() { + @Override + public void ban() { metricBanConnTs = System.currentTimeMillis(); } + @Override public boolean notBan() { return ((System.currentTimeMillis() - metricBanConnTs) > P2pConstant.BAN_CONN_RETRY_INTERVAL); } diff --git a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java index bd1b7e6ae8..c3e2b039b0 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java +++ b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java @@ -43,7 +43,7 @@ */ public final class ResActiveNodes extends Msg { - private final List nodes; + private final List nodes; private int count; @@ -58,7 +58,7 @@ public final class ResActiveNodes extends Msg { * @param _nodes * List */ - public ResActiveNodes(final List _nodes) { + public ResActiveNodes(final List _nodes) { super(Ver.V0, Ctrl.NET, Act.RES_ACTIVE_NODES); this.count = Math.min(MAX_NODES, _nodes.size()); if (this.count > 0) @@ -70,7 +70,7 @@ public ResActiveNodes(final List _nodes) { /** * @return List */ - public List getNodes() { + public List getNodes() { return this.nodes; } @@ -93,14 +93,14 @@ public static ResActiveNodes decode(final byte[] _bytes) { if (_bytes.length != count * NODE_BYTES_LENGTH + 1) return null; - ArrayList activeNodes = new ArrayList<>(); + ArrayList activeNodes = new ArrayList<>(); for (int i = 0; i < count; i++) { byte[] nodeIdBytes = new byte[36]; buf.get(nodeIdBytes); byte[] ipBytes = new byte[8]; buf.get(ipBytes); int port = buf.getInt(); - Node n = new Node(false, nodeIdBytes, ipBytes, port); + INode n = new Node(false, nodeIdBytes, ipBytes, port); activeNodes.add(n); } return new ResActiveNodes(activeNodes); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index cc90b48c85..e4b2d0d2b1 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -56,24 +56,24 @@ public final class P2pMgr implements IP2pMgr { private static final int TIMEOUT_MSG_READ = 10000; // TODO: need refactor by passing the parameter in the later version. - public static final int txBroadCastRoute = + private static final int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; private final boolean syncSeedsOnly, showStatus, showLog, upnpEnable; private final String selfRevision, selfShortId; private final byte[] selfNodeId, selfIp; - private final NodeMgr nodeMgr; + private final INodeMgr nodeMgr; private final Map> handlers = new ConcurrentHashMap<>(); private final Set versions = new HashSet<>(); private final Map errCnt = Collections.synchronizedMap(new LRUMap<>(128)); private ServerSocketChannel tcpServer; private Selector selector; - private ScheduledThreadPoolExecutor scheduledWorkers; + private ScheduledExecutorService scheduledWorkers; private int errTolerance; - private LinkedBlockingQueue sendMsgQue = new LinkedBlockingQueue<>(); - private LinkedBlockingQueue receiveMsgQue = new LinkedBlockingQueue<>(); + private BlockingQueue sendMsgQue = new LinkedBlockingQueue<>(); + private BlockingQueue receiveMsgQue = new LinkedBlockingQueue<>(); private AtomicBoolean start = new AtomicBoolean(true); private static ReqHandshake1 cachedReqHandshake1; @@ -295,6 +295,7 @@ public void closeSocket(final SocketChannel _sc, String _reason) { * @param _nodeIdHash int * @param _reason String */ + @Override public void dropActive(int _nodeIdHash, String _reason) { nodeMgr.dropActive(_nodeIdHash, this, _reason); } @@ -303,7 +304,8 @@ public void dropActive(int _nodeIdHash, String _reason) { * @param _node Node * @return boolean */ - public boolean validateNode(final Node _node) { + @Override + public boolean validateNode(final INode _node) { if (_node != null) { boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); boolean notSameIpOrPort = @@ -315,6 +317,7 @@ public boolean validateNode(final Node _node) { } /** @param _channel SocketChannel TODO: check option */ + @Override public void configChannel(final SocketChannel _channel) throws IOException { _channel.configureBlocking(false); _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); @@ -363,22 +366,29 @@ public int getTempNodesCount() { return this.nodeMgr.tempNodesSize(); } + @Override public int getMaxActiveNodes() { return this.maxActiveNodes; } + @Override public int getMaxTempNodes() { return this.maxTempNodes; } + @Override public int getSelfNetId() { return this.selfNetId; } + @Override public boolean isSyncSeedsOnly() { return this.syncSeedsOnly; } + @Override + public int getTxBroadCastRoute() { return this.txBroadCastRoute; } + // <---------------------- message and Runnable getters below -------------------------> private String getRouteMsg(Integer route, short ver, byte ctrl, byte act, String name) { diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index ee077f3893..8d08780bc7 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -27,19 +27,19 @@ import java.util.Iterator; import java.util.concurrent.atomic.AtomicBoolean; -import org.aion.p2p.impl.comm.Node; -import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl1.P2pMgr; +import org.aion.p2p.INode; +import org.aion.p2p.INodeMgr; +import org.aion.p2p.IP2pMgr; public class TaskClear implements Runnable { private static final int PERIOD_CLEAR = 20000; private static final int TIMEOUT_OUTBOUND_NODES = 20000; - private final P2pMgr mgr; - private final NodeMgr nodeMgr; + private final IP2pMgr mgr; + private final INodeMgr nodeMgr; private AtomicBoolean start; - public TaskClear(P2pMgr _mgr, NodeMgr _nodeMgr, AtomicBoolean _start) { + public TaskClear(IP2pMgr _mgr, INodeMgr _nodeMgr, AtomicBoolean _start) { this.mgr = _mgr; this.nodeMgr = _nodeMgr; this.start = _start; @@ -61,7 +61,7 @@ public void run() { if (obj == null) continue; int nodeIdHash = (int) obj; - Node node = nodeMgr.getOutboundNodes().get(nodeIdHash); + INode node = nodeMgr.getOutboundNodes().get(nodeIdHash); if (node == null) continue; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index 0b76d01a76..0a8d4ca933 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -30,33 +30,33 @@ import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.SocketChannel; -import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.BlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; -import org.aion.p2p.impl.comm.Node; -import org.aion.p2p.impl.comm.NodeMgr; +import org.aion.p2p.INode; +import org.aion.p2p.INodeMgr; +import org.aion.p2p.IP2pMgr; import org.aion.p2p.impl.zero.msg.ReqHandshake1; -import org.aion.p2p.impl1.P2pMgr; import org.aion.p2p.impl1.P2pMgr.Dest; public class TaskConnectPeers implements Runnable { private static final int PERIOD_CONNECT_OUTBOUND = 1000; private static final int TIMEOUT_OUTBOUND_CONNECT = 10000; - private final NodeMgr nodeMgr; + private final INodeMgr nodeMgr; private final int maxActiveNodes; - private final P2pMgr mgr; + private final IP2pMgr mgr; private AtomicBoolean start; - private LinkedBlockingQueue sendMsgQue; + private BlockingQueue sendMsgQue; private Selector selector; private ReqHandshake1 cachedReqHandshake1; public TaskConnectPeers( - P2pMgr _mgr, + IP2pMgr _mgr, AtomicBoolean _start, - NodeMgr _nodeMgr, + INodeMgr _nodeMgr, int _maxActiveNodes, Selector _selector, - LinkedBlockingQueue _sendMsgQue, + BlockingQueue _sendMsgQue, ReqHandshake1 _cachedReqHandshake1) { this.start = _start; @@ -84,7 +84,7 @@ public void run() { continue; } - Node node; + INode node; try { node = this.nodeMgr.tempNodesTake(); if (this.nodeMgr.isSeedIp(node.getIpStr())) node.setFromBootList(true); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index 13258496fe..ada55d5789 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -38,46 +38,46 @@ import java.util.Iterator; import java.util.List; import java.util.Map; -import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.BlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.Ctrl; import org.aion.p2p.Handler; import org.aion.p2p.Header; +import org.aion.p2p.INode; +import org.aion.p2p.INodeMgr; +import org.aion.p2p.IP2pMgr; import org.aion.p2p.P2pConstant; import org.aion.p2p.Ver; import org.aion.p2p.impl.comm.Act; -import org.aion.p2p.impl.comm.Node; -import org.aion.p2p.impl.comm.NodeMgr; import org.aion.p2p.impl.zero.msg.ReqHandshake; import org.aion.p2p.impl.zero.msg.ReqHandshake1; import org.aion.p2p.impl.zero.msg.ResActiveNodes; import org.aion.p2p.impl.zero.msg.ResHandshake; import org.aion.p2p.impl.zero.msg.ResHandshake1; import org.aion.p2p.impl1.P2pException; -import org.aion.p2p.impl1.P2pMgr; import org.aion.p2p.impl1.P2pMgr.Dest; public class TaskInbound implements Runnable { - private final P2pMgr mgr; + private final IP2pMgr mgr; private final Selector selector; - private final NodeMgr nodeMgr; + private final INodeMgr nodeMgr; private final Map> handlers; private AtomicBoolean start; private ServerSocketChannel tcpServer; - private LinkedBlockingQueue sendMsgQue; + private BlockingQueue sendMsgQue; private ResHandshake1 cachedResHandshake1; - private LinkedBlockingQueue receiveMsgQue; + private BlockingQueue receiveMsgQue; public TaskInbound( - P2pMgr _mgr, + IP2pMgr _mgr, Selector _selector, AtomicBoolean _start, - NodeMgr _nodeMgr, + INodeMgr _nodeMgr, ServerSocketChannel _tcpServer, Map> _handlers, - LinkedBlockingQueue _sendMsgQue, + BlockingQueue _sendMsgQue, ResHandshake1 _cachedResHandshake1, - LinkedBlockingQueue _receiveMsgQue) { + BlockingQueue _receiveMsgQue) { this.mgr = _mgr; this.selector = _selector; @@ -259,7 +259,7 @@ private void accept() { return; } - Node node = this.nodeMgr.allocNode(ip, 0); + INode node = this.nodeMgr.allocNode(ip, 0); node.setChannel(channel); this.nodeMgr.addInboundNode(node); @@ -356,7 +356,7 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw boolean underRC = rb.shouldRoute( route, - ((route == P2pMgr.txBroadCastRoute) + ((route == this.mgr.getTxBroadCastRoute()) ? P2pConstant.READ_MAX_RATE_TXBC : P2pConstant.READ_MAX_RATE)); @@ -440,7 +440,7 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy case Act.REQ_ACTIVE_NODES: if (rb.nodeIdHash != 0) { - Node node = nodeMgr.getActiveNode(rb.nodeIdHash); + INode node = nodeMgr.getActiveNode(rb.nodeIdHash); if (node != null) this.sendMsgQue.offer( new MsgOut( @@ -455,13 +455,13 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy if (this.mgr.isSyncSeedsOnly()) break; if (rb.nodeIdHash != 0) { - Node node = nodeMgr.getActiveNode(rb.nodeIdHash); + INode node = nodeMgr.getActiveNode(rb.nodeIdHash); if (node != null) { node.refreshTimestamp(); ResActiveNodes resActiveNodes = ResActiveNodes.decode(_msgBytes); if (resActiveNodes != null) { - List incomingNodes = resActiveNodes.getNodes(); - for (Node incomingNode : incomingNodes) { + List incomingNodes = resActiveNodes.getNodes(); + for (INode incomingNode : incomingNodes) { if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) return; if (this.mgr.validateNode(incomingNode)) nodeMgr.addTempNode(incomingNode); @@ -493,8 +493,8 @@ private void handleReqHandshake( int _netId, int _port, final byte[] _revision) { - Node node = nodeMgr.getInboundNode(_channelHash); - if (node != null && node.peerMetric.notBan()) { + INode node = nodeMgr.getInboundNode(_channelHash); + if (node != null && node.getPeerMetric().notBan()) { if (handshakeRuleCheck(_netId)) { _buffer.nodeIdHash = Arrays.hashCode(_nodeId); _buffer.displayId = new String(Arrays.copyOfRange(_nodeId, 0, 6)); @@ -526,8 +526,8 @@ private void handleReqHandshake( } private void handleResHandshake(int _nodeIdHash, String _binaryVersion) { - Node node = nodeMgr.getOutboundNodes().get(_nodeIdHash); - if (node != null && node.peerMetric.notBan()) { + INode node = nodeMgr.getOutboundNodes().get(_nodeIdHash); + if (node != null && node.getPeerMetric().notBan()) { node.refreshTimestamp(); node.setBinaryVersion(_binaryVersion); nodeMgr.moveOutboundToActive(node.getIdHash(), node.getIdShort(), this.mgr); @@ -540,7 +540,7 @@ private void handleResHandshake(int _nodeIdHash, String _binaryVersion) { * @param _msgBytes byte[] */ private void handleKernelMsg(int _nodeIdHash, int _route, final byte[] _msgBytes) { - Node node = nodeMgr.getActiveNode(_nodeIdHash); + INode node = nodeMgr.getActiveNode(_nodeIdHash); if (node != null) { int nodeIdHash = node.getIdHash(); String nodeDisplayId = node.getIdShort(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index 4a70c97ed0..37bb42ade2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -27,19 +27,19 @@ import java.util.List; import java.util.Map; -import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.BlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.Handler; public class TaskReceive implements Runnable { private final AtomicBoolean start; - private final LinkedBlockingQueue receiveMsgQue; + private final BlockingQueue receiveMsgQue; private final Map> handlers; private final boolean showLog; public TaskReceive( AtomicBoolean _start, - LinkedBlockingQueue _receiveMsgQue, + BlockingQueue _receiveMsgQue, Map> _handlers, boolean _showLog) { this.start = _start; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index 456b09ebb7..ea522929e6 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -27,31 +27,29 @@ import java.nio.channels.SelectionKey; import java.nio.channels.Selector; -import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.BlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; -import org.aion.p2p.Msg; +import org.aion.p2p.INode; +import org.aion.p2p.INodeMgr; +import org.aion.p2p.IP2pMgr; import org.aion.p2p.P2pConstant; -import org.aion.p2p.impl.comm.Node; -import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl1.P2pMgr; -import org.aion.p2p.impl1.P2pMgr.Dest; public class TaskSend implements Runnable { public static final int TOTAL_LANE = (1 << 5) - 1; - private final P2pMgr mgr; + private final IP2pMgr mgr; private final AtomicBoolean start; - private final LinkedBlockingQueue sendMsgQue; - private final NodeMgr nodeMgr; + private final BlockingQueue sendMsgQue; + private final INodeMgr nodeMgr; private final Selector selector; private final int lane; public TaskSend( - P2pMgr _mgr, + IP2pMgr _mgr, int _lane, - LinkedBlockingQueue _sendMsgQue, + BlockingQueue _sendMsgQue, AtomicBoolean _start, - NodeMgr _nodeMgr, + INodeMgr _nodeMgr, Selector _selector) { this.mgr = _mgr; @@ -82,7 +80,7 @@ public void run() { continue; } - Node node = null; + INode node = null; switch (mo.getDest()) { case ACTIVE: node = nodeMgr.getActiveNode(mo.getNodeId()); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index ca4149b2cc..f0e881fe84 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -25,20 +25,20 @@ package org.aion.p2p.impl1.tasks; -import java.util.concurrent.LinkedBlockingQueue; -import org.aion.p2p.impl.comm.NodeMgr; +import java.util.concurrent.BlockingQueue; +import org.aion.p2p.INodeMgr; public class TaskStatus implements Runnable { - private final NodeMgr nodeMgr; + private final INodeMgr nodeMgr; private final String selfShortId; - private LinkedBlockingQueue sendMsgQue; - private LinkedBlockingQueue receiveMsgQue; + private BlockingQueue sendMsgQue; + private BlockingQueue receiveMsgQue; public TaskStatus( - NodeMgr _nodeMgr, + INodeMgr _nodeMgr, String _selfShortId, - LinkedBlockingQueue _sendMsgQue, - LinkedBlockingQueue _receiveMsgQue) { + BlockingQueue _sendMsgQue, + BlockingQueue _receiveMsgQue) { this.nodeMgr = _nodeMgr; this.selfShortId = _selfShortId; this.sendMsgQue = _sendMsgQue; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java index 675beb2e08..e6b2fbb4e4 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java @@ -30,8 +30,8 @@ import java.nio.channels.ClosedChannelException; import java.nio.channels.SocketChannel; import org.aion.p2p.Header; +import org.aion.p2p.IP2pMgr; import org.aion.p2p.Msg; -import org.aion.p2p.impl1.P2pMgr; /** @author chris */ public class TaskWrite implements Runnable { @@ -41,7 +41,7 @@ public class TaskWrite implements Runnable { private SocketChannel sc; private Msg msg; private ChannelBuffer channelBuffer; - private P2pMgr p2pMgr; + private IP2pMgr p2pMgr; TaskWrite( boolean _showLog, @@ -49,7 +49,7 @@ public class TaskWrite implements Runnable { final SocketChannel _sc, final Msg _msg, final ChannelBuffer _cb, - final P2pMgr _p2pMgr) { + final IP2pMgr _p2pMgr) { this.showLog = _showLog; this.nodeShortId = _nodeShortId; this.sc = _sc; diff --git a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResActiveNodesTest.java b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResActiveNodesTest.java index 2a7ec04b98..2ce184b0d3 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResActiveNodesTest.java +++ b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResActiveNodesTest.java @@ -1,6 +1,7 @@ package org.aion.p2p.impl.zero.msg; import org.aion.p2p.Ctrl; +import org.aion.p2p.INode; import org.aion.p2p.Ver; import org.aion.p2p.impl.comm.Act; import org.aion.p2p.impl.comm.Node; @@ -49,18 +50,18 @@ public void testRoute() { public void testEncodeDecode() { int m = ThreadLocalRandom.current().nextInt(0, 20); - List srcNodes = new ArrayList<>(); + List srcNodes = new ArrayList<>(); for(int i = 0; i < m; i++){ srcNodes.add(randomNode()); } ResActiveNodes res = ResActiveNodes.decode(new ResActiveNodes(srcNodes).encode()); assertEquals(res.getNodes().size(), m); - List tarNodes = res.getNodes(); + List tarNodes = res.getNodes(); for(int i = 0; i < m; i++){ - Node srcNode = srcNodes.get(i); - Node tarNode = tarNodes.get(i); + INode srcNode = srcNodes.get(i); + INode tarNode = tarNodes.get(i); Assert.assertArrayEquals(srcNode.getId(), tarNode.getId()); Assert.assertEquals(srcNode.getIdHash(), tarNode.getIdHash()); From 0101b065b905e5607abe43ebb6638db1bf52a6a7 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 25 May 2018 09:31:51 -0400 Subject: [PATCH 064/129] added enhancement box --- .github/pull_request_template.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 39cb993bf8..3769d0e8b8 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -15,6 +15,7 @@ Fixes Issue # . Insert **x** into the following checkboxes to confirm (eg. [x]): - [ ] Bug fix. - [ ] New feature. +- [ ] Enhancement. - [ ] Breaking change (a fix or feature that causes existing functionality to not work as expected). - [ ] Requires documentation update. From 253f3d546b0b588ff298950f0edd50b27a90e9b0 Mon Sep 17 00:00:00 2001 From: AionJayT Date: Fri, 25 May 2018 10:48:43 -0400 Subject: [PATCH 065/129] remove duplicate method --- modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java b/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java index 572c42237c..bba0361697 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java @@ -100,8 +100,6 @@ public byte[] getGenesisHash() { */ public byte[] getTotalDifficulty() { return this.totalDifficulty; } - public byte[] getGenesisHash() { return this.genesisHash; } - public static ResStatus decode(final byte[] _bytes) { if (_bytes == null || _bytes.length < minLen) return null; From ada9502dfa1f310d2e3b5271e47a1051d6e1db3b Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 25 May 2018 11:00:23 -0400 Subject: [PATCH 066/129] correcting broken test cases --- .../aion/mcf/trie/JournalPruneDataSource.java | 6 ++-- .../mcf/trie/JournalPruneDataSourceTest.java | 35 +++++++++++++++++-- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java index 25f74eeb9f..05aca77569 100644 --- a/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java +++ b/modMcf/src/org/aion/mcf/trie/JournalPruneDataSource.java @@ -151,10 +151,11 @@ public void put(byte[] key, byte[] value) { } public void delete(byte[] key) { + checkNotNull(key); if (!enabled.get()) { + check(); return; } - checkNotNull(key); lock.writeLock().lock(); @@ -376,10 +377,11 @@ public void commitBatch() { @Override public void deleteBatch(Collection keys) { + checkNotNull(keys); if (!enabled.get()) { + check(); return; } - checkNotNull(keys); lock.writeLock().lock(); diff --git a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java index 6e0dab3af0..a32657474b 100644 --- a/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java +++ b/modMcf/test/org/aion/mcf/trie/JournalPruneDataSourceTest.java @@ -475,6 +475,8 @@ public void testDelete_wPrune() { @Test public void testDeleteBatch_wPrune() { + db.setPruneEnabled(true); + // ensure existence Map map = new HashMap<>(); map.put(k1, v1); @@ -612,6 +614,7 @@ public void testIsEmpty_wClosedDatabase() { @Test(expected = RuntimeException.class) public void testIsEmpty_wClosedDatabase_wInsertedKeys() { + db.setPruneEnabled(true); db.put(randomBytes(32), randomBytes(32)); source_db.close(); @@ -659,7 +662,18 @@ public void testPut_wClosedDatabase_wNullValue() { } @Test(expected = RuntimeException.class) - public void testDelete_wClosedDatabase() { + public void testDelete_wClosedDatabase_wPrune() { + db.setPruneEnabled(true); + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + // attempt delete on closed db + db.delete(randomBytes(32)); + } + + @Test(expected = RuntimeException.class) + public void testDelete_wClosedDatabase_woPrune() { + db.setPruneEnabled(false); source_db.close(); assertThat(source_db.isOpen()).isFalse(); @@ -682,7 +696,23 @@ public void testPutBatch_wClosedDatabase() { } @Test(expected = RuntimeException.class) - public void testDeleteBatch_wClosedDatabase() { + public void testDeleteBatch_wClosedDatabase_wPrune() { + db.setPruneEnabled(true); + source_db.close(); + assertThat(source_db.isOpen()).isFalse(); + + List list = new ArrayList<>(); + list.add(randomBytes(32)); + list.add(randomBytes(32)); + list.add(randomBytes(32)); + + // attempt deleteBatch on closed db + db.deleteBatch(list); + } + + @Test(expected = RuntimeException.class) + public void testDeleteBatch_wClosedDatabase_woPrune() { + db.setPruneEnabled(false); source_db.close(); assertThat(source_db.isOpen()).isFalse(); @@ -1297,6 +1327,7 @@ public void pruningTest_wBatch() { @Test public void pruningTest_woStoredLevel() { + db.setPruneEnabled(true); source_db.put(k2, v2); source_db.put(k3, v3); From e71422f14afc0d43ec24eb326459a37b37ad4765 Mon Sep 17 00:00:00 2001 From: AionJayT Date: Fri, 25 May 2018 11:08:45 -0400 Subject: [PATCH 067/129] fix testcase of the BlockPropagationTest --- .../zero/impl/sync/BlockPropagationTest.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index b991ef9811..218bea081b 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -2,15 +2,23 @@ import static com.google.common.truth.Truth.assertThat; -import java.io.IOException; import java.math.BigInteger; import java.nio.channels.SocketChannel; -import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import org.aion.crypto.ECKey; import org.aion.crypto.ECKeyFac; import org.aion.crypto.HashUtil; -import org.aion.p2p.*; +import org.aion.p2p.Handler; +import org.aion.p2p.INode; +import org.aion.p2p.IP2pMgr; +import org.aion.p2p.IPeerMetric; +import org.aion.p2p.Msg; import org.aion.zero.impl.StandaloneBlockchain; import org.aion.zero.impl.sync.handler.BlockPropagationHandler; import org.aion.zero.impl.types.AionBlock; @@ -161,7 +169,7 @@ public INode getRandom() { } @Override - public void send(int _id, Msg _msg) { } + public void send(int _id, String _displayId, Msg _msg) { } @Override public boolean isShowLog() { From 0e4880adce59358ef16a0444819c2408b2da241c Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 25 May 2018 15:53:41 -0400 Subject: [PATCH 068/129] extracting the buildGenesis functionality to a utils class --- .../src/org/aion/zero/impl/AionHub.java | 34 ++-------- .../src/org/aion/zero/impl/AionHubUtils.java | 65 +++++++++++++++++++ 2 files changed, 72 insertions(+), 27 deletions(-) create mode 100644 modAionImpl/src/org/aion/zero/impl/AionHubUtils.java diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 88fdf11fa6..f706adbcd7 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -282,9 +282,13 @@ private void loadBlockchain() { "Corrupt world state for genesis block hash: " + genesis.getShortHash() + ", number: " + genesis .getNumber() + "."); - buildGenesis(genesis); + AionHubUtils.buildGenesis(genesis, repository); - LOG.info("Rebuilding genesis block SUCCEEDED."); + if (repository.isValidRoot(genesis.getStateRoot())) { + LOG.info("Rebuilding genesis block SUCCEEDED."); + } else { + LOG.info("Rebuilding genesis block FAILED."); + } } recovered = this.blockchain.recoverWorldState(this.repository, bestBlock); @@ -335,7 +339,7 @@ private void loadBlockchain() { AionGenesis genesis = cfg.getGenesis(); - buildGenesis(genesis); + AionHubUtils.buildGenesis(genesis, repository); blockchain.setBestBlock(genesis); blockchain.setTotalDifficulty(genesis.getCumulativeDifficulty()); @@ -391,30 +395,6 @@ private void loadBlockchain() { // this.repository.getBlockStore().load(); } - private void buildGenesis(AionGenesis genesis) { - // initialization section for network balance contract - IRepositoryCache track = repository.startTracking(); - - Address networkBalanceAddress = PrecompiledContracts.totalCurrencyAddress; - track.createAccount(networkBalanceAddress); - - for (Map.Entry addr : genesis.getNetworkBalances().entrySet()) { - track.addStorageRow( - networkBalanceAddress, - new DataWord(addr.getKey()), - new DataWord(addr.getValue())); - } - - for (Address addr : genesis.getPremine().keySet()) { - track.createAccount(addr); - track.addBalance(addr, genesis.getPremine().get(addr).getBalance()); - } - track.flush(); - - this.repository.commitBlock(genesis.getHeader()); - this.repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); - } - public void close() { LOG.info(""); diff --git a/modAionImpl/src/org/aion/zero/impl/AionHubUtils.java b/modAionImpl/src/org/aion/zero/impl/AionHubUtils.java new file mode 100644 index 0000000000..1beab75533 --- /dev/null +++ b/modAionImpl/src/org/aion/zero/impl/AionHubUtils.java @@ -0,0 +1,65 @@ +/* ****************************************************************************** + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . + * + * Contributors to the aion source files in decreasing order of code volume: + * Aion foundation. + ******************************************************************************/ +package org.aion.zero.impl; + +import java.math.BigInteger; +import java.util.Map; +import org.aion.base.db.IRepositoryCache; +import org.aion.base.type.Address; +import org.aion.mcf.vm.types.DataWord; +import org.aion.vm.PrecompiledContracts; +import org.aion.zero.impl.db.AionRepositoryImpl; + +/** {@link AionHub} functionality where a full instantiation of the class is not desirable. */ +public class AionHubUtils { + + public static void buildGenesis(AionGenesis genesis, AionRepositoryImpl repository) { + // initialization section for network balance contract + IRepositoryCache track = repository.startTracking(); + + Address networkBalanceAddress = PrecompiledContracts.totalCurrencyAddress; + track.createAccount(networkBalanceAddress); + + for (Map.Entry addr : genesis.getNetworkBalances().entrySet()) { + track.addStorageRow( + networkBalanceAddress, + new DataWord(addr.getKey()), + new DataWord(addr.getValue())); + } + + for (Address addr : genesis.getPremine().keySet()) { + track.createAccount(addr); + track.addBalance(addr, genesis.getPremine().get(addr).getBalance()); + } + track.flush(); + + repository.commitBlock(genesis.getHeader()); + repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); + } +} From ba2050a865daa3b3022cff480664594ccd19fd6d Mon Sep 17 00:00:00 2001 From: aionJoey Date: Fri, 25 May 2018 16:46:43 -0400 Subject: [PATCH 069/129] added test cases for log file creation --- .../test/org/aion/mcf/config/CfgLogTest.java | 178 +++++++++++++++++- 1 file changed, 168 insertions(+), 10 deletions(-) diff --git a/modMcf/test/org/aion/mcf/config/CfgLogTest.java b/modMcf/test/org/aion/mcf/config/CfgLogTest.java index 9990eb080d..7279525882 100644 --- a/modMcf/test/org/aion/mcf/config/CfgLogTest.java +++ b/modMcf/test/org/aion/mcf/config/CfgLogTest.java @@ -1,8 +1,15 @@ package org.aion.mcf.config; +import org.aion.db.utils.FileUtils; +import org.aion.log.AionLoggerFactory; + +import org.junit.After; import org.junit.Before; import org.junit.Test; +import java.io.File; +import java.util.Map; + import static org.junit.Assert.*; /** @@ -10,18 +17,93 @@ */ public class CfgLogTest extends CfgLog { - private final static String user1 = "logger"; // valid file path - private final static String user2 = "l!@#g"; // invalid file path - private final static String user3 = "log/logger"; // folder hierarchy path - private final static String user4 = ""; // null file path + /** + * User input toggle under "log-file" in config.xml + */ + private final static String[] toggle = { + "true", // valid configuration + "tRuE", // capitalized entry + "maybe?", // invalid config entry + "" // null config entry + }; + + /** + * User input file path under "log-path" in config.xml + */ + private final static String[] path = { + "logger", // valid file path + "l!@#*g", // invalid file path + "log/logging/logger", // folder hierarchy path + "" // null file path + }; + + /** + * Before: Creates folder to create test log files in + * After: Remove the created folder after testing + */ + File testRoot; + // Path: /home/joey/Desktop/IDE/aion/modMcf @Before public void setup() { + testRoot = new File("testLog"); + if (testRoot.exists()) { + FileUtils.deleteRecursively(testRoot); + testRoot.delete(); + } + testRoot.mkdirs(); + } + + //@After + public void shutdown() { + if (testRoot.exists()) { + FileUtils.deleteRecursively(testRoot); + testRoot.delete(); + } + } + + /** + * Test for: + * - if parseBoolean() correctly parses user input + * - if getLogFile() returns the correct configuration + */ + @Test + public void testToggle() { + + // Test for default log configuration + CfgLog config = new CfgLog(); + assertEquals(false, config.logFile); + assertFalse(config.getLogFile()); + + // Test for valid configuration + config.logFile = Boolean.parseBoolean(toggle[0]); + assertEquals(true, config.logFile); + assertTrue(config.getLogFile()); + + // Test for capitalized entry + config.logFile = Boolean.parseBoolean(toggle[1]); + assertEquals(true, config.logFile); + assertTrue(config.getLogFile()); + + // Test for invalid configuration + config.logFile = Boolean.parseBoolean(toggle[2]); + assertEquals(false, config.logFile); + assertFalse(config.getLogFile()); + + // Test for null entry + config.logFile = Boolean.parseBoolean(toggle[3]); + assertEquals(false, config.logFile); + assertFalse(config.getLogFile()); } + /** + * Test for: + * - if isValidPath() validates user input log path + * - if getLogPath() returns the correct log path + */ @Test - public void testLogPath() { + public void testPathInput() { // Test for default file path CfgLog config = new CfgLog(); @@ -29,24 +111,100 @@ public void testLogPath() { assertEquals("log", config.getLogPath()); // Test for valid file path - config.logPath = user1; + config.logPath = path[0]; assertTrue(config.isValidPath()); assertEquals("logger", config.getLogPath()); // Test for invalid file path - config.logPath = user2; + config.logPath = path[1]; assertFalse(config.isValidPath()); // Test for folder hierarchy path - config.logPath = user3; + config.logPath = path[2]; assertTrue(config.isValidPath()); - assertEquals("log/logger", config.getLogPath()); + assertEquals("log/logging/logger", config.getLogPath()); // Test for null path - config.logPath = user4; + config.logPath = path[3]; assertTrue(config.isValidPath()); assertEquals("", config.getLogPath()); } + /** + * Test for: + * - if archives are stored under correct file name + * - if log rollover conditions are correct + * - size roughly equal to 100MB + */ + File generatedPath; + Map _logModules; + + @Test + public void testLoggedPath() { + + // Test Case Default + CfgLog config = new CfgLog(); + + assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + assertEquals("log", generatedPath.getName()); + //reset(); + } + + // Test Case 1: Enabled + Valid + config.logFile = true; + config.logPath = "log1"; + + assertTrue(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + assertEquals("log1", generatedPath.getName()); + reset(); + } + + // Test Case 2: Enabled + Invalid + config.logFile = true; + config.logPath = "*log2*"; + + assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + assertEquals("log2*", generatedPath.getName()); + reset(); + } + + // Test Case 3: Disabled + Valid + config.logFile = false; + config.logPath = "log3"; + + assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + assertEquals("log3", generatedPath.getName()); + reset(); + } + + // Test Case 4: Disabled + Invalid + config.logFile = false; + config.logPath = "*log4*"; + + assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + assertEquals("*log4*", generatedPath.getName()); + reset(); + } + } + + public void reset() { + FileUtils.deleteRecursively(generatedPath); + generatedPath.delete(); + } } \ No newline at end of file From fda465f2db6ae4eaaec310c51666f2ae8bc0b8cb Mon Sep 17 00:00:00 2001 From: aionJoey <39343036+aionJoey@users.noreply.github.com> Date: Fri, 25 May 2018 16:49:49 -0400 Subject: [PATCH 070/129] Removed commenting out @After --- modMcf/test/org/aion/mcf/config/CfgLogTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modMcf/test/org/aion/mcf/config/CfgLogTest.java b/modMcf/test/org/aion/mcf/config/CfgLogTest.java index 7279525882..cfe38765be 100644 --- a/modMcf/test/org/aion/mcf/config/CfgLogTest.java +++ b/modMcf/test/org/aion/mcf/config/CfgLogTest.java @@ -54,7 +54,7 @@ public void setup() { testRoot.mkdirs(); } - //@After + @After public void shutdown() { if (testRoot.exists()) { FileUtils.deleteRecursively(testRoot); @@ -207,4 +207,4 @@ public void reset() { FileUtils.deleteRecursively(generatedPath); generatedPath.delete(); } -} \ No newline at end of file +} From 188a483e9092cc94cb4ab7b95914d95b452aa5ec Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 25 May 2018 16:59:22 -0400 Subject: [PATCH 071/129] state pruning as CLI options --- .../src/org/aion/zero/impl/cli/Cli.java | 14 ++++ .../aion/zero/impl/db/AionRepositoryImpl.java | 4 + .../org/aion/zero/impl/db/RecoveryUtils.java | 49 ++++++++++++ modMcf/src/org/aion/mcf/config/CfgDb.java | 80 +++++++++++++------ 4 files changed, 121 insertions(+), 26 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/cli/Cli.java b/modAionImpl/src/org/aion/zero/impl/cli/Cli.java index 685ecb84e1..735a950c1f 100644 --- a/modAionImpl/src/org/aion/zero/impl/cli/Cli.java +++ b/modAionImpl/src/org/aion/zero/impl/cli/Cli.java @@ -129,6 +129,20 @@ public int call(final String[] args, final Cfg cfg) { } } break; + case "--state": { + String pruning_type = "full"; + if (args.length >= 2) { + pruning_type = args[1]; + } + try { + RecoveryUtils.pruneOrRecoverState(pruning_type); + } catch (Throwable t) { + System.out.println("Reorganizing the state storage FAILED due to:"); + t.printStackTrace(); + return 1; + } + break; + } case "--dump-state-size": long block_count = 2L; diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index f047665c3a..177070800e 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -698,6 +698,10 @@ public IByteArrayKeyValueDatabase getStateDatabase() { return this.stateDatabase; } + public IByteArrayKeyValueDatabase getStateArchiveDatabase() { + return this.stateArchiveDatabase; + } + /** * Retrieves the underlying details database that sits below all caches. This is usually * provided by {@link org.aion.db.impl.mockdb.MockDB} or {@link org.aion.db.impl.mockdb.MockDB}. diff --git a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java index 7afe26f58c..fba8844118 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java +++ b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java @@ -27,8 +27,11 @@ import java.util.Map; import org.aion.base.type.IBlock; import org.aion.log.AionLoggerFactory; +import org.aion.mcf.config.CfgDb; import org.aion.mcf.db.IBlockStoreBase; import org.aion.zero.impl.AionBlockchainImpl; +import org.aion.zero.impl.AionGenesis; +import org.aion.zero.impl.AionHubUtils; import org.aion.zero.impl.config.CfgAion; import org.aion.zero.impl.core.IAionBlockchain; import org.aion.zero.impl.types.AionBlock; @@ -324,4 +327,50 @@ public static void printStateTrieDump(long blockNumber) { repository.close(); } + + public static void pruneOrRecoverState(String pruning_type) { + // ensure mining is disabled + CfgAion cfg = CfgAion.inst(); + cfg.fromXML(); + cfg.getConsensus().setMining(false); + + // setting pruning to the version requested + CfgDb.PruneOption option = CfgDb.PruneOption.fromValue(pruning_type); + cfg.getDb().setPrune(option.toString()); + + System.out.println("Reorganizing the state storage to " + option + " mode ..."); + + Map cfgLog = new HashMap<>(); + cfgLog.put("DB", "ERROR"); + cfgLog.put("CONS", "ERROR"); + + AionLoggerFactory.init(cfgLog); + + AionBlockchainImpl chain = AionBlockchainImpl.inst(); + AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionBlockStore store = repo.getBlockStore(); + + // dropping old state database + System.out.println("Deleting old data ..."); + repo.getStateDatabase().drop(); + if (pruning_type.equals("spread")) { + repo.getStateArchiveDatabase().drop(); + } + + // recover genesis + System.out.println("Rebuilding genesis block ..."); + AionGenesis genesis = cfg.getGenesis(); + AionHubUtils.buildGenesis(genesis, repo); + + // recover all blocks + AionBlock block = store.getBestBlock(); + System.out.println( + "Rebuilding the main chain " + + block.getNumber() + + " blocks (may take a while) ..."); + chain.recoverWorldState(repo, block); + + repo.close(); + System.out.println("Reorganizing the state storage COMPLETE."); + } } diff --git a/modMcf/src/org/aion/mcf/config/CfgDb.java b/modMcf/src/org/aion/mcf/config/CfgDb.java index fb0d075099..5a29267585 100644 --- a/modMcf/src/org/aion/mcf/config/CfgDb.java +++ b/modMcf/src/org/aion/mcf/config/CfgDb.java @@ -62,7 +62,7 @@ public static class Names { private boolean compression; private boolean check_integrity; private CfgPrune prune; - private String prune_option; + private PruneOption prune_option; /** * Enabling expert mode allows more detailed database configurations. @@ -80,7 +80,7 @@ public CfgDb() { this.compression = false; this.check_integrity = true; this.prune = new CfgPrune(false); - this.prune_option = "full"; + this.prune_option = PruneOption.FULL; if (expert) { this.specificConfig = new HashMap<>(); @@ -103,29 +103,7 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { this.check_integrity = Boolean.parseBoolean(Cfg.readValue(sr)); break; case "state-storage": - prune_option = Cfg.readValue(sr).toLowerCase(); - switch (prune_option) { - // journal prune only - case "top": - { - this.prune = new CfgPrune(128); - break; - } - // journal prune with archived states - case "spread": - { - this.prune = new CfgPrune(128, 10000); - break; - } - // the default is no pruning - case "full": - default: - { - this.prune = new CfgPrune(false); - this.prune_option = "full"; - break; - } - } + setPrune(Cfg.readValue(sr)); break; // parameter considered only when expert==false case "vendor": @@ -256,7 +234,7 @@ public String toXML() { "SPREAD: the state is kept for the top K blocks and at regular block intervals"); xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeStartElement("state-storage"); - xmlWriter.writeCharacters(this.prune_option.toUpperCase()); + xmlWriter.writeCharacters(this.prune_option.toString()); xmlWriter.writeEndElement(); if (!expert) { @@ -306,6 +284,56 @@ public CfgPrune getPrune() { return this.prune; } + public enum PruneOption { + FULL, + TOP, + SPREAD; + + @Override + public String toString() { + return this.name(); + } + + public static PruneOption fromValue(String value) { + value = value.toUpperCase(); + + if (value != null) { + for (PruneOption color : values()) { + if (color.toString().equals(value)) { + return color; + } + } + } + + // return default value + return getDefault(); + } + + public static PruneOption getDefault() { + return FULL; + } + } + + public void setPrune(String _prune_option) { + this.prune_option = PruneOption.fromValue(_prune_option); + + switch (prune_option) { + case TOP: + // journal prune only + this.prune = new CfgPrune(128); + break; + case SPREAD: + // journal prune with archived states + this.prune = new CfgPrune(128, 10000); + break; + case FULL: + default: + // the default is no pruning + this.prune = new CfgPrune(false); + break; + } + } + public Map asProperties() { Map propSet = new HashMap<>(); From d87ac87e3b71d48be481fbd05638ffe3d54b5470 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 25 May 2018 17:25:56 -0400 Subject: [PATCH 072/129] skipping full batch when in FORWARD mode and last block satisfies requirement --- .../aion/zero/impl/sync/TaskImportBlocks.java | 74 ++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java index c80f292348..75bda51092 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java @@ -108,6 +108,76 @@ public void run() { } ImportResult importResult = ImportResult.IMPORTED_NOT_BEST; + + // importing last block in batch to see if we can skip batch + if (state != null && state.getMode() == PeerState.Mode.FORWARD && batch.size() > 0) { + AionBlock b = batch.get(batch.size() - 1); + + long t1 = System.currentTimeMillis(); + try { + importResult = this.chain.tryToConnect(b); + } catch (Throwable e) { + log.error(" {}", e.toString()); + if (e.getMessage() != null + && e.getMessage().contains("No space left on device")) { + log.error("Shutdown due to lack of disk space."); + System.exit(0); + } + continue; + } + long t2 = System.currentTimeMillis(); + log.info( + "", + bw.getDisplayId(), + state.getMode(), + b.getShortHash(), + b.getNumber(), + b.getTransactionsList().size(), + importResult, + t2 - t1); + + switch (importResult) { + case IMPORTED_BEST: + case IMPORTED_NOT_BEST: + case EXIST: + { + importedBlockHashes.put(ByteArrayWrapper.wrap(b.getHash()), true); + + long lastBlock = batch.get(batch.size() - 1).getNumber(); + + // continue + state.setBase(lastBlock); + // if the imported best block, switch back to normal mode + if (importResult == ImportResult.IMPORTED_BEST) { + state.setMode(PeerState.Mode.NORMAL); + // switch peers to NORMAL otherwise they may never switch back + for (PeerState peerState : peerStates.values()) { + if (peerState.getMode() != PeerState.Mode.NORMAL) { + peerState.setMode(PeerState.Mode.NORMAL); + peerState.setBase(b.getNumber()); + peerState.resetLastHeaderRequest(); + } + } + } + // if the maximum number of repeats is passed + // then the peer is stuck endlessly importing old blocks + // otherwise it would have found an IMPORTED block already + if (state.getRepeated() >= state.getMaxRepeats()) { + state.setMode(PeerState.Mode.NORMAL); + state.setBase(chain.getBestBlock().getNumber()); + state.resetLastHeaderRequest(); + } + + // since last import worked skipping the batch + batch.clear(); + log.info("Forward skip."); + break; + } + default: + break; + } + } + for (AionBlock b : batch) { long t1 = System.currentTimeMillis(); try { @@ -205,7 +275,9 @@ public void run() { } } - if (state != null && state.getMode() == PeerState.Mode.FORWARD && importResult == ImportResult.EXIST) { + if (state != null + && state.getMode() == PeerState.Mode.FORWARD + && importResult == ImportResult.EXIST) { // increment the repeat count every time // we finish a batch of imports with EXIST state.incRepeated(); From d415e4ac897fd78148d0b9d35c69a098be6e56a2 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 25 May 2018 18:12:34 -0400 Subject: [PATCH 073/129] checking for prune restrictions before importing blocks --- .../aion/zero/impl/AionBlockchainImpl.java | 33 ++++++++++++------- .../aion/zero/impl/db/AionRepositoryImpl.java | 17 ++++++---- .../aion/zero/impl/sync/TaskImportBlocks.java | 13 ++++++++ 3 files changed, 45 insertions(+), 18 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index 0fc6955479..f7ff7c7533 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java @@ -122,7 +122,7 @@ public class AionBlockchainImpl implements IAionBlockchain { private A0BCConfig config; private long exitOn = Long.MAX_VALUE; - private IRepository repository; + private AionRepositoryImpl repository; private IRepositoryCache track; private TransactionStore transactionStore; private AionBlock bestBlock; @@ -221,7 +221,7 @@ private AionBlockchainImpl() { } protected AionBlockchainImpl(final A0BCConfig config, - final IRepository repository, + final AionRepositoryImpl repository, final ChainConfiguration chainConfig) { this.config = config; this.repository = repository; @@ -237,7 +237,7 @@ protected AionBlockchainImpl(final A0BCConfig config, this.parentHeaderValidator = this.chainConfiguration.createParentHeaderValidator(); this.blockHeaderValidator = this.chainConfiguration.createBlockHeaderValidator(); - this.transactionStore = ((AionRepositoryImpl) this.repository).getTransactionStore(); + this.transactionStore = this.repository.getTransactionStore(); this.minerCoinbase = this.config.getMinerCoinbase(); @@ -283,7 +283,7 @@ void setEventManager(IEventMgr eventManager) { } public AionBlockStore getBlockStore() { - return (AionBlockStore) repository.getBlockStore(); + return repository.getBlockStore(); } /** @@ -422,7 +422,7 @@ private static byte[] calcTxTrie(List transactions) { return txsState.getRootHash(); } - public IRepository getRepository() { + public AionRepositoryImpl getRepository() { return repository; } @@ -430,7 +430,7 @@ private State pushState(byte[] bestBlockHash) { State push = stateStack.push(new State()); this.bestBlock = getBlockStore().getBlockByHash(bestBlockHash); this.totalDifficulty = getBlockStore().getTotalDifficultyForHash(bestBlockHash); - this.repository = this.repository.getSnapshotTo(this.bestBlock.getStateRoot()); + this.repository = (AionRepositoryImpl) this.repository.getSnapshotTo(this.bestBlock.getStateRoot()); return push; } @@ -511,6 +511,17 @@ public boolean skipTryToConnect(long blockNumber) { return blockNumber > current + 32 || blockNumber < current - 32; } + /** + * Heuristic for skipping the call to tryToConnect with block number that was already pruned. + */ + public boolean isPruneRestricted(long blockNumber) { + // no restriction when not in TOP pruning mode + if (!repository.usesTopPruning()) { + return false; + } + return blockNumber < bestBlockNumber.get() - repository.getPruneBlockCount() + 1; + } + public synchronized ImportResult tryToConnect(final AionBlock block) { return tryToConnectInternal(block, System.currentTimeMillis() / THOUSAND_MS); } @@ -758,7 +769,7 @@ public synchronized AionBlockSummary add(AionBlock block, boolean rebuild) { track.rollback(); // block is bad so 'rollback' the state root to the original // state - ((AionRepositoryImpl) repository).setRoot(origRoot); + repository.setRoot(origRoot); } } @@ -771,7 +782,7 @@ public synchronized AionBlockSummary add(AionBlock block, boolean rebuild) { } transactionStore.flushBatch(); - ((AionRepositoryImpl) repository).commitBlock(block.getHeader()); + repository.commitBlock(block.getHeader()); if (LOG.isDebugEnabled()) LOG.debug("Block rebuilt: number: {}, hash: {}, TD: {}", block.getNumber(), block.getShortHash(), @@ -1066,7 +1077,7 @@ public synchronized void storeBlock(AionBlock block, List receipt } transactionStore.flushBatch(); - ((AionRepositoryImpl) repository).commitBlock(block.getHeader()); + repository.commitBlock(block.getHeader()); if (LOG.isDebugEnabled()) LOG.debug("Block saved: number: {}, hash: {}, TD: {}", block.getNumber(), block.getShortHash(), @@ -1131,7 +1142,7 @@ public void setTotalDifficulty(BigInteger totalDifficulty) { this.totalDifficulty = totalDifficulty; } - public void setRepository(IRepository repository) { + public void setRepository(AionRepositoryImpl repository) { this.repository = repository; } @@ -1320,7 +1331,7 @@ public List getListOfBodiesByHashes(List hashes) { private class State { - IRepository savedRepo = repository; + AionRepositoryImpl savedRepo = repository; AionBlock savedBest = bestBlock; BigInteger savedTD = totalDifficulty; } diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java index 177070800e..61ad71f1d8 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionRepositoryImpl.java @@ -485,13 +485,8 @@ public void setRoot(byte[] root) { } } - public void setPruneBlockCount(long pruneBlockCount) { - rwLock.writeLock().lock(); - try { - this.pruneBlockCount = pruneBlockCount; - } finally { - rwLock.writeLock().unlock(); - } + public long getPruneBlockCount() { + return this.pruneBlockCount; } public void commitBlock(A0BlockHeader blockHeader) { @@ -534,6 +529,14 @@ private void pruneBlocks(A0BlockHeader curBlock) { bestBlockNumber = curBlock.getNumber(); } + /** + * @return {@code true} when pruning is enabled and archiving is disabled, {@code false} + * otherwise + */ + public boolean usesTopPruning() { + return pruneEnabled && !stateDSPrune.isArchiveEnabled(); + } + public Trie getWorldState() { return worldState; } diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java index 75bda51092..83d365a8e5 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java @@ -107,6 +107,19 @@ public void run() { "This is not supposed to happen, but the peer is sending us blocks without ask"); } + // checking if there are restrictions due to pruning + if (batch.size() > 0 && chain.isPruneRestricted(batch.get(0).getNumber())) { + // reset status if possible + if (state != null) { + state.setMode(PeerState.Mode.NORMAL); + state.setBase(chain.getBestBlock().getNumber()); + state.resetLastHeaderRequest(); + } + // will not import this batch because it will fail due to TOP mode pruning + batch.clear(); + continue; + } + ImportResult importResult = ImportResult.IMPORTED_NOT_BEST; // importing last block in batch to see if we can skip batch From 651c4088f63ec7f79ef3148922f56377dcca8452 Mon Sep 17 00:00:00 2001 From: aionJoey Date: Fri, 25 May 2018 18:19:52 -0400 Subject: [PATCH 074/129] null path now returns false --- modMcf/src/org/aion/mcf/config/CfgLog.java | 6 +- .../test/org/aion/mcf/config/CfgLogTest.java | 97 +++++++++++++------ 2 files changed, 73 insertions(+), 30 deletions(-) diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index 8004dde48d..1c4d47dd6b 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -38,8 +38,8 @@ public class CfgLog { private Map modules; - private boolean logFile; - protected String logPath; + boolean logFile; + String logPath; public CfgLog() { modules = new HashMap<>(); @@ -150,6 +150,6 @@ public String getLogPath() { /** Method checks logPath for illegal inputs */ public boolean isValidPath() { - return !logPath.matches(".*[-=+,.?;:'!@#$%^&*].*"); + return logPath.length() > 0 && !logPath.matches(".*[-=+,.?;:'!@#$%^&*].*"); } } diff --git a/modMcf/test/org/aion/mcf/config/CfgLogTest.java b/modMcf/test/org/aion/mcf/config/CfgLogTest.java index 7279525882..a431a93c9e 100644 --- a/modMcf/test/org/aion/mcf/config/CfgLogTest.java +++ b/modMcf/test/org/aion/mcf/config/CfgLogTest.java @@ -21,20 +21,20 @@ public class CfgLogTest extends CfgLog { * User input toggle under "log-file" in config.xml */ private final static String[] toggle = { - "true", // valid configuration - "tRuE", // capitalized entry - "maybe?", // invalid config entry - "" // null config entry + "true", // valid entry + "maybe?", // invalid entry + "tRuE", // special entry + "" // null entry }; /** * User input file path under "log-path" in config.xml */ private final static String[] path = { - "logger", // valid file path - "l!@#*g", // invalid file path - "log/logging/logger", // folder hierarchy path - "" // null file path + "logger", // valid entry + "l!@#*g", // invalid entry + "log/logging/logger", // special entry + "" // null entry }; /** @@ -54,7 +54,7 @@ public void setup() { testRoot.mkdirs(); } - //@After + @After public void shutdown() { if (testRoot.exists()) { FileUtils.deleteRecursively(testRoot); @@ -72,28 +72,30 @@ public void testToggle() { // Test for default log configuration CfgLog config = new CfgLog(); - assertEquals(false, config.logFile); assertFalse(config.getLogFile()); + assertEquals(false, config.logFile); // Test for valid configuration config.logFile = Boolean.parseBoolean(toggle[0]); - assertEquals(true, config.logFile); assertTrue(config.getLogFile()); + assertEquals(true, config.logFile); + // Test for capitalized entry config.logFile = Boolean.parseBoolean(toggle[1]); - assertEquals(true, config.logFile); - assertTrue(config.getLogFile()); + assertFalse(config.getLogFile()); + assertEquals(false, config.logFile); // Test for invalid configuration config.logFile = Boolean.parseBoolean(toggle[2]); - assertEquals(false, config.logFile); - assertFalse(config.getLogFile()); + assertTrue(config.getLogFile()); + assertEquals(true, config.logFile); + // Test for null entry config.logFile = Boolean.parseBoolean(toggle[3]); - assertEquals(false, config.logFile); assertFalse(config.getLogFile()); + assertEquals(false, config.logFile); } @@ -126,7 +128,7 @@ public void testPathInput() { // Test for null path config.logPath = path[3]; - assertTrue(config.isValidPath()); + assertFalse(config.isValidPath()); assertEquals("", config.getLogPath()); } @@ -134,10 +136,9 @@ public void testPathInput() { /** * Test for: * - if archives are stored under correct file name - * - if log rollover conditions are correct - * - size roughly equal to 100MB */ File generatedPath; + String accumulatedPath; Map _logModules; @Test @@ -145,20 +146,21 @@ public void testLoggedPath() { // Test Case Default CfgLog config = new CfgLog(); - assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); generatedPath = testRoot.listFiles()[0]; assertEquals("log", generatedPath.getName()); - //reset(); + reset(); } + /* // Test Case 1: Enabled + Valid config.logFile = true; config.logPath = "log1"; - assertTrue(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); generatedPath = testRoot.listFiles()[0]; @@ -169,8 +171,8 @@ public void testLoggedPath() { // Test Case 2: Enabled + Invalid config.logFile = true; config.logPath = "*log2*"; - assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); generatedPath = testRoot.listFiles()[0]; @@ -181,8 +183,8 @@ public void testLoggedPath() { // Test Case 3: Disabled + Valid config.logFile = false; config.logPath = "log3"; - assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); generatedPath = testRoot.listFiles()[0]; @@ -193,18 +195,59 @@ public void testLoggedPath() { // Test Case 4: Disabled + Invalid config.logFile = false; config.logPath = "*log4*"; - assertFalse(config.logFile && config.isValidPath()); + if(config.logFile && config.isValidPath()) { AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); generatedPath = testRoot.listFiles()[0]; assertEquals("*log4*", generatedPath.getName()); reset(); } + + // Test Case 5: Enable + Special Path + config.logFile = true; + config.logPath = "log/logging/logger"; + assertTrue(config.logFile && config.isValidPath()); + + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + + accumulatedPath = generatedPath.getName(); + while(generatedPath.listFiles()[0].isDirectory()) { + generatedPath = generatedPath.listFiles()[0]; + accumulatedPath = accumulatedPath + "/" + generatedPath.getName(); + } + + assertEquals("log/logging/logger", accumulatedPath); + //reset(); + }*/ + + // All Test Case + for(int a = 0; a < 4; a++){ + for(int b = 0; b < 4; b++){ + config.logFile = Boolean.parseBoolean(toggle[a]); + config.logPath = path[b]; + + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + + accumulatedPath = generatedPath.getName(); + while(generatedPath.listFiles()[0].isDirectory()) { + generatedPath = generatedPath.listFiles()[0]; + accumulatedPath = accumulatedPath + "/" + generatedPath.getName(); + } + assertEquals(path[b], accumulatedPath); + } + reset(); + } + } } public void reset() { - FileUtils.deleteRecursively(generatedPath); - generatedPath.delete(); + testRoot.delete(); + FileUtils.deleteRecursively(testRoot); + testRoot.mkdirs(); } } \ No newline at end of file From 9b0e0455692a77ee695e373c31ceb200e3074e85 Mon Sep 17 00:00:00 2001 From: aionick Date: Mon, 28 May 2018 08:43:28 -0400 Subject: [PATCH 075/129] removed commented-out code --- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 1 - 1 file changed, 1 deletion(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index e735a94915..ec0dcf8cb3 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -156,7 +156,6 @@ public void run() { tcpServer.register(selector, SelectionKey.OP_ACCEPT); Thread thrdIn = new Thread(getInboundInstance(), "p2p-in"); - // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); From 3a15d5971cfe29d7d085e02c6f2f459b949ba665 Mon Sep 17 00:00:00 2001 From: aionick Date: Mon, 28 May 2018 08:45:31 -0400 Subject: [PATCH 076/129] added unit test option --- .github/pull_request_template.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3769d0e8b8..f14eaec343 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -16,6 +16,7 @@ Insert **x** into the following checkboxes to confirm (eg. [x]): - [ ] Bug fix. - [ ] New feature. - [ ] Enhancement. +- [ ] Unit test. - [ ] Breaking change (a fix or feature that causes existing functionality to not work as expected). - [ ] Requires documentation update. From 3467903e1d977f7cbe5d0084ae51465f6c7b8353 Mon Sep 17 00:00:00 2001 From: aionick Date: Mon, 28 May 2018 09:03:41 -0400 Subject: [PATCH 077/129] moved init nrgOracle logic to ApiAion --- modApiServer/src/org/aion/api/server/ApiAion.java | 14 ++++++++++++++ .../src/org/aion/api/server/http/ApiWeb3Aion.java | 12 +----------- .../src/org/aion/api/server/pb/ApiAion0.java | 8 +------- 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/modApiServer/src/org/aion/api/server/ApiAion.java b/modApiServer/src/org/aion/api/server/ApiAion.java index 7f063b9716..a5899b297d 100644 --- a/modApiServer/src/org/aion/api/server/ApiAion.java +++ b/modApiServer/src/org/aion/api/server/ApiAion.java @@ -49,6 +49,7 @@ import org.aion.zero.impl.blockchain.AionPendingStateImpl; import org.aion.zero.impl.blockchain.IAionChain; import org.aion.zero.impl.config.CfgAion; +import org.aion.zero.impl.core.IAionBlockchain; import org.aion.zero.impl.db.AionBlockStore; import org.aion.zero.impl.types.AionBlock; import org.aion.zero.impl.types.AionBlockSummary; @@ -658,6 +659,19 @@ protected boolean setReportedHashrate(String hashrate, String clientId) { return false; } + // Returns a fully initialized NrgOracle object. + protected NrgOracle getNrgOracle(IAionChain _ac) { + IAionBlockchain bc = (IAionBlockchain)_ac.getBlockchain(); + long nrgPriceDefault = CfgAion.inst().getApi().getNrg().getNrgPriceDefault(); + long nrgPriceMax = CfgAion.inst().getApi().getNrg().getNrgPriceMax(); + + NrgOracle.Strategy oracleStrategy = NrgOracle.Strategy.SIMPLE; + if (CfgAion.inst().getApi().getNrg().isOracleEnabled()) + oracleStrategy = NrgOracle.Strategy.BLK_PRICE; + + return new NrgOracle(bc, nrgPriceDefault, nrgPriceMax, oracleStrategy); + } + protected long getRecommendedNrgPrice() { if (this.nrgOracle != null) return this.nrgOracle.getNrgPrice(); diff --git a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java index 1313fd7e7e..bbb1712c5f 100644 --- a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java +++ b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java @@ -172,17 +172,7 @@ public ApiWeb3Aion(final IAionChain _ac) { isFilterEnabled = CfgAion.inst().getApi().getRpc().isFiltersEnabled(); isSeedMode = CfgAion.inst().getConsensus().isSeed(); - - // instantiate nrg price oracle - IAionBlockchain bc = (IAionBlockchain)_ac.getBlockchain(); - long nrgPriceDefault = CfgAion.inst().getApi().getNrg().getNrgPriceDefault(); - long nrgPriceMax = CfgAion.inst().getApi().getNrg().getNrgPriceMax(); - - NrgOracle.Strategy oracleStrategy = NrgOracle.Strategy.SIMPLE; - if (CfgAion.inst().getApi().getNrg().isOracleEnabled()) - oracleStrategy = NrgOracle.Strategy.BLK_PRICE; - - this.nrgOracle = new NrgOracle(bc, nrgPriceDefault, nrgPriceMax, oracleStrategy); + this.nrgOracle = getNrgOracle(_ac); if (isFilterEnabled) { evtMgr = this.ac.getAionHub().getEventMgr(); diff --git a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java index d64b4a6bb2..e727c409b5 100644 --- a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java +++ b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java @@ -637,13 +637,7 @@ public byte[] process(byte[] request, byte[] socketId) { getApiVersion(), Retcode.r_fail_service_call_VALUE); } - // instantiate nrg price oracle - IAionBlockchain bc = (IAionBlockchain) AionImpl.inst().getBlockchain(); - long nrgPriceDefault = CfgAion.inst().getApi().getNrg().getNrgPriceDefault(); - long nrgPriceMax = CfgAion.inst().getApi().getNrg().getNrgPriceMax(); - NrgOracle.Strategy oracleStrategy = NrgOracle.Strategy.SIMPLE; - - this.nrgOracle = new NrgOracle(bc, nrgPriceDefault, nrgPriceMax, oracleStrategy); + this.nrgOracle = getNrgOracle(AionImpl.inst()); long nrg = this.getRecommendedNrgPrice(); try { From 43d206b88e4092d9f0c278d542c3d74dd18b8ef0 Mon Sep 17 00:00:00 2001 From: aionJoey Date: Mon, 28 May 2018 10:38:17 -0400 Subject: [PATCH 078/129] FileUtils dependency avoided --- .../test/org/aion/mcf/config/CfgLogTest.java | 66 ++++++++++++++----- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/modMcf/test/org/aion/mcf/config/CfgLogTest.java b/modMcf/test/org/aion/mcf/config/CfgLogTest.java index beb619ace6..177ac9c819 100644 --- a/modMcf/test/org/aion/mcf/config/CfgLogTest.java +++ b/modMcf/test/org/aion/mcf/config/CfgLogTest.java @@ -1,6 +1,5 @@ package org.aion.mcf.config; -import org.aion.db.utils.FileUtils; import org.aion.log.AionLoggerFactory; import org.junit.After; @@ -8,6 +7,11 @@ import org.junit.Test; import java.io.File; +import java.io.IOException; +import java.nio.file.FileVisitResult; +import java.nio.file.Path; +import java.nio.file.SimpleFileVisitor; +import java.nio.file.attribute.BasicFileAttributes; import java.util.Map; import static org.junit.Assert.*; @@ -48,7 +52,7 @@ public class CfgLogTest extends CfgLog { public void setup() { testRoot = new File("testLog"); if (testRoot.exists()) { - FileUtils.deleteRecursively(testRoot); + deleteRecursively(testRoot); testRoot.delete(); } testRoot.mkdirs(); @@ -57,7 +61,7 @@ public void setup() { @After public void shutdown() { if (testRoot.exists()) { - FileUtils.deleteRecursively(testRoot); + deleteRecursively(testRoot); testRoot.delete(); } } @@ -73,29 +77,22 @@ public void testToggle() { // Test for default log configuration CfgLog config = new CfgLog(); assertFalse(config.getLogFile()); - assertEquals(false, config.logFile); // Test for valid configuration config.logFile = Boolean.parseBoolean(toggle[0]); assertTrue(config.getLogFile()); - assertEquals(true, config.logFile); - // Test for capitalized entry config.logFile = Boolean.parseBoolean(toggle[1]); assertFalse(config.getLogFile()); - assertEquals(false, config.logFile); // Test for invalid configuration config.logFile = Boolean.parseBoolean(toggle[2]); assertTrue(config.getLogFile()); - assertEquals(true, config.logFile); - // Test for null entry config.logFile = Boolean.parseBoolean(toggle[3]); assertFalse(config.getLogFile()); - assertEquals(false, config.logFile); } @@ -129,7 +126,6 @@ public void testPathInput() { // Test for null path config.logPath = path[3]; assertFalse(config.isValidPath()); - assertEquals("", config.getLogPath()); } @@ -154,8 +150,7 @@ public void testLoggedPath() { assertEquals("log", generatedPath.getName()); reset(); } - - /* +/* // Test Case 1: Enabled + Valid config.logFile = true; config.logPath = "log1"; @@ -221,8 +216,8 @@ public void testLoggedPath() { assertEquals("log/logging/logger", accumulatedPath); //reset(); - }*/ - + } +*/ // All Test Case for(int a = 0; a < 4; a++){ for(int b = 0; b < 4; b++){ @@ -239,15 +234,50 @@ public void testLoggedPath() { accumulatedPath = accumulatedPath + "/" + generatedPath.getName(); } assertEquals(path[b], accumulatedPath); + reset(); } - reset(); } } } public void reset() { - testRoot.delete(); - FileUtils.deleteRecursively(testRoot); + deleteRecursively(testRoot); testRoot.mkdirs(); } + + public static boolean deleteRecursively(File file) { + Path path = file.toPath(); + try { + java.nio.file.Files.walkFileTree(path, new SimpleFileVisitor() { + @Override + public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) throws IOException { + java.nio.file.Files.delete(file); + return FileVisitResult.CONTINUE; + } + + @Override + public FileVisitResult visitFileFailed(final Path file, final IOException e) { + return handleException(e); + } + + private FileVisitResult handleException(final IOException e) { + // e.printStackTrace(); + return FileVisitResult.TERMINATE; + } + + @Override + public FileVisitResult postVisitDirectory(final Path dir, final IOException e) throws IOException { + if (e != null) + return handleException(e); + java.nio.file.Files.delete(dir); + return FileVisitResult.CONTINUE; + } + }); + } catch (IOException e) { + e.printStackTrace(); + return false; + } + + return true; + } } From eeb862748009943fa430b2aeecd8e84103280970 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 28 May 2018 11:50:42 -0400 Subject: [PATCH 079/129] moved the prune restriction to block filtering --- .../org/aion/zero/impl/sync/TaskImportBlocks.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java index 83d365a8e5..75973c2274 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java @@ -99,6 +99,7 @@ public void run() { List batch = bw.getBlocks().stream() .filter(b -> importedBlockHashes.get(ByteArrayWrapper.wrap(b.getHash())) == null) + .filter(b -> chain.isPruneRestricted(b.getNumber()) == false) .collect(Collectors.toList()); PeerState state = peerStates.get(bw.getNodeIdHash()); @@ -107,19 +108,6 @@ public void run() { "This is not supposed to happen, but the peer is sending us blocks without ask"); } - // checking if there are restrictions due to pruning - if (batch.size() > 0 && chain.isPruneRestricted(batch.get(0).getNumber())) { - // reset status if possible - if (state != null) { - state.setMode(PeerState.Mode.NORMAL); - state.setBase(chain.getBestBlock().getNumber()); - state.resetLastHeaderRequest(); - } - // will not import this batch because it will fail due to TOP mode pruning - batch.clear(); - continue; - } - ImportResult importResult = ImportResult.IMPORTED_NOT_BEST; // importing last block in batch to see if we can skip batch From 8a1160be9aef78726ce7580f3aa2ec4f848673d4 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 28 May 2018 14:22:29 -0400 Subject: [PATCH 080/129] bugfix: checking for null keys, values and batches --- .../org/aion/db/generic/TimedDatabase.java | 72 ++++++++++++++----- 1 file changed, 56 insertions(+), 16 deletions(-) diff --git a/modDbImpl/src/org/aion/db/generic/TimedDatabase.java b/modDbImpl/src/org/aion/db/generic/TimedDatabase.java index aa0fcfe372..b101f6f697 100644 --- a/modDbImpl/src/org/aion/db/generic/TimedDatabase.java +++ b/modDbImpl/src/org/aion/db/generic/TimedDatabase.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -28,17 +28,16 @@ ******************************************************************************/ package org.aion.db.generic; +import java.util.Collection; +import java.util.Map; +import java.util.Optional; +import java.util.Set; import org.aion.base.db.IByteArrayKeyValueDatabase; import org.aion.base.util.Hex; import org.aion.log.AionLoggerFactory; import org.aion.log.LogEnum; import org.slf4j.Logger; -import java.util.Collection; -import java.util.Map; -import java.util.Optional; -import java.util.Set; - /** * Times different database operations and logs the time. * @@ -48,6 +47,7 @@ public class TimedDatabase implements IByteArrayKeyValueDatabase { /** Unlocked database. */ protected final IByteArrayKeyValueDatabase database; + protected static final Logger LOG = AionLoggerFactory.getLogger(LogEnum.DB.name()); public TimedDatabase(IByteArrayKeyValueDatabase _database) { @@ -59,7 +59,8 @@ public String toString() { return this.getClass().getSimpleName() + " over " + database.toString(); } - // IDatabase functionality ----------------------------------------------------------------------------------------- + // IDatabase functionality + // ----------------------------------------------------------------------------------------- @Override public boolean open() { @@ -164,7 +165,8 @@ public long approximateSize() { return result; } - // IKeyValueStore functionality ------------------------------------------------------------------------------------ + // IKeyValueStore functionality + // ------------------------------------------------------------------------------------ @Override public boolean isEmpty() { @@ -192,7 +194,13 @@ public Optional get(byte[] key) { Optional value = database.get(key); long t2 = System.nanoTime(); - LOG.debug(database.toString() + " get(key) in " + (t2 - t1) + " ns." + "\n\t\t\t\t\tkey = " + Hex.toHexString(key)); + LOG.debug( + database.toString() + + " get(key) in " + + (t2 - t1) + + " ns." + + "\n\t\t\t\t\tkey = " + + (key != null ? Hex.toHexString(key) : "null")); return value; } @@ -202,8 +210,15 @@ public void put(byte[] key, byte[] value) { database.put(key, value); long t2 = System.nanoTime(); - LOG.debug(database.toString() + " put(key,value) in " + (t2 - t1) + " ns." + "\n\t\t\t\t\tkey = " + Hex.toHexString(key) - + "\n\t\t\t\t\tvalue = " + Hex.toHexString(value)); + LOG.debug( + database.toString() + + " put(key,value) in " + + (t2 - t1) + + " ns." + + "\n\t\t\t\t\tkey = " + + (key != null ? Hex.toHexString(key) : "null") + + "\n\t\t\t\t\tvalue = " + + (value != null ? Hex.toHexString(value) : "null")); } @Override @@ -212,7 +227,13 @@ public void delete(byte[] key) { database.delete(key); long t2 = System.nanoTime(); - LOG.debug(database.toString() + " delete(key) in " + (t2 - t1) + " ns." + "\n\t\t\t\t\tkey = " + Hex.toHexString(key)); + LOG.debug( + database.toString() + + " delete(key) in " + + (t2 - t1) + + " ns." + + "\n\t\t\t\t\tkey = " + + (key != null ? Hex.toHexString(key) : "null")); } @Override @@ -221,7 +242,13 @@ public void putBatch(Map keyValuePairs) { database.putBatch(keyValuePairs); long t2 = System.nanoTime(); - LOG.debug(database.toString() + " putBatch(" + keyValuePairs.size() + ") in " + (t2 - t1) + " ns."); + LOG.debug( + database.toString() + + " putBatch(" + + (keyValuePairs != null ? keyValuePairs.size() : "null") + + ") in " + + (t2 - t1) + + " ns."); } @Override @@ -230,8 +257,15 @@ public void putToBatch(byte[] key, byte[] value) { database.putToBatch(key, value); long t2 = System.nanoTime(); - LOG.debug(database.toString() + " putToBatch(key,value) in " + (t2 - t1) + " ns." + "\n\t\t\t\t\tkey = " + Hex - .toHexString(key) + "\n\t\t\t\t\tvalue = " + Hex.toHexString(value)); + LOG.debug( + database.toString() + + " putToBatch(key,value) in " + + (t2 - t1) + + " ns." + + "\n\t\t\t\t\tkey = " + + Hex.toHexString(key) + + "\n\t\t\t\t\tvalue = " + + (value != null ? Hex.toHexString(value) : "null")); } @Override @@ -249,7 +283,13 @@ public void deleteBatch(Collection keys) { database.deleteBatch(keys); long t2 = System.nanoTime(); - LOG.debug(database.toString() + " deleteBatch(" + keys.size() + ") in " + (t2 - t1) + " ns."); + LOG.debug( + database.toString() + + " deleteBatch(" + + (keys != null ? keys.size() : "null") + + ") in " + + (t2 - t1) + + " ns."); } @Override From 1491b8ad4dc41098c0cb2a997833b919dfa1f04e Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 28 May 2018 15:40:05 -0400 Subject: [PATCH 081/129] getCumulativeDifficulty returns 0 or runtime TD; genesis block calls getDifficultyBI for initial TD setup --- .../src/org/aion/zero/impl/AionHub.java | 4 +- .../aion/zero/impl/StandaloneBlockchain.java | 4 +- .../impl/sync/handler/ReqStatusHandler.java | 65 ++++++++++--------- .../org/aion/zero/impl/types/AionBlock.java | 4 +- .../zero/impl/GenesisSpecificationTest.java | 4 +- 5 files changed, 41 insertions(+), 40 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 86c1530c06..51e2364400 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -340,9 +340,9 @@ private void loadBlockchain() { track.flush(); repository.commitBlock(genesis.getHeader()); - this.repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); + this.repository.getBlockStore().saveBlock(genesis, genesis.getDifficultyBI(), true); blockchain.setBestBlock(genesis); - blockchain.setTotalDifficulty(genesis.getCumulativeDifficulty()); + blockchain.setTotalDifficulty(genesis.getDifficultyBI()); if (this.eventMgr != null) { List evts = new ArrayList<>(); diff --git a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java index 02608cb2e1..915d93c5db 100644 --- a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java +++ b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java @@ -320,10 +320,10 @@ public BlockHeaderValidator createBlockHeaderValidator() { // TODO: violates abstraction, consider adding to interface after // stable ((AionRepositoryImpl) bc.getRepository()).commitBlock(genesis.getHeader()); - ((AionBlockStore) bc.getRepository().getBlockStore()).saveBlock(genesis, genesis.getCumulativeDifficulty(), + ((AionBlockStore) bc.getRepository().getBlockStore()).saveBlock(genesis, genesis.getDifficultyBI(), true); bc.setBestBlock(genesis); - bc.setTotalDifficulty(genesis.getCumulativeDifficulty()); + bc.setTotalDifficulty(genesis.getDifficultyBI()); return new Bundle(this.defaultKeys, bc); } diff --git a/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java b/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java index b6e9e0fda8..9cd52c80e1 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java @@ -47,18 +47,18 @@ /** * handler for status request from network - * + * * @author chris */ public final class ReqStatusHandler extends Handler { - private final Logger log; + private final Logger log; - private IAionBlockchain chain; + private IAionBlockchain chain; - private IP2pMgr mgr; + private IP2pMgr mgr; - private byte[] genesisHash; + private byte[] genesisHash; private final int UPDATE_INTERVAL = 500; @@ -66,38 +66,41 @@ public final class ReqStatusHandler extends Handler { private volatile long cacheTs = 0; - public ReqStatusHandler(final Logger _log, final IAionBlockchain _chain, final IP2pMgr _mgr, - final byte[] _genesisHash) { - super(Ver.V0, Ctrl.SYNC, Act.REQ_STATUS); - this.log = _log; - this.chain = _chain; - this.mgr = _mgr; - this.genesisHash = _genesisHash; - this.cache = new ResStatus(0, new byte[0], new byte[0], _genesisHash); - } + public ReqStatusHandler( + final Logger _log, + final IAionBlockchain _chain, + final IP2pMgr _mgr, + final byte[] _genesisHash) { + super(Ver.V0, Ctrl.SYNC, Act.REQ_STATUS); + this.log = _log; + this.chain = _chain; + this.mgr = _mgr; + this.genesisHash = _genesisHash; + this.cache = new ResStatus(0, new byte[0], new byte[0], _genesisHash); + } - @Override - public void receive(int _nodeIdHashcode, String _displayId, byte[] _msg) { - long now = System.currentTimeMillis(); + @Override + public void receive(int _nodeIdHashcode, String _displayId, byte[] _msg) { + long now = System.currentTimeMillis(); if ((now - cacheTs) > this.UPDATE_INTERVAL) { synchronized (cache) { - try { - AionBlock bestBlock = chain.getBestBlock(); - cache = new ResStatus(bestBlock.getNumber(), - bestBlock.getCumulativeDifficulty().toByteArray(), - bestBlock.getHash(), - this.genesisHash); - } catch (Exception e) { - e.printStackTrace(); - } + try { + AionBlock bestBlock = chain.getBestBlock(); + cache = + new ResStatus( + bestBlock.getNumber(), + bestBlock.getCumulativeDifficulty().toByteArray(), + bestBlock.getHash(), + this.genesisHash); + } catch (Exception e) { + e.printStackTrace(); + } cacheTs = now; } } this.mgr.send(_nodeIdHashcode, _displayId, cache); - this.log.debug("", - _displayId, - cache.getBestBlockNumber() - ); - } + this.log.debug( + "", _displayId, cache.getBestBlockNumber()); + } } diff --git a/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java b/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java index fb99f461c4..e63b760a74 100644 --- a/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java +++ b/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java @@ -231,9 +231,7 @@ public BigInteger getDifficultyBI() { public BigInteger getCumulativeDifficulty() { if (td == null) { - // TODO: currently returning incorrect total difficulty - parseRLP(); - return new BigInteger(1, this.header.getDifficulty()); + return BigInteger.ZERO; } else { return td; } diff --git a/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java b/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java index 2082f12375..bc9fbb537f 100644 --- a/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java @@ -78,7 +78,7 @@ public void defaultGenesisBlockTest() throws HeaderStructureException { assertThat(genesis.getNrgLimit()).isEqualTo(AionGenesis.GENESIS_ENERGY_LIMIT); assertThat(genesis.getTxTrieRoot()).isEqualTo(HashUtil.EMPTY_TRIE_HASH); assertThat(genesis.getReceiptsRoot()).isEqualTo(HashUtil.EMPTY_TRIE_HASH); - assertThat(genesis.getCumulativeDifficulty()).isEqualTo(new BigInteger(1, AionGenesis.GENESIS_DIFFICULTY)); + assertThat(genesis.getDifficultyBI()).isEqualTo(new BigInteger(1, AionGenesis.GENESIS_DIFFICULTY)); assertThat(genesis.getTransactionsList().isEmpty()).isEqualTo(true); Map premined = genesis.getPremine(); @@ -128,7 +128,7 @@ public void overrideGenesisBlockTest() throws HeaderStructureException { assertThat(genesis.getNrgLimit()).isEqualTo(overrideValue.longValue()); assertThat(genesis.getTxTrieRoot()).isEqualTo(HashUtil.EMPTY_TRIE_HASH); assertThat(genesis.getReceiptsRoot()).isEqualTo(HashUtil.EMPTY_TRIE_HASH); - assertThat(genesis.getCumulativeDifficulty()).isEqualTo(overrideValue); + assertThat(genesis.getDifficultyBI()).isEqualTo(overrideValue); assertThat(genesis.getTransactionsList().isEmpty()).isEqualTo(true); assertThat(genesis.getPremine().keySet()).isEqualTo(accountStateSet); From fd5113bc5856f31fbebb4cc34d33558705dbfa82 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 28 May 2018 15:53:16 -0400 Subject: [PATCH 082/129] updating the bestBlock total diff at loading --- modAionImpl/src/org/aion/zero/impl/AionHub.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 51e2364400..538163a384 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -261,6 +261,7 @@ private void loadBlockchain() { this.repository.getBlockStore().load(); AionBlock bestBlock = this.repository.getBlockStore().getBestBlock(); + bestBlock.setCumulativeDifficulty(repository.getBlockStore().getTotalDifficultyForHash(bestBlock.getHash())); boolean recovered = true; boolean bestBlockShifted = true; @@ -290,6 +291,8 @@ private void loadBlockchain() { if (recovered) { bestBlock = this.repository.getBlockStore().getBestBlock(); + bestBlock.setCumulativeDifficulty(repository.getBlockStore() + .getTotalDifficultyForHash(bestBlock.getHash())); // checking is the best block has changed since attempting recovery if (bestBlock == null) { From 51edfc468f1fb1e94bdf74141ead91078b8f16f4 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 29 May 2018 14:51:52 -0400 Subject: [PATCH 083/129] backward sync step as constant --- .../src/org/aion/zero/impl/sync/TaskGetHeaders.java | 10 ++++++---- modP2p/src/org/aion/p2p/P2pConstant.java | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java index 31df4901af..357bb20649 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskGetHeaders.java @@ -40,6 +40,8 @@ import org.aion.zero.impl.sync.msg.ReqBlocksHeaders; import org.slf4j.Logger; +import static org.aion.p2p.P2pConstant.BACKWARD_SYNC_STEP; + /** @author chris */ final class TaskGetHeaders implements Runnable { @@ -99,7 +101,7 @@ public void run() { int size = 24; // depends on the number of blocks going BACKWARD - state.setMaxRepeats(128 / size + 1); + state.setMaxRepeats(BACKWARD_SYNC_STEP / size + 1); switch (state.getMode()) { case NORMAL: @@ -109,9 +111,9 @@ public void run() { // normal mode long nodeNumber = node.getBestBlockNumber(); - if (nodeNumber >= selfNumber + 128) { + if (nodeNumber >= selfNumber + BACKWARD_SYNC_STEP) { from = Math.max(1, selfNumber + 1 - 4); - } else if (nodeNumber >= selfNumber - 128) { + } else if (nodeNumber >= selfNumber - BACKWARD_SYNC_STEP) { from = Math.max(1, selfNumber + 1 - 16); } else { // no need to request from this node. His TD is probably corrupted. @@ -123,7 +125,7 @@ public void run() { case BACKWARD: { // step back by 128 blocks - from = Math.max(1, state.getBase() - 128); + from = Math.max(1, state.getBase() - BACKWARD_SYNC_STEP); break; } case FORWARD: diff --git a/modP2p/src/org/aion/p2p/P2pConstant.java b/modP2p/src/org/aion/p2p/P2pConstant.java index 00fa58e911..1584857f9c 100644 --- a/modP2p/src/org/aion/p2p/P2pConstant.java +++ b/modP2p/src/org/aion/p2p/P2pConstant.java @@ -23,5 +23,7 @@ public class P2pConstant { READ_MAX_RATE_TXBC = 20, // write queue timeout - WRITE_MSG_TIMEOUT = 5000; + WRITE_MSG_TIMEOUT = 5000, + + BACKWARD_SYNC_STEP = 128; } From 9e2d7895fd90e2bd6ce24ad383c0de395e14723d Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 29 May 2018 14:55:21 -0400 Subject: [PATCH 084/129] extracting repeated code into methods in TaskImportBlocks --- .../aion/zero/impl/sync/TaskImportBlocks.java | 124 +++++++----------- 1 file changed, 50 insertions(+), 74 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java index 75973c2274..3e579f5288 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskImportBlocks.java @@ -99,7 +99,7 @@ public void run() { List batch = bw.getBlocks().stream() .filter(b -> importedBlockHashes.get(ByteArrayWrapper.wrap(b.getHash())) == null) - .filter(b -> chain.isPruneRestricted(b.getNumber()) == false) + .filter(b -> !chain.isPruneRestricted(b.getNumber())) .collect(Collectors.toList()); PeerState state = peerStates.get(bw.getNodeIdHash()); @@ -111,31 +111,19 @@ public void run() { ImportResult importResult = ImportResult.IMPORTED_NOT_BEST; // importing last block in batch to see if we can skip batch - if (state != null && state.getMode() == PeerState.Mode.FORWARD && batch.size() > 0) { + if (state != null && state.getMode() == PeerState.Mode.FORWARD && !batch.isEmpty()) { AionBlock b = batch.get(batch.size() - 1); - long t1 = System.currentTimeMillis(); try { - importResult = this.chain.tryToConnect(b); + importResult = importBlock(b, bw.getDisplayId(), state); } catch (Throwable e) { log.error(" {}", e.toString()); - if (e.getMessage() != null - && e.getMessage().contains("No space left on device")) { + if (e.getMessage() != null && e.getMessage().contains("No space left on device")) { log.error("Shutdown due to lack of disk space."); System.exit(0); } continue; } - long t2 = System.currentTimeMillis(); - log.info( - "", - bw.getDisplayId(), - state.getMode(), - b.getShortHash(), - b.getNumber(), - b.getTransactionsList().size(), - importResult, - t2 - t1); switch (importResult) { case IMPORTED_BEST: @@ -146,28 +134,7 @@ public void run() { long lastBlock = batch.get(batch.size() - 1).getNumber(); - // continue - state.setBase(lastBlock); - // if the imported best block, switch back to normal mode - if (importResult == ImportResult.IMPORTED_BEST) { - state.setMode(PeerState.Mode.NORMAL); - // switch peers to NORMAL otherwise they may never switch back - for (PeerState peerState : peerStates.values()) { - if (peerState.getMode() != PeerState.Mode.NORMAL) { - peerState.setMode(PeerState.Mode.NORMAL); - peerState.setBase(b.getNumber()); - peerState.resetLastHeaderRequest(); - } - } - } - // if the maximum number of repeats is passed - // then the peer is stuck endlessly importing old blocks - // otherwise it would have found an IMPORTED block already - if (state.getRepeated() >= state.getMaxRepeats()) { - state.setMode(PeerState.Mode.NORMAL); - state.setBase(chain.getBestBlock().getNumber()); - state.resetLastHeaderRequest(); - } + forwardModeUpdate(state, lastBlock, importResult, b.getNumber()); // since last import worked skipping the batch batch.clear(); @@ -180,28 +147,16 @@ public void run() { } for (AionBlock b : batch) { - long t1 = System.currentTimeMillis(); try { - importResult = this.chain.tryToConnect(b); + importResult = importBlock(b, bw.getDisplayId(), state); } catch (Throwable e) { log.error(" {}", e.toString()); - if (e.getMessage() != null - && e.getMessage().contains("No space left on device")) { + if (e.getMessage() != null && e.getMessage().contains("No space left on device")) { log.error("Shutdown due to lack of disk space."); System.exit(0); } continue; } - long t2 = System.currentTimeMillis(); - log.info( - "", - bw.getDisplayId(), - state.getMode(), - b.getShortHash(), - b.getNumber(), - b.getTransactionsList().size(), - importResult, - t2 - t1); switch (importResult) { case IMPORTED_BEST: @@ -232,28 +187,7 @@ public void run() { state.setBase(lastBlock); state.resetRepeated(); } else if (mode == PeerState.Mode.FORWARD) { - // continue - state.setBase(lastBlock); - // if the imported best block, switch back to normal mode - if (importResult == ImportResult.IMPORTED_BEST) { - state.setMode(PeerState.Mode.NORMAL); - // switch peers to NORMAL otherwise they may never switch back - for (PeerState peerState : peerStates.values()) { - if (peerState.getMode() != PeerState.Mode.NORMAL) { - peerState.setMode(PeerState.Mode.NORMAL); - peerState.setBase(b.getNumber()); - peerState.resetLastHeaderRequest(); - } - } - } - // if the maximum number of repeats is passed - // then the peer is stuck endlessly importing old blocks - // otherwise it would have found an IMPORTED block already - if (state.getRepeated() >= state.getMaxRepeats()) { - state.setMode(PeerState.Mode.NORMAL); - state.setBase(chain.getBestBlock().getNumber()); - state.resetLastHeaderRequest(); - } + forwardModeUpdate(state, lastBlock, importResult, b.getNumber()); } break; case NO_PARENT: @@ -291,4 +225,46 @@ public void run() { this.statis.update(this.chain.getBestBlock().getNumber()); } } + + private ImportResult importBlock(AionBlock b, String displayId, PeerState state) { + ImportResult importResult; + long t1 = System.currentTimeMillis(); + importResult = this.chain.tryToConnect(b); + long t2 = System.currentTimeMillis(); + log.info( + "", + displayId, + (state != null ? state.getMode() : PeerState.Mode.NORMAL), + b.getShortHash(), + b.getNumber(), + b.getTransactionsList().size(), + importResult, + t2 - t1); + return importResult; + } + + private void forwardModeUpdate(PeerState state, long lastBlock, ImportResult importResult, long blockNumber) { + // continue + state.setBase(lastBlock); + // if the imported best block, switch back to normal mode + if (importResult == ImportResult.IMPORTED_BEST) { + state.setMode(PeerState.Mode.NORMAL); + // switch peers to NORMAL otherwise they may never switch back + for (PeerState peerState : peerStates.values()) { + if (peerState.getMode() != PeerState.Mode.NORMAL) { + peerState.setMode(PeerState.Mode.NORMAL); + peerState.setBase(blockNumber); + peerState.resetLastHeaderRequest(); + } + } + } + // if the maximum number of repeats is passed + // then the peer is stuck endlessly importing old blocks + // otherwise it would have found an IMPORTED block already + if (state.getRepeated() >= state.getMaxRepeats()) { + state.setMode(PeerState.Mode.NORMAL); + state.setBase(chain.getBestBlock().getNumber()); + state.resetLastHeaderRequest(); + } + } } From bff2e1c3a95d27d3d8b8c3befe26b7aeb3cb3a25 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 29 May 2018 15:37:25 -0400 Subject: [PATCH 085/129] prune parameters as constants --- modMcf/src/org/aion/mcf/config/CfgDb.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/modMcf/src/org/aion/mcf/config/CfgDb.java b/modMcf/src/org/aion/mcf/config/CfgDb.java index 5a29267585..ae79157455 100644 --- a/modMcf/src/org/aion/mcf/config/CfgDb.java +++ b/modMcf/src/org/aion/mcf/config/CfgDb.java @@ -284,6 +284,19 @@ public CfgPrune getPrune() { return this.prune; } + /** + * Number of topmost blocks present in the database in TOP pruning mode. Information about these + * blocks is also kept in memory for later pruning. + */ + public static final int TOP_PRUNE_BLOCK_COUNT = 256; + /** + * Number of topmost blocks present in the database in SPREAD pruning mode. Information about + * these blocks is also kept in memory for later pruning. + */ + public static final int SPREAD_PRUNE_BLOCK_COUNT = 128; + /** At what frequency block states are being archived. */ + public static final int SPREAD_PRUNE_ARCHIVE_RATE = 10000; + public enum PruneOption { FULL, TOP, @@ -320,11 +333,11 @@ public void setPrune(String _prune_option) { switch (prune_option) { case TOP: // journal prune only - this.prune = new CfgPrune(128); + this.prune = new CfgPrune(TOP_PRUNE_BLOCK_COUNT); break; case SPREAD: // journal prune with archived states - this.prune = new CfgPrune(128, 10000); + this.prune = new CfgPrune(SPREAD_PRUNE_BLOCK_COUNT, SPREAD_PRUNE_ARCHIVE_RATE); break; case FULL: default: From e0ca459455c7307046b42491a613d57b53260bbe Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 30 May 2018 17:05:03 -0400 Subject: [PATCH 086/129] bugfix: reducing the heap space requirements for the state recovery --- .../src/org/aion/zero/impl/db/RecoveryUtils.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java index fba8844118..1f0a06fb4b 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java +++ b/modAionImpl/src/org/aion/zero/impl/db/RecoveryUtils.java @@ -368,6 +368,19 @@ public static void pruneOrRecoverState(String pruning_type) { "Rebuilding the main chain " + block.getNumber() + " blocks (may take a while) ..."); + + long topBlockNumber = block.getNumber(); + long blockNumber = 1000; + + // recover in increments of 1k blocks + while (blockNumber < topBlockNumber) { + block = store.getChainBlockByNumber(blockNumber); + chain.recoverWorldState(repo, block); + System.out.println("Finished with blocks up to " + blockNumber + "."); + blockNumber += 1000; + } + + block = store.getBestBlock(); chain.recoverWorldState(repo, block); repo.close(); From e1e80ffdac0600b5c4efdc8b6c5392a115cbb7ba Mon Sep 17 00:00:00 2001 From: kzeine Date: Wed, 30 May 2018 18:21:50 -0400 Subject: [PATCH 087/129] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 69e1910852..2fcfe82a1f 100644 --- a/README.md +++ b/README.md @@ -34,5 +34,7 @@ Please refer to the [wiki pages](https://github.com/aionnetwork/aion/wiki) for f Aion is released under the [GPL-V3 license](https://github.com/aionnetwork/aion/blob/dev/LICENSE) +### WE ARE HIRING! +If you are interested in being part of the Aion project, check out our available positions and apply [here](http://aion.humi.ca/job-board/it/697)! From 341308ae1b09c3e63d195d69ac427ebe69fdbc0f Mon Sep 17 00:00:00 2001 From: jayTseng Date: Wed, 30 May 2018 18:39:22 -0400 Subject: [PATCH 088/129] p2p bug fix and TaskSend benchmarking(temp) --- .../zero/impl/sync/BlockPropagationTest.java | 3 - modP2p/src/org/aion/p2p/IP2pMgr.java | 2 - modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 8 +-- .../org/aion/p2p/impl1/tasks/TaskInbound.java | 14 ++-- .../org/aion/p2p/impl1/tasks/TaskSend.java | 68 ++++++++++++++++--- modP2pImpl/test/org/aion/p2p/impl/Test.java | 6 +- 6 files changed, 70 insertions(+), 31 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 218bea081b..8275d82163 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -198,9 +198,6 @@ public void configChannel(SocketChannel _channel) { @Override public boolean isSyncSeedsOnly() { throw new IllegalStateException("not implemented."); } - @Override - public int getTxBroadCastRoute() { throw new IllegalStateException("not implemented."); } - @Override public int getMaxTempNodes() { throw new IllegalStateException("not implemented."); } diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index 8ad2cb288e..e03190197e 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -74,8 +74,6 @@ public interface IP2pMgr { boolean isSyncSeedsOnly(); - int getTxBroadCastRoute(); - int getMaxTempNodes(); boolean validateNode(INode _node); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index e735a94915..f0cc727141 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -57,7 +57,7 @@ public final class P2pMgr implements IP2pMgr { private static final int TIMEOUT_MSG_READ = 10000; // TODO: need refactor by passing the parameter in the later version. - private static final int txBroadCastRoute = + public static final int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; @@ -131,7 +131,7 @@ public P2pMgr( for (String _bootNode : _bootNodes) { Node node = Node.parseP2p(_bootNode); - if (node != null && validateNode(node)) { + if (validateNode(node)) { nodeMgr.addTempNode(node); nodeMgr.seedIpAdd(node.getIpStr()); } @@ -156,7 +156,6 @@ public void run() { tcpServer.register(selector, SelectionKey.OP_ACCEPT); Thread thrdIn = new Thread(getInboundInstance(), "p2p-in"); - // Thread thrdIn = new Thread(new TaskInbound(), "p2p-in"); thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); @@ -388,9 +387,6 @@ public boolean isSyncSeedsOnly() { return this.syncSeedsOnly; } - @Override - public int getTxBroadCastRoute() { return this.txBroadCastRoute; } - // <---------------------- message and Runnable getters below -------------------------> private String getRouteMsg(Integer route, short ver, byte ctrl, byte act, String name) { diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index ada55d5789..f4dfb231cd 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -25,6 +25,8 @@ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.txBroadCastRoute; + import java.io.IOException; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; @@ -171,11 +173,11 @@ public void run() { } while (cnt > 0); - // check if really read data. - if (cnt > prevCnt) { - chanBuf.buffRemain = 0; - throw new P2pException(getReadOverflowMsg(prevCnt, cnt)); - } +// // check if really read data. +// if (cnt > prevCnt) { <--- always false +// chanBuf.buffRemain = 0; +// throw new P2pException(getReadOverflowMsg(prevCnt, cnt)); +// } chanBuf.buffRemain = cnt; @@ -356,7 +358,7 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw boolean underRC = rb.shouldRoute( route, - ((route == this.mgr.getTxBroadCastRoute()) + ((route == txBroadCastRoute) ? P2pConstant.READ_MAX_RATE_TXBC : P2pConstant.READ_MAX_RATE)); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index ea522929e6..cee519f4c8 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -29,13 +29,27 @@ import java.nio.channels.Selector; import java.util.concurrent.BlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicLong; import org.aion.p2p.INode; import org.aion.p2p.INodeMgr; import org.aion.p2p.IP2pMgr; import org.aion.p2p.P2pConstant; public class TaskSend implements Runnable { - public static final int TOTAL_LANE = (1 << 5) - 1; + public static final int TOTAL_LANE = (1 << 5); + + public static AtomicInteger count = new AtomicInteger(0); + public static AtomicLong taskStart = new AtomicLong(0L); + public static AtomicInteger maxCount = new AtomicInteger(0); + public static AtomicLong queueing = new AtomicLong(0); + public static AtomicLong maxQueueing = new AtomicLong(0); + public static AtomicBoolean print = new AtomicBoolean(); + + public static AtomicInteger countq = new AtomicInteger(0); + public static AtomicInteger countqP = new AtomicInteger(0); + + private final IP2pMgr mgr; private final AtomicBoolean start; @@ -58,6 +72,10 @@ public TaskSend( this.start = _start; this.nodeMgr = _nodeMgr; this.selector = _selector; + + if (taskStart.get() == 0) { + taskStart.set(System.currentTimeMillis()); + } } @Override @@ -65,6 +83,7 @@ public void run() { while (start.get()) { try { MsgOut mo = sendMsgQue.take(); + // if timeout , throw away this msg. long now = System.currentTimeMillis(); if (now - mo.getTimestamp() > P2pConstant.WRITE_MSG_TIMEOUT) { @@ -73,13 +92,18 @@ public void run() { continue; } + long t1 = System.nanoTime(); + // if not belong to current lane, put it back. int targetLane = hash2Lane(mo.getNodeId()); if (targetLane != lane) { sendMsgQue.offer(mo); + queueing.addAndGet(System.nanoTime()-t1); + countq.incrementAndGet(); continue; } + long t2 = System.nanoTime(); INode node = null; switch (mo.getDest()) { case ACTIVE: @@ -93,26 +117,47 @@ public void run() { break; } + long t3 = System.nanoTime(); + + long t4 = 0L; if (node != null) { SelectionKey sk = node.getChannel().keyFor(selector); if (sk != null) { Object attachment = sk.attachment(); if (attachment != null) { - TaskWrite tw = - new TaskWrite( - this.mgr.isShowLog(), - node.getIdShort(), - node.getChannel(), - mo.getMsg(), - (ChannelBuffer) attachment, - this.mgr); - tw.run(); + new TaskWrite( + this.mgr.isShowLog(), + node.getIdShort(), + node.getChannel(), + mo.getMsg(), + (ChannelBuffer) attachment, + this.mgr).run(); + + count.incrementAndGet(); + + t4 = System.nanoTime(); + long tt = System.currentTimeMillis(); + if ((tt - taskStart.get()) > 999) { + taskStart.set(tt); + maxCount.set(Math.max(maxCount.get(), count.get())); + maxQueueing.set(queueing.get()); + count.set(0); + queueing.set(0); + countqP.set(countq.get()); + countq.set(0); + print.set(true); + } } } } else { if (this.mgr.isShowLog()) System.out.println(getNodeNotExitMsg(mo.getDest().name(), mo.getDisplayId())); } + + if (print.get()) { + System.out.println(Thread.currentThread().getName() + " t12:" + (t2-t1) + " t23:" + (t3-t2) + " t34:"+ (t4-t3) + " qc:" + countqP.get() + " max msgOut/ms: " + maxCount.get() + " Queueing/ms: " + (maxQueueing.get()/1000000L)); + print.set(false); + } } catch (InterruptedException e) { if (this.mgr.isShowLog()) System.out.println(""); return; @@ -123,7 +168,8 @@ public void run() { } // hash mapping channel id to write thread. - private int hash2Lane(int in) { + private static + int hash2Lane(int in) { in ^= in >> (32 - 5); in ^= in >> (32 - 10); in ^= in >> (32 - 15); diff --git a/modP2pImpl/test/org/aion/p2p/impl/Test.java b/modP2pImpl/test/org/aion/p2p/impl/Test.java index 8bedcba68b..293061c8d8 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/Test.java +++ b/modP2pImpl/test/org/aion/p2p/impl/Test.java @@ -1,11 +1,11 @@ package org.aion.p2p.impl; -import java.util.HashSet; -import java.util.Set; - import static junit.framework.TestCase.assertTrue; import static org.junit.Assert.assertFalse; +import java.util.HashSet; +import java.util.Set; + public class Test { @org.junit.Test From 325f0a7f6af2e2059ee726557e44d0c644151ea2 Mon Sep 17 00:00:00 2001 From: aionick Date: Thu, 31 May 2018 09:02:48 -0400 Subject: [PATCH 089/129] made txBroadCastRoute field visible --- .../test/org/aion/zero/impl/sync/BlockPropagationTest.java | 3 --- modP2p/src/org/aion/p2p/IP2pMgr.java | 4 ++-- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 7 ------- modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 2b30a62191..a23a2f4608 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -190,9 +190,6 @@ public void configChannel(SocketChannel _channel) { @Override public boolean isSyncSeedsOnly() { throw new IllegalStateException("not implemented."); } - @Override - public int getTxBroadCastRoute() { throw new IllegalStateException("not implemented."); } - @Override public int getMaxTempNodes() { throw new IllegalStateException("not implemented."); } diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index 8ad2cb288e..b4b1ddb19f 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -32,6 +32,8 @@ /** @author chris */ public interface IP2pMgr { + // TODO: need refactor by passing the parameter in the later version to P2pMgr. + int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); /** @return Map */ Map getActiveNodes(); @@ -74,8 +76,6 @@ public interface IP2pMgr { boolean isSyncSeedsOnly(); - int getTxBroadCastRoute(); - int getMaxTempNodes(); boolean validateNode(INode _node); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index ec0dcf8cb3..802eccb1f1 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -56,10 +56,6 @@ public final class P2pMgr implements IP2pMgr { private static final int PERIOD_UPNP_PORT_MAPPING = 3600000; private static final int TIMEOUT_MSG_READ = 10000; - // TODO: need refactor by passing the parameter in the later version. - private static final int txBroadCastRoute = - (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); - private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; private final boolean syncSeedsOnly, showStatus, showLog, upnpEnable; private final String selfRevision, selfShortId; @@ -387,9 +383,6 @@ public boolean isSyncSeedsOnly() { return this.syncSeedsOnly; } - @Override - public int getTxBroadCastRoute() { return this.txBroadCastRoute; } - // <---------------------- message and Runnable getters below -------------------------> private String getRouteMsg(Integer route, short ver, byte ctrl, byte act, String name) { diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index ada55d5789..a20dd802e4 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -356,7 +356,7 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw boolean underRC = rb.shouldRoute( route, - ((route == this.mgr.getTxBroadCastRoute()) + ((route == this.mgr.txBroadCastRoute) ? P2pConstant.READ_MAX_RATE_TXBC : P2pConstant.READ_MAX_RATE)); From 6ad5911fd0385db33aabd9ac163fa34e4a501d21 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 31 May 2018 15:11:05 -0400 Subject: [PATCH 090/129] correcting the license header --- .../aion/zero/impl/AionBlockchainImpl.java | 5 +- .../src/org/aion/zero/impl/AionHub.java | 6 +-- .../aion/zero/impl/StandaloneBlockchain.java | 4 +- .../org/aion/zero/impl/db/AionBlockStore.java | 4 +- .../aion/zero/impl/sync/TaskShowStatus.java | 34 ++++++------- .../sync/handler/BlockPropagationHandler.java | 49 +++++++++---------- .../impl/sync/handler/ReqStatusHandler.java | 49 +++++++++---------- .../org/aion/zero/impl/types/AionBlock.java | 6 +-- .../zero/impl/GenesisSpecificationTest.java | 4 +- 9 files changed, 74 insertions(+), 87 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index 38cdad605b..3078df2ff1 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,8 +19,7 @@ * * Contributors: * Aion foundation. - ******************************************************************************/ - + */ package org.aion.zero.impl; import static java.lang.Math.max; diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 538163a384..6e3ddd9ba3 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,9 +19,7 @@ * * Contributors: * Aion foundation. - * - ******************************************************************************/ - + */ package org.aion.zero.impl; import org.aion.base.db.IRepository; diff --git a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java index 0df78d2383..5935942ced 100644 --- a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java +++ b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java @@ -1,4 +1,4 @@ -/* ****************************************************************************** +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,7 +19,7 @@ * * Contributors: * Aion foundation. - ******************************************************************************/ + */ package org.aion.zero.impl; import java.math.BigInteger; diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java b/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java index d483f95627..ada78a1c12 100644 --- a/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java +++ b/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java @@ -1,4 +1,4 @@ -/* ****************************************************************************** +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,7 +19,7 @@ * * Contributors: * Aion foundation. - ******************************************************************************/ + */ package org.aion.zero.impl.db; import org.aion.base.db.IByteArrayKeyValueDatabase; diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java index bb57e1a51f..1e7d3ed16c 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java @@ -1,30 +1,24 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * - * The aion network project leverages useful source code from other - * open source projects. We greatly appreciate the effort that was - * invested in these projects and we thank the individual contributors - * for their work. For provenance information and contributors - * please see . - * - * Contributors to the aion source files in decreasing order of code volume: - * Aion foundation. + * Contributors: + * Aion foundation. */ package org.aion.zero.impl.sync; diff --git a/modAionImpl/src/org/aion/zero/impl/sync/handler/BlockPropagationHandler.java b/modAionImpl/src/org/aion/zero/impl/sync/handler/BlockPropagationHandler.java index bb456c8a32..dc169ce941 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/handler/BlockPropagationHandler.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/handler/BlockPropagationHandler.java @@ -1,38 +1,37 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * - * The aion network project leverages useful source code from other - * open source projects. We greatly appreciate the effort that was - * invested in these projects and we thank the individual contributors - * for their work. For provenance information and contributors - * please see . + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . * * Contributors to the aion source files in decreasing order of code volume: - * Aion foundation. - * team through the ethereumJ library. - * Ether.Camp Inc. (US) team through Ethereum Harmony. - * John Tromp through the Equihash solver. - * Samuel Neves through the BLAKE2 implementation. - * Zcash project team. - * Bitcoinj team. + * Aion foundation. + * team through the ethereumJ library. + * Ether.Camp Inc. (US) team through Ethereum Harmony. + * John Tromp through the Equihash solver. + * Samuel Neves through the BLAKE2 implementation. + * Zcash project team. + * Bitcoinj team. */ - package org.aion.zero.impl.sync.handler; import org.aion.base.util.ByteArrayWrapper; diff --git a/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java b/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java index 9cd52c80e1..8c1e5b6f55 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/handler/ReqStatusHandler.java @@ -1,38 +1,37 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * - * The aion network project leverages useful source code from other - * open source projects. We greatly appreciate the effort that was - * invested in these projects and we thank the individual contributors - * for their work. For provenance information and contributors - * please see . + * The aion network project leverages useful source code from other + * open source projects. We greatly appreciate the effort that was + * invested in these projects and we thank the individual contributors + * for their work. For provenance information and contributors + * please see . * * Contributors to the aion source files in decreasing order of code volume: - * Aion foundation. - * team through the ethereumJ library. - * Ether.Camp Inc. (US) team through Ethereum Harmony. - * John Tromp through the Equihash solver. - * Samuel Neves through the BLAKE2 implementation. - * Zcash project team. - * Bitcoinj team. + * Aion foundation. + * team through the ethereumJ library. + * Ether.Camp Inc. (US) team through Ethereum Harmony. + * John Tromp through the Equihash solver. + * Samuel Neves through the BLAKE2 implementation. + * Zcash project team. + * Bitcoinj team. */ - package org.aion.zero.impl.sync.handler; import org.aion.p2p.Ctrl; diff --git a/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java b/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java index e63b760a74..a4ef4a1d60 100644 --- a/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java +++ b/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,9 +19,7 @@ * * Contributors: * Aion foundation. - * - ******************************************************************************/ - + */ package org.aion.zero.impl.types; import org.aion.base.type.Address; diff --git a/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java b/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java index bc9fbb537f..181c940843 100644 --- a/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -31,7 +31,7 @@ * Samuel Neves through the BLAKE2 implementation. * Zcash project team. * Bitcoinj team. - ******************************************************************************/ + */ package org.aion.zero.impl; import static com.google.common.truth.Truth.assertThat; From e1e956aea6a2f42f44f9823bf16393d1e1628065 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Thu, 31 May 2018 19:12:35 -0400 Subject: [PATCH 091/129] p2pmgr & tasks enhancement --- .../zero/impl/sync/BlockPropagationTest.java | 286 +++++---- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 137 +++-- .../aion/p2p/impl1/tasks/ChannelBuffer.java | 91 +-- .../src/org/aion/p2p/impl1/tasks/MsgOut.java | 6 + .../org/aion/p2p/impl1/tasks/TaskClear.java | 2 +- .../org/aion/p2p/impl1/tasks/TaskInbound.java | 552 +++++++++--------- .../org/aion/p2p/impl1/tasks/TaskSend.java | 44 +- 7 files changed, 629 insertions(+), 489 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 8275d82163..0d5e3b3ffc 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -24,7 +24,9 @@ import org.aion.zero.impl.types.AionBlock; import org.junit.Test; -/** Unit tests for block propagation */ +/** + * Unit tests for block propagation + */ public class BlockPropagationTest { private static class NodeMock implements INode { @@ -59,7 +61,8 @@ public BigInteger getTotalDifficulty() { @Override public void updateStatus( - long _bestBlockNumber, byte[] _bestBlockHash, BigInteger _totalDifficulty) {} + long _bestBlockNumber, byte[] _bestBlockHash, BigInteger _totalDifficulty) { + } @Override public byte[] getIp() { @@ -92,40 +95,64 @@ public String getBinaryVersion() { } @Override - public void setPort(int _port) { throw new IllegalStateException("not implemented"); } + public void setPort(int _port) { + throw new IllegalStateException("not implemented"); + } @Override - public void setConnection(String _connection) { throw new IllegalStateException("not implemented"); } + public void setConnection(String _connection) { + throw new IllegalStateException("not implemented"); + } @Override - public IPeerMetric getPeerMetric() { throw new IllegalStateException("not implemented"); } + public IPeerMetric getPeerMetric() { + throw new IllegalStateException("not implemented"); + } @Override - public void refreshTimestamp() { throw new IllegalStateException("not implemented"); } + public void refreshTimestamp() { + throw new IllegalStateException("not implemented"); + } @Override - public void setChannel(SocketChannel _channel) { throw new IllegalStateException("not implemented"); } + public void setChannel(SocketChannel _channel) { + throw new IllegalStateException("not implemented"); + } @Override - public void setId(byte[] _id) { throw new IllegalStateException("not implemented"); } + public void setId(byte[] _id) { + throw new IllegalStateException("not implemented"); + } @Override - public void setBinaryVersion(String _revision) { throw new IllegalStateException("not implemented"); } + public void setBinaryVersion(String _revision) { + throw new IllegalStateException("not implemented"); + } @Override - public boolean getIfFromBootList() { throw new IllegalStateException("not implemented"); } + public boolean getIfFromBootList() { + throw new IllegalStateException("not implemented"); + } @Override - public byte[] getBestBlockHash() { throw new IllegalStateException("not implemented"); } + public byte[] getBestBlockHash() { + throw new IllegalStateException("not implemented"); + } @Override - public String getConnection() { throw new IllegalStateException("not implemented"); } + public String getConnection() { + throw new IllegalStateException("not implemented"); + } @Override - public SocketChannel getChannel() { throw new IllegalStateException("not implemented"); } + public SocketChannel getChannel() { + throw new IllegalStateException("not implemented"); + } @Override - public void setFromBootList(boolean _ifBoot) { throw new IllegalStateException("not implemented"); } + public void setFromBootList(boolean _ifBoot) { + throw new IllegalStateException("not implemented"); + } } private static class P2pMock implements IP2pMgr { @@ -142,10 +169,12 @@ public Map getActiveNodes() { } @Override - public void shutdown() { } + public void shutdown() { + } @Override - public void run() { } + public void run() { + } @Override public List versions() { @@ -158,10 +187,12 @@ public int chainId() { } @Override - public void errCheck(int nodeIdHashcode, String _displayId) { } + public void errCheck(int nodeIdHashcode, String _displayId) { + } @Override - public void register(List _hs) { } + public void register(List _hs) { + } @Override public INode getRandom() { @@ -169,7 +200,8 @@ public INode getRandom() { } @Override - public void send(int _id, String _displayId, Msg _msg) { } + public void send(int _id, String _displayId, Msg _msg) { + } @Override public boolean isShowLog() { @@ -177,7 +209,8 @@ public boolean isShowLog() { } @Override - public void closeSocket(SocketChannel _sc, String _reason) {} + public void closeSocket(SocketChannel _sc, String _reason) { + } @Override public int getSelfIdHash() { @@ -185,7 +218,9 @@ public int getSelfIdHash() { } @Override - public void dropActive(int _nodeIdHash, String _reason) { throw new IllegalStateException("not implemented."); } + public void dropActive(int _nodeIdHash, String _reason) { + throw new IllegalStateException("not implemented."); + } @Override public void configChannel(SocketChannel _channel) { @@ -193,20 +228,29 @@ public void configChannel(SocketChannel _channel) { } @Override - public int getMaxActiveNodes() { throw new IllegalStateException("not implemented."); } + public int getMaxActiveNodes() { + throw new IllegalStateException("not implemented."); + } @Override - public boolean isSyncSeedsOnly() { throw new IllegalStateException("not implemented."); } + public boolean isSyncSeedsOnly() { + throw new IllegalStateException("not implemented."); + } @Override - public int getMaxTempNodes() { throw new IllegalStateException("not implemented."); } + public int getMaxTempNodes() { + throw new IllegalStateException("not implemented."); + } @Override - public boolean validateNode(INode _node) { throw new IllegalStateException("not implemented."); } + public boolean validateNode(INode _node) { + throw new IllegalStateException("not implemented."); + } @Override - public int getSelfNetId() { throw new IllegalStateException("not implemented."); } - + public int getSelfNetId() { + throw new IllegalStateException("not implemented."); + } } private static List generateDefaultAccounts() { @@ -217,19 +261,21 @@ private static List generateDefaultAccounts() { return accs; } - /** Test that we don't propagate back to the sender */ + /** + * Test that we don't propagate back to the sender + */ @Test public void testBlockPropagationReceiver() { List accounts = generateDefaultAccounts(); StandaloneBlockchain.Bundle bundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); AionBlock block = - bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -239,29 +285,29 @@ public void testBlockPropagationReceiver() { node.put(1, senderMock); P2pMock p2pMock = - new P2pMock(node) { - @Override - public void send(int _nodeId, String s, Msg _msg) { - throw new RuntimeException("should not have called send"); - } - }; + new P2pMock(node) { + @Override + public void send(int _nodeId, String s, Msg _msg) { + throw new RuntimeException("should not have called send"); + } + }; StandaloneBlockchain.Bundle anotherBundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); BlockPropagationHandler handler = - new BlockPropagationHandler( - 1024, - anotherBundle.bc, // NOTE: not the same blockchain that generated the block - p2pMock, - anotherBundle.bc.getBlockHeaderValidator(), - false); + new BlockPropagationHandler( + 1024, + anotherBundle.bc, // NOTE: not the same blockchain that generated the block + p2pMock, + anotherBundle.bc.getBlockHeaderValidator(), + false); assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) - .isEqualTo(BlockPropagationHandler.PropStatus.CONNECTED); + .isEqualTo(BlockPropagationHandler.PropStatus.CONNECTED); } // given two peers, and one sends you a new block, propagate to the other @@ -270,13 +316,13 @@ public void testPropagateBlockToPeer() { List accounts = generateDefaultAccounts(); StandaloneBlockchain.Bundle bundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); AionBlock block = - bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -291,20 +337,21 @@ public void testPropagateBlockToPeer() { AtomicInteger times = new AtomicInteger(); P2pMock p2pMock = - new P2pMock(node) { - @Override - public void send(int _nodeId, String s, Msg _msg) { - if (_nodeId != receiverMock.getIdHash()) - throw new RuntimeException("should only send to receiver"); - times.getAndIncrement(); + new P2pMock(node) { + @Override + public void send(int _nodeId, String s, Msg _msg) { + if (_nodeId != receiverMock.getIdHash()) { + throw new RuntimeException("should only send to receiver"); } - }; + times.getAndIncrement(); + } + }; StandaloneBlockchain.Bundle anotherBundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); assertThat(bundle.bc.genesis.getHash()).isEqualTo(anotherBundle.bc.genesis.getHash()); assertThat(block.getParentHash()).isEqualTo(bundle.bc.genesis.getHash()); @@ -314,16 +361,16 @@ public void send(int _nodeId, String s, Msg _msg) { assertThat(bestBlock.getHash()).isEqualTo(anotherBundle.bc.genesis.getHash()); BlockPropagationHandler handler = - new BlockPropagationHandler( - 1024, - anotherBundle.bc, // NOTE: not the same blockchain that generated the block - p2pMock, - anotherBundle.bc.getBlockHeaderValidator(), - false); + new BlockPropagationHandler( + 1024, + anotherBundle.bc, // NOTE: not the same blockchain that generated the block + p2pMock, + anotherBundle.bc.getBlockHeaderValidator(), + false); // block is processed assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) - .isEqualTo(BlockPropagationHandler.PropStatus.PROP_CONNECTED); + .isEqualTo(BlockPropagationHandler.PropStatus.PROP_CONNECTED); assertThat(times.get()).isEqualTo(1); } @@ -332,13 +379,13 @@ public void testIgnoreSameBlock() { List accounts = generateDefaultAccounts(); StandaloneBlockchain.Bundle bundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); AionBlock block = - bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -353,36 +400,37 @@ public void testIgnoreSameBlock() { AtomicInteger times = new AtomicInteger(); P2pMock p2pMock = - new P2pMock(node) { - @Override - public void send(int _nodeId, String s, Msg _msg) { - if (_nodeId != receiverMock.getIdHash()) - throw new RuntimeException("should only send to receiver"); - times.getAndIncrement(); + new P2pMock(node) { + @Override + public void send(int _nodeId, String s, Msg _msg) { + if (_nodeId != receiverMock.getIdHash()) { + throw new RuntimeException("should only send to receiver"); } - }; + times.getAndIncrement(); + } + }; StandaloneBlockchain.Bundle anotherBundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); assertThat(bundle.bc.genesis.getHash()).isEqualTo(anotherBundle.bc.genesis.getHash()); BlockPropagationHandler handler = - new BlockPropagationHandler( - 1024, - anotherBundle.bc, // NOTE: not the same blockchain that generated the block - p2pMock, - anotherBundle.bc.getBlockHeaderValidator(), - false); + new BlockPropagationHandler( + 1024, + anotherBundle.bc, // NOTE: not the same blockchain that generated the block + p2pMock, + anotherBundle.bc.getBlockHeaderValidator(), + false); // block is processed assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) - .isEqualTo(BlockPropagationHandler.PropStatus.PROP_CONNECTED); + .isEqualTo(BlockPropagationHandler.PropStatus.PROP_CONNECTED); assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) - .isEqualTo(BlockPropagationHandler.PropStatus.DROPPED); + .isEqualTo(BlockPropagationHandler.PropStatus.DROPPED); assertThat(times.get()).isEqualTo(1); } @@ -392,13 +440,13 @@ public void testIgnoreSelfBlock() { List accounts = generateDefaultAccounts(); StandaloneBlockchain.Bundle bundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); AionBlock block = - bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -409,26 +457,26 @@ public void testIgnoreSelfBlock() { AtomicInteger sendCount = new AtomicInteger(); P2pMock p2pMock = - new P2pMock(node) { - @Override - public void send(int _nodeId, String s, Msg _msg) { - sendCount.getAndIncrement(); - } - }; + new P2pMock(node) { + @Override + public void send(int _nodeId, String s, Msg _msg) { + sendCount.getAndIncrement(); + } + }; StandaloneBlockchain.Bundle anotherBundle = - new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); BlockPropagationHandler handler = - new BlockPropagationHandler( - 1024, - anotherBundle.bc, // NOTE: not the same blockchain that generated the block - p2pMock, - anotherBundle.bc.getBlockHeaderValidator(), - false); + new BlockPropagationHandler( + 1024, + anotherBundle.bc, // NOTE: not the same blockchain that generated the block + p2pMock, + anotherBundle.bc.getBlockHeaderValidator(), + false); // pretend that we propagate the new block handler.propagateNewBlock(block); // send counter incremented @@ -437,7 +485,7 @@ public void send(int _nodeId, String s, Msg _msg) { // so our blockchain should view this block as a new block // therefore if the filter fails, this block will actually be CONNECTED assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) - .isEqualTo(BlockPropagationHandler.PropStatus.DROPPED); + .isEqualTo(BlockPropagationHandler.PropStatus.DROPPED); // we expect the counter to be incremented once (on propagation) assertThat(sendCount.get()).isEqualTo(1); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index f0cc727141..eff24af20c 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -28,29 +28,55 @@ import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketException; -import java.nio.channels.*; -import java.util.*; -import java.util.concurrent.*; +import java.nio.channels.SelectionKey; +import java.nio.channels.Selector; +import java.nio.channels.ServerSocketChannel; +import java.nio.channels.SocketChannel; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import org.aion.p2p.*; +import org.aion.p2p.Ctrl; +import org.aion.p2p.Handler; +import org.aion.p2p.Header; +import org.aion.p2p.INode; +import org.aion.p2p.INodeMgr; +import org.aion.p2p.IP2pMgr; +import org.aion.p2p.Msg; import org.aion.p2p.P2pConstant; +import org.aion.p2p.Ver; import org.aion.p2p.impl.TaskRequestActiveNodes; import org.aion.p2p.impl.TaskUPnPManager; import org.aion.p2p.impl.comm.Node; import org.aion.p2p.impl.comm.NodeMgr; -import org.aion.p2p.impl.zero.msg.*; +import org.aion.p2p.impl.zero.msg.ReqHandshake1; +import org.aion.p2p.impl.zero.msg.ResHandshake1; import org.aion.p2p.impl1.tasks.MsgIn; import org.aion.p2p.impl1.tasks.MsgOut; -import org.aion.p2p.impl1.tasks.TaskReceive; -import org.aion.p2p.impl1.tasks.TaskSend; import org.aion.p2p.impl1.tasks.TaskClear; import org.aion.p2p.impl1.tasks.TaskConnectPeers; import org.aion.p2p.impl1.tasks.TaskInbound; +import org.aion.p2p.impl1.tasks.TaskReceive; +import org.aion.p2p.impl1.tasks.TaskSend; import org.aion.p2p.impl1.tasks.TaskStatus; import org.apache.commons.collections4.map.LRUMap; -/** @author Chris p2p://{uuid}@{ip}:{port} */ +/** + * @author Chris p2p://{uuid}@{ip}:{port} + */ public final class P2pMgr implements IP2pMgr { + private static final int PERIOD_SHOW_STATUS = 10000; private static final int PERIOD_REQUEST_ACTIVE_NODES = 1000; private static final int PERIOD_UPNP_PORT_MAPPING = 3600000; @@ -58,7 +84,7 @@ public final class P2pMgr implements IP2pMgr { // TODO: need refactor by passing the parameter in the later version. public static final int txBroadCastRoute = - (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); + (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; private final boolean syncSeedsOnly, showStatus, showLog, upnpEnable; @@ -98,19 +124,19 @@ public enum Dest { * @param _showLog boolean */ public P2pMgr( - int _netId, - String _revision, - String _nodeId, - String _ip, - int _port, - final String[] _bootNodes, - boolean _upnpEnable, - int _maxTempNodes, - int _maxActiveNodes, - boolean _showStatus, - boolean _showLog, - boolean _bootlistSyncOnly, - int _errorTolerance) { + int _netId, + String _revision, + String _nodeId, + String _ip, + int _port, + final String[] _bootNodes, + boolean _upnpEnable, + int _maxTempNodes, + int _maxActiveNodes, + boolean _showStatus, + boolean _showLog, + boolean _bootlistSyncOnly, + int _errorTolerance) { this.selfNetId = _netId; this.selfRevision = _revision; @@ -159,7 +185,7 @@ public void run() { thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); - if (showLog) + if (showLog) { this.handlers.forEach( (route, callbacks) -> { Handler handler = callbacks.get(0); @@ -168,10 +194,14 @@ public void run() { getRouteMsg(route, h.getVer(), h.getCtrl(), h.getAction(), handler.getClass().getSimpleName())); }); + } - for (int i = 0; i < TaskSend.TOTAL_LANE; i++) { + int pNum = Runtime.getRuntime().availableProcessors(); + + for (int i = 0; i < (pNum << 1); i++) { Thread thrdOut = new Thread(getSendInstance(i), "p2p-out-" + i); thrdOut.setPriority(Thread.NORM_PRIORITY); + //tpe.execute(thrdOut); thrdOut.start(); } @@ -181,26 +211,29 @@ public void run() { t.start(); } - if (upnpEnable) + if (upnpEnable) { scheduledWorkers.scheduleWithFixedDelay( new TaskUPnPManager(selfPort), 1, PERIOD_UPNP_PORT_MAPPING, TimeUnit.MILLISECONDS); + } - if (showStatus) + if (showStatus) { scheduledWorkers.scheduleWithFixedDelay( getStatusInstance(), 2, PERIOD_SHOW_STATUS, TimeUnit.MILLISECONDS); + } - if (!syncSeedsOnly) + if (!syncSeedsOnly) { scheduledWorkers.scheduleWithFixedDelay( new TaskRequestActiveNodes(this), 5000, PERIOD_REQUEST_ACTIVE_NODES, TimeUnit.MILLISECONDS); + } Thread thrdClear = new Thread(getClearInstance(), "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); @@ -210,9 +243,13 @@ public void run() { thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); } catch (SocketException e) { - if (showLog) System.out.println(" " + e.getMessage()); + if (showLog) { + System.out.println(" " + e.getMessage()); + } } catch (IOException e) { - if (showLog) System.out.println(""); + if (showLog) { + System.out.println(""); + } } } @@ -254,7 +291,6 @@ public void shutdown() { for (List hdrs : handlers.values()) { hdrs.forEach(Handler::shutDown); } - nodeMgr.shutdown(this); } @@ -277,16 +313,27 @@ public void errCheck(int _nodeIdHash, String _displayId) { } } - /** @param _sc SocketChannel */ + /** + * @param _sc SocketChannel + */ public void closeSocket(final SocketChannel _sc, String _reason) { - if (showLog) System.out.println(""); + if (showLog) { + System.out.println(""); + } - try { + if (_sc != null) { SelectionKey sk = _sc.keyFor(selector); - _sc.close(); - if (sk != null) sk.cancel(); - } catch (IOException e) { - if (showLog) System.out.println(""); + if (sk != null) { + sk.cancel(); + } + + try { + _sc.close(); + } catch (IOException e) { + if (showLog) { + System.out.println(""); + } + } } } @@ -310,25 +357,24 @@ public boolean validateNode(final INode _node) { if (_node != null) { boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); boolean notSameIpOrPort = - !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); + !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); return notSelfId && notSameIpOrPort && notActive && notOutbound; - } else return false; + } else { + return false; + } } - /** @param _channel SocketChannel TODO: check option */ + /** + * @param _channel SocketChannel TODO: check option + */ @Override public void configChannel(final SocketChannel _channel) throws IOException { _channel.configureBlocking(false); _channel.socket().setSoTimeout(TIMEOUT_MSG_READ); - - // set buffer to 256k. _channel.socket().setReceiveBufferSize(P2pConstant.RECV_BUFFER_SIZE); _channel.socket().setSendBufferSize(P2pConstant.SEND_BUFFER_SIZE); - // _channel.setOption(StandardSocketOptions.SO_KEEPALIVE, true); - // _channel.setOption(StandardSocketOptions.TCP_NODELAY, true); - // _channel.setOption(StandardSocketOptions.SO_REUSEADDR, true); } private void ban(int nodeIdHashcode) { @@ -461,4 +507,5 @@ private ReqHandshake1 getReqHandshake1Instance(List versions) { this.selfRevision.getBytes(), versions); } + } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java index e03dd70e2d..78a45ae40e 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java @@ -37,27 +37,52 @@ */ class ChannelBuffer { + // buffer for buffer remaining after NIO select read. + byte[] remainBuffer; + + int buffRemain = 0; + + int nodeIdHash = 0; + + String displayId = ""; + + Header header = null; + + private byte[] bsHead = new byte[Header.LEN]; + + byte[] body = null; + + Lock lock = new java.util.concurrent.locks.ReentrantLock(); + + /** + * Indicates whether this channel is closed. + */ + AtomicBoolean isClosed = new AtomicBoolean(false); + + private boolean showLog; + + private Map routes = new HashMap<>(); + class RouteStatus { + long timestamp; int count; - RouteStatus(){ + + RouteStatus() { this.timestamp = System.currentTimeMillis(); count = 0; } } - private boolean showLog; - - private Map routes = new HashMap<>(); - ChannelBuffer(boolean _showLog){ + ChannelBuffer(boolean _showLog) { this.showLog = _showLog; } /** - * @param _route int - * @param _maxReqsPerSec int requests within 1 s - * @return boolean flag if under route control + * @param _route int + * @param _maxReqsPerSec int requests within 1 s + * @return boolean flag if under route control */ synchronized boolean shouldRoute(int _route, int _maxReqsPerSec) { long now = System.currentTimeMillis(); @@ -69,48 +94,28 @@ synchronized boolean shouldRoute(int _route, int _maxReqsPerSec) { return true; } boolean shouldRoute = prev.count < _maxReqsPerSec; - if(shouldRoute) + if (shouldRoute) { prev.count++; + } - if(showLog) { - if(!shouldRoute) - System.out.println(""); - // too many msgs - //else - // System.out.println(""); + if (showLog) { + if (!shouldRoute) { + System.out.println( + ""); + } } return shouldRoute; - } else + } else { return true; + } } - RouteStatus getRouteCount(int _route){ + RouteStatus getRouteCount(int _route) { return routes.get(_route); } - // buffer for buffer remaining after NIO select read. - byte[] remainBuffer; - - int buffRemain = 0; - - int nodeIdHash = 0; - - String displayId = ""; - - Header header = null; - - private byte[] bsHead = new byte[Header.LEN]; - - byte[] body = null; - - Lock lock = new java.util.concurrent.locks.ReentrantLock(); - - /** - * Indicates whether this channel is closed. - */ - AtomicBoolean isClosed = new AtomicBoolean(false); - void readHead(ByteBuffer buf) { buf.get(bsHead); try { @@ -136,15 +141,15 @@ void refreshBody() { /** * @return boolean */ - boolean isHeaderCompleted() { - return header != null; + boolean isHeaderNotCompleted() { + return header == null; } /** * @return boolean */ - boolean isBodyCompleted() { - return this.header != null && this.body != null && body.length == header.getLen(); + boolean isBodyNotCompleted() { + return this.header == null || this.body == null || body.length != header.getLen(); } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java index 708329396f..dd98728fff 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java @@ -9,6 +9,7 @@ public class MsgOut { private final int nodeId; private final String displayId; + private final int lane; private final Msg msg; private final Dest dest; private final long timestamp; @@ -26,6 +27,7 @@ public MsgOut(int nodeId, String displayId, Msg msg, Dest dest) { this.displayId = displayId; this.msg = msg; this.dest = dest; + this.lane = TaskSend.hash2Lane(nodeId); timestamp = System.currentTimeMillis(); } @@ -48,4 +50,8 @@ public Dest getDest() { public long getTimestamp() { return this.timestamp; } + + public int getLane() { + return lane; + } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index 8d08780bc7..af256edc76 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -67,7 +67,7 @@ public void run() { if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_OUTBOUND_NODES) { this.mgr.closeSocket( - node.getChannel(), "outbound-timeout node=" + node.getIdShort()); + node.getChannel(), "outbound-timeout node=" + node.getIdShort() + " ip=" + node.getIpStr()); outboundIt.remove(); } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index f4dfb231cd..b7dffa5fc7 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -30,8 +30,8 @@ import java.io.IOException; import java.io.UnsupportedEncodingException; import java.nio.ByteBuffer; -import java.nio.channels.CancelledKeyException; import java.nio.channels.ClosedChannelException; +import java.nio.channels.ClosedSelectorException; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; @@ -60,6 +60,7 @@ import org.aion.p2p.impl1.P2pMgr.Dest; public class TaskInbound implements Runnable { + private final IP2pMgr mgr; private final Selector selector; private final INodeMgr nodeMgr; @@ -71,15 +72,15 @@ public class TaskInbound implements Runnable { private BlockingQueue receiveMsgQue; public TaskInbound( - IP2pMgr _mgr, - Selector _selector, - AtomicBoolean _start, - INodeMgr _nodeMgr, - ServerSocketChannel _tcpServer, - Map> _handlers, - BlockingQueue _sendMsgQue, - ResHandshake1 _cachedResHandshake1, - BlockingQueue _receiveMsgQue) { + IP2pMgr _mgr, + Selector _selector, + AtomicBoolean _start, + INodeMgr _nodeMgr, + ServerSocketChannel _tcpServer, + Map> _handlers, + BlockingQueue _sendMsgQue, + ResHandshake1 _cachedResHandshake1, + BlockingQueue _receiveMsgQue) { this.mgr = _mgr; this.selector = _selector; @@ -95,314 +96,327 @@ public TaskInbound( @Override public void run() { - // read buffer pre-alloc. @ max_body_size + // readBuffer buffer pre-alloc. @ max_body_size ByteBuffer readBuf = ByteBuffer.allocate(P2pConstant.MAX_BODY_SIZE); while (start.get()) { - try { - Thread.sleep(0, 1); - } catch (Exception e) { - } + if (this.selector.selectNow() == 0) { + Thread.sleep(0, 1); + continue; + } - int num; - try { - num = this.selector.selectNow(); } catch (IOException e) { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) { + System.out.println(""); + } continue; - } - - if (num == 0) { + } catch (ClosedSelectorException e) { + if (this.mgr.isShowLog()) { + System.out.println(""); + } continue; + } catch (InterruptedException e) { + e.printStackTrace(); + return; } - Iterator keys = this.selector.selectedKeys().iterator(); - - while (keys.hasNext() && (num-- > 0)) { - - final SelectionKey sk = keys.next(); - keys.remove(); - - try { - - if (!sk.isValid()) continue; - - if (sk.isAcceptable()) accept(); - - if (sk.isReadable()) { - - readBuf.rewind(); - - ChannelBuffer chanBuf = (ChannelBuffer) (sk.attachment()); - try { - - int ret; - int cnt = 0; - - while ((ret = ((SocketChannel) sk.channel()).read(readBuf)) > 0) { - cnt += ret; - } - - // read empty select key, continue. - if (cnt <= 0) { - continue; - } - - int prevCnt = cnt + chanBuf.buffRemain; - ByteBuffer forRead; - - if (chanBuf.buffRemain != 0) { - byte[] alreadyRead = new byte[cnt]; + Iterator keys = null; + try { + keys = this.selector.selectedKeys().iterator(); + while (keys.hasNext()) { + SelectionKey sk = null; + try { + sk = keys.next(); + if (!sk.isValid()) { + continue; + } - readBuf.position(0); - readBuf.get(alreadyRead); - forRead = ByteBuffer.allocate(prevCnt); - forRead.put(chanBuf.remainBuffer); - forRead.put(alreadyRead); - } else { - forRead = readBuf; + if (sk.isAcceptable()) { + accept(); + } + if (sk.isReadable()) { + ChannelBuffer cb = (ChannelBuffer) sk.attachment(); + if (cb == null) { + throw new P2pException("attachment is null"); } + try { + readBuffer(sk, cb, readBuf); + } catch (NullPointerException e) { + mgr.closeSocket((SocketChannel) sk.channel(), + cb.displayId + "-read-msg-null-exception"); + cb.isClosed.set(true); + } catch (P2pException e) { + mgr.closeSocket((SocketChannel) sk.channel(), + cb.displayId + "-read-msg-p2p-exception"); + cb.isClosed.set(true); + } catch (ClosedChannelException e) { + mgr.closeSocket((SocketChannel) sk.channel(), + cb.displayId + "-read-msg-closed-channel-exception"); - do { - cnt = read(sk, forRead, prevCnt); - - if (prevCnt == cnt) { - break; - } else prevCnt = cnt; - - } while (cnt > 0); - -// // check if really read data. -// if (cnt > prevCnt) { <--- always false -// chanBuf.buffRemain = 0; -// throw new P2pException(getReadOverflowMsg(prevCnt, cnt)); -// } - - chanBuf.buffRemain = cnt; - - if (cnt == 0) { - readBuf.rewind(); - } else { - // there are no perfect cycling buffer in jdk - // yet. - // simply just buff move for now. - // @TODO: looking for more efficient way. - - int currPos = forRead.position(); - chanBuf.remainBuffer = new byte[cnt]; - forRead.position(currPos - cnt); - forRead.get(chanBuf.remainBuffer); - readBuf.rewind(); } - - } catch (NullPointerException e) { - this.mgr.closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-null-exception"); - chanBuf.isClosed.set(true); - } catch (P2pException e) { - this.mgr.closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-p2p-exception"); - chanBuf.isClosed.set(true); - - } catch (ClosedChannelException e) { - this.mgr.closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-closed-channel-exception"); - - } catch (IOException e) { - this.mgr.closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId - + "-read-msg-io-exception: " - + e.getMessage()); - chanBuf.isClosed.set(true); - - } catch (CancelledKeyException e) { - chanBuf.isClosed.set(true); - this.mgr.closeSocket( - (SocketChannel) sk.channel(), - chanBuf.displayId + "-read-msg-key-cancelled-exception"); - } catch (Exception e) { - if (this.mgr.isShowLog()) - System.out.println(""); } - } - } catch (Exception ex) { - if (this.mgr.isShowLog()) { - System.out.println(""); - ex.printStackTrace(); + } catch (IOException e) { + this.mgr.closeSocket((SocketChannel) sk.channel(), + "inbound-io-exception=" + e.getMessage()); + } catch (Exception e) { + e.printStackTrace(); } } + + } catch (Exception ex) { + if (mgr.isShowLog()) { + System.out.println(""); + } + } finally { + if (keys != null) { + keys.remove(); + } } } - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) { + System.out.println(""); + } } private void accept() { SocketChannel channel; try { - if (this.nodeMgr.activeNodesSize() >= this.mgr.getMaxActiveNodes()) return; + if (this.nodeMgr.activeNodesSize() >= this.mgr.getMaxActiveNodes()) { + return; + } channel = this.tcpServer.accept(); - this.mgr.configChannel(channel); + if (channel != null) { + this.mgr.configChannel(channel); - SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); - sk.attach(new ChannelBuffer(this.mgr.isShowLog())); + String ip = channel.socket().getInetAddress().getHostAddress(); - String ip = channel.socket().getInetAddress().getHostAddress(); - int port = channel.socket().getPort(); + if (this.mgr.isSyncSeedsOnly() && this.nodeMgr.isSeedIp(ip)) { + channel.close(); + return; + } - if (this.mgr.isSyncSeedsOnly() && this.nodeMgr.isSeedIp(ip)) { - channel.close(); - return; - } + int port = channel.socket().getPort(); + INode node = this.nodeMgr.allocNode(ip, port); + node.setChannel(channel); - INode node = this.nodeMgr.allocNode(ip, 0); - node.setChannel(channel); - this.nodeMgr.addInboundNode(node); + SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); + sk.attach(new ChannelBuffer(this.mgr.isShowLog())); + this.nodeMgr.addInboundNode(node); - if (this.mgr.isShowLog()) - System.out.println(""); + if (this.mgr.isShowLog()) { + System.out.println(""); + } + } } catch (IOException e) { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) { + System.out.println(""); + } + } catch (Exception e) { + e.printStackTrace(); } } - /** - * SocketChannel - * - * @throws IOException IOException - */ - private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + private int readHeader(final ChannelBuffer _cb, + final ByteBuffer _readBuf, int cnt) { - if (cnt < Header.LEN) return cnt; + if (cnt < Header.LEN) { + return cnt; + } + + int origPos = _readBuf.position(); - int origPos = readBuffer.position(); int startP = origPos - cnt; - readBuffer.position(startP); - _cb.readHead(readBuffer); - readBuffer.position(origPos); + + _readBuf.position(startP); + + _cb.readHead(_readBuf); + + _readBuf.position(origPos); + return cnt - Header.LEN; } - /** - * SocketChannel - * - * @throws IOException IOException - */ - private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + private int readBody(final ChannelBuffer _cb, ByteBuffer _readBuf, int _cnt) { int bodyLen = _cb.header.getLen(); // some msg have nobody. if (bodyLen == 0) { _cb.body = new byte[0]; - return cnt; + return _cnt; } - if (cnt < bodyLen) return cnt; + if (_cnt < bodyLen) { + return _cnt; + } - int origPos = readBuffer.position(); - int startP = origPos - cnt; - readBuffer.position(startP); - _cb.readBody(readBuffer); - readBuffer.position(origPos); - return cnt - bodyLen; + int origPos = _readBuf.position(); + int startP = origPos - _cnt; + _readBuf.position(startP); + _cb.readBody(_readBuf); + _readBuf.position(origPos); + return _cnt - bodyLen; } - /** - * @param _sk SelectionKey - * @throws IOException IOException - */ - private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throws IOException { + private void readBuffer(final SelectionKey _sk, final ChannelBuffer _cb, + final ByteBuffer _readBuf) throws Exception { + + _readBuf.rewind(); + + SocketChannel sc = (SocketChannel) _sk.channel(); + + int r; + int cnt = 0; + do { + r = sc.read(_readBuf); + cnt += r; + } while (r > 0); - int currCnt = 0; + if (cnt < 1) { + return; + } + + int remainBufAll = _cb.buffRemain + cnt; + ByteBuffer bufferAll = calBuffer(_cb, _readBuf, cnt); + + do { + r = readMsg(_sk, bufferAll, remainBufAll); + if (remainBufAll == r) { + break; + } else { + remainBufAll = r; + } + } while (r > 0); + + _cb.buffRemain = r; - if (_sk.attachment() == null) { + if (r != 0) { + // there are no perfect cycling buffer in jdk + // yet. + // simply just buff move for now. + // @TODO: looking for more efficient way. + + int currPos = bufferAll.position(); + _cb.remainBuffer = new byte[r]; + bufferAll.position(currPos - r); + bufferAll.get(_cb.remainBuffer); + + } + + _readBuf.rewind(); + } + + private int readMsg(SelectionKey _sk, ByteBuffer _readBuf, int _cnt) throws IOException { + ChannelBuffer cb = (ChannelBuffer) _sk.attachment(); + if (cb == null) { throw new P2pException("attachment is null"); } - ChannelBuffer rb = (ChannelBuffer) _sk.attachment(); - // read header - if (!rb.isHeaderCompleted()) { - currCnt = readHeader(rb, _readBuffer, _cnt); + int readCnt; + if (cb.isHeaderNotCompleted()) { + readCnt = readHeader(cb, _readBuf, _cnt); } else { - currCnt = _cnt; + readCnt = _cnt; } - // read body - if (rb.isHeaderCompleted() && !rb.isBodyCompleted()) { - currCnt = readBody(rb, _readBuffer, currCnt); + if (cb.isBodyNotCompleted()) { + readCnt = readBody(cb, _readBuf, readCnt); } - if (!rb.isBodyCompleted()) return currCnt; + if (cb.isBodyNotCompleted()) { + return readCnt; + } + + handleMsg(_sk, cb); + + return readCnt; + } - Header h = rb.header; + private void handleMsg(SelectionKey _sk, ChannelBuffer _cb) { - byte[] bodyBytes = rb.body; - rb.refreshHeader(); - rb.refreshBody(); + Header h = _cb.header; + byte[] bodyBytes = _cb.body; - short ver = h.getVer(); - byte ctrl = h.getCtrl(); - byte act = h.getAction(); - int route = h.getRoute(); + _cb.refreshHeader(); + _cb.refreshBody(); - boolean underRC = - rb.shouldRoute( - route, - ((route == txBroadCastRoute) - ? P2pConstant.READ_MAX_RATE_TXBC - : P2pConstant.READ_MAX_RATE)); + boolean underRC = _cb.shouldRoute(h.getRoute(), + ((h.getRoute() == txBroadCastRoute) ? P2pConstant.READ_MAX_RATE_TXBC + : P2pConstant.READ_MAX_RATE)); if (!underRC) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println( - getRouteMsg(ver, ctrl, act, rb.getRouteCount(route).count, rb.displayId)); - return currCnt; + ""); + } + return; } - switch (ver) { + switch (h.getVer()) { case Ver.V0: - switch (ctrl) { + switch (h.getCtrl()) { case Ctrl.NET: try { - handleP2pMsg(_sk, act, bodyBytes); + handleP2pMsg(_sk, h.getAction(), bodyBytes); } catch (Exception ex) { - if (this.mgr.isShowLog()) - System.out.println( - ""); + if (this.mgr.isShowLog()) { + System.out + .println(""); + } } break; case Ctrl.SYNC: - if (!this.handlers.containsKey(route)) { - if (this.mgr.isShowLog()) - System.out.println(getUnregRouteMsg(ver, ctrl, act, rb.displayId)); - return currCnt; + + if (!handlers.containsKey(h.getRoute())) { + if (this.mgr.isShowLog()) { + System.out.println( + ""); + } + return; } - this.handleKernelMsg(rb.nodeIdHash, route, bodyBytes); + handleKernelMsg(_cb.nodeIdHash, h.getRoute(), bodyBytes); break; default: - if (this.mgr.isShowLog()) - System.out.println(getInvalRouteMsg(ver, ctrl, act, rb.displayId)); + if (this.mgr.isShowLog()) { + System.out.println( + ""); + } break; } break; default: - if (this.mgr.isShowLog()) - System.out.println(""); + if (this.mgr.isShowLog()) { + System.out.println( + ""); + } break; } + } - return currCnt; + private ByteBuffer calBuffer(ChannelBuffer _cb, ByteBuffer _readBuf, int _cnt) { + ByteBuffer r; + if (_cb.buffRemain != 0) { + byte[] alreadyRead = new byte[_cnt]; + _readBuf.position(0); + _readBuf.get(alreadyRead); + r = ByteBuffer.allocate(_cb.buffRemain + _cnt); + r.put(_cb.remainBuffer); + r.put(alreadyRead); + } else { + r = _readBuf; + } + + return r; } /** @@ -420,41 +434,47 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy ReqHandshake1 reqHandshake1 = ReqHandshake1.decode(_msgBytes); if (reqHandshake1 != null) { handleReqHandshake( - rb, - _sk.channel().hashCode(), - reqHandshake1.getNodeId(), - reqHandshake1.getNetId(), - reqHandshake1.getPort(), - reqHandshake1.getRevision()); + rb, + _sk.channel().hashCode(), + reqHandshake1.getNodeId(), + reqHandshake1.getNetId(), + reqHandshake1.getPort(), + reqHandshake1.getRevision()); } } break; case Act.RES_HANDSHAKE: - if (rb.nodeIdHash == 0) return; + if (rb.nodeIdHash == 0) { + return; + } if (_msgBytes.length > ResHandshake.LEN) { ResHandshake1 resHandshake1 = ResHandshake1.decode(_msgBytes); - if (resHandshake1 != null && resHandshake1.getSuccess()) + if (resHandshake1 != null && resHandshake1.getSuccess()) { handleResHandshake(rb.nodeIdHash, resHandshake1.getBinaryVersion()); + } } break; case Act.REQ_ACTIVE_NODES: if (rb.nodeIdHash != 0) { INode node = nodeMgr.getActiveNode(rb.nodeIdHash); - if (node != null) + if (node != null) { this.sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - new ResActiveNodes(nodeMgr.getActiveNodesList()), - Dest.ACTIVE)); + new MsgOut( + node.getIdHash(), + node.getIdShort(), + new ResActiveNodes(nodeMgr.getActiveNodesList()), + Dest.ACTIVE)); + } } break; case Act.RES_ACTIVE_NODES: - if (this.mgr.isSyncSeedsOnly()) break; + if (this.mgr.isSyncSeedsOnly()) { + break; + } if (rb.nodeIdHash != 0) { INode node = nodeMgr.getActiveNode(rb.nodeIdHash); @@ -464,17 +484,21 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy if (resActiveNodes != null) { List incomingNodes = resActiveNodes.getNodes(); for (INode incomingNode : incomingNodes) { - if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) return; - if (this.mgr.validateNode(incomingNode)) + if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) { + return; + } + if (this.mgr.validateNode(incomingNode)) { nodeMgr.addTempNode(incomingNode); + } } } } } break; default: - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(""); + } break; } } @@ -486,15 +510,15 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy * @param _netId int * @param _port int * @param _revision byte[] - *

Construct node info after handshake request success + *

Construct node info after handshake request success */ private void handleReqHandshake( - final ChannelBuffer _buffer, - int _channelHash, - final byte[] _nodeId, - int _netId, - int _port, - final byte[] _revision) { + final ChannelBuffer _buffer, + int _channelHash, + final byte[] _nodeId, + int _netId, + int _port, + final byte[] _revision) { INode node = nodeMgr.getInboundNode(_channelHash); if (node != null && node.getPeerMetric().notBan()) { if (handshakeRuleCheck(_netId)) { @@ -514,15 +538,17 @@ private void handleReqHandshake( node.setBinaryVersion(binaryVersion); nodeMgr.moveInboundToActive(_channelHash, this.mgr); this.sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - this.cachedResHandshake1, - Dest.ACTIVE)); + new MsgOut( + node.getIdHash(), + node.getIdShort(), + this.cachedResHandshake1, + Dest.ACTIVE)); } } else { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) { + System.out.println(""); + } } } } @@ -551,16 +577,16 @@ private void handleKernelMsg(int _nodeIdHash, int _route, final byte[] _msgBytes } } - /** @return boolean TODO: implementation */ + /** + * @return boolean TODO: implementation + */ private boolean handshakeRuleCheck(int netId) { // check net id - if (netId != this.mgr.getSelfNetId()) return false; - // check supported protocol versions - return true; + return netId == this.mgr.getSelfNetId(); } private String getReadOverflowMsg(int prevCnt, int cnt) { - return "IO read overflow! suppose read:" + prevCnt + " real left:" + cnt; + return "IO readBuffer overflow! suppose readBuffer:" + prevCnt + " real left:" + cnt; } private String getRouteMsg(short ver, byte ctrl, byte act, int count, String idStr) { diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index cee519f4c8..20c2347a1c 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -28,6 +28,11 @@ import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Executors; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; @@ -37,8 +42,6 @@ import org.aion.p2p.P2pConstant; public class TaskSend implements Runnable { - public static final int TOTAL_LANE = (1 << 5); - public static AtomicInteger count = new AtomicInteger(0); public static AtomicLong taskStart = new AtomicLong(0L); public static AtomicInteger maxCount = new AtomicInteger(0); @@ -46,10 +49,7 @@ public class TaskSend implements Runnable { public static AtomicLong maxQueueing = new AtomicLong(0); public static AtomicBoolean print = new AtomicBoolean(); - public static AtomicInteger countq = new AtomicInteger(0); - public static AtomicInteger countqP = new AtomicInteger(0); - - + public static final int TOTAL_LANE = Math.min(Runtime.getRuntime().availableProcessors() << 1, 32); private final IP2pMgr mgr; private final AtomicBoolean start; @@ -58,6 +58,8 @@ public class TaskSend implements Runnable { private final Selector selector; private final int lane; + private static ThreadPoolExecutor tpe; + public TaskSend( IP2pMgr _mgr, int _lane, @@ -76,6 +78,17 @@ public TaskSend( if (taskStart.get() == 0) { taskStart.set(System.currentTimeMillis()); } + ThreadFactory threadFactory = Executors.defaultThreadFactory(); + + int pNum = Runtime.getRuntime().availableProcessors(); + if (tpe == null) { + tpe = new ThreadPoolExecutor(pNum + , pNum << 1 + , 0 + , TimeUnit.MILLISECONDS + , new LinkedBlockingQueue<>() + , threadFactory); + } } @Override @@ -92,14 +105,11 @@ public void run() { continue; } - long t1 = System.nanoTime(); - // if not belong to current lane, put it back. - int targetLane = hash2Lane(mo.getNodeId()); - if (targetLane != lane) { + long t1 = System.nanoTime(); + if (mo.getLane() != lane) { sendMsgQue.offer(mo); queueing.addAndGet(System.nanoTime()-t1); - countq.incrementAndGet(); continue; } @@ -125,13 +135,13 @@ public void run() { if (sk != null) { Object attachment = sk.attachment(); if (attachment != null) { - new TaskWrite( + tpe.execute(new TaskWrite( this.mgr.isShowLog(), node.getIdShort(), node.getChannel(), mo.getMsg(), (ChannelBuffer) attachment, - this.mgr).run(); + this.mgr)); count.incrementAndGet(); @@ -143,8 +153,6 @@ public void run() { maxQueueing.set(queueing.get()); count.set(0); queueing.set(0); - countqP.set(countq.get()); - countq.set(0); print.set(true); } } @@ -155,7 +163,7 @@ public void run() { } if (print.get()) { - System.out.println(Thread.currentThread().getName() + " t12:" + (t2-t1) + " t23:" + (t3-t2) + " t34:"+ (t4-t3) + " qc:" + countqP.get() + " max msgOut/ms: " + maxCount.get() + " Queueing/ms: " + (maxQueueing.get()/1000000L)); + System.out.println(Thread.currentThread().getName() + " t12:" + (t2-t1) + " t23:" + (t3-t2) + " t34:"+ (t4-t3) + " max msgOut/ms: " + maxCount.get() + " Queueing/ms: " + (maxQueueing.get()/1000000L)); print.set(false); } } catch (InterruptedException e) { @@ -168,14 +176,14 @@ public void run() { } // hash mapping channel id to write thread. - private static + public static int hash2Lane(int in) { in ^= in >> (32 - 5); in ^= in >> (32 - 10); in ^= in >> (32 - 15); in ^= in >> (32 - 20); in ^= in >> (32 - 25); - return in & 0b11111; + return (in & 0b11111) * TOTAL_LANE / 32; } private String getTimeoutMsg(String id, long now) { From 9c65721afded369a378064339558aba93657aa90 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 1 Jun 2018 09:35:11 -0400 Subject: [PATCH 092/129] updated licenses and other minor fixes --- .../zero/impl/sync/BlockPropagationTest.java | 1 - .../src/org/aion/db/impl/h2/H2MVMap.java | 4 +- .../src/org/aion/db/impl/leveldb/LevelDB.java | 4 +- .../aion/db/impl/rocksdb/RocksDBWrapper.java | 22 +++++++++ modP2p/src/org/aion/p2p/INode.java | 31 ++++++------ modP2p/src/org/aion/p2p/INodeMgr.java | 22 +++++++++ modP2p/src/org/aion/p2p/IP2pMgr.java | 31 ++++++------ modP2p/src/org/aion/p2p/IPeerMetric.java | 41 ++++++++++++++++ .../src/org/aion/p2p/impl/comm/Node.java | 33 ++++++------- .../src/org/aion/p2p/impl/comm/NodeMgr.java | 31 ++++++------ .../org/aion/p2p/impl/comm/PeerMetric.java | 47 ++++++++++++------- .../p2p/impl/zero/msg/ResActiveNodes.java | 31 ++++++------ modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 31 ++++++------ .../aion/p2p/impl1/tasks/ChannelBuffer.java | 30 ++++++------ .../src/org/aion/p2p/impl1/tasks/MsgIn.java | 22 +++++++++ .../src/org/aion/p2p/impl1/tasks/MsgOut.java | 22 +++++++++ .../org/aion/p2p/impl1/tasks/TaskClear.java | 31 ++++++------ .../p2p/impl1/tasks/TaskConnectPeers.java | 31 ++++++------ .../org/aion/p2p/impl1/tasks/TaskInbound.java | 41 +++++++--------- .../org/aion/p2p/impl1/tasks/TaskReceive.java | 34 +++++++------- .../org/aion/p2p/impl1/tasks/TaskSend.java | 31 ++++++------ .../org/aion/p2p/impl1/tasks/TaskStatus.java | 31 ++++++------ .../org/aion/p2p/impl1/tasks/TaskWrite.java | 31 ++++++------ 23 files changed, 364 insertions(+), 269 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index a23a2f4608..920f04776e 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -2,7 +2,6 @@ import static com.google.common.truth.Truth.assertThat; -import java.io.IOException; import java.math.BigInteger; import java.nio.channels.SocketChannel; import java.util.*; diff --git a/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java b/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java index 7ae454e061..9492420d81 100644 --- a/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java +++ b/modDbImpl/src/org/aion/db/impl/h2/H2MVMap.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -31,7 +31,7 @@ * Samuel Neves through the BLAKE2 implementation. * Zcash project team. * Bitcoinj team. - ******************************************************************************/ + */ package org.aion.db.impl.h2; import org.aion.base.util.ByteArrayWrapper; diff --git a/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java b/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java index bc2fcd44d4..31454d14a1 100644 --- a/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java +++ b/modDbImpl/src/org/aion/db/impl/leveldb/LevelDB.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -31,7 +31,7 @@ * Samuel Neves through the BLAKE2 implementation. * Zcash project team. * Bitcoinj team. - ******************************************************************************/ + */ package org.aion.db.impl.leveldb; import org.aion.base.util.ByteArrayWrapper; diff --git a/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java b/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java index cbd5db2be4..48b447da40 100644 --- a/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java +++ b/modDbImpl/src/org/aion/db/impl/rocksdb/RocksDBWrapper.java @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ package org.aion.db.impl.rocksdb; import org.aion.base.util.ByteArrayWrapper; diff --git a/modP2p/src/org/aion/p2p/INode.java b/modP2p/src/org/aion/p2p/INode.java index 187a38b4ce..e9075e9992 100644 --- a/modP2p/src/org/aion/p2p/INode.java +++ b/modP2p/src/org/aion/p2p/INode.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p; import java.math.BigInteger; diff --git a/modP2p/src/org/aion/p2p/INodeMgr.java b/modP2p/src/org/aion/p2p/INodeMgr.java index a3dd8f5b4e..0938d84324 100644 --- a/modP2p/src/org/aion/p2p/INodeMgr.java +++ b/modP2p/src/org/aion/p2p/INodeMgr.java @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ package org.aion.p2p; import java.util.List; diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index b4b1ddb19f..f6c0f40295 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p; import java.io.IOException; diff --git a/modP2p/src/org/aion/p2p/IPeerMetric.java b/modP2p/src/org/aion/p2p/IPeerMetric.java index b734e9a269..c97c8f08ff 100644 --- a/modP2p/src/org/aion/p2p/IPeerMetric.java +++ b/modP2p/src/org/aion/p2p/IPeerMetric.java @@ -1,15 +1,56 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ package org.aion.p2p; +/** + * An interface for tracking peer connection and banning metrics. + */ public interface IPeerMetric { + /** + * Returns true only if we should not accept any more connections. + */ boolean shouldNotConn(); + /** + * Increments the failed connection counter. + */ void incFailedCount(); + /** + * Decrements the failed connection counter. + */ void decFailedCount(); + /** + * Sets the current time for tracking a banned connection. + */ void ban(); + /** + * Returns true only if the time between now and the last ban is greater than the banned + * connection retry interval. + */ boolean notBan(); } diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java b/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java index f5d27c25e0..761ae3354d 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/Node.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl.comm; import java.math.BigInteger; @@ -33,7 +30,7 @@ import org.aion.p2p.INode; import org.aion.p2p.IPeerMetric; -/* +/** * * @author Chris * p2p://{node-id}@{ip}:{port} diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index 014cc5b639..99ccca3303 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl.comm; import org.aion.p2p.INode; diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java b/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java index dbc261b57c..f80999b6a3 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/PeerMetric.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl.comm; import org.aion.p2p.IPeerMetric; @@ -34,6 +31,9 @@ public final class PeerMetric implements IPeerMetric { private long metricFailedConnTs; private long metricBanConnTs; + /** + * Returns true only if we should not accept any more connections. + */ @Override public boolean shouldNotConn() { return (metricFailedConn > P2pConstant.STOP_CONN_AFTER_FAILED_CONN @@ -41,23 +41,36 @@ public boolean shouldNotConn() { || ((System.currentTimeMillis() - metricBanConnTs) < P2pConstant.BAN_CONN_RETRY_INTERVAL); } + /** + * Increments the failed connection counter. + */ @Override public void incFailedCount() { metricFailedConn++; metricFailedConnTs = System.currentTimeMillis(); } + /** + * Decrements the failed connection counter. + */ @Override public void decFailedCount() { if (metricFailedConn > 0) metricFailedConn--; } + /** + * Sets the current time for tracking a banned connection. + */ @Override public void ban() { metricBanConnTs = System.currentTimeMillis(); } + /** + * Returns true only if the time between now and the last ban is greater than the banned + * connection retry interval. + */ @Override public boolean notBan() { return ((System.currentTimeMillis() - metricBanConnTs) > P2pConstant.BAN_CONN_RETRY_INTERVAL); diff --git a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java index c3e2b039b0..75b739fb5b 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java +++ b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl.zero.msg; import java.nio.ByteBuffer; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 802eccb1f1..8dc13b0aa1 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1; import java.io.IOException; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java index e03dd70e2d..d5544fab5a 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java @@ -1,26 +1,24 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ package org.aion.p2p.impl1.tasks; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java index 8a0015f887..046d0a03b2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ package org.aion.p2p.impl1.tasks; /** diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java index 708329396f..31cfb97e4a 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ package org.aion.p2p.impl1.tasks; import org.aion.p2p.Msg; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index 8d08780bc7..29e1720581 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1.tasks; import java.util.Iterator; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index 0a8d4ca933..2dde338202 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1.tasks; import java.io.IOException; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index a20dd802e4..5b046c6cf6 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1.tasks; import java.io.IOException; @@ -273,11 +270,8 @@ private void accept() { /** * SocketChannel - * - * @throws IOException IOException */ - private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) { if (cnt < Header.LEN) return cnt; @@ -291,11 +285,8 @@ private int readHeader(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) /** * SocketChannel - * - * @throws IOException IOException */ - private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) - throws IOException { + private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) { int bodyLen = _cb.header.getLen(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index 37bb42ade2..3ee80bb64a 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1.tasks; import java.util.List; @@ -31,7 +28,8 @@ import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.Handler; -public class TaskReceive implements Runnable { +public class +TaskReceive implements Runnable { private final AtomicBoolean start; private final BlockingQueue receiveMsgQue; private final Map> handlers; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index ea522929e6..595ada5af0 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1.tasks; import java.nio.channels.SelectionKey; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index f0e881fe84..38a16ea850 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1.tasks; import java.util.concurrent.BlockingQueue; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java index e6b2fbb4e4..26b75ee0c8 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java @@ -1,28 +1,25 @@ /* * Copyright (c) 2017-2018 Aion foundation. * - * This file is part of the aion network project. + * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or any later version. + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with the aion network project source files. - * If not, see . - * - * Contributors to the aion source files in decreasing order of code volume: - * - * Aion foundation. + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . * + * Contributors: + * Aion foundation. */ - package org.aion.p2p.impl1.tasks; import java.io.IOException; From 8def32b9e8aedb6c1e728a55914abc52e52afe95 Mon Sep 17 00:00:00 2001 From: aionick Date: Fri, 1 Jun 2018 09:57:58 -0400 Subject: [PATCH 093/129] added braces to one-line ifs --- .../src/org/aion/p2p/impl/comm/NodeMgr.java | 35 +++++++----- .../p2p/impl/zero/msg/ResActiveNodes.java | 12 +++-- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 25 ++++----- .../aion/p2p/impl1/tasks/ChannelBuffer.java | 10 ++-- .../org/aion/p2p/impl1/tasks/TaskClear.java | 4 +- .../p2p/impl1/tasks/TaskConnectPeers.java | 26 +++++---- .../org/aion/p2p/impl1/tasks/TaskInbound.java | 53 +++++++++++-------- .../org/aion/p2p/impl1/tasks/TaskReceive.java | 13 +++-- .../org/aion/p2p/impl1/tasks/TaskSend.java | 13 +++-- .../org/aion/p2p/impl1/tasks/TaskWrite.java | 2 +- 10 files changed, 113 insertions(+), 80 deletions(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index 99ccca3303..3dd908915d 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -143,8 +143,9 @@ public boolean isSeedIp(String _ip) { */ @Override public synchronized void addTempNode(final INode _n) { - if(tempNodes.size() < maxTempNodes) + if(tempNodes.size() < maxTempNodes) { tempNodes.add(_n); + } } @Override @@ -195,8 +196,9 @@ public INode getOutboundNode(int k) { @Override public INode allocNode(String ip, int p0) { INode n = new Node(ip, p0); - if (seedIps.contains(ip)) + if (seedIps.contains(ip)) { n.setFromBootList(true); + } return n; } @@ -273,13 +275,18 @@ public synchronized void moveInboundToActive(int _channelHashCode, final IP2pMgr node.setConnection("inbound"); node.setFromBootList(seedIps.contains(node.getIpStr())); INode previous = activeNodes.putIfAbsent(node.getIdHash(), node); - if (previous != null) - _p2pMgr.closeSocket(node.getChannel(), "inbound -> active, node " + previous.getIdShort() + " exits"); - else if(!activeIpAllow(node.getIpStr())) - _p2pMgr.closeSocket(node.getChannel(), "inbound -> active, ip " + node.getIpStr() + " exits"); - else { - if (_p2pMgr.isShowLog()) - System.out.println(" active node-id=" + node.getIdShort() + " ip=" + node.getIpStr() + ">"); + if (previous != null) { + _p2pMgr.closeSocket(node.getChannel(), + "inbound -> active, node " + previous.getIdShort() + " exits"); + } else if (!activeIpAllow(node.getIpStr())) { + _p2pMgr.closeSocket(node.getChannel(), + "inbound -> active, ip " + node.getIpStr() + " exits"); + } else { + if (_p2pMgr.isShowLog()) { + System.out.println( + " active node-id=" + node.getIdShort() + " ip=" + node + .getIpStr() + ">"); + } } } } @@ -310,8 +317,11 @@ public synchronized void moveOutboundToActive(int _nodeIdHash, String _shortId, if (previous != null) _p2pMgr.closeSocket(node.getChannel(), "outbound -> active, node " + previous.getIdShort() + " exits"); else { - if (_p2pMgr.isShowLog()) - System.out.println(" active node-id=" + _shortId + " ip=" + node.getIpStr() + ">"); + if (_p2pMgr.isShowLog()) { + System.out.println( + " active node-id=" + _shortId + " ip=" + node.getIpStr() + + ">"); + } } } } @@ -357,8 +367,9 @@ public void timeoutActive(IP2pMgr _p2pMgr) { public void dropActive(int nodeIdHash, final IP2pMgr _p2pMgr, String _reason) { INode node = activeNodes.remove(nodeIdHash); - if (node == null) + if (node == null) { return; + } _p2pMgr.closeSocket(node.getChannel(), _reason); } diff --git a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java index 75b739fb5b..e6e8534c44 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java +++ b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResActiveNodes.java @@ -58,10 +58,11 @@ public final class ResActiveNodes extends Msg { public ResActiveNodes(final List _nodes) { super(Ver.V0, Ctrl.NET, Act.RES_ACTIVE_NODES); this.count = Math.min(MAX_NODES, _nodes.size()); - if (this.count > 0) + if (this.count > 0) { this.nodes = _nodes.subList(0, this.count); - else + } else { this.nodes = new ArrayList<>(); + } } /** @@ -77,9 +78,9 @@ public List getNodes() { * @return ResActiveNodes */ public static ResActiveNodes decode(final byte[] _bytes) { - if (_bytes == null || _bytes.length == 0 || (_bytes.length - 1) % NODE_BYTES_LENGTH != 0) + if (_bytes == null || _bytes.length == 0 || (_bytes.length - 1) % NODE_BYTES_LENGTH != 0) { return null; - else { + } else { try{ @@ -87,8 +88,9 @@ public static ResActiveNodes decode(final byte[] _bytes) { int count = buf.get(); // fix bug: https://github.com/aionnetwork/aion/issues/390 - if (_bytes.length != count * NODE_BYTES_LENGTH + 1) + if (_bytes.length != count * NODE_BYTES_LENGTH + 1) { return null; + } ArrayList activeNodes = new ArrayList<>(); for (int i = 0; i < count; i++) { diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 8dc13b0aa1..1bbd677803 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -152,7 +152,7 @@ public void run() { thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); - if (showLog) + if (showLog) { this.handlers.forEach( (route, callbacks) -> { Handler handler = callbacks.get(0); @@ -161,6 +161,7 @@ public void run() { getRouteMsg(route, h.getVer(), h.getCtrl(), h.getAction(), handler.getClass().getSimpleName())); }); + } for (int i = 0; i < TaskSend.TOTAL_LANE; i++) { Thread thrdOut = new Thread(getSendInstance(i), "p2p-out-" + i); @@ -174,27 +175,27 @@ public void run() { t.start(); } - if (upnpEnable) + if (upnpEnable) { scheduledWorkers.scheduleWithFixedDelay( new TaskUPnPManager(selfPort), 1, PERIOD_UPNP_PORT_MAPPING, TimeUnit.MILLISECONDS); - - if (showStatus) + } + if (showStatus) { scheduledWorkers.scheduleWithFixedDelay( getStatusInstance(), 2, PERIOD_SHOW_STATUS, TimeUnit.MILLISECONDS); - - if (!syncSeedsOnly) + } + if (!syncSeedsOnly) { scheduledWorkers.scheduleWithFixedDelay( new TaskRequestActiveNodes(this), 5000, PERIOD_REQUEST_ACTIVE_NODES, TimeUnit.MILLISECONDS); - + } Thread thrdClear = new Thread(getClearInstance(), "p2p-clear"); thrdClear.setPriority(Thread.NORM_PRIORITY); thrdClear.start(); @@ -203,9 +204,9 @@ public void run() { thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); } catch (SocketException e) { - if (showLog) System.out.println(" " + e.getMessage()); + if (showLog) { System.out.println(" " + e.getMessage()); } } catch (IOException e) { - if (showLog) System.out.println(""); + if (showLog) { System.out.println(""); } } } @@ -272,14 +273,14 @@ public void errCheck(int _nodeIdHash, String _displayId) { /** @param _sc SocketChannel */ public void closeSocket(final SocketChannel _sc, String _reason) { - if (showLog) System.out.println(""); + if (showLog) { System.out.println(""); } try { SelectionKey sk = _sc.keyFor(selector); _sc.close(); - if (sk != null) sk.cancel(); + if (sk != null) { sk.cancel(); } } catch (IOException e) { - if (showLog) System.out.println(""); + if (showLog) { System.out.println(""); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java index d5544fab5a..3a16e08e76 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java @@ -67,12 +67,16 @@ synchronized boolean shouldRoute(int _route, int _maxReqsPerSec) { return true; } boolean shouldRoute = prev.count < _maxReqsPerSec; - if(shouldRoute) + if(shouldRoute) { prev.count++; + } if(showLog) { - if(!shouldRoute) - System.out.println(""); + if(!shouldRoute) { + System.out.println( + ""); + } // too many msgs //else // System.out.println(""); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index 29e1720581..b1ed935769 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -55,12 +55,12 @@ public void run() { Object obj = outboundIt.next(); - if (obj == null) continue; + if (obj == null) { continue; } int nodeIdHash = (int) obj; INode node = nodeMgr.getOutboundNodes().get(nodeIdHash); - if (node == null) continue; + if (node == null) { continue; } if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_OUTBOUND_NODES) { this.mgr.closeSocket( diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index 2dde338202..fea763fd0d 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -72,28 +72,29 @@ public void run() { try { Thread.sleep(PERIOD_CONNECT_OUTBOUND); } catch (InterruptedException e) { - if (this.mgr.isShowLog()) System.out.println(getTcpInterruptedMsg()); + if (this.mgr.isShowLog()) { System.out.println(getTcpInterruptedMsg()); } } if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getTcpPassMaxNodesMsg()); + } continue; } INode node; try { node = this.nodeMgr.tempNodesTake(); - if (this.nodeMgr.isSeedIp(node.getIpStr())) node.setFromBootList(true); - if (node.getIfFromBootList()) this.nodeMgr.addTempNode(node); + if (this.nodeMgr.isSeedIp(node.getIpStr())) { node.setFromBootList(true); } + if (node.getIfFromBootList()) { this.nodeMgr.addTempNode(node); } // if (node.peerMetric.shouldNotConn()) { // continue; // } } catch (InterruptedException e) { - if (this.mgr.isShowLog()) System.out.println(getTcpInterruptedMsg()); + if (this.mgr.isShowLog()) { System.out.println(getTcpInterruptedMsg()); } return; } catch (Exception e) { - if (this.mgr.isShowLog()) e.printStackTrace(); + if (this.mgr.isShowLog()) { e.printStackTrace(); } continue; } int nodeIdHash = node.getIdHash(); @@ -111,9 +112,9 @@ public void run() { if (channel.finishConnect() && channel.isConnected()) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getSucesCnctMsg(node.getIdShort(), node.getIpStr())); - + } SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); ChannelBuffer rb = new ChannelBuffer(this.mgr.isShowLog()); rb.displayId = node.getIdShort(); @@ -124,8 +125,9 @@ public void run() { node.setChannel(channel); this.nodeMgr.addOutboundNode(node); - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getPrepRqstMsg(node.getIdShort(), node.getIpStr())); + } this.sendMsgQue.offer( new MsgOut( node.getIdHash(), @@ -135,14 +137,16 @@ public void run() { // node.peerMetric.decFailedCount(); } else { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getFailCnctMsg(node.getIdShort(), node.getIpStr())); + } channel.close(); // node.peerMetric.incFailedCount(); } } catch (IOException e) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getOutboundConnectMsg(node.getIpStr(), _port)); + } // node.peerMetric.incFailedCount(); } catch (Exception e) { if (this.mgr.isShowLog()) e.printStackTrace(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index 5b046c6cf6..ddcfe03876 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -296,7 +296,7 @@ private int readBody(final ChannelBuffer _cb, ByteBuffer readBuffer, int cnt) { return cnt; } - if (cnt < bodyLen) return cnt; + if (cnt < bodyLen) { return cnt; } int origPos = readBuffer.position(); int startP = origPos - cnt; @@ -331,7 +331,7 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw currCnt = readBody(rb, _readBuffer, currCnt); } - if (!rb.isBodyCompleted()) return currCnt; + if (!rb.isBodyCompleted()) { return currCnt; } Header h = rb.header; @@ -352,9 +352,10 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw : P2pConstant.READ_MAX_RATE)); if (!underRC) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println( getRouteMsg(ver, ctrl, act, rb.getRouteCount(route).count, rb.displayId)); + } return currCnt; } @@ -365,29 +366,33 @@ private int read(final SelectionKey _sk, ByteBuffer _readBuffer, int _cnt) throw try { handleP2pMsg(_sk, act, bodyBytes); } catch (Exception ex) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println( - ""); + ""); + } } break; case Ctrl.SYNC: if (!this.handlers.containsKey(route)) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getUnregRouteMsg(ver, ctrl, act, rb.displayId)); + } return currCnt; } this.handleKernelMsg(rb.nodeIdHash, route, bodyBytes); break; default: - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getInvalRouteMsg(ver, ctrl, act, rb.displayId)); + } break; } break; default: - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(""); + } break; } @@ -420,30 +425,32 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy break; case Act.RES_HANDSHAKE: - if (rb.nodeIdHash == 0) return; + if (rb.nodeIdHash == 0) { return; } if (_msgBytes.length > ResHandshake.LEN) { ResHandshake1 resHandshake1 = ResHandshake1.decode(_msgBytes); - if (resHandshake1 != null && resHandshake1.getSuccess()) + if (resHandshake1 != null && resHandshake1.getSuccess()) { handleResHandshake(rb.nodeIdHash, resHandshake1.getBinaryVersion()); + } } break; case Act.REQ_ACTIVE_NODES: if (rb.nodeIdHash != 0) { INode node = nodeMgr.getActiveNode(rb.nodeIdHash); - if (node != null) + if (node != null) { this.sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - new ResActiveNodes(nodeMgr.getActiveNodesList()), - Dest.ACTIVE)); + new MsgOut( + node.getIdHash(), + node.getIdShort(), + new ResActiveNodes(nodeMgr.getActiveNodesList()), + Dest.ACTIVE)); + } } break; case Act.RES_ACTIVE_NODES: - if (this.mgr.isSyncSeedsOnly()) break; + if (this.mgr.isSyncSeedsOnly()) { break; } if (rb.nodeIdHash != 0) { INode node = nodeMgr.getActiveNode(rb.nodeIdHash); @@ -453,17 +460,19 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy if (resActiveNodes != null) { List incomingNodes = resActiveNodes.getNodes(); for (INode incomingNode : incomingNodes) { - if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) return; - if (this.mgr.validateNode(incomingNode)) + if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) { return; } + if (this.mgr.validateNode(incomingNode)) { nodeMgr.addTempNode(incomingNode); + } } } } } break; default: - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(""); + } break; } } @@ -511,7 +520,7 @@ private void handleReqHandshake( } } else { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) { System.out.println(""); } } } } @@ -543,7 +552,7 @@ private void handleKernelMsg(int _nodeIdHash, int _route, final byte[] _msgBytes /** @return boolean TODO: implementation */ private boolean handshakeRuleCheck(int netId) { // check net id - if (netId != this.mgr.getSelfNetId()) return false; + if (netId != this.mgr.getSelfNetId()) { return false; } // check supported protocol versions return true; } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index 3ee80bb64a..b5af5e5e0d 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -28,8 +28,7 @@ import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.Handler; -public class -TaskReceive implements Runnable { +public class TaskReceive implements Runnable { private final AtomicBoolean start; private final BlockingQueue receiveMsgQue; private final Map> handlers; @@ -53,21 +52,21 @@ public void run() { MsgIn mi = this.receiveMsgQue.take(); List hs = this.handlers.get(mi.getRoute()); - if (hs == null) continue; + if (hs == null) { continue; } for (Handler hlr : hs) { - if (hlr == null) continue; + if (hlr == null) { continue; } try { hlr.receive(mi.getNodeId(), mi.getDisplayId(), mi.getMsg()); } catch (Exception e) { - if (this.showLog) e.printStackTrace(); + if (this.showLog) { e.printStackTrace(); } } } } catch (InterruptedException e) { - if (this.showLog) System.out.println(""); + if (this.showLog) { System.out.println(""); } return; } catch (Exception e) { - if (this.showLog) e.printStackTrace(); + if (this.showLog) { e.printStackTrace(); } } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index 595ada5af0..904467b305 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -65,8 +65,9 @@ public void run() { // if timeout , throw away this msg. long now = System.currentTimeMillis(); if (now - mo.getTimestamp() > P2pConstant.WRITE_MSG_TIMEOUT) { - if (this.mgr.isShowLog()) + if (this.mgr.isShowLog()) { System.out.println(getTimeoutMsg(mo.getDisplayId(), now)); + } continue; } @@ -107,14 +108,16 @@ public void run() { } } } else { - if (this.mgr.isShowLog()) - System.out.println(getNodeNotExitMsg(mo.getDest().name(), mo.getDisplayId())); + if (this.mgr.isShowLog()) { + System.out + .println(getNodeNotExitMsg(mo.getDest().name(), mo.getDisplayId())); + } } } catch (InterruptedException e) { - if (this.mgr.isShowLog()) System.out.println(""); + if (this.mgr.isShowLog()) { System.out.println(""); } return; } catch (Exception e) { - if (this.mgr.isShowLog()) e.printStackTrace(); + if (this.mgr.isShowLog()) { e.printStackTrace(); } } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java index 26b75ee0c8..38e3dacbd4 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java @@ -81,7 +81,7 @@ public void run() { // System.out.println("write " + h.getVer() + "-" + h.getCtrl() + "-" + h.getAction()); ByteBuffer buf = ByteBuffer.allocate(headerBytes.length + bodyLen); buf.put(headerBytes); - if (bodyBytes != null) buf.put(bodyBytes); + if (bodyBytes != null) { buf.put(bodyBytes); } buf.flip(); try { From 1f0e5866b9a19fed8e01515ff58d5afdae17f474 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 1 Jun 2018 11:57:57 -0400 Subject: [PATCH 094/129] added headers and changed comments --- modBoot/resource/config.xml | 4 + modBoot/src/org/aion/Aion.java | 16 +- .../src/org/aion/log/AionLoggerFactory.java | 32 +-- modMcf/src/org/aion/mcf/config/CfgLog.java | 29 +-- .../test/org/aion/mcf/config/CfgLogTest.java | 184 ++++++++++-------- 5 files changed, 151 insertions(+), 114 deletions(-) diff --git a/modBoot/resource/config.xml b/modBoot/resource/config.xml index 06a3f2de99..37ff777e47 100644 --- a/modBoot/resource/config.xml +++ b/modBoot/resource/config.xml @@ -71,6 +71,10 @@ false + + true + + log INFO ERROR INFO diff --git a/modBoot/src/org/aion/Aion.java b/modBoot/src/org/aion/Aion.java index 7d8ceb7b49..1fbd6180fc 100644 --- a/modBoot/src/org/aion/Aion.java +++ b/modBoot/src/org/aion/Aion.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -17,12 +17,9 @@ * along with the aion network project source files. * If not, see . * - * Contributors to the aion source files in decreasing order of code volume: - * + * Contributors: * Aion foundation. - * - ******************************************************************************/ - + */ package org.aion; import org.aion.api.server.http.NanoServer; @@ -92,7 +89,7 @@ public static void main(String args[]) throws InterruptedException { "\n\n" ); - /** Outputs relevant logger configuration */ + /* Outputs relevant logger configuration */ if (!cfg.getLog().getLogFile()) { System.out.println("Logger disabled; to enable please check log settings in config.xml\n"); } else if (!cfg.getLog().isValidPath() && cfg.getLog().getLogFile()) { @@ -102,8 +99,9 @@ public static void main(String args[]) throws InterruptedException { System.out.println("Logger file path: '" + cfg.getLog().getLogPath() + "'\n"); } - // If commit this out, the config setting will be ignore. all log module been set to "INFO" Level - /** Changed INITIALIZE signature to include LOGFILE and LOGPATH*/ + /* + * Logger initialize with LOGFILE and LOGPATH (user config inputs) + */ AionLoggerFactory.init(cfg.getLog().getModules(), cfg.getLog().getLogFile(), cfg.getLog().getLogPath()); Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.toString()); diff --git a/modLogger/src/org/aion/log/AionLoggerFactory.java b/modLogger/src/org/aion/log/AionLoggerFactory.java index a2f0045ab2..08a4e84635 100644 --- a/modLogger/src/org/aion/log/AionLoggerFactory.java +++ b/modLogger/src/org/aion/log/AionLoggerFactory.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,8 +19,7 @@ * * Contributors: * Aion foundation. - * - ******************************************************************************/ + */ package org.aion.log; import ch.qos.logback.classic.Level; @@ -45,10 +44,10 @@ /** * Used to override SimpleLogger current log level * - *

final public int TRACE_INT = 00; final public int DEBUG_INT = 10; finalConcurrentHashMap + * final public int TRACE_INT = 00; final public int DEBUG_INT = 10; finalConcurrentHashMap * public int INFO_INT = 20; final public int WARN_INT = 30; final public int ERROR_INT = 40; * - *

Default set to 50 which ignore output + * Default set to 50 which ignore output */ public class AionLoggerFactory { @@ -75,7 +74,9 @@ public class AionLoggerFactory { } } - /** Change INITIALIZE signature to include LOGFILE and LOGPATH */ + /* + * Added INITIALIZE signature to include LOGFILE and LOGPATH + */ public static void init(final Map _logModules) { init(_logModules, false, "log"); } @@ -88,25 +89,26 @@ public static void init(final Map _logModules, boolean _logToFil loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); - /** Toggles file appending configurations */ + /* Toggles file appending configurations */ if (logFile) { - /** Initialize Rolling-File-Appender */ + + /* Initialize Rolling-File-Appender */ String fileName = logPath + "/aionCurrentLog.dat"; fileAppender = new RollingFileAppender(); fileAppender.setContext(loggerContext); fileAppender.setName("aionlogger"); fileAppender.setFile(fileName); - /** Initialize Triggering-Policy (CONDITION) */ + /* Initialize Triggering-Policy (CONDITION) */ SizeBasedTriggeringPolicy tp = new SizeBasedTriggeringPolicy(); tp.setContext(loggerContext); tp.start(); - /** Initialize Rolling-Policy (BEHAVIOUR) */ + /* Initialize Rolling-Policy (BEHAVIOUR) */ SizeAndTimeBasedRollingPolicy rp = new SizeAndTimeBasedRollingPolicy(); rp.setContext(loggerContext); - /** + /* * To modify period of each rollover; * https://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy * (Currently set to PER DAY) @@ -116,7 +118,7 @@ public static void init(final Map _logModules, boolean _logToFil logPath + "/%d{yyyy/MM, aux}/aion.%d{yyyy-MM-dd}.%i.log", loggerContext); rp.setFileNamePattern(fnp.getPattern()); - /** + /* * To modify size of each rollover file; * https://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy * (Currently set to 100MB) @@ -125,11 +127,11 @@ public static void init(final Map _logModules, boolean _logToFil rp.setParent(fileAppender); rp.start(); - /** Sets TRIGGER & ROLLING policy */ + /* Sets TRIGGER & ROLLING policy */ fileAppender.setTriggeringPolicy(tp); fileAppender.setRollingPolicy(rp); - /** Set fileAppender configurations */ + /* Set fileAppender configurations */ fileAppender.setContext(loggerContext); fileAppender.setEncoder(encoder); fileAppender.setAppend(true); @@ -169,7 +171,7 @@ private static Logger newLogger(String label) { ch.qos.logback.classic.Logger newlogger = loggerContext.getLogger(label); newlogger.addAppender(appender); - /** Toggles file appending */ + /* Toggles file appending */ if (logFile) { newlogger.addAppender(fileAppender); } diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index 8004dde48d..74e693ada3 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,8 +19,7 @@ * * Contributors: * Aion foundation. - * - ******************************************************************************/ + */ package org.aion.mcf.config; import java.io.IOException; @@ -38,8 +37,8 @@ public class CfgLog { private Map modules; - private boolean logFile; - protected String logPath; + boolean logFile; + String logPath; public CfgLog() { modules = new HashMap<>(); @@ -63,7 +62,7 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { switch (eventType) { case XMLStreamReader.START_ELEMENT: - /** XML - Takes the input in config.xml and parse as T/F */ + /* XML - Takes the input in config.xml and parse as T/F */ String elementName = sr.getLocalName().toLowerCase(); switch (elementName) { case "log-file": @@ -100,14 +99,20 @@ public String toXML() { xmlWriter.writeStartElement("log"); xmlWriter.writeCharacters("\r\n"); - /** XML - Displays tag/entry in the config.xml */ + /* + * XML - Displays tag/entry in the config.xml + * Boolean value to allow logger to be toggled ON and OFF + */ xmlWriter.writeCharacters("\t\t"); xmlWriter.writeStartElement("log-file"); xmlWriter.writeCharacters(this.logFile + ""); xmlWriter.writeEndElement(); xmlWriter.writeCharacters("\r\n"); - /** XML - Displays log-path in the config.xml */ + /* + * XML - Displays log-path in the config.xml + * String value to determine the folder path for log files + */ xmlWriter.writeCharacters("\t\t"); xmlWriter.writeStartElement("log-path"); xmlWriter.writeCharacters(this.logPath + ""); @@ -138,18 +143,18 @@ public Map getModules() { return this.modules; } - /** Method checks value of logFile as T/F */ + /* Method checks whether logger is enabled/disabled */ public boolean getLogFile() { return this.logFile; } - /** Method returns user input path of logFile */ + /* Method returns user input folder path of logger */ public String getLogPath() { return this.logPath; } - /** Method checks logPath for illegal inputs */ + /* Method checks folder path for illegal inputs */ public boolean isValidPath() { - return !logPath.matches(".*[-=+,.?;:'!@#$%^&*].*"); + return logPath.length() > 0 && !logPath.matches(".*[-=+,.?;:'!@#$%^&*].*"); } } diff --git a/modMcf/test/org/aion/mcf/config/CfgLogTest.java b/modMcf/test/org/aion/mcf/config/CfgLogTest.java index 7279525882..f6fea21acd 100644 --- a/modMcf/test/org/aion/mcf/config/CfgLogTest.java +++ b/modMcf/test/org/aion/mcf/config/CfgLogTest.java @@ -1,6 +1,27 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ package org.aion.mcf.config; -import org.aion.db.utils.FileUtils; import org.aion.log.AionLoggerFactory; import org.junit.After; @@ -8,6 +29,11 @@ import org.junit.Test; import java.io.File; +import java.io.IOException; +import java.nio.file.FileVisitResult; +import java.nio.file.Path; +import java.nio.file.SimpleFileVisitor; +import java.nio.file.attribute.BasicFileAttributes; import java.util.Map; import static org.junit.Assert.*; @@ -17,27 +43,27 @@ */ public class CfgLogTest extends CfgLog { - /** + /* * User input toggle under "log-file" in config.xml */ private final static String[] toggle = { - "true", // valid configuration - "tRuE", // capitalized entry - "maybe?", // invalid config entry - "" // null config entry + "true", // valid entry + "maybe?", // invalid entry + "tRuE", // special entry + "" // null entry }; - /** + /* * User input file path under "log-path" in config.xml */ private final static String[] path = { - "logger", // valid file path - "l!@#*g", // invalid file path - "log/logging/logger", // folder hierarchy path - "" // null file path + "logger", // valid entry + "l!@#*g", // invalid entry + "log/logging/logger", // special entry + "" // null entry }; - /** + /* * Before: Creates folder to create test log files in * After: Remove the created folder after testing */ @@ -48,21 +74,21 @@ public class CfgLogTest extends CfgLog { public void setup() { testRoot = new File("testLog"); if (testRoot.exists()) { - FileUtils.deleteRecursively(testRoot); + deleteRecursively(testRoot); testRoot.delete(); } testRoot.mkdirs(); } - //@After + @After public void shutdown() { if (testRoot.exists()) { - FileUtils.deleteRecursively(testRoot); + deleteRecursively(testRoot); testRoot.delete(); } } - /** + /* * Test for: * - if parseBoolean() correctly parses user input * - if getLogFile() returns the correct configuration @@ -72,32 +98,27 @@ public void testToggle() { // Test for default log configuration CfgLog config = new CfgLog(); - assertEquals(false, config.logFile); assertFalse(config.getLogFile()); // Test for valid configuration config.logFile = Boolean.parseBoolean(toggle[0]); - assertEquals(true, config.logFile); assertTrue(config.getLogFile()); // Test for capitalized entry config.logFile = Boolean.parseBoolean(toggle[1]); - assertEquals(true, config.logFile); - assertTrue(config.getLogFile()); + assertFalse(config.getLogFile()); // Test for invalid configuration config.logFile = Boolean.parseBoolean(toggle[2]); - assertEquals(false, config.logFile); - assertFalse(config.getLogFile()); + assertTrue(config.getLogFile()); // Test for null entry config.logFile = Boolean.parseBoolean(toggle[3]); - assertEquals(false, config.logFile); assertFalse(config.getLogFile()); } - /** + /* * Test for: * - if isValidPath() validates user input log path * - if getLogPath() returns the correct log path @@ -126,18 +147,16 @@ public void testPathInput() { // Test for null path config.logPath = path[3]; - assertTrue(config.isValidPath()); - assertEquals("", config.getLogPath()); + assertFalse(config.isValidPath()); } - /** + /* * Test for: * - if archives are stored under correct file name - * - if log rollover conditions are correct - * - size roughly equal to 100MB */ File generatedPath; + String accumulatedPath; Map _logModules; @Test @@ -145,66 +164,75 @@ public void testLoggedPath() { // Test Case Default CfgLog config = new CfgLog(); - assertFalse(config.logFile && config.isValidPath()); - if(config.logFile && config.isValidPath()) { - AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); - generatedPath = testRoot.listFiles()[0]; - assertEquals("log", generatedPath.getName()); - //reset(); - } - - // Test Case 1: Enabled + Valid - config.logFile = true; - config.logPath = "log1"; - - assertTrue(config.logFile && config.isValidPath()); - if(config.logFile && config.isValidPath()) { - AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); - generatedPath = testRoot.listFiles()[0]; - assertEquals("log1", generatedPath.getName()); - reset(); - } - // Test Case 2: Enabled + Invalid - config.logFile = true; - config.logPath = "*log2*"; - - assertFalse(config.logFile && config.isValidPath()); if(config.logFile && config.isValidPath()) { AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); generatedPath = testRoot.listFiles()[0]; - assertEquals("log2*", generatedPath.getName()); + assertEquals("log", generatedPath.getName()); reset(); } - // Test Case 3: Disabled + Valid - config.logFile = false; - config.logPath = "log3"; - - assertFalse(config.logFile && config.isValidPath()); - if(config.logFile && config.isValidPath()) { - AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); - generatedPath = testRoot.listFiles()[0]; - assertEquals("log3", generatedPath.getName()); - reset(); + // All Test Case + for(int a = 0; a < 4; a++){ + for(int b = 0; b < 4; b++){ + config.logFile = Boolean.parseBoolean(toggle[a]); + config.logPath = path[b]; + + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + + accumulatedPath = generatedPath.getName(); + while(generatedPath.listFiles()[0].isDirectory()) { + generatedPath = generatedPath.listFiles()[0]; + accumulatedPath = accumulatedPath + "/" + generatedPath.getName(); + } + assertEquals(path[b], accumulatedPath); + reset(); + } + } } + } - // Test Case 4: Disabled + Invalid - config.logFile = false; - config.logPath = "*log4*"; + public void reset() { + deleteRecursively(testRoot); + testRoot.mkdirs(); + } - assertFalse(config.logFile && config.isValidPath()); - if(config.logFile && config.isValidPath()) { - AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); - generatedPath = testRoot.listFiles()[0]; - assertEquals("*log4*", generatedPath.getName()); - reset(); + public static boolean deleteRecursively(File file) { + Path path = file.toPath(); + try { + java.nio.file.Files.walkFileTree(path, new SimpleFileVisitor() { + @Override + public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) throws IOException { + java.nio.file.Files.delete(file); + return FileVisitResult.CONTINUE; + } + + @Override + public FileVisitResult visitFileFailed(final Path file, final IOException e) { + return handleException(e); + } + + private FileVisitResult handleException(final IOException e) { + // e.printStackTrace(); + return FileVisitResult.TERMINATE; + } + + @Override + public FileVisitResult postVisitDirectory(final Path dir, final IOException e) throws IOException { + if (e != null) + return handleException(e); + java.nio.file.Files.delete(dir); + return FileVisitResult.CONTINUE; + } + }); + } catch (IOException e) { + e.printStackTrace(); + return false; } - } - public void reset() { - FileUtils.deleteRecursively(generatedPath); - generatedPath.delete(); + return true; } -} \ No newline at end of file +} From 7388acfe11a9f3867ddb211ca427f1a5ac86359d Mon Sep 17 00:00:00 2001 From: jayTseng Date: Fri, 1 Jun 2018 14:27:15 -0400 Subject: [PATCH 095/129] fix merge conflict --- .../test/org/aion/zero/impl/sync/BlockPropagationTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 6f7911523d..690a796067 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -232,6 +232,11 @@ public int getMaxActiveNodes() { throw new IllegalStateException("not implemented."); } + @Override + public boolean isSyncSeedsOnly() { + return false; + } + @Override public int getMaxTempNodes() { throw new IllegalStateException("not implemented."); } From 94b973e175bc9e51c9904101ec39c79fa5cc4307 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 1 Jun 2018 14:41:55 -0400 Subject: [PATCH 096/129] fixing the bug introduced by the different branch merges --- .../src/org/aion/zero/impl/AionHubUtils.java | 14 +++----- .../aion/zero/impl/StandaloneBlockchain.java | 7 ++-- .../zero/impl/BlockchainDataRecoveryTest.java | 34 ++++++------------- 3 files changed, 17 insertions(+), 38 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionHubUtils.java b/modAionImpl/src/org/aion/zero/impl/AionHubUtils.java index 1beab75533..97fba0f1c7 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHubUtils.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHubUtils.java @@ -1,4 +1,4 @@ -/* ****************************************************************************** +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -17,15 +17,9 @@ * along with the aion network project source files. * If not, see . * - * The aion network project leverages useful source code from other - * open source projects. We greatly appreciate the effort that was - * invested in these projects and we thank the individual contributors - * for their work. For provenance information and contributors - * please see . - * - * Contributors to the aion source files in decreasing order of code volume: + * Contributors: * Aion foundation. - ******************************************************************************/ + */ package org.aion.zero.impl; import java.math.BigInteger; @@ -60,6 +54,6 @@ public static void buildGenesis(AionGenesis genesis, AionRepositoryImpl reposito track.flush(); repository.commitBlock(genesis.getHeader()); - repository.getBlockStore().saveBlock(genesis, genesis.getCumulativeDifficulty(), true); + repository.getBlockStore().saveBlock(genesis, genesis.getDifficultyBI(), true); } } diff --git a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java index dc4374cb89..660bd1fd21 100644 --- a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java +++ b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java @@ -335,11 +335,8 @@ public AbstractEnergyStrategyLimit getEnergyLimitStrategy() { } track.flush(); - // TODO: violates abstraction, consider adding to interface after - // stable - ((AionRepositoryImpl) bc.getRepository()).commitBlock(genesis.getHeader()); - ((AionBlockStore) bc.getRepository().getBlockStore()) - .saveBlock(genesis, genesis.getCumulativeDifficulty(), true); + bc.getRepository().commitBlock(genesis.getHeader()); + bc.getRepository().getBlockStore().saveBlock(genesis, genesis.getDifficultyBI(), true); bc.setBestBlock(genesis); bc.setTotalDifficulty(genesis.getDifficultyBI()); diff --git a/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java b/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java index 2743ffa95f..86caf7f16c 100644 --- a/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java +++ b/modAionImpl/test/org/aion/zero/impl/BlockchainDataRecoveryTest.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -17,21 +17,9 @@ * along with the aion network project source files. * If not, see . * - * The aion network project leverages useful source code from other - * open source projects. We greatly appreciate the effort that was - * invested in these projects and we thank the individual contributors - * for their work. For provenance information and contributors - * please see . - * - * Contributors to the aion source files in decreasing order of code volume: + * Contributors: * Aion foundation. - * team through the ethereumJ library. - * Ether.Camp Inc. (US) team through Ethereum Harmony. - * John Tromp through the Equihash solver. - * Samuel Neves through the BLAKE2 implementation. - * Zcash project team. - * Bitcoinj team. - ******************************************************************************/ + */ package org.aion.zero.impl; import org.aion.base.db.IByteArrayKeyValueDatabase; @@ -98,7 +86,7 @@ public void testRecoverWorldStateWithPartialWorldState() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); // delete some world state root entries from the database @@ -149,7 +137,7 @@ public void testRecoverWorldStateWithStartFromGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); // System.out.println(Hex.toHexString(chain.getRepository().getRoot())); @@ -202,7 +190,7 @@ public void testRecoverWorldStateWithoutGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); // delete some world state root entries from the database @@ -262,7 +250,7 @@ public void testRecoverIndexWithPartialIndex_MainChain() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); // delete index entries from the database @@ -372,7 +360,7 @@ public void testRecoverIndexWithPartialIndex_ShorterSideChain() { assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); assertThat(bestBlock.getHash()).isEqualTo(mainChainBlock.getHash()); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); // delete index entries from the database @@ -450,7 +438,7 @@ public void testRecoverIndexWithStartFromGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); // delete index entries from the database @@ -521,7 +509,7 @@ public void testRecoverIndexWithoutGenesis() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); IByteArrayKeyValueDatabase indexDatabase = repo.getIndexDatabase(); @@ -568,7 +556,7 @@ public void testRecoverIndexWithStartFromGenesisWithoutSize() { AionBlock bestBlock = chain.getBestBlock(); assertThat(bestBlock.getNumber()).isEqualTo(NUMBER_OF_BLOCKS); - AionRepositoryImpl repo = (AionRepositoryImpl) chain.getRepository(); + AionRepositoryImpl repo = chain.getRepository(); repo.flush(); // delete index entries from the database From b88dfa1a2c216437672a771735a0c6323a4e1f1b Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 1 Jun 2018 13:31:37 -0400 Subject: [PATCH 097/129] updated commenting --- .../src/org/aion/log/AionLoggerFactory.java | 3 - modMcf/src/org/aion/mcf/config/CfgLog.java | 10 +- .../test/org/aion/mcf/config/CfgLogTest.java | 226 ++++++++++++++++++ 3 files changed, 233 insertions(+), 6 deletions(-) create mode 100644 modMcf/test/org/aion/mcf/config/CfgLogTest.java diff --git a/modLogger/src/org/aion/log/AionLoggerFactory.java b/modLogger/src/org/aion/log/AionLoggerFactory.java index 08a4e84635..e5cf758e91 100644 --- a/modLogger/src/org/aion/log/AionLoggerFactory.java +++ b/modLogger/src/org/aion/log/AionLoggerFactory.java @@ -74,9 +74,6 @@ public class AionLoggerFactory { } } - /* - * Added INITIALIZE signature to include LOGFILE and LOGPATH - */ public static void init(final Map _logModules) { init(_logModules, false, "log"); } diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index 74e693ada3..88b0064c4b 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -104,6 +104,8 @@ public String toXML() { * Boolean value to allow logger to be toggled ON and OFF */ xmlWriter.writeCharacters("\t\t"); + xmlWriter.writeComment("Enable/Disable logback service; if disabled, output will not be logged."); + xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeStartElement("log-file"); xmlWriter.writeCharacters(this.logFile + ""); xmlWriter.writeEndElement(); @@ -114,6 +116,8 @@ public String toXML() { * String value to determine the folder path for log files */ xmlWriter.writeCharacters("\t\t"); + xmlWriter.writeComment("Sets the physical location on disk where log files will be stored."); + xmlWriter.writeCharacters("\r\n\t\t"); xmlWriter.writeStartElement("log-path"); xmlWriter.writeCharacters(this.logPath + ""); xmlWriter.writeEndElement(); @@ -143,17 +147,17 @@ public Map getModules() { return this.modules; } - /* Method checks whether logger is enabled/disabled */ + /** Method checks whether logger is enabled/disabled */ public boolean getLogFile() { return this.logFile; } - /* Method returns user input folder path of logger */ + /** Method returns user input folder path of logger */ public String getLogPath() { return this.logPath; } - /* Method checks folder path for illegal inputs */ + /** Method checks folder path for illegal inputs */ public boolean isValidPath() { return logPath.length() > 0 && !logPath.matches(".*[-=+,.?;:'!@#$%^&*].*"); } diff --git a/modMcf/test/org/aion/mcf/config/CfgLogTest.java b/modMcf/test/org/aion/mcf/config/CfgLogTest.java new file mode 100644 index 0000000000..c3eae3653e --- /dev/null +++ b/modMcf/test/org/aion/mcf/config/CfgLogTest.java @@ -0,0 +1,226 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ +package org.aion.mcf.config; + +import org.aion.log.AionLoggerFactory; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import java.io.File; +import java.io.IOException; +import java.nio.file.FileVisitResult; +import java.nio.file.Path; +import java.nio.file.SimpleFileVisitor; +import java.nio.file.attribute.BasicFileAttributes; +import java.util.Map; + +import static org.junit.Assert.*; + +/** + * Tests for CfgLog.java + */ +public class CfgLogTest extends CfgLog { + + private final static String[] toggle = { + "true", // valid entry + "maybe?", // invalid entry + "tRuE", // special entry + "" // null entry + }; + + private final static String[] path = { + "logger", // valid entry + "l!@#*g", // invalid entry + "log/logging/logger", // special entry + "" // null entry + }; + + private File testRoot; // Path: /home/joey/Desktop/IDE/aion/modMcf + private File generatedPath; + private String accumulatedPath; + private Map _logModules; + + @Before + public void setup() { + testRoot = new File("testLog"); + if (testRoot.exists()) { + deleteRecursively(testRoot); + testRoot.delete(); + } + testRoot.mkdirs(); + } + + @After + public void shutdown() { + if (testRoot.exists()) { + deleteRecursively(testRoot); + testRoot.delete(); + } + } + + /** + * Test for: + * - if parseBoolean() correctly parses user input + * - if getLogFile() returns the correct configuration + */ + @Test + public void testToggle() { + + // Test for default log configuration + CfgLog config = new CfgLog(); + assertFalse(config.getLogFile()); + + // Test for valid configuration + config.logFile = Boolean.parseBoolean(toggle[0]); + assertTrue(config.getLogFile()); + + // Test for capitalized entry + config.logFile = Boolean.parseBoolean(toggle[1]); + assertFalse(config.getLogFile()); + + // Test for invalid configuration + config.logFile = Boolean.parseBoolean(toggle[2]); + assertTrue(config.getLogFile()); + + // Test for null entry + config.logFile = Boolean.parseBoolean(toggle[3]); + assertFalse(config.getLogFile()); + + } + + /** + * Test for: + * - if isValidPath() validates user input log path + * - if getLogPath() returns the correct log path + */ + @Test + public void testPathInput() { + + // Test for default file path + CfgLog config = new CfgLog(); + assertTrue(config.isValidPath()); + assertEquals("log", config.getLogPath()); + + // Test for valid file path + config.logPath = path[0]; + assertTrue(config.isValidPath()); + assertEquals("logger", config.getLogPath()); + + // Test for invalid file path + config.logPath = path[1]; + assertFalse(config.isValidPath()); + + // Test for folder hierarchy path + config.logPath = path[2]; + assertTrue(config.isValidPath()); + assertEquals("log/logging/logger", config.getLogPath()); + + // Test for null path + config.logPath = path[3]; + assertFalse(config.isValidPath()); + + } + + /** + * Test for: + * - if archives are stored under correct file name + */ + @Test + public void testLoggedPath() { + + // Test Case Default + CfgLog config = new CfgLog(); + assertFalse(config.logFile && config.isValidPath()); + + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + assertEquals("log", generatedPath.getName()); + reset(); + } + + // All Test Case + for(int a = 0; a < 4; a++){ + for(int b = 0; b < 4; b++){ + config.logFile = Boolean.parseBoolean(toggle[a]); + config.logPath = path[b]; + + if(config.logFile && config.isValidPath()) { + AionLoggerFactory.init(_logModules, config.logFile, "testLog/" + config.logPath); + generatedPath = testRoot.listFiles()[0]; + + accumulatedPath = generatedPath.getName(); + while(generatedPath.listFiles()[0].isDirectory()) { + generatedPath = generatedPath.listFiles()[0]; + accumulatedPath = accumulatedPath + "/" + generatedPath.getName(); + } + assertEquals(path[b], accumulatedPath); + reset(); + } + } + } + } + + public void reset() { + deleteRecursively(testRoot); + testRoot.mkdirs(); + } + + public static boolean deleteRecursively(File file) { + Path path = file.toPath(); + try { + java.nio.file.Files.walkFileTree(path, new SimpleFileVisitor() { + @Override + public FileVisitResult visitFile(final Path file, final BasicFileAttributes attrs) throws IOException { + java.nio.file.Files.delete(file); + return FileVisitResult.CONTINUE; + } + + @Override + public FileVisitResult visitFileFailed(final Path file, final IOException e) { + return handleException(e); + } + + private FileVisitResult handleException(final IOException e) { + // e.printStackTrace(); + return FileVisitResult.TERMINATE; + } + + @Override + public FileVisitResult postVisitDirectory(final Path dir, final IOException e) throws IOException { + if (e != null) + return handleException(e); + java.nio.file.Files.delete(dir); + return FileVisitResult.CONTINUE; + } + }); + } catch (IOException e) { + e.printStackTrace(); + return false; + } + + return true; + } +} From 6ec9f879a76656085870e0515c8aaf4b6af341fc Mon Sep 17 00:00:00 2001 From: jayTseng Date: Fri, 1 Jun 2018 15:29:34 -0400 Subject: [PATCH 098/129] remove debugging cnt/log --- .../org/aion/p2p/impl1/tasks/TaskSend.java | 48 ++++--------------- 1 file changed, 9 insertions(+), 39 deletions(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index 02c04366f5..21fb6510b0 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -27,26 +27,19 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.Executors; import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.ThreadFactory; +import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.atomic.AtomicLong; import org.aion.p2p.INode; import org.aion.p2p.INodeMgr; import org.aion.p2p.IP2pMgr; import org.aion.p2p.P2pConstant; public class TaskSend implements Runnable { - public static AtomicInteger count = new AtomicInteger(0); - public static AtomicLong taskStart = new AtomicLong(0L); - public static AtomicInteger maxCount = new AtomicInteger(0); - public static AtomicLong queueing = new AtomicLong(0); - public static AtomicLong maxQueueing = new AtomicLong(0); - public static AtomicBoolean print = new AtomicBoolean(); - public static final int TOTAL_LANE = Math.min(Runtime.getRuntime().availableProcessors() << 1, 32); + private static final int TOTAL_LANE = Math.min(Runtime.getRuntime().availableProcessors() << 1, 32); + private static final int threadQlimit = 20000; private final IP2pMgr mgr; private final AtomicBoolean start; @@ -72,19 +65,13 @@ public TaskSend( this.nodeMgr = _nodeMgr; this.selector = _selector; - if (taskStart.get() == 0) { - taskStart.set(System.currentTimeMillis()); - } - ThreadFactory threadFactory = Executors.defaultThreadFactory(); - - int pNum = Runtime.getRuntime().availableProcessors(); if (tpe == null) { - tpe = new ThreadPoolExecutor(pNum - , pNum << 1 + tpe = new ThreadPoolExecutor(TOTAL_LANE + , TOTAL_LANE , 0 , TimeUnit.MILLISECONDS - , new LinkedBlockingQueue<>() - , threadFactory); + , new LinkedBlockingQueue<>(threadQlimit) + , Executors.defaultThreadFactory()); } } @@ -107,7 +94,6 @@ public void run() { long t1 = System.nanoTime(); if (mo.getLane() != lane) { sendMsgQue.offer(mo); - queueing.addAndGet(System.nanoTime()-t1); continue; } @@ -140,19 +126,6 @@ public void run() { mo.getMsg(), (ChannelBuffer) attachment, this.mgr)); - - count.incrementAndGet(); - - t4 = System.nanoTime(); - long tt = System.currentTimeMillis(); - if ((tt - taskStart.get()) > 999) { - taskStart.set(tt); - maxCount.set(Math.max(maxCount.get(), count.get())); - maxQueueing.set(queueing.get()); - count.set(0); - queueing.set(0); - print.set(true); - } } } } else { @@ -161,14 +134,11 @@ public void run() { .println(getNodeNotExitMsg(mo.getDest().name(), mo.getDisplayId())); } } - - if (print.get()) { - System.out.println(Thread.currentThread().getName() + " t12:" + (t2-t1) + " t23:" + (t3-t2) + " t34:"+ (t4-t3) + " max msgOut/ms: " + maxCount.get() + " Queueing/ms: " + (maxQueueing.get()/1000000L)); - print.set(false); - } } catch (InterruptedException e) { if (this.mgr.isShowLog()) { System.out.println(""); } return; + } catch (RejectedExecutionException e) { + if (this.mgr.isShowLog()) { System.out.println(""); } } catch (Exception e) { if (this.mgr.isShowLog()) { e.printStackTrace(); } } From 6b57d9f0e8445b076271f14e2a8430a925cb273d Mon Sep 17 00:00:00 2001 From: jayTseng Date: Fri, 1 Jun 2018 15:36:20 -0400 Subject: [PATCH 099/129] remove unused variable --- .../org/aion/p2p/impl1/tasks/TaskSend.java | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index 21fb6510b0..93fb1fd64c 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -38,7 +38,8 @@ public class TaskSend implements Runnable { - private static final int TOTAL_LANE = Math.min(Runtime.getRuntime().availableProcessors() << 1, 32); + private static final int TOTAL_LANE = Math + .min(Runtime.getRuntime().availableProcessors() << 1, 32); private static final int threadQlimit = 20000; private final IP2pMgr mgr; @@ -51,12 +52,12 @@ public class TaskSend implements Runnable { private static ThreadPoolExecutor tpe; public TaskSend( - IP2pMgr _mgr, - int _lane, - BlockingQueue _sendMsgQue, - AtomicBoolean _start, - INodeMgr _nodeMgr, - Selector _selector) { + IP2pMgr _mgr, + int _lane, + BlockingQueue _sendMsgQue, + AtomicBoolean _start, + INodeMgr _nodeMgr, + Selector _selector) { this.mgr = _mgr; this.lane = _lane; @@ -97,7 +98,6 @@ public void run() { continue; } - long t2 = System.nanoTime(); INode node = null; switch (mo.getDest()) { case ACTIVE: @@ -111,9 +111,6 @@ public void run() { break; } - long t3 = System.nanoTime(); - - long t4 = 0L; if (node != null) { SelectionKey sk = node.getChannel().keyFor(selector); if (sk != null) { @@ -135,19 +132,24 @@ public void run() { } } } catch (InterruptedException e) { - if (this.mgr.isShowLog()) { System.out.println(""); } + if (this.mgr.isShowLog()) { + System.out.println(""); + } return; } catch (RejectedExecutionException e) { - if (this.mgr.isShowLog()) { System.out.println(""); } + if (this.mgr.isShowLog()) { + System.out.println(""); + } } catch (Exception e) { - if (this.mgr.isShowLog()) { e.printStackTrace(); } + if (this.mgr.isShowLog()) { + e.printStackTrace(); + } } } } // hash mapping channel id to write thread. - public static - int hash2Lane(int in) { + static int hash2Lane(int in) { in ^= in >> (32 - 5); in ^= in >> (32 - 10); in ^= in >> (32 - 15); From 67712be5108f3d0e98163740ea31d2bb39ac017c Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 1 Jun 2018 15:36:58 -0400 Subject: [PATCH 100/129] bugfix: missing null checks --- modAionImpl/src/org/aion/zero/impl/AionHub.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 2695bd2fd8..be9ee19538 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -259,7 +259,10 @@ private void loadBlockchain() { this.repository.getBlockStore().load(); AionBlock bestBlock = this.repository.getBlockStore().getBestBlock(); - bestBlock.setCumulativeDifficulty(repository.getBlockStore().getTotalDifficultyForHash(bestBlock.getHash())); + if (bestBlock != null) { + bestBlock + .setCumulativeDifficulty(repository.getBlockStore().getTotalDifficultyForHash(bestBlock.getHash())); + } boolean recovered = true; boolean bestBlockShifted = true; @@ -307,8 +310,10 @@ private void loadBlockchain() { if (recovered) { bestBlock = this.repository.getBlockStore().getBestBlock(); - bestBlock.setCumulativeDifficulty(repository.getBlockStore() - .getTotalDifficultyForHash(bestBlock.getHash())); + if (bestBlock != null) { + bestBlock.setCumulativeDifficulty(repository.getBlockStore() + .getTotalDifficultyForHash(bestBlock.getHash())); + } // checking is the best block has changed since attempting recovery if (bestBlock == null) { From bc3f2c802104f65119d55bdd366257813b21f001 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Fri, 1 Jun 2018 17:30:36 -0400 Subject: [PATCH 101/129] add license --- .../zero/impl/sync/BlockPropagationTest.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 690a796067..2fc855c505 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2017-2018 Aion foundation. + * + * This file is part of the aion network project. + * + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or any later version. + * + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with the aion network project source files. + * If not, see . + * + * Contributors: + * Aion foundation. + */ package org.aion.zero.impl.sync; import static com.google.common.truth.Truth.assertThat; From 7770c9c0ee56007728a50d13439daccacce8b476 Mon Sep 17 00:00:00 2001 From: Victor Balan Date: Mon, 4 Jun 2018 16:48:03 +0300 Subject: [PATCH 102/129] AW-103 Add local.storage.dir flag --- modMcf/src/org/aion/mcf/account/Keystore.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modMcf/src/org/aion/mcf/account/Keystore.java b/modMcf/src/org/aion/mcf/account/Keystore.java index f4b137a2fb..6ad0f6132b 100644 --- a/modMcf/src/org/aion/mcf/account/Keystore.java +++ b/modMcf/src/org/aion/mcf/account/Keystore.java @@ -64,13 +64,22 @@ public class Keystore { private static final Logger LOG = AionLoggerFactory.getLogger(LogEnum.API.name()); - private static final String KEYSTORE_PATH = System.getProperty("user.dir") + "/keystore"; - private static final Path PATH = Paths.get(KEYSTORE_PATH); private static final FileDateTimeComparator COMPARE = new FileDateTimeComparator(); private static final Pattern HEX_64 = Pattern.compile("^[\\p{XDigit}]{64}$"); private static final String ADDR_PREFIX = "0x"; private static final String AION_PREFIX = "a0"; private static final int IMPORT_LIMIT = 100; + private static final String KEYSTORE_PATH; + private static final Path PATH; + + static { + String storageDir = System.getProperty("local.storage.dir"); + if (storageDir == null || storageDir.equalsIgnoreCase("")) { + storageDir = System.getProperty("user.dir"); + } + KEYSTORE_PATH = storageDir + "/keytstore"; + PATH = Paths.get(KEYSTORE_PATH); + } private static List getFiles() { File[] files = PATH.toFile().listFiles(); From bfbc0d73071eb7a6b55299af62771a961c2ffd35 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Mon, 4 Jun 2018 11:52:13 -0400 Subject: [PATCH 103/129] refactor p2p module --- modP2p/src/org/aion/p2p/INodeMgr.java | 7 +- .../src/org/aion/p2p/impl/comm/NodeMgr.java | 159 +++++++++++------- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 9 +- .../src/org/aion/p2p/impl1/tasks/MsgIn.java | 6 +- .../src/org/aion/p2p/impl1/tasks/MsgOut.java | 13 +- .../org/aion/p2p/impl1/tasks/TaskClear.java | 34 +--- .../p2p/impl1/tasks/TaskConnectPeers.java | 67 +++++--- .../org/aion/p2p/impl1/tasks/TaskInbound.java | 28 +-- .../org/aion/p2p/impl1/tasks/TaskReceive.java | 29 +++- .../org/aion/p2p/impl1/tasks/TaskSend.java | 12 +- .../org/aion/p2p/impl1/tasks/TaskStatus.java | 27 +-- .../org/aion/p2p/impl1/tasks/TaskWrite.java | 44 ++--- 12 files changed, 234 insertions(+), 201 deletions(-) diff --git a/modP2p/src/org/aion/p2p/INodeMgr.java b/modP2p/src/org/aion/p2p/INodeMgr.java index 0938d84324..cb7c831f20 100644 --- a/modP2p/src/org/aion/p2p/INodeMgr.java +++ b/modP2p/src/org/aion/p2p/INodeMgr.java @@ -27,16 +27,12 @@ public interface INodeMgr { - void timeoutActive(final IP2pMgr _p2pMgr); - void moveInboundToActive(int _channelHashCode, final IP2pMgr _p2pMgr); void moveOutboundToActive(int _nodeIdHash, String _shortId, final IP2pMgr _p2pMgr); void dropActive(int _nodeIdHash, final IP2pMgr _p2pMgr, String _reason); - void timeoutInbound(IP2pMgr _p2pMgr); - Map getOutboundNodes(); int activeNodesSize(); @@ -47,7 +43,7 @@ public interface INodeMgr { void addTempNode(INode _n); - boolean hasActiveNode(int k); + boolean notActiveNode(int k); void addOutboundNode(INode _n); @@ -77,4 +73,5 @@ public interface INodeMgr { Map getActiveNodesMap(); + void timeoutCheck(IP2pMgr mgr); } diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index 3dd908915d..fd7b34e546 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -22,6 +22,8 @@ */ package org.aion.p2p.impl.comm; +import java.nio.ByteBuffer; +import java.security.SecureRandom; import org.aion.p2p.INode; import org.aion.p2p.INodeMgr; import org.aion.p2p.IP2pMgr; @@ -35,21 +37,22 @@ public class NodeMgr implements INodeMgr { private final static int TIMEOUT_INBOUND_NODES = 10000; + private static final int TIMEOUT_OUTBOUND_NODES = 20000; + private final int maxActiveNodes; private final int maxTempNodes; + private static final Random random = new SecureRandom(ByteBuffer.allocate(Long.BYTES).putLong(System.currentTimeMillis()).array()); + private final Set seedIps = new HashSet<>(); - // private final Set multiActiveAllowIps = new HashSet<>(Arrays.asList( - // - // )); private final BlockingQueue tempNodes = new LinkedBlockingQueue<>(); private final Map outboundNodes = new ConcurrentHashMap<>(); private final Map inboundNodes = new ConcurrentHashMap<>(); private final Map activeNodes = new ConcurrentHashMap<>(); - public NodeMgr(int _maxActiveNodes, int _maxTempNodes){ + public NodeMgr(int _maxActiveNodes, int _maxTempNodes) { this.maxActiveNodes = _maxActiveNodes; this.maxTempNodes = _maxTempNodes; } @@ -78,11 +81,11 @@ public String dumpNodeInfo(String selfShortId) { StringBuilder sb = new StringBuilder(); sb.append("\n"); sb.append(String.format( - "======================================================================== p2p-status-%6s =========================================================================\n", - selfShortId)); + "======================================================================== p2p-status-%6s =========================================================================\n", + selfShortId)); sb.append(String.format( - "temp[%3d] inbound[%3d] outbound[%3d] active[%3d] s - seed node, td - total difficulty, # - block number, bv - binary version\n", - tempNodesSize(), inboundNodes.size(), outboundNodes.size(), activeNodes.size())); + "temp[%3d] inbound[%3d] outbound[%3d] active[%3d] s - seed node, td - total difficulty, # - block number, bv - binary version\n", + tempNodesSize(), inboundNodes.size(), outboundNodes.size(), activeNodes.size())); List sorted = new ArrayList<>(activeNodes.values()); if (sorted.size() > 0) { sb.append("\n s"); // id & seed @@ -95,27 +98,29 @@ public String dumpNodeInfo(String selfShortId) { sb.append(" bv"); sb.append(" ci\n"); sb.append( - "--------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"); + "--------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"); sorted.sort((n1, n2) -> { int tdCompare = n2.getTotalDifficulty().compareTo(n1.getTotalDifficulty()); if (tdCompare == 0) { Long n2Bn = n2.getBestBlockNumber(); Long n1Bn = n1.getBestBlockNumber(); return n2Bn.compareTo(n1Bn); - } else + } else { return tdCompare; + } }); for (INode n : sorted) { try { sb.append(String.format("id:%6s %c %16s %10d %64s %15s %5d %8s %15s %12s\n", - n.getIdShort(), - n.getIfFromBootList() ? 'y' : ' ', n.getTotalDifficulty().toString(10), - n.getBestBlockNumber(), - n.getBestBlockHash() == null ? "" : bytesToHex(n.getBestBlockHash()), n.getIpStr(), - n.getPort(), - n.getConnection(), - n.getBinaryVersion(), - n.getChannel().hashCode()) + n.getIdShort(), + n.getIfFromBootList() ? 'y' : ' ', n.getTotalDifficulty().toString(10), + n.getBestBlockNumber(), + n.getBestBlockHash() == null ? "" : bytesToHex(n.getBestBlockHash()), + n.getIpStr(), + n.getPort(), + n.getConnection(), + n.getBinaryVersion(), + n.getChannel().hashCode()) ); } catch (Exception ex) { ex.printStackTrace(); @@ -143,7 +148,7 @@ public boolean isSeedIp(String _ip) { */ @Override public synchronized void addTempNode(final INode _n) { - if(tempNodes.size() < maxTempNodes) { + if (tempNodes.size() < maxTempNodes) { tempNodes.add(_n); } } @@ -174,8 +179,8 @@ public int activeNodesSize() { } @Override - public boolean hasActiveNode(int k) { - return activeNodes.containsKey(k); + public boolean notActiveNode(int k) { + return !activeNodes.containsKey(k); } @Override @@ -204,42 +209,60 @@ public INode allocNode(String ip, int p0) { @Override public List getActiveNodesList() { - return new ArrayList(activeNodes.values()); + return new ArrayList<>(activeNodes.values()); + } + + @Override + public HashMap getActiveNodesMap() { + synchronized (activeNodes) { + return new HashMap<>(activeNodes); + } } @Override - public Map getActiveNodesMap() { - synchronized(activeNodes){ - return new HashMap(activeNodes); + public void timeoutCheck(IP2pMgr mgr) { + timeoutInbound(mgr); + timeoutOutBound(mgr); + timeoutActive(mgr); + } + + private void timeoutOutBound(IP2pMgr mgr) { + Iterator outboundIt = getOutboundNodes().keySet().iterator(); + while (outboundIt.hasNext()) { + int outBound = outboundIt.next(); + INode node = getOutboundNodes().get(outBound); + if (System.currentTimeMillis() - node.getTimestamp() + > TIMEOUT_OUTBOUND_NODES) { + mgr.closeSocket( + node.getChannel(), + "outbound-timeout node=" + node.getIdShort() + " ip=" + node.getIpStr()); + outboundIt.remove(); + } } } @Override public INode getRandom() { - int nodesCount = activeNodes.size(); - if (nodesCount > 0) { - Random r = new Random(System.currentTimeMillis()); - List keysArr = new ArrayList<>(activeNodes.keySet()); + if (!activeNodes.isEmpty()) { + Object[] keysArr = activeNodes.keySet().toArray(); try { - int randomNodeKeyIndex = r.nextInt(keysArr.size()); - int randomNodeKey = keysArr.get(randomNodeKeyIndex); - return this.getActiveNode(randomNodeKey); + return this.getActiveNode((Integer) keysArr[random.nextInt(keysArr.length)]); } catch (IllegalArgumentException e) { System.out.println(""); return null; } - } else + } else { return null; + } } /** * @param _ip String * @return boolean - * @warning not thread safe - * helper function to check a specific ip a node associated with is - * is allowed to add to active list + * @warning not thread safe helper function to check a specific ip a node associated with is is + * allowed to add to active list */ - private boolean activeIpAllow(String _ip){ + private boolean activeIpAllow(String _ip) { return true; // enable this in case // if(multiActiveAllowIps.contains(_ip)) @@ -254,7 +277,7 @@ private boolean activeIpAllow(String _ip){ /** * @param _channelHashCode int - * @param _p2pMgr P2pMgr + * @param _p2pMgr P2pMgr */ // Attention: move node from container need sync to avoid node not belong to // any container during transit. @@ -262,12 +285,12 @@ public synchronized void moveInboundToActive(int _channelHashCode, final IP2pMgr INode node = inboundNodes.remove(_channelHashCode); if (node != null) { - if(activeNodes.size() >= maxActiveNodes){ + if (activeNodes.size() >= maxActiveNodes) { _p2pMgr.closeSocket(node.getChannel(), "inbound -> active, active full"); return; } - if(node.getIdHash() == _p2pMgr.getSelfIdHash()){ + if (node.getIdHash() == _p2pMgr.getSelfIdHash()) { _p2pMgr.closeSocket(node.getChannel(), "inbound -> active, self-connected"); return; } @@ -293,30 +316,32 @@ public synchronized void moveInboundToActive(int _channelHashCode, final IP2pMgr /** * @param _nodeIdHash int - * @param _shortId String - * @param _p2pMgr P2pMgr + * @param _shortId String + * @param _p2pMgr P2pMgr */ // Attention: move node from container need sync to avoid node not belong to // any container during transit. - public synchronized void moveOutboundToActive(int _nodeIdHash, String _shortId, final IP2pMgr _p2pMgr) { + public synchronized void moveOutboundToActive(int _nodeIdHash, String _shortId, + final IP2pMgr _p2pMgr) { INode node = outboundNodes.remove(_nodeIdHash); if (node != null) { - if(activeNodes.size() >= maxActiveNodes){ + if (activeNodes.size() >= maxActiveNodes) { _p2pMgr.closeSocket(node.getChannel(), "outbound -> active, active full"); return; } - if(node.getIdHash() == _p2pMgr.getSelfIdHash()){ + if (node.getIdHash() == _p2pMgr.getSelfIdHash()) { _p2pMgr.closeSocket(node.getChannel(), "outbound -> active, self-connected"); return; } node.setConnection("outbound"); INode previous = activeNodes.putIfAbsent(_nodeIdHash, node); - if (previous != null) - _p2pMgr.closeSocket(node.getChannel(), "outbound -> active, node " + previous.getIdShort() + " exits"); - else { + if (previous != null) { + _p2pMgr.closeSocket(node.getChannel(), + "outbound -> active, node " + previous.getIdShort() + " exits"); + } else { if (_p2pMgr.isShowLog()) { System.out.println( " active node-id=" + _shortId + " ip=" + node.getIpStr() @@ -326,10 +351,10 @@ public synchronized void moveOutboundToActive(int _nodeIdHash, String _shortId, } } - public void timeoutInbound(final IP2pMgr _p2pMgr) { - Iterator inboundIt = inboundNodes.keySet().iterator(); + private void timeoutInbound(final IP2pMgr _p2pMgr) { + Iterator inboundIt = inboundNodes.keySet().iterator(); while (inboundIt.hasNext()) { - int key = (int) inboundIt.next(); + int key = inboundIt.next(); INode node = inboundNodes.get(key); if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_INBOUND_NODES) { _p2pMgr.closeSocket(node.getChannel(), "inbound-timeout ip=" + node.getIpStr()); @@ -338,28 +363,31 @@ public void timeoutInbound(final IP2pMgr _p2pMgr) { } } - public void timeoutActive(IP2pMgr _p2pMgr) { + private void timeoutActive(IP2pMgr _p2pMgr) { long now = System.currentTimeMillis(); - OptionalDouble average = activeNodes.values().stream().mapToLong(n -> now - n.getTimestamp()).average(); + OptionalDouble average = activeNodes.values().stream() + .mapToLong(n -> now - n.getTimestamp()).average(); double timeout = average.orElse(4000) * 5; timeout = Math.max(10000, Math.min(timeout, 60000)); if (_p2pMgr.isShowLog()) { System.out.printf("\n", average.orElse(0)); } - Iterator activeIt = activeNodes.keySet().iterator(); + Iterator activeIt = activeNodes.keySet().iterator(); while (activeIt.hasNext()) { - int key = (int) activeIt.next(); + int key = activeIt.next(); INode node = getActiveNode(key); if (now - node.getTimestamp() > timeout) { - _p2pMgr.closeSocket(node.getChannel(), "active-timeout node=" + node.getIdShort() + " ip=" + node.getIpStr()); + _p2pMgr.closeSocket(node.getChannel(), + "active-timeout node=" + node.getIdShort() + " ip=" + node.getIpStr()); activeIt.remove(); } if (!node.getChannel().isConnected()) { - _p2pMgr.closeSocket(node.getChannel(), "channel-already-closed node=" + node.getIdShort() + " ip=" + node.getIpStr()); + _p2pMgr.closeSocket(node.getChannel(), + "channel-already-closed node=" + node.getIdShort() + " ip=" + node.getIpStr()); activeIt.remove(); } } @@ -380,23 +408,26 @@ public void dropActive(int nodeIdHash, final IP2pMgr _p2pMgr, String _reason) { public void shutdown(final IP2pMgr _p2pMgr) { try { - synchronized (outboundNodes){ - outboundNodes.forEach((k, n) -> _p2pMgr.closeSocket(n.getChannel(), "p2p-shutdown outbound node=" + n.getIdShort() + " ip=" + n.getIpStr())); + synchronized (outboundNodes) { + outboundNodes.forEach((k, n) -> _p2pMgr.closeSocket(n.getChannel(), + "p2p-shutdown outbound node=" + n.getIdShort() + " ip=" + n.getIpStr())); outboundNodes.clear(); } - synchronized (inboundNodes){ - inboundNodes.forEach((k, n) -> _p2pMgr.closeSocket(n.getChannel(), "p2p-shutdown inbound ip=" + n.getIpStr())); + synchronized (inboundNodes) { + inboundNodes.forEach((k, n) -> _p2pMgr + .closeSocket(n.getChannel(), "p2p-shutdown inbound ip=" + n.getIpStr())); inboundNodes.clear(); } - synchronized (activeNodes){ - activeNodes.forEach((k, n) -> _p2pMgr.closeSocket(n.getChannel(), "p2p-shutdown active node=" + n.getIdShort() + " ip=" + n.getIpStr())); + synchronized (activeNodes) { + activeNodes.forEach((k, n) -> _p2pMgr.closeSocket(n.getChannel(), + "p2p-shutdown active node=" + n.getIdShort() + " ip=" + n.getIpStr())); activeNodes.clear(); } } catch (Exception e) { - + e.printStackTrace(); } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 1eb3ce30aa..57bb8059f9 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -32,7 +32,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; -import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; @@ -87,6 +86,7 @@ public final class P2pMgr implements IP2pMgr { private final Map> handlers = new ConcurrentHashMap<>(); private final Set versions = new HashSet<>(); private final Map errCnt = Collections.synchronizedMap(new LRUMap<>(128)); + private final AtomicBoolean start = new AtomicBoolean(true); private ServerSocketChannel tcpServer; private Selector selector; @@ -94,7 +94,6 @@ public final class P2pMgr implements IP2pMgr { private int errTolerance; private BlockingQueue sendMsgQue = new LinkedBlockingQueue<>(); private BlockingQueue receiveMsgQue = new LinkedBlockingQueue<>(); - private AtomicBoolean start = new AtomicBoolean(true); private static ReqHandshake1 cachedReqHandshake1; private static ResHandshake1 cachedResHandshake1; @@ -197,7 +196,7 @@ public void run() { thrdOut.start(); } - for (int i = 0, m = Runtime.getRuntime().availableProcessors(); i < m; i++) { + for (int i = 0; i < pNum; i++) { Thread t = new Thread(getReceiveInstance(), "p2p-worker-" + i); t.setPriority(Thread.NORM_PRIORITY); t.start(); @@ -350,7 +349,7 @@ public boolean validateNode(final INode _node) { boolean notSelfId = !Arrays.equals(_node.getId(), this.selfNodeId); boolean notSameIpOrPort = !(Arrays.equals(selfIp, _node.getIp()) && selfPort == _node.getPort()); - boolean notActive = !nodeMgr.hasActiveNode(_node.getIdHash()); + boolean notActive = nodeMgr.notActiveNode(_node.getIdHash()); boolean notOutbound = !nodeMgr.getOutboundNodes().containsKey(_node.getIdHash()); return notSelfId && notSameIpOrPort && notActive && notOutbound; } else { @@ -383,7 +382,7 @@ public INode getRandom() { @Override public Map getActiveNodes() { - return new HashMap<>(this.nodeMgr.getActiveNodesMap()); + return this.nodeMgr.getActiveNodesMap(); } @Override diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java index 046d0a03b2..bff5fd7e23 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgIn.java @@ -39,7 +39,7 @@ public class MsgIn { * @param route The route. * @param msg The message. */ - public MsgIn(int nodeId, String displayId, int route, byte[] msg) { + MsgIn(final int nodeId, final String displayId, final int route, final byte[] msg) { this.nodeId = nodeId; this.displayId = displayId; this.route = route; @@ -50,11 +50,11 @@ public int getNodeId() { return this.nodeId; } - public String getDisplayId() { + String getDisplayId() { return this.displayId; } - public int getRoute() { + int getRoute() { return this.route; } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java index 5e7b139657..1c6c3c0b0b 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/MsgOut.java @@ -29,6 +29,7 @@ * An outgoing message. */ public class MsgOut { + private final int nodeId; private final String displayId; private final int lane; @@ -44,20 +45,20 @@ public class MsgOut { * @param msg The message. * @param dest The destination. */ - public MsgOut(int nodeId, String displayId, Msg msg, Dest dest) { + public MsgOut(final int nodeId, final String displayId, final Msg msg, final Dest dest) { this.nodeId = nodeId; this.displayId = displayId; this.msg = msg; this.dest = dest; this.lane = TaskSend.hash2Lane(nodeId); - timestamp = System.currentTimeMillis(); + this.timestamp = System.currentTimeMillis(); } public int getNodeId() { return this.nodeId; } - public String getDisplayId() { + String getDisplayId() { return this.displayId; } @@ -65,7 +66,7 @@ public Msg getMsg() { return this.msg; } - public Dest getDest() { + Dest getDest() { return this.dest; } @@ -73,7 +74,7 @@ public long getTimestamp() { return this.timestamp; } - public int getLane() { - return lane; + int getLane() { + return this.lane; } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index f2851a477c..c4c65bee53 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -22,21 +22,19 @@ */ package org.aion.p2p.impl1.tasks; -import java.util.Iterator; import java.util.concurrent.atomic.AtomicBoolean; -import org.aion.p2p.INode; import org.aion.p2p.INodeMgr; import org.aion.p2p.IP2pMgr; public class TaskClear implements Runnable { + private static final int PERIOD_CLEAR = 20000; - private static final int TIMEOUT_OUTBOUND_NODES = 20000; private final IP2pMgr mgr; private final INodeMgr nodeMgr; - private AtomicBoolean start; + private final AtomicBoolean start; - public TaskClear(IP2pMgr _mgr, INodeMgr _nodeMgr, AtomicBoolean _start) { + public TaskClear(final IP2pMgr _mgr, final INodeMgr _nodeMgr, final AtomicBoolean _start) { this.mgr = _mgr; this.nodeMgr = _nodeMgr; this.start = _start; @@ -47,31 +45,9 @@ public void run() { while (start.get()) { try { Thread.sleep(PERIOD_CLEAR); - - nodeMgr.timeoutInbound(this.mgr); - - Iterator outboundIt = nodeMgr.getOutboundNodes().keySet().iterator(); - while (outboundIt.hasNext()) { - - Object obj = outboundIt.next(); - - if (obj == null) { continue; } - - int nodeIdHash = (int) obj; - INode node = nodeMgr.getOutboundNodes().get(nodeIdHash); - - if (node == null) { continue; } - - if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_OUTBOUND_NODES) { - this.mgr.closeSocket( - node.getChannel(), "outbound-timeout node=" + node.getIdShort() + " ip=" + node.getIpStr()); - outboundIt.remove(); - } - } - - nodeMgr.timeoutActive(this.mgr); - + nodeMgr.timeoutCheck(this.mgr); } catch (Exception e) { + e.printStackTrace(); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index fea763fd0d..46b7937b67 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -36,25 +36,26 @@ import org.aion.p2p.impl1.P2pMgr.Dest; public class TaskConnectPeers implements Runnable { + private static final int PERIOD_CONNECT_OUTBOUND = 1000; private static final int TIMEOUT_OUTBOUND_CONNECT = 10000; private final INodeMgr nodeMgr; private final int maxActiveNodes; private final IP2pMgr mgr; - private AtomicBoolean start; - private BlockingQueue sendMsgQue; - private Selector selector; - private ReqHandshake1 cachedReqHandshake1; + private final AtomicBoolean start; + private final BlockingQueue sendMsgQue; + private final Selector selector; + private final ReqHandshake1 cachedReqHS; public TaskConnectPeers( - IP2pMgr _mgr, - AtomicBoolean _start, - INodeMgr _nodeMgr, - int _maxActiveNodes, - Selector _selector, - BlockingQueue _sendMsgQue, - ReqHandshake1 _cachedReqHandshake1) { + final IP2pMgr _mgr, + final AtomicBoolean _start, + final INodeMgr _nodeMgr, + final int _maxActiveNodes, + final Selector _selector, + final BlockingQueue _sendMsgQue, + final ReqHandshake1 _cachedReqHS) { this.start = _start; this.nodeMgr = _nodeMgr; @@ -62,7 +63,7 @@ public TaskConnectPeers( this.mgr = _mgr; this.selector = _selector; this.sendMsgQue = _sendMsgQue; - this.cachedReqHandshake1 = _cachedReqHandshake1; + this.cachedReqHS = _cachedReqHS; } @Override @@ -72,7 +73,9 @@ public void run() { try { Thread.sleep(PERIOD_CONNECT_OUTBOUND); } catch (InterruptedException e) { - if (this.mgr.isShowLog()) { System.out.println(getTcpInterruptedMsg()); } + if (this.mgr.isShowLog()) { + System.out.println(getTcpInterruptedMsg()); + } } if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { @@ -85,29 +88,37 @@ public void run() { INode node; try { node = this.nodeMgr.tempNodesTake(); - if (this.nodeMgr.isSeedIp(node.getIpStr())) { node.setFromBootList(true); } - if (node.getIfFromBootList()) { this.nodeMgr.addTempNode(node); } + if (this.nodeMgr.isSeedIp(node.getIpStr())) { + node.setFromBootList(true); + } + if (node.getIfFromBootList()) { + this.nodeMgr.addTempNode(node); + } // if (node.peerMetric.shouldNotConn()) { // continue; // } } catch (InterruptedException e) { - if (this.mgr.isShowLog()) { System.out.println(getTcpInterruptedMsg()); } + if (this.mgr.isShowLog()) { + System.out.println(getTcpInterruptedMsg()); + } return; } catch (Exception e) { - if (this.mgr.isShowLog()) { e.printStackTrace(); } + if (this.mgr.isShowLog()) { + e.printStackTrace(); + } continue; } int nodeIdHash = node.getIdHash(); if (!this.nodeMgr.getOutboundNodes().containsKey(nodeIdHash) - && !this.nodeMgr.hasActiveNode(nodeIdHash)) { + && this.nodeMgr.notActiveNode(nodeIdHash)) { int _port = node.getPort(); try { SocketChannel channel = SocketChannel.open(); channel.socket() - .connect( - new InetSocketAddress(node.getIpStr(), _port), - TIMEOUT_OUTBOUND_CONNECT); + .connect( + new InetSocketAddress(node.getIpStr(), _port), + TIMEOUT_OUTBOUND_CONNECT); this.mgr.configChannel(channel); if (channel.finishConnect() && channel.isConnected()) { @@ -129,11 +140,11 @@ public void run() { System.out.println(getPrepRqstMsg(node.getIdShort(), node.getIpStr())); } this.sendMsgQue.offer( - new MsgOut( - node.getIdHash(), - node.getIdShort(), - this.cachedReqHandshake1, - Dest.OUTBOUND)); + new MsgOut( + node.getIdHash(), + node.getIdShort(), + this.cachedReqHS, + Dest.OUTBOUND)); // node.peerMetric.decFailedCount(); } else { @@ -149,7 +160,9 @@ public void run() { } // node.peerMetric.incFailedCount(); } catch (Exception e) { - if (this.mgr.isShowLog()) e.printStackTrace(); + if (this.mgr.isShowLog()) { + e.printStackTrace(); + } } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index 8a721b7ee3..02ef274bcb 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -62,22 +62,22 @@ public class TaskInbound implements Runnable { private final Selector selector; private final INodeMgr nodeMgr; private final Map> handlers; - private AtomicBoolean start; - private ServerSocketChannel tcpServer; - private BlockingQueue sendMsgQue; - private ResHandshake1 cachedResHandshake1; - private BlockingQueue receiveMsgQue; + private final AtomicBoolean start; + private final ServerSocketChannel tcpServer; + private final BlockingQueue sendMsgQue; + private final ResHandshake1 cachedResHandshake1; + private final BlockingQueue receiveMsgQue; public TaskInbound( - IP2pMgr _mgr, - Selector _selector, - AtomicBoolean _start, - INodeMgr _nodeMgr, - ServerSocketChannel _tcpServer, - Map> _handlers, - BlockingQueue _sendMsgQue, - ResHandshake1 _cachedResHandshake1, - BlockingQueue _receiveMsgQue) { + final IP2pMgr _mgr, + final Selector _selector, + final AtomicBoolean _start, + final INodeMgr _nodeMgr, + final ServerSocketChannel _tcpServer, + final Map> _handlers, + final BlockingQueue _sendMsgQue, + final ResHandshake1 _cachedResHandshake1, + final BlockingQueue _receiveMsgQue) { this.mgr = _mgr; this.selector = _selector; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index b5af5e5e0d..14d20b358b 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -29,16 +29,17 @@ import org.aion.p2p.Handler; public class TaskReceive implements Runnable { + private final AtomicBoolean start; private final BlockingQueue receiveMsgQue; private final Map> handlers; private final boolean showLog; public TaskReceive( - AtomicBoolean _start, - BlockingQueue _receiveMsgQue, - Map> _handlers, - boolean _showLog) { + final AtomicBoolean _start, + final BlockingQueue _receiveMsgQue, + final Map> _handlers, + final boolean _showLog) { this.start = _start; this.receiveMsgQue = _receiveMsgQue; this.handlers = _handlers; @@ -52,21 +53,31 @@ public void run() { MsgIn mi = this.receiveMsgQue.take(); List hs = this.handlers.get(mi.getRoute()); - if (hs == null) { continue; } + if (hs == null) { + continue; + } for (Handler hlr : hs) { - if (hlr == null) { continue; } + if (hlr == null) { + continue; + } try { hlr.receive(mi.getNodeId(), mi.getDisplayId(), mi.getMsg()); } catch (Exception e) { - if (this.showLog) { e.printStackTrace(); } + if (this.showLog) { + e.printStackTrace(); + } } } } catch (InterruptedException e) { - if (this.showLog) { System.out.println(""); } + if (this.showLog) { + System.out.println(""); + } return; } catch (Exception e) { - if (this.showLog) { e.printStackTrace(); } + if (this.showLog) { + e.printStackTrace(); + } } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index 93fb1fd64c..d4f4156d50 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -52,12 +52,12 @@ public class TaskSend implements Runnable { private static ThreadPoolExecutor tpe; public TaskSend( - IP2pMgr _mgr, - int _lane, - BlockingQueue _sendMsgQue, - AtomicBoolean _start, - INodeMgr _nodeMgr, - Selector _selector) { + final IP2pMgr _mgr, + final int _lane, + final BlockingQueue _sendMsgQue, + final AtomicBoolean _start, + final INodeMgr _nodeMgr, + final Selector _selector) { this.mgr = _mgr; this.lane = _lane; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index 38a16ea850..b62a4dae20 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -26,16 +26,17 @@ import org.aion.p2p.INodeMgr; public class TaskStatus implements Runnable { + private final INodeMgr nodeMgr; private final String selfShortId; - private BlockingQueue sendMsgQue; - private BlockingQueue receiveMsgQue; + private final BlockingQueue sendMsgQue; + private final BlockingQueue receiveMsgQue; public TaskStatus( - INodeMgr _nodeMgr, - String _selfShortId, - BlockingQueue _sendMsgQue, - BlockingQueue _receiveMsgQue) { + final INodeMgr _nodeMgr, + final String _selfShortId, + final BlockingQueue _sendMsgQue, + final BlockingQueue _receiveMsgQue) { this.nodeMgr = _nodeMgr; this.selfShortId = _selfShortId; this.sendMsgQue = _sendMsgQue; @@ -48,13 +49,13 @@ public void run() { String status = this.nodeMgr.dumpNodeInfo(this.selfShortId); System.out.println(status); System.out.println("--------------------------------------------------------------------" + - "-------------------------------------------------------------------------------" + - "-----------------"); + "-------------------------------------------------------------------------------" + + "-----------------"); System.out.println( - "recv queue [" - + this.receiveMsgQue.size() - + "] send queue [" - + this.sendMsgQue.size() - + "]\n"); + "recv queue [" + + this.receiveMsgQue.size() + + "] send queue [" + + this.sendMsgQue.size() + + "]\n"); } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java index 38e3dacbd4..729027c448 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java @@ -30,23 +30,25 @@ import org.aion.p2p.IP2pMgr; import org.aion.p2p.Msg; -/** @author chris */ +/** + * @author chris + */ public class TaskWrite implements Runnable { - private boolean showLog; - private String nodeShortId; - private SocketChannel sc; - private Msg msg; - private ChannelBuffer channelBuffer; - private IP2pMgr p2pMgr; + private final boolean showLog; + private final String nodeShortId; + private final SocketChannel sc; + private final Msg msg; + private final ChannelBuffer channelBuffer; + private final IP2pMgr p2pMgr; TaskWrite( - boolean _showLog, - String _nodeShortId, - final SocketChannel _sc, - final Msg _msg, - final ChannelBuffer _cb, - final IP2pMgr _p2pMgr) { + final boolean _showLog, + final String _nodeShortId, + final SocketChannel _sc, + final Msg _msg, + final ChannelBuffer _cb, + final IP2pMgr _p2pMgr) { this.showLog = _showLog; this.nodeShortId = _nodeShortId; this.sc = _sc; @@ -81,7 +83,9 @@ public void run() { // System.out.println("write " + h.getVer() + "-" + h.getCtrl() + "-" + h.getAction()); ByteBuffer buf = ByteBuffer.allocate(headerBytes.length + bodyLen); buf.put(headerBytes); - if (bodyBytes != null) { buf.put(bodyBytes); } + if (bodyBytes != null) { + buf.put(bodyBytes); + } buf.flip(); try { @@ -94,18 +98,18 @@ public void run() { } catch (ClosedChannelException ex1) { if (showLog) { System.out.println( - ""); + ""); } channelBuffer.isClosed.set(true); } catch (IOException ex2) { String reason = ex2.getMessage(); if (showLog) { System.out.println( - ""); + ""); } if (reason.equals("Broken pipe")) { channelBuffer.isClosed.set(true); From 0816027bf0e6559d4863bc4c05f8a1d222fa3bbb Mon Sep 17 00:00:00 2001 From: jayTseng Date: Mon, 4 Jun 2018 11:56:18 -0400 Subject: [PATCH 104/129] move varible from the interface to the implement class --- modP2p/src/org/aion/p2p/IP2pMgr.java | 2 -- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index f6c0f40295..186756bf88 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -29,8 +29,6 @@ /** @author chris */ public interface IP2pMgr { - // TODO: need refactor by passing the parameter in the later version to P2pMgr. - int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); /** @return Map */ Map getActiveNodes(); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 57bb8059f9..76b704f5bd 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -78,6 +78,9 @@ public final class P2pMgr implements IP2pMgr { private static final int PERIOD_UPNP_PORT_MAPPING = 3600000; private static final int TIMEOUT_MSG_READ = 10000; + // TODO: need refactor by passing the parameter in the later version to P2pMgr. + public static int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); + private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; private final boolean syncSeedsOnly, showStatus, showLog, upnpEnable; private final String selfRevision, selfShortId; From 7ea47e5ed5f042100c1737e3c60105cfbd580912 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Mon, 4 Jun 2018 18:52:18 -0400 Subject: [PATCH 105/129] refactor p2p log system --- modAionImpl/build.xml | 8 +- modAionImpl/module-info.java | 4 +- .../src/org/aion/zero/impl/AionHub.java | 41 +++-- .../zero/impl/sync/BlockPropagationTest.java | 5 - modLogger/src/org/aion/log/LogEnum.java | 2 +- modP2p/build.xml | 2 + modP2p/module-info.java | 1 + modP2p/src/org/aion/p2p/IP2pMgr.java | 5 +- modP2pImpl/build.xml | 4 + .../src/org/aion/p2p/impl/comm/NodeMgr.java | 24 +-- .../aion/p2p/impl/zero/msg/ReqHandshake.java | 2 +- .../aion/p2p/impl/zero/msg/ReqHandshake1.java | 18 +- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 107 +++++------ .../aion/p2p/impl1/tasks/ChannelBuffer.java | 45 +++-- .../org/aion/p2p/impl1/tasks/TaskClear.java | 1 + .../p2p/impl1/tasks/TaskConnectPeers.java | 80 +++------ .../org/aion/p2p/impl1/tasks/TaskInbound.java | 166 ++++++++---------- .../org/aion/p2p/impl1/tasks/TaskReceive.java | 22 +-- .../org/aion/p2p/impl1/tasks/TaskSend.java | 32 +--- .../org/aion/p2p/impl1/tasks/TaskStatus.java | 26 +-- .../org/aion/p2p/impl1/tasks/TaskWrite.java | 32 ++-- .../test/org/aion/p2p/impl/LastThousands.java | 75 ++++---- .../test/org/aion/p2p/impl/P2pMgrTest.java | 146 ++++++++------- .../p2p/impl/zero/msg/ReqHandshake1Test.java | 18 +- 24 files changed, 415 insertions(+), 451 deletions(-) diff --git a/modAionImpl/build.xml b/modAionImpl/build.xml index 382ec52054..1ac6932fdf 100644 --- a/modAionImpl/build.xml +++ b/modAionImpl/build.xml @@ -10,7 +10,7 @@ - + @@ -26,8 +26,6 @@ - - @@ -157,11 +155,13 @@ + + + - diff --git a/modAionImpl/module-info.java b/modAionImpl/module-info.java index 1c7aed72e9..bc189f890c 100644 --- a/modAionImpl/module-info.java +++ b/modAionImpl/module-info.java @@ -2,8 +2,6 @@ requires aion.base; requires aion.mcf; requires aion.log; - requires java.xml; - requires slf4j.api; requires aion.p2p; requires aion.p2p.impl; requires aion.rlp; @@ -15,6 +13,8 @@ requires aion.zero; requires aion.fastvm; requires jdk.management; + requires java.xml; + requires slf4j.api; exports org.aion.equihash; exports org.aion.zero.impl.blockchain; diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index be9ee19538..5025869883 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -22,9 +22,16 @@ */ package org.aion.zero.impl; +import static org.aion.crypto.HashUtil.EMPTY_TRIE_HASH; + +import java.io.File; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Properties; +import java.util.ServiceLoader; +import java.util.concurrent.atomic.AtomicBoolean; import org.aion.base.db.IRepository; -import org.aion.base.db.IRepositoryCache; -import org.aion.base.type.Address; import org.aion.base.util.ByteUtil; import org.aion.evtmgr.EventMgrModule; import org.aion.evtmgr.IEvent; @@ -37,12 +44,10 @@ import org.aion.mcf.config.CfgNetP2p; import org.aion.mcf.db.IBlockStorePow; import org.aion.mcf.tx.ITransactionExecThread; -import org.aion.mcf.vm.types.DataWord; import org.aion.p2p.Handler; import org.aion.p2p.IP2pMgr; import org.aion.p2p.impl1.P2pMgr; import org.aion.utils.TaskDumpHeap; -import org.aion.vm.PrecompiledContracts; import org.aion.zero.impl.blockchain.AionPendingStateImpl; import org.aion.zero.impl.blockchain.ChainConfiguration; import org.aion.zero.impl.config.CfgAion; @@ -51,28 +56,30 @@ import org.aion.zero.impl.db.RecoveryUtils; import org.aion.zero.impl.pow.AionPoW; import org.aion.zero.impl.sync.SyncMgr; -import org.aion.zero.impl.sync.handler.*; +import org.aion.zero.impl.sync.handler.BlockPropagationHandler; +import org.aion.zero.impl.sync.handler.BroadcastNewBlockHandler; +import org.aion.zero.impl.sync.handler.BroadcastTxHandler; +import org.aion.zero.impl.sync.handler.ReqBlocksBodiesHandler; +import org.aion.zero.impl.sync.handler.ReqBlocksHeadersHandler; +import org.aion.zero.impl.sync.handler.ReqStatusHandler; +import org.aion.zero.impl.sync.handler.ResBlocksBodiesHandler; +import org.aion.zero.impl.sync.handler.ResBlocksHeadersHandler; +import org.aion.zero.impl.sync.handler.ResStatusHandler; import org.aion.zero.impl.tx.AionTransactionExecThread; import org.aion.zero.impl.types.AionBlock; import org.aion.zero.types.A0BlockHeader; import org.aion.zero.types.AionTransaction; import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.File; -import java.math.BigInteger; -import java.util.*; -import java.util.concurrent.atomic.AtomicBoolean; - -import static org.aion.crypto.HashUtil.EMPTY_TRIE_HASH; public class AionHub { - private static final Logger LOG = LoggerFactory.getLogger(LogEnum.GEN.name()); + private static final Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.name()); private static final Logger syncLog = AionLoggerFactory.getLogger(LogEnum.SYNC.name()); - private IP2pMgr p2pMgr; + private static final Logger p2pLog = AionLoggerFactory.getLogger(LogEnum.P2P.name()); + + private IP2pMgr p2pMgr; private CfgAion cfg; @@ -160,8 +167,8 @@ public AionHub() { // there two p2p impletation , now just point to impl1. this.p2pMgr = new P2pMgr(this.cfg.getNet().getId(), Version.KERNEL_VERSION, this.cfg.getId(), cfgNetP2p.getIp(), cfgNetP2p.getPort(), this.cfg.getNet().getNodes(), cfgNetP2p.getDiscover(), cfgNetP2p.getMaxTempNodes(), - cfgNetP2p.getMaxActiveNodes(), cfgNetP2p.getShowStatus(), cfgNetP2p.getShowLog(), - cfgNetP2p.getBootlistSyncOnly(), cfgNetP2p.getErrorTolerance()); + cfgNetP2p.getMaxActiveNodes(), + cfgNetP2p.getBootlistSyncOnly(), cfgNetP2p.getErrorTolerance(), p2pLog); this.syncMgr = SyncMgr.inst(); this.syncMgr.init(this.p2pMgr, this.eventMgr, this.cfg.getSync().getBlocksQueueMax(), diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 2fc855c505..9669a99910 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -225,11 +225,6 @@ public INode getRandom() { public void send(int _id, String _displayId, Msg _msg) { } - @Override - public boolean isShowLog() { - return false; - } - @Override public void closeSocket(SocketChannel _sc, String _reason) { } diff --git a/modLogger/src/org/aion/log/LogEnum.java b/modLogger/src/org/aion/log/LogEnum.java index 0013fefa0d..ba19b7361f 100644 --- a/modLogger/src/org/aion/log/LogEnum.java +++ b/modLogger/src/org/aion/log/LogEnum.java @@ -28,7 +28,7 @@ * */ public enum LogEnum { - GEN, CONS, SYNC, API, VM, NET, DB, EVTMGR, TXPOOL, TX; + GEN, CONS, SYNC, API, VM, NET, DB, EVTMGR, TXPOOL, TX, P2P; public static boolean contains(String _module) { for (LogEnum module : values()) diff --git a/modP2p/build.xml b/modP2p/build.xml index 46417ad275..8fab734ee7 100644 --- a/modP2p/build.xml +++ b/modP2p/build.xml @@ -7,6 +7,7 @@ + @@ -52,6 +53,7 @@ + diff --git a/modP2p/module-info.java b/modP2p/module-info.java index fc1c1f4de8..4119995ab8 100644 --- a/modP2p/module-info.java +++ b/modP2p/module-info.java @@ -1,4 +1,5 @@ module aion.p2p { requires aion.base; + requires slf4j.api; exports org.aion.p2p; } diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index 186756bf88..8dfd0ca753 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -26,6 +26,7 @@ import java.nio.channels.SocketChannel; import java.util.List; import java.util.Map; +import org.slf4j.Logger; /** @author chris */ public interface IP2pMgr { @@ -59,8 +60,6 @@ public interface IP2pMgr { void closeSocket(final SocketChannel _sc, String _reason); - boolean isShowLog(); - void errCheck(int nodeIdHashcode, String _displayId); void dropActive(int _nodeIdHash, String _reason); @@ -76,4 +75,6 @@ public interface IP2pMgr { boolean validateNode(INode _node); int getSelfNetId(); + + Logger getLogger(); } diff --git a/modP2pImpl/build.xml b/modP2pImpl/build.xml index 21cdf39b97..3b33b16e25 100644 --- a/modP2pImpl/build.xml +++ b/modP2pImpl/build.xml @@ -13,6 +13,9 @@ + + + @@ -20,6 +23,7 @@ + diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index fd7b34e546..642e81395b 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -32,6 +32,7 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.LinkedBlockingQueue; +import org.aion.p2p.impl1.P2pMgr; public class NodeMgr implements INodeMgr { @@ -43,6 +44,8 @@ public class NodeMgr implements INodeMgr { private final int maxTempNodes; + private final IP2pMgr p2pMgr; + private static final Random random = new SecureRandom(ByteBuffer.allocate(Long.BYTES).putLong(System.currentTimeMillis()).array()); private final Set seedIps = new HashSet<>(); @@ -52,9 +55,10 @@ public class NodeMgr implements INodeMgr { private final Map inboundNodes = new ConcurrentHashMap<>(); private final Map activeNodes = new ConcurrentHashMap<>(); - public NodeMgr(int _maxActiveNodes, int _maxTempNodes) { + public NodeMgr(P2pMgr _p2pMgr, int _maxActiveNodes, int _maxTempNodes) { this.maxActiveNodes = _maxActiveNodes; this.maxTempNodes = _maxTempNodes; + this.p2pMgr = _p2pMgr; } public Map getOutboundNodes() { @@ -124,6 +128,7 @@ public String dumpNodeInfo(String selfShortId) { ); } catch (Exception ex) { ex.printStackTrace(); + p2pMgr.getLogger().error("NodeMgr dumpNodeInfo exception {}", ex.getMessage()); } } } @@ -305,10 +310,9 @@ public synchronized void moveInboundToActive(int _channelHashCode, final IP2pMgr _p2pMgr.closeSocket(node.getChannel(), "inbound -> active, ip " + node.getIpStr() + " exits"); } else { - if (_p2pMgr.isShowLog()) { - System.out.println( - " active node-id=" + node.getIdShort() + " ip=" + node - .getIpStr() + ">"); + if (p2pMgr.getLogger().isDebugEnabled()) { + p2pMgr.getLogger().debug("inbound -> active node-id={} ip={}", node.getIdShort(), node + .getIpStr()); } } } @@ -342,10 +346,8 @@ public synchronized void moveOutboundToActive(int _nodeIdHash, String _shortId, _p2pMgr.closeSocket(node.getChannel(), "outbound -> active, node " + previous.getIdShort() + " exits"); } else { - if (_p2pMgr.isShowLog()) { - System.out.println( - " active node-id=" + _shortId + " ip=" + node.getIpStr() - + ">"); + if (p2pMgr.getLogger().isDebugEnabled()) { + p2pMgr.getLogger().debug("outbound -> active node-id={} ip={}", _shortId, node.getIpStr()); } } } @@ -370,8 +372,8 @@ private void timeoutActive(IP2pMgr _p2pMgr) { .mapToLong(n -> now - n.getTimestamp()).average(); double timeout = average.orElse(4000) * 5; timeout = Math.max(10000, Math.min(timeout, 60000)); - if (_p2pMgr.isShowLog()) { - System.out.printf("\n", average.orElse(0)); + if (p2pMgr.getLogger().isDebugEnabled()) { + p2pMgr.getLogger().debug("average-delay={}ms", (long)average.orElse(0)); } Iterator activeIt = activeNodes.keySet().iterator(); diff --git a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake.java b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake.java index 701ff3852b..7c943ad27f 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake.java +++ b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake.java @@ -48,7 +48,7 @@ public class ReqHandshake extends Msg { public final static int LEN = 36 + 4 + 8 + 4; - public ReqHandshake(final byte[] _nodeId, int _netId, final byte[] _ip, int _port) { + ReqHandshake(final byte[] _nodeId, int _netId, final byte[] _ip, int _port) { super(Ver.V0, Ctrl.NET, Act.REQ_HANDSHAKE); this.nodeId = _nodeId; this.netId = _netId; diff --git a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java index 339130d6ea..8c1200c1dc 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java +++ b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java @@ -28,6 +28,7 @@ import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; +import org.slf4j.Logger; /** * @@ -49,19 +50,23 @@ public final class ReqHandshake1 extends ReqHandshake { // super LEN + revision len (byte) + versions len (byte) private static final int MIN_LEN = LEN + 2; + private static Logger p2pLOG; + /** - * - * @param _nodeId byte[36] + * @param _nodeId byte[36] * @param _netId int * @param _ip byte[8] * @param _port int * @param _revision String * @param _versions List header contains 2 byte version + * @param p2pLOG log for p2pModule */ - public ReqHandshake1(final byte[] _nodeId, int _netId, final byte[] _ip, int _port, final byte[] _revision, final List _versions) { + public ReqHandshake1(final byte[] _nodeId, int _netId, final byte[] _ip, int _port, + final byte[] _revision, final List _versions, final Logger p2pLOG) { super(_nodeId, _netId, _ip, _port); this.revision = _revision; this.versions = _versions.subList(0, Math.min(MAX_VERSIONS_LEN, _versions.size())); + ReqHandshake1.p2pLOG = p2pLOG; } public byte[] getRevision(){ @@ -77,7 +82,6 @@ public static ReqHandshake1 decode(final byte[] _bytes) { if (_bytes == null || _bytes.length < MIN_LEN) return null; else { - try{ ByteBuffer buf = ByteBuffer.wrap(_bytes); @@ -108,9 +112,11 @@ public static ReqHandshake1 decode(final byte[] _bytes) { versions.add(version); } - return new ReqHandshake1(nodeId, netId, ip, port, revision, versions); + return new ReqHandshake1(nodeId, netId, ip, port, revision, versions, p2pLOG); } catch (Exception e) { - System.out.println(""); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("req-handshake-decode error={}", e.getMessage()); + } return null; } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 76b704f5bd..04c8e8908c 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -67,6 +67,7 @@ import org.aion.p2p.impl1.tasks.TaskSend; import org.aion.p2p.impl1.tasks.TaskStatus; import org.apache.commons.collections4.map.LRUMap; +import org.slf4j.Logger; /** * @author Chris p2p://{uuid}@{ip}:{port} @@ -79,13 +80,16 @@ public final class P2pMgr implements IP2pMgr { private static final int TIMEOUT_MSG_READ = 10000; // TODO: need refactor by passing the parameter in the later version to P2pMgr. - public static int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); + public static int txBroadCastRoute = + (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); - private final int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; - private final boolean syncSeedsOnly, showStatus, showLog, upnpEnable; - private final String selfRevision, selfShortId; - private final byte[] selfNodeId, selfIp; - private final INodeMgr nodeMgr; + private final Logger p2pLOG; + + private int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; + private boolean syncSeedsOnly, upnpEnable; + private String selfRevision, selfShortId; + private byte[] selfNodeId, selfIp; + private INodeMgr nodeMgr; private final Map> handlers = new ConcurrentHashMap<>(); private final Set versions = new HashSet<>(); private final Map errCnt = Collections.synchronizedMap(new LRUMap<>(128)); @@ -101,6 +105,10 @@ public final class P2pMgr implements IP2pMgr { private static ReqHandshake1 cachedReqHandshake1; private static ResHandshake1 cachedResHandshake1; + public Logger getLogger() { + return p2pLOG; + } + public enum Dest { INBOUND, OUTBOUND, @@ -115,23 +123,20 @@ public enum Dest { * @param _upnpEnable boolean * @param _maxTempNodes int * @param _maxActiveNodes int - * @param _showStatus boolean - * @param _showLog boolean */ public P2pMgr( - int _netId, - String _revision, - String _nodeId, - String _ip, - int _port, + final int _netId, + final String _revision, + final String _nodeId, + final String _ip, + final int _port, final String[] _bootNodes, - boolean _upnpEnable, - int _maxTempNodes, - int _maxActiveNodes, - boolean _showStatus, - boolean _showLog, - boolean _bootlistSyncOnly, - int _errorTolerance) { + final boolean _upnpEnable, + final int _maxTempNodes, + final int _maxActiveNodes, + final boolean _bootlistSyncOnly, + final int _errorTolerance, + final Logger _log) { this.selfNetId = _netId; this.selfRevision = _revision; @@ -143,12 +148,11 @@ public P2pMgr( this.upnpEnable = _upnpEnable; this.maxTempNodes = _maxTempNodes; this.maxActiveNodes = _maxActiveNodes; - this.showStatus = _showStatus; - this.showLog = _showLog; this.syncSeedsOnly = _bootlistSyncOnly; this.errTolerance = _errorTolerance; + this.p2pLOG = _log; - nodeMgr = new NodeMgr(_maxActiveNodes, _maxTempNodes); + nodeMgr = new NodeMgr(this, _maxActiveNodes, _maxTempNodes); for (String _bootNode : _bootNodes) { Node node = Node.parseP2p(_bootNode); @@ -180,14 +184,13 @@ public void run() { thrdIn.setPriority(Thread.NORM_PRIORITY); thrdIn.start(); - if (showLog) { + if (p2pLOG.isDebugEnabled()) { this.handlers.forEach( (route, callbacks) -> { Handler handler = callbacks.get(0); Header h = handler.getHeader(); - System.out.println( - getRouteMsg(route, h.getVer(), h.getCtrl(), h.getAction(), - handler.getClass().getSimpleName())); + p2pLOG.debug("handler route={} v-c-a={}-{}-{} name={}", route, h.getVer(), + h.getCtrl(), h.getAction(), handler.getClass().getSimpleName()); }); } @@ -213,7 +216,7 @@ public void run() { TimeUnit.MILLISECONDS); } - if (showStatus) { + if (p2pLOG.isDebugEnabled()) { scheduledWorkers.scheduleWithFixedDelay( getStatusInstance(), 2, @@ -237,13 +240,9 @@ public void run() { thrdConn.setPriority(Thread.NORM_PRIORITY); thrdConn.start(); } catch (SocketException e) { - if (showLog) { - System.out.println(" " + e.getMessage()); - } + p2pLOG.error("tcp-server-socket-exception {}", e.getMessage()); } catch (IOException e) { - if (showLog) { - System.out.println(""); - } + p2pLOG.error("tcp-server-io-exception {}", e.getMessage()); } } @@ -299,8 +298,10 @@ public void errCheck(int _nodeIdHash, String _displayId) { if (cnt > this.errTolerance) { ban(_nodeIdHash); errCnt.put(_nodeIdHash, 0); - if (showLog) { - System.out.println(getBanNodeMsg(_displayId, _nodeIdHash, cnt)); + + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("ban node={} err-count={}", + (_displayId == null ? _nodeIdHash : _displayId), cnt); } } else { errCnt.put(_nodeIdHash, cnt); @@ -311,8 +312,9 @@ public void errCheck(int _nodeIdHash, String _displayId) { * @param _sc SocketChannel */ public void closeSocket(final SocketChannel _sc, String _reason) { - if (showLog) { - System.out.println(""); + + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("close-socket reason={}", _reason); } if (_sc != null) { @@ -324,9 +326,7 @@ public void closeSocket(final SocketChannel _sc, String _reason) { try { _sc.close(); } catch (IOException e) { - if (showLog) { - System.out.println(""); - } + p2pLOG.info("close-socket-io-exception, {}", e.getMessage()); } } } @@ -398,11 +398,6 @@ public int getSelfIdHash() { return this.selfNodeIdHash; } - @Override - public boolean isShowLog() { - return this.showLog; - } - public int getTempNodesCount() { return this.nodeMgr.tempNodesSize(); } @@ -427,16 +422,6 @@ public boolean isSyncSeedsOnly() { return this.syncSeedsOnly; } - // <---------------------- message and Runnable getters below -------------------------> - - private String getRouteMsg(Integer route, short ver, byte ctrl, byte act, String name) { - return ""; - } - - private String getBanNodeMsg(String id, int hash, int cnt) { - return ""; - } private TaskInbound getInboundInstance() { return new TaskInbound( @@ -462,15 +447,15 @@ private TaskSend getSendInstance(int i) { } private TaskReceive getReceiveInstance() { - return new TaskReceive( + return new TaskReceive(p2pLOG, this.start, this.receiveMsgQue, - this.handlers, - this.showLog); + this.handlers); } private TaskStatus getStatusInstance() { return new TaskStatus( + p2pLOG, this.nodeMgr, this.selfShortId, this.sendMsgQue, @@ -499,7 +484,7 @@ private ReqHandshake1 getReqHandshake1Instance(List versions) { this.selfIp, this.selfPort, this.selfRevision.getBytes(), - versions); + versions, + p2pLOG); } - } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java index 698ee21678..b1beef89d2 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java @@ -22,13 +22,13 @@ */ package org.aion.p2p.impl1.tasks; -import org.aion.p2p.Header; - import java.nio.ByteBuffer; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.Lock; +import org.aion.p2p.Header; +import org.aion.p2p.IP2pMgr; /** * @author chris @@ -40,12 +40,14 @@ class ChannelBuffer { int buffRemain = 0; - int nodeIdHash = 0; + private int nodeIdHash; - String displayId = ""; + private String displayId; Header header = null; + private final IP2pMgr p2pMgr; + private byte[] bsHead = new byte[Header.LEN]; byte[] body = null; @@ -57,10 +59,24 @@ class ChannelBuffer { */ AtomicBoolean isClosed = new AtomicBoolean(false); - private boolean showLog; - private Map routes = new HashMap<>(); + public String getDisplayId() { + return displayId; + } + + public void setNodeIdHash(int nodeIdHash) { + this.nodeIdHash = nodeIdHash; + } + + public void setDisplayId(String displayId) { + this.displayId = displayId; + } + + public int getNodeIdHash() { + return nodeIdHash; + } + class RouteStatus { long timestamp; @@ -73,8 +89,8 @@ class RouteStatus { } - ChannelBuffer(boolean _showLog) { - this.showLog = _showLog; + ChannelBuffer(IP2pMgr mgr) { + p2pMgr = mgr; } /** @@ -94,15 +110,14 @@ synchronized boolean shouldRoute(int _route, int _maxReqsPerSec) { boolean shouldRoute = prev.count < _maxReqsPerSec; if (shouldRoute) { prev.count++; - } - - if (showLog) { - if (!shouldRoute) { - System.out.println( - ""); + } else { + if (p2pMgr.getLogger().isDebugEnabled()) { + p2pMgr.getLogger() + .debug("route-cooldown={} node={} count={}", _route, this.getDisplayId(), + prev.count); } } + return shouldRoute; } else { return true; diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index c4c65bee53..dbbe4604bb 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -48,6 +48,7 @@ public void run() { nodeMgr.timeoutCheck(this.mgr); } catch (Exception e) { e.printStackTrace(); + mgr.getLogger().error("TaskClear exception {}", e.getMessage()); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index 46b7937b67..275e38ebf6 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -73,15 +73,11 @@ public void run() { try { Thread.sleep(PERIOD_CONNECT_OUTBOUND); } catch (InterruptedException e) { - if (this.mgr.isShowLog()) { - System.out.println(getTcpInterruptedMsg()); - } + mgr.getLogger().warn("tcp-interrupted"); } if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { - if (this.mgr.isShowLog()) { - System.out.println(getTcpPassMaxNodesMsg()); - } + mgr.getLogger().warn("tcp-connect-peer pass max-active-nodes"); continue; } @@ -98,14 +94,11 @@ public void run() { // continue; // } } catch (InterruptedException e) { - if (this.mgr.isShowLog()) { - System.out.println(getTcpInterruptedMsg()); - } + mgr.getLogger().error("tcp-interrupted"); return; } catch (Exception e) { - if (this.mgr.isShowLog()) { - e.printStackTrace(); - } + e.printStackTrace(); + mgr.getLogger().warn("tcp-Exception {}", e.getMessage()); continue; } int nodeIdHash = node.getIdHash(); @@ -121,24 +114,28 @@ public void run() { TIMEOUT_OUTBOUND_CONNECT); this.mgr.configChannel(channel); - if (channel.finishConnect() && channel.isConnected()) { + if (channel.isConnected()) { - if (this.mgr.isShowLog()) { - System.out.println(getSucesCnctMsg(node.getIdShort(), node.getIpStr())); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("success-connect node-id={} ip=", node.getIdShort(), + node.getIpStr()); } + SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); - ChannelBuffer rb = new ChannelBuffer(this.mgr.isShowLog()); - rb.displayId = node.getIdShort(); - rb.nodeIdHash = nodeIdHash; + ChannelBuffer rb = new ChannelBuffer(mgr); + rb.setDisplayId(node.getIdShort()); + rb.setNodeIdHash(nodeIdHash); sk.attach(rb); node.refreshTimestamp(); node.setChannel(channel); this.nodeMgr.addOutboundNode(node); - if (this.mgr.isShowLog()) { - System.out.println(getPrepRqstMsg(node.getIdShort(), node.getIpStr())); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("prepare-request-handshake -> id={} ip={}", + node.getIdShort(), node.getIpStr()); } + this.sendMsgQue.offer( new MsgOut( node.getIdHash(), @@ -148,47 +145,28 @@ public void run() { // node.peerMetric.decFailedCount(); } else { - if (this.mgr.isShowLog()) { - System.out.println(getFailCnctMsg(node.getIdShort(), node.getIpStr())); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger() + .debug("fail-connect node-id -> id={} ip={}", node.getIdShort(), + node.getIpStr()); } + channel.close(); // node.peerMetric.incFailedCount(); } } catch (IOException e) { - if (this.mgr.isShowLog()) { - System.out.println(getOutboundConnectMsg(node.getIpStr(), _port)); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("connect-outbound io-exception addr={}:{} result={}", + node.getIpStr(), _port, e.getMessage()); } // node.peerMetric.incFailedCount(); } catch (Exception e) { - if (this.mgr.isShowLog()) { - e.printStackTrace(); - } + e.printStackTrace(); + mgr.getLogger() + .debug("connect-outbound exception -> id={} ip={}", node.getIdShort(), + node.getIpStr()); } } } } - - private String getTcpInterruptedMsg() { - return ""; - } - - private String getTcpPassMaxNodesMsg() { - return ""; - } - - private String getSucesCnctMsg(String idStr, String ipStr) { - return ""; - } - - private String getOutboundConnectMsg(String ipStr, int port) { - return ""; - } - - private String getFailCnctMsg(String idStr, String ipStr) { - return ""; - } - - private String getPrepRqstMsg(String idStr, String ipStr) { - return " id=" + idStr + " ip=" + ipStr + ">"; - } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index 02ef274bcb..94af844a9e 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -104,17 +104,16 @@ public void run() { } } catch (IOException e) { - if (this.mgr.isShowLog()) { - System.out.println(""); - } + mgr.getLogger().warn("inbound-select-io-exception"); continue; } catch (ClosedSelectorException e) { - if (this.mgr.isShowLog()) { - System.out.println(""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("inbound-select-close-exception"); } continue; } catch (InterruptedException e) { e.printStackTrace(); + mgr.getLogger().error("taskInbound exception {}", e.toString()); return; } @@ -141,16 +140,15 @@ public void run() { readBuffer(sk, cb, readBuf); } catch (NullPointerException e) { mgr.closeSocket((SocketChannel) sk.channel(), - cb.displayId + "-read-msg-null-exception"); + cb.getDisplayId() + "-read-msg-null-exception"); cb.isClosed.set(true); } catch (P2pException e) { mgr.closeSocket((SocketChannel) sk.channel(), - cb.displayId + "-read-msg-p2p-exception"); + cb.getDisplayId() + "-read-msg-p2p-exception"); cb.isClosed.set(true); } catch (ClosedChannelException e) { mgr.closeSocket((SocketChannel) sk.channel(), - cb.displayId + "-read-msg-closed-channel-exception"); - + cb.getDisplayId() + "-read-msg-closed-channel-exception"); } } } catch (IOException e) { @@ -162,18 +160,15 @@ public void run() { } } catch (Exception ex) { - if (mgr.isShowLog()) { - System.out.println(""); - } + mgr.getLogger().error("inbound exception={}", ex.getMessage()); } finally { if (keys != null) { keys.remove(); } } } - if (this.mgr.isShowLog()) { - System.out.println(""); - } + + mgr.getLogger().info("p2p-pi shutdown"); } private void accept() { @@ -200,20 +195,18 @@ private void accept() { node.setChannel(channel); SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); - sk.attach(new ChannelBuffer(this.mgr.isShowLog())); + sk.attach(new ChannelBuffer(mgr)); this.nodeMgr.addInboundNode(node); - if (this.mgr.isShowLog()) { - System.out.println(""); - } - + mgr.getLogger().info("new-connection {}:{}", ip, port); } } catch (IOException e) { - if (this.mgr.isShowLog()) { - System.out.println(""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("inbound-accept-io-exception"); } } catch (Exception e) { e.printStackTrace(); + mgr.getLogger().error("TaskInbound exception {}", e.getMessage()); } } @@ -346,11 +339,8 @@ private void handleMsg(SelectionKey _sk, ChannelBuffer _cb) { : P2pConstant.READ_MAX_RATE)); if (!underRC) { - if (this.mgr.isShowLog()) { - System.out.println( - ""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("over-called-route={}-{}-{} calls={} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getRouteCount(h.getRoute()).count, _cb.getDisplayId()); } return; } @@ -362,40 +352,33 @@ private void handleMsg(SelectionKey _sk, ChannelBuffer _cb) { try { handleP2pMsg(_sk, h.getAction(), bodyBytes); } catch (Exception ex) { - if (this.mgr.isShowLog()) { - System.out - .println(""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("handle-p2p-msg error={}", ex.getMessage()); } } break; case Ctrl.SYNC: - if (!handlers.containsKey(h.getRoute())) { - if (this.mgr.isShowLog()) { - System.out.println( - ""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("unregistered-route={}-{}-{} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getDisplayId()); } return; } - handleKernelMsg(_cb.nodeIdHash, h.getRoute(), bodyBytes); + handleKernelMsg(_cb.getNodeIdHash(), h.getRoute(), bodyBytes); break; default: - if (this.mgr.isShowLog()) { - System.out.println( - ""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("invalid-route={}-{}-{} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getDisplayId()); } break; } break; default: - if (this.mgr.isShowLog()) { - System.out.println( - ""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("unhandled-ver={} node={}", h.getVer(), _cb.getDisplayId()); } + break; } } @@ -442,21 +425,19 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy break; case Act.RES_HANDSHAKE: - if (rb.nodeIdHash == 0) { - return; - } - - if (_msgBytes.length > ResHandshake.LEN) { - ResHandshake1 resHandshake1 = ResHandshake1.decode(_msgBytes); - if (resHandshake1 != null && resHandshake1.getSuccess()) { - handleResHandshake(rb.nodeIdHash, resHandshake1.getBinaryVersion()); + if (rb.getNodeIdHash() != 0) { + if (_msgBytes.length > ResHandshake.LEN) { + ResHandshake1 resHandshake1 = ResHandshake1.decode(_msgBytes); + if (resHandshake1 != null && resHandshake1.getSuccess()) { + handleResHandshake(rb.getNodeIdHash(), resHandshake1.getBinaryVersion()); + } } } break; case Act.REQ_ACTIVE_NODES: - if (rb.nodeIdHash != 0) { - INode node = nodeMgr.getActiveNode(rb.nodeIdHash); + if (rb.getNodeIdHash() != 0) { + INode node = nodeMgr.getActiveNode(rb.getNodeIdHash()); if (node != null) { this.sendMsgQue.offer( new MsgOut( @@ -469,33 +450,31 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy break; case Act.RES_ACTIVE_NODES: - if (this.mgr.isSyncSeedsOnly()) { + if (this.mgr.isSyncSeedsOnly() || rb.getNodeIdHash() == 0) { break; } - if (rb.nodeIdHash != 0) { - INode node = nodeMgr.getActiveNode(rb.nodeIdHash); - if (node != null) { - node.refreshTimestamp(); - ResActiveNodes resActiveNodes = ResActiveNodes.decode(_msgBytes); - if (resActiveNodes != null) { - List incomingNodes = resActiveNodes.getNodes(); - for (INode incomingNode : incomingNodes) { - if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) { - return; - } - - if (this.mgr.validateNode(incomingNode)) { - nodeMgr.addTempNode(incomingNode); - } + INode node = nodeMgr.getActiveNode(rb.getNodeIdHash()); + if (node != null) { + node.refreshTimestamp(); + ResActiveNodes resActiveNodes = ResActiveNodes.decode(_msgBytes); + if (resActiveNodes != null) { + List incomingNodes = resActiveNodes.getNodes(); + for (INode incomingNode : incomingNodes) { + if (nodeMgr.tempNodesSize() >= this.mgr.getMaxTempNodes()) { + return; + } + + if (this.mgr.validateNode(incomingNode)) { + nodeMgr.addTempNode(incomingNode); } } } } break; default: - if (this.mgr.isShowLog()) { - System.out.println(""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("unknown-route act={}", _act); } break; } @@ -520,8 +499,8 @@ private void handleReqHandshake( INode node = nodeMgr.getInboundNode(_channelHash); if (node != null && node.getPeerMetric().notBan()) { if (handshakeRuleCheck(_netId)) { - _buffer.nodeIdHash = Arrays.hashCode(_nodeId); - _buffer.displayId = new String(Arrays.copyOfRange(_nodeId, 0, 6)); + _buffer.setNodeIdHash(Arrays.hashCode(_nodeId)); + _buffer.setDisplayId(new String(Arrays.copyOfRange(_nodeId, 0, 6))); node.setId(_nodeId); node.setPort(_port); @@ -532,6 +511,9 @@ private void handleReqHandshake( binaryVersion = new String(_revision, "UTF-8"); } catch (UnsupportedEncodingException e) { binaryVersion = "decode-fail"; + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("handleReqHandshake decode-fail"); + } } node.setBinaryVersion(binaryVersion); nodeMgr.moveInboundToActive(_channelHash, this.mgr); @@ -544,8 +526,8 @@ private void handleReqHandshake( } } else { - if (this.mgr.isShowLog()) { - System.out.println(""); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("handshake-rule-fail"); } } } @@ -583,20 +565,20 @@ private boolean handshakeRuleCheck(int netId) { return netId == this.mgr.getSelfNetId(); } - private String getReadOverflowMsg(int prevCnt, int cnt) { - return "IO readBuffer overflow! suppose readBuffer:" + prevCnt + " real left:" + cnt; - } - - private String getRouteMsg(short ver, byte ctrl, byte act, int count, String idStr) { - return ""; - } - - private String getUnregRouteMsg(short ver, byte ctrl, byte act, String idStr) { - return ""; - } - - private String getInvalRouteMsg(short ver, byte ctrl, byte act, String idStr) { - return ""; - } +// private String getReadOverflowMsg(int prevCnt, int cnt) { +// return "IO readBuffer overflow! suppose readBuffer:" + prevCnt + " real left:" + cnt; +// } +// +// private String getRouteMsg(short ver, byte ctrl, byte act, int count, String idStr) { +// return ""; +// } +// +// private String getUnregRouteMsg(short ver, byte ctrl, byte act, String idStr) { +// return ""; +// } +// +// private String getInvalRouteMsg(short ver, byte ctrl, byte act, String idStr) { +// return ""; +// } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index 14d20b358b..7aded9d011 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -27,23 +27,23 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.Handler; +import org.slf4j.Logger; public class TaskReceive implements Runnable { private final AtomicBoolean start; private final BlockingQueue receiveMsgQue; private final Map> handlers; - private final boolean showLog; + private final Logger logger; public TaskReceive( - final AtomicBoolean _start, + Logger _logger, final AtomicBoolean _start, final BlockingQueue _receiveMsgQue, - final Map> _handlers, - final boolean _showLog) { + final Map> _handlers) { this.start = _start; this.receiveMsgQue = _receiveMsgQue; this.handlers = _handlers; - this.showLog = _showLog; + this.logger = _logger; } @Override @@ -64,22 +64,22 @@ public void run() { try { hlr.receive(mi.getNodeId(), mi.getDisplayId(), mi.getMsg()); } catch (Exception e) { - if (this.showLog) { + if (logger.isDebugEnabled()) { e.printStackTrace(); + logger.debug("TaskReceive exception {}", e.getMessage()); } } } } catch (InterruptedException e) { - if (this.showLog) { - System.out.println(""); - } + logger.error("TaskReceive interrupted {}", e.getMessage()); + return; } catch (Exception e) { - if (this.showLog) { + if (logger.isDebugEnabled()) { e.printStackTrace(); + logger.debug("TaskReceive exception {}", e.getMessage()); } } } } - } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index d4f4156d50..f997820370 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -85,14 +85,13 @@ public void run() { // if timeout , throw away this msg. long now = System.currentTimeMillis(); if (now - mo.getTimestamp() > P2pConstant.WRITE_MSG_TIMEOUT) { - if (this.mgr.isShowLog()) { - System.out.println(getTimeoutMsg(mo.getDisplayId(), now)); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("timeout-msg to-node={} timestamp={}", mo.getDisplayId(), now); } continue; } // if not belong to current lane, put it back. - long t1 = System.nanoTime(); if (mo.getLane() != lane) { sendMsgQue.offer(mo); continue; @@ -117,7 +116,6 @@ public void run() { Object attachment = sk.attachment(); if (attachment != null) { tpe.execute(new TaskWrite( - this.mgr.isShowLog(), node.getIdShort(), node.getChannel(), mo.getMsg(), @@ -126,23 +124,19 @@ public void run() { } } } else { - if (this.mgr.isShowLog()) { - System.out - .println(getNodeNotExitMsg(mo.getDest().name(), mo.getDisplayId())); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("msg-{} ->{} node-not-exit", mo.getDest().name(), mo.getDisplayId()); } } } catch (InterruptedException e) { - if (this.mgr.isShowLog()) { - System.out.println(""); - } + mgr.getLogger().error("task-send-interrupted"); return; } catch (RejectedExecutionException e) { - if (this.mgr.isShowLog()) { - System.out.println(""); - } + mgr.getLogger().warn("task-send-reached thread queue limit"); } catch (Exception e) { - if (this.mgr.isShowLog()) { - e.printStackTrace(); + e.printStackTrace(); + if (mgr.getLogger().isDebugEnabled()) { + mgr.getLogger().debug("TaskSend exception {}", e.getMessage()); } } } @@ -157,12 +151,4 @@ static int hash2Lane(int in) { in ^= in >> (32 - 25); return (in & 0b11111) * TOTAL_LANE / 32; } - - private String getTimeoutMsg(String id, long now) { - return ""; - } - - private String getNodeNotExitMsg(String name, String id) { - return "" + id + " node-not-exit"; - } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index b62a4dae20..a7f6da810e 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -24,6 +24,7 @@ import java.util.concurrent.BlockingQueue; import org.aion.p2p.INodeMgr; +import org.slf4j.Logger; public class TaskStatus implements Runnable { @@ -31,9 +32,10 @@ public class TaskStatus implements Runnable { private final String selfShortId; private final BlockingQueue sendMsgQue; private final BlockingQueue receiveMsgQue; + private final Logger logger; public TaskStatus( - final INodeMgr _nodeMgr, + Logger _logger, final INodeMgr _nodeMgr, final String _selfShortId, final BlockingQueue _sendMsgQue, final BlockingQueue _receiveMsgQue) { @@ -41,21 +43,23 @@ public TaskStatus( this.selfShortId = _selfShortId; this.sendMsgQue = _sendMsgQue; this.receiveMsgQue = _receiveMsgQue; + this.logger = _logger; } @Override public void run() { Thread.currentThread().setName("p2p-ts"); String status = this.nodeMgr.dumpNodeInfo(this.selfShortId); - System.out.println(status); - System.out.println("--------------------------------------------------------------------" + - "-------------------------------------------------------------------------------" + - "-----------------"); - System.out.println( - "recv queue [" - + this.receiveMsgQue.size() - + "] send queue [" - + this.sendMsgQue.size() - + "]\n"); + + if (logger.isDebugEnabled()) { + logger.debug(status); + logger.debug( + "--------------------------------------------------------------------" + + "-------------------------------------------------------------------------------" + + "-----------------"); + + logger.debug("recv queue[{}] send queue[{}]", this.receiveMsgQue.size(), + this.sendMsgQue.size()); + } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java index 729027c448..f86cf9d680 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java @@ -35,7 +35,6 @@ */ public class TaskWrite implements Runnable { - private final boolean showLog; private final String nodeShortId; private final SocketChannel sc; private final Msg msg; @@ -43,13 +42,11 @@ public class TaskWrite implements Runnable { private final IP2pMgr p2pMgr; TaskWrite( - final boolean _showLog, final String _nodeShortId, final SocketChannel _sc, final Msg _msg, final ChannelBuffer _cb, final IP2pMgr _p2pMgr) { - this.showLog = _showLog; this.nodeShortId = _nodeShortId; this.sc = _sc; this.msg = _msg; @@ -63,7 +60,7 @@ public void run() { if (channelBuffer.isClosed.get()) { channelBuffer.refreshHeader(); channelBuffer.refreshBody(); - p2pMgr.dropActive(channelBuffer.nodeIdHash, "close-already"); + p2pMgr.dropActive(channelBuffer.getNodeIdHash(), "close-already"); return; } @@ -79,8 +76,10 @@ public void run() { h.setLen(bodyLen); byte[] headerBytes = h.encode(); - // print route - // System.out.println("write " + h.getVer() + "-" + h.getCtrl() + "-" + h.getAction()); + if (p2pMgr.getLogger().isTraceEnabled()) { + p2pMgr.getLogger().trace("write {}-{}-{}", h.getVer(), h.getCtrl(), h.getAction()); + } + ByteBuffer buf = ByteBuffer.allocate(headerBytes.length + bodyLen); buf.put(headerBytes); if (bodyBytes != null) { @@ -96,27 +95,24 @@ public void run() { sc.write(buf); } } catch (ClosedChannelException ex1) { - if (showLog) { - System.out.println( - ""); + if (p2pMgr.getLogger().isDebugEnabled()) { + p2pMgr.getLogger().debug("closed-channel-exception node={}", this.nodeShortId); } + channelBuffer.isClosed.set(true); } catch (IOException ex2) { - String reason = ex2.getMessage(); - if (showLog) { - System.out.println( - ""); + if (p2pMgr.getLogger().isDebugEnabled()) { + p2pMgr.getLogger().debug("write-msg-io-exception node={} err={}", this.nodeShortId, + ex2.getMessage()); } - if (reason.equals("Broken pipe")) { + + if (ex2.getMessage().equals("Broken pipe")) { channelBuffer.isClosed.set(true); } } } catch (Exception e) { e.printStackTrace(); + p2pMgr.getLogger().error("TaskWrite exception {}", e.getMessage()); } finally { channelBuffer.lock.unlock(); } diff --git a/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java b/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java index 4449ca4e39..8168571e46 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java +++ b/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java @@ -1,27 +1,28 @@ package org.aion.p2p.impl; -import org.aion.p2p.impl1.P2pMgr; -import org.junit.Ignore; -import org.junit.Test; +import static junit.framework.TestCase.assertEquals; import java.io.IOException; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.UUID; - -import static junit.framework.TestCase.assertEquals; +import org.aion.p2p.impl1.P2pMgr; +import org.junit.Ignore; +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class LastThousands { + private static Logger p2pLOG = LoggerFactory.getLogger("P2P"); private boolean checkPort(String host, int port) { boolean result = true; try { (new Socket(host, port)).close(); result = false; - } - catch(IOException e) { + } catch (IOException e) { // Could not connect. } return result; @@ -35,60 +36,58 @@ public void test() throws InterruptedException { int port = 30303; int max = 1000; int maxPort = port + max; - String[] testerP2p = new String[] { "p2p://" + nodeId + "@" + ip + ":" + port }; + String[] testerP2p = new String[]{"p2p://" + nodeId + "@" + ip + ":" + port}; P2pMgr tester = new P2pMgr(0, - "", - nodeId, - ip, - port, - new String[]{}, - false, - max, - max, - false, - false, - true, - 50); + "", + nodeId, + ip, + port, + new String[]{}, + false, + max, + max, + false, + 50, + p2pLOG); List examiners = new ArrayList<>(); - for(int i = port + 1; i <= maxPort; i++){ - if(checkPort(ip, i)) { + for (int i = port + 1; i <= maxPort; i++) { + if (checkPort(ip, i)) { System.out.println("examiner " + i); P2pMgr examiner = new P2pMgr(0, - "", - UUID.randomUUID().toString(), - ip, - i, - testerP2p, - false, - max, - max, - false, - true, - true, - 50); + "", + UUID.randomUUID().toString(), + ip, + i, + testerP2p, + false, + max, + max, + false, + 50, + p2pLOG); examiners.add(examiner); } } System.out.println("examiners " + examiners.size()); tester.run(); - for(P2pMgr examiner : examiners){ + for (P2pMgr examiner : examiners) { examiner.run(); } Thread.sleep(3000); - for(P2pMgr examiner : examiners){ + for (P2pMgr examiner : examiners) { assertEquals(1, examiner.getActiveNodes().size()); } - for(P2pMgr examiner : examiners){ + for (P2pMgr examiner : examiners) { assertEquals(max, tester.getActiveNodes().size()); } tester.shutdown(); - for(P2pMgr examiner : examiners){ + for (P2pMgr examiner : examiners) { examiner.shutdown(); } } diff --git a/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java b/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java index f46b8ee8f8..a06edb58f7 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java +++ b/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java @@ -25,13 +25,14 @@ package org.aion.p2p.impl; -import org.aion.p2p.impl1.P2pMgr; -import org.junit.Test; +import static org.junit.Assert.assertEquals; import java.util.Map; import java.util.UUID; - -import static org.junit.Assert.assertEquals; +import org.aion.p2p.impl1.P2pMgr; +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @author chris @@ -45,6 +46,8 @@ public class P2pMgrTest { private int port1 = 30303; private int port2 = 30304; + private static Logger p2pLOG = LoggerFactory.getLogger("P2P"); + public Map.Entry newTwoNodeSetup() { String ip = "127.0.0.1"; @@ -55,44 +58,38 @@ public Map.Entry newTwoNodeSetup() { int port2 = 30304; // we want node 1 to connect to node 2 - String[] nodes = new String[] { - "p2p://" + id2 + "@" + ip + ":" + port2 + String[] nodes = new String[]{ + "p2p://" + id2 + "@" + ip + ":" + port2 }; // to guarantee they don't receive the same port - while (port2 == port1) { - port2 = TestUtilities.getFreePort(); - } System.out.println("connector on: " + TestUtilities.formatAddr(id1, ip, port1)); P2pMgr connector = new P2pMgr(0, - "", - id1, - ip, - port1, - nodes, - false, - 128, - 128, - false, - true, - false, - 50); + "", + id1, + ip, + port1, + nodes, + false, + 128, + 128, + false, + 50, + p2pLOG); System.out.println("receiver on: " + TestUtilities.formatAddr(id2, ip, port2)); P2pMgr receiver = new P2pMgr(0, - "", - id2, - ip, - port2, - new String[0], - false, - 128, - 128, - false, - true, - false, - 50); + "", + id2, + ip, + port2, + new String[0], + false, + 128, + 128, + false, + 50, p2pLOG); return Map.entry(connector, receiver); } @@ -101,72 +98,67 @@ public Map.Entry newTwoNodeSetup() { public void testIgnoreSameNodeIdAsSelf() { String[] nodes = new String[]{ - "p2p://" + nodeId1 + "@" + ip2+ ":" + port2 + "p2p://" + nodeId1 + "@" + ip2 + ":" + port2 }; P2pMgr p2p = new P2pMgr(0, - "", - nodeId1, - ip1, - port1, - nodes, - false, - 128, - 128, - false, - false, - false, - 50); + "", + nodeId1, + ip1, + port1, + nodes, + false, + 128, + 128, + false, + + 50, p2pLOG); assertEquals(p2p.getTempNodesCount(), 0); } @Test - public void testIgnoreSameIpAndPortAsSelf(){ + public void testIgnoreSameIpAndPortAsSelf() { String[] nodes = new String[]{ - "p2p://" + nodeId2 + "@" + ip1+ ":" + port1 + "p2p://" + nodeId2 + "@" + ip1 + ":" + port1 }; P2pMgr p2p = new P2pMgr(0, - "", - nodeId1, - ip1, - port1, - nodes, - false, - 128, - 128, - false, - false, - false, - 50); - assertEquals(0,p2p.getTempNodesCount()); + "", + nodeId1, + ip1, + port1, + nodes, + false, + 128, + 128, + false, + 50, p2pLOG); + assertEquals(0, p2p.getTempNodesCount()); } @Test - public void testTempNodes(){ + public void testTempNodes() { String[] nodes = new String[]{ - "p2p://" + nodeId2 + "@" + ip1+ ":" + port2, - "p2p://" + nodeId2 + "@" + ip2+ ":" + port1, - "p2p://" + nodeId2 + "@" + ip2+ ":" + port2, + "p2p://" + nodeId2 + "@" + ip1 + ":" + port2, + "p2p://" + nodeId2 + "@" + ip2 + ":" + port1, + "p2p://" + nodeId2 + "@" + ip2 + ":" + port2, }; P2pMgr p2p = new P2pMgr(0, - "", - nodeId1, - ip1, - port1, - nodes, - false, - 128, - 128, - false, - false, - false, - 50); + "", + nodeId1, + ip1, + port1, + nodes, + false, + 128, + 128, + false, + 50, p2pLOG); assertEquals(p2p.getTempNodesCount(), 3); } } diff --git a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java index f25963ac5e..973eb48e27 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java +++ b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java @@ -28,16 +28,18 @@ import static org.junit.Assert.*; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.UUID; import java.util.concurrent.ThreadLocalRandom; import org.aion.p2p.Ctrl; -import org.aion.p2p.Msg; import org.aion.p2p.Ver; import org.aion.p2p.impl.comm.Act; import org.aion.p2p.impl.comm.Node; import org.junit.Before; import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @author chris @@ -52,6 +54,9 @@ public class ReqHandshake1Test { private int port = ThreadLocalRandom.current().nextInt(); + private static Logger p2pLOG = LoggerFactory.getLogger("P2P"); + + private String randomIp = ThreadLocalRandom.current().nextInt(0,256) + "." + ThreadLocalRandom.current().nextInt(0,256) + "." + ThreadLocalRandom.current().nextInt(0,256) + "." + @@ -76,8 +81,9 @@ public void ReqHandshake2Test() { @Test public void testRoute() { - System.out.println("randomRevision " + randomRevision); - ReqHandshake1 req = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions); + System.out.println("randomRevision " + Arrays.toString(randomRevision)); + ReqHandshake1 req = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions, + p2pLOG); assertEquals(Ver.V0, req.getHeader().getVer()); assertEquals(Ctrl.NET, req.getHeader().getCtrl()); assertEquals(Act.REQ_HANDSHAKE, req.getHeader().getAction()); @@ -86,7 +92,8 @@ public void testRoute() { @Test public void testValidEncodeDecode() { - ReqHandshake1 req1 = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions); + ReqHandshake1 req1 = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions, + p2pLOG); byte[] bytes = req1.encode(); ReqHandshake1 req2 = ReqHandshake1.decode(bytes); @@ -101,7 +108,8 @@ public void testValidEncodeDecode() { @Test public void testInvalidEncodeDecode() { - ReqHandshake1 req1 = new ReqHandshake1(invalidNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions); + ReqHandshake1 req1 = new ReqHandshake1(invalidNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions, + p2pLOG); byte[] bytes = req1.encode(); assertNull(bytes); } From fdc1e7e05f7d401a90996401077446ab137e35f3 Mon Sep 17 00:00:00 2001 From: Victor Balan Date: Tue, 5 Jun 2018 11:18:13 +0300 Subject: [PATCH 106/129] Fix typo in ketstore path --- modMcf/src/org/aion/mcf/account/Keystore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modMcf/src/org/aion/mcf/account/Keystore.java b/modMcf/src/org/aion/mcf/account/Keystore.java index 6ad0f6132b..3627e238fd 100644 --- a/modMcf/src/org/aion/mcf/account/Keystore.java +++ b/modMcf/src/org/aion/mcf/account/Keystore.java @@ -77,7 +77,7 @@ public class Keystore { if (storageDir == null || storageDir.equalsIgnoreCase("")) { storageDir = System.getProperty("user.dir"); } - KEYSTORE_PATH = storageDir + "/keytstore"; + KEYSTORE_PATH = storageDir + "/keystore"; PATH = Paths.get(KEYSTORE_PATH); } From 51d78d830cbbfe9c6cf9e19c5d2e4bdf28d455d7 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 10:10:04 -0400 Subject: [PATCH 107/129] fix build error --- .../test/org/aion/zero/impl/sync/BlockPropagationTest.java | 6 ++++++ modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 9669a99910..165f5a89d5 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -45,6 +45,7 @@ import org.aion.zero.impl.sync.handler.BlockPropagationHandler; import org.aion.zero.impl.types.AionBlock; import org.junit.Test; +import org.slf4j.Logger; /** * Unit tests for block propagation @@ -266,6 +267,11 @@ public boolean validateNode(INode _node) { public int getSelfNetId() { throw new IllegalStateException("not implemented."); } + + @Override + public Logger getLogger() { + return null; + } } private static List generateDefaultAccounts() { diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index a7f6da810e..90ef199fcb 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -53,11 +53,6 @@ public void run() { if (logger.isDebugEnabled()) { logger.debug(status); - logger.debug( - "--------------------------------------------------------------------" - + "-------------------------------------------------------------------------------" - + "-----------------"); - logger.debug("recv queue[{}] send queue[{}]", this.receiveMsgQue.size(), this.sendMsgQue.size()); } From a472c03d5b5b291249df84c49772043f73013db9 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 12:14:15 -0400 Subject: [PATCH 108/129] 1. refine p2plog 2. update ant build files --- modAion/build.xml | 33 +- modAionBase/build.xml | 19 +- modAionImpl/build.xml | 40 +-- .../src/org/aion/zero/impl/AionHub.java | 291 +++++++++--------- .../zero/impl/sync/BlockPropagationTest.java | 5 - modApiServer/build.xml | 31 +- modBoot/build.xml | 41 +-- modBoot/src/org/aion/Aion.java | 107 ++++--- modCrypto/build.xml | 41 +-- modDbImpl/build.xml | 6 +- modEvtMgr/build.xml | 2 +- modEvtMgrImpl/build.xml | 2 +- modLogger/build.xml | 2 +- modMcf/build.xml | 6 +- modP2p/build.xml | 6 +- modP2p/module-info.java | 3 +- modP2p/src/org/aion/p2p/IP2pMgr.java | 3 - modP2pImpl/build.xml | 7 +- modP2pImpl/module-info.java | 1 + .../src/org/aion/p2p/impl/comm/NodeMgr.java | 16 +- .../aion/p2p/impl/zero/msg/ReqHandshake1.java | 11 +- modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java | 18 +- .../aion/p2p/impl1/tasks/ChannelBuffer.java | 18 +- .../org/aion/p2p/impl1/tasks/TaskClear.java | 4 +- .../p2p/impl1/tasks/TaskConnectPeers.java | 30 +- .../org/aion/p2p/impl1/tasks/TaskInbound.java | 55 ++-- .../org/aion/p2p/impl1/tasks/TaskReceive.java | 18 +- .../org/aion/p2p/impl1/tasks/TaskSend.java | 18 +- .../org/aion/p2p/impl1/tasks/TaskStatus.java | 14 +- .../org/aion/p2p/impl1/tasks/TaskWrite.java | 16 +- .../test/org/aion/p2p/impl/LastThousands.java | 6 +- .../test/org/aion/p2p/impl/P2pMgrTest.java | 15 +- .../p2p/impl/zero/msg/ReqHandshake1Test.java | 27 +- modRlp/build.xml | 43 +-- modTxPool/build.xml | 2 +- modTxPoolImpl/build.xml | 6 +- 36 files changed, 380 insertions(+), 583 deletions(-) diff --git a/modAion/build.xml b/modAion/build.xml index 8ca7563bef..2c8d6f244e 100644 --- a/modAion/build.xml +++ b/modAion/build.xml @@ -40,7 +40,7 @@ - @@ -51,7 +51,7 @@ - @@ -109,7 +109,7 @@ - @@ -130,31 +130,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modAionBase/build.xml b/modAionBase/build.xml index 251c73bd31..6bf46710cc 100644 --- a/modAionBase/build.xml +++ b/modAionBase/build.xml @@ -37,7 +37,7 @@ debug="${compile.debug}" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="${main.src.dir}" destdir="${main.build.dir}" includes="**/*.java, module-info.java" @@ -72,7 +72,7 @@ debug="true" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="${test.src.dir}" destdir="${test.build.dir}" > @@ -86,7 +86,7 @@ debug="true" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="${test.src.dir}" destdir="${test.build.dir}" > @@ -106,19 +106,6 @@ /> - - - - - - - - - diff --git a/modAionImpl/build.xml b/modAionImpl/build.xml index 1ac6932fdf..72c3934775 100644 --- a/modAionImpl/build.xml +++ b/modAionImpl/build.xml @@ -26,9 +26,10 @@ + + - @@ -40,6 +41,7 @@ + @@ -54,7 +56,7 @@ - @@ -65,7 +67,7 @@ - @@ -137,10 +139,11 @@ - + @@ -155,9 +158,6 @@ - - - @@ -186,30 +186,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 5025869883..0de41d296a 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -3,18 +3,18 @@ * * This file is part of the aion network project. * - * The aion network project is free software: you can redistribute it - * and/or modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of + * The aion network project is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of * the License, or any later version. * - * The aion network project is distributed in the hope that it will - * be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * The aion network project is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with the aion network project source files. + * along with the aion network project source files. * If not, see . * * Contributors: @@ -73,72 +73,69 @@ public class AionHub { - private static final Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.name()); + private static final Logger genLOG = AionLoggerFactory.getLogger(LogEnum.GEN.name()); - private static final Logger syncLog = AionLoggerFactory.getLogger(LogEnum.SYNC.name()); - - private static final Logger p2pLog = AionLoggerFactory.getLogger(LogEnum.P2P.name()); + private static final Logger syncLOG = AionLoggerFactory.getLogger(LogEnum.SYNC.name()); private IP2pMgr p2pMgr; - private CfgAion cfg; + private CfgAion cfg; - private SyncMgr syncMgr; + private SyncMgr syncMgr; - private BlockPropagationHandler propHandler; + private BlockPropagationHandler propHandler; - private IPendingStateInternal mempool; + private IPendingStateInternal mempool; - private IAionBlockchain blockchain; + private IAionBlockchain blockchain; - // TODO: Refactor to interface later - private AionRepositoryImpl repository; + // TODO: Refactor to interface later + private AionRepositoryImpl repository; - private ITransactionExecThread txThread; + private ITransactionExecThread txThread; - private IEventMgr eventMgr; + private IEventMgr eventMgr; - private AionPoW pow; + private AionPoW pow; - private AtomicBoolean start = new AtomicBoolean(true); + private AtomicBoolean start = new AtomicBoolean(true); - /** - * A "cached" block that represents our local best block when the application is - * first booted. - */ - private volatile AionBlock startingBlock; + /** + * A "cached" block that represents our local best block when the application is first booted. + */ + private volatile AionBlock startingBlock; - /** - * Initialize as per the Initialization-on-demand - * holder pattern - */ - private static class Holder { - static final AionHub INSTANCE = new AionHub(); - } + /** + * Initialize as per the Initialization-on-demand + * holder pattern + */ + private static class Holder { - public static AionHub inst() { - return Holder.INSTANCE; - } + static final AionHub INSTANCE = new AionHub(); + } - public AionHub() { + public static AionHub inst() { + return Holder.INSTANCE; + } + + public AionHub() { - this.cfg = CfgAion.inst(); + this.cfg = CfgAion.inst(); - // load event manager before init blockchain instance - loadEventMgr(); + // load event manager before init blockchain instance + loadEventMgr(); - AionBlockchainImpl blockchain = AionBlockchainImpl.inst(); - blockchain.setEventManager(this.eventMgr); - this.blockchain = blockchain; + AionBlockchainImpl blockchain = AionBlockchainImpl.inst(); + blockchain.setEventManager(this.eventMgr); + this.blockchain = blockchain; - this.repository = AionRepositoryImpl.inst(); + this.repository = AionRepositoryImpl.inst(); - this.mempool = AionPendingStateImpl.inst(); + this.mempool = AionPendingStateImpl.inst(); - this.txThread = AionTransactionExecThread.getInstance(); + this.txThread = AionTransactionExecThread.getInstance(); - loadBlockchain(); + loadBlockchain(); this.startingBlock = this.blockchain.getBestBlock(); if (!cfg.getConsensus().isSeed()) { @@ -148,60 +145,68 @@ public AionHub() { this.mempool.loadPendingTx(); } } else { - LOG.info("Seed node mode enabled!"); + genLOG.info("Seed node mode enabled!"); } - String reportsFolder = ""; - if (cfg.getReports().isEnabled()) { - File rpf = new File(cfg.getBasePath(), cfg.getReports().getPath()); - rpf.mkdirs(); - reportsFolder = rpf.getAbsolutePath(); - } + String reportsFolder = ""; + if (cfg.getReports().isEnabled()) { + File rpf = new File(cfg.getBasePath(), cfg.getReports().getPath()); + rpf.mkdirs(); + reportsFolder = rpf.getAbsolutePath(); + } - /* - * p2p hook up start sync mgr needs to be initialed after loadBlockchain() - * method - */ - CfgNetP2p cfgNetP2p = this.cfg.getNet().getP2p(); + /* + * p2p hook up start sync mgr needs to be initialed after loadBlockchain() + * method + */ + CfgNetP2p cfgNetP2p = this.cfg.getNet().getP2p(); - // there two p2p impletation , now just point to impl1. - this.p2pMgr = new P2pMgr(this.cfg.getNet().getId(), Version.KERNEL_VERSION, this.cfg.getId(), cfgNetP2p.getIp(), - cfgNetP2p.getPort(), this.cfg.getNet().getNodes(), cfgNetP2p.getDiscover(), cfgNetP2p.getMaxTempNodes(), - cfgNetP2p.getMaxActiveNodes(), - cfgNetP2p.getBootlistSyncOnly(), cfgNetP2p.getErrorTolerance(), p2pLog); + // there are two p2p implementation , now just point to impl1. + this.p2pMgr = new P2pMgr(this.cfg.getNet().getId(), Version.KERNEL_VERSION, + this.cfg.getId(), cfgNetP2p.getIp(), + cfgNetP2p.getPort(), this.cfg.getNet().getNodes(), cfgNetP2p.getDiscover(), + cfgNetP2p.getMaxTempNodes(), + cfgNetP2p.getMaxActiveNodes(), + cfgNetP2p.getBootlistSyncOnly(), cfgNetP2p.getErrorTolerance()); - this.syncMgr = SyncMgr.inst(); - this.syncMgr.init(this.p2pMgr, this.eventMgr, this.cfg.getSync().getBlocksQueueMax(), - this.cfg.getSync().getShowStatus(), this.cfg.getReports().isEnabled(), reportsFolder); + this.syncMgr = SyncMgr.inst(); + this.syncMgr.init(this.p2pMgr, this.eventMgr, this.cfg.getSync().getBlocksQueueMax(), + this.cfg.getSync().getShowStatus(), this.cfg.getReports().isEnabled(), reportsFolder); - ChainConfiguration chainConfig = new ChainConfiguration(); - this.propHandler = new BlockPropagationHandler(1024, this.blockchain, this.p2pMgr, - chainConfig.createBlockHeaderValidator(), this.cfg.getNet().getP2p().isSyncOnlyNode()); + ChainConfiguration chainConfig = new ChainConfiguration(); + this.propHandler = new BlockPropagationHandler(1024, this.blockchain, this.p2pMgr, + chainConfig.createBlockHeaderValidator(), this.cfg.getNet().getP2p().isSyncOnlyNode()); - registerCallback(); - this.p2pMgr.run(); + registerCallback(); + this.p2pMgr.run(); - ((AionPendingStateImpl)this.mempool).setP2pMgr(this.p2pMgr); + ((AionPendingStateImpl) this.mempool).setP2pMgr(this.p2pMgr); - this.pow = new AionPoW(); - this.pow.init(blockchain, mempool, eventMgr); + this.pow = new AionPoW(); + this.pow.init(blockchain, mempool, eventMgr); if (cfg.getReports().isHeapDumpEnabled()) { - new Thread(new TaskDumpHeap(this.start, cfg.getReports().getHeapDumpInterval(), reportsFolder), "dump-heap") - .start(); + new Thread( + new TaskDumpHeap(this.start, cfg.getReports().getHeapDumpInterval(), reportsFolder), + "dump-heap") + .start(); } } private void registerCallback() { List cbs = new ArrayList<>(); - cbs.add(new ReqStatusHandler(syncLog, this.blockchain, this.p2pMgr, cfg.getGenesis().getHash())); - cbs.add(new ResStatusHandler(syncLog, this.p2pMgr, this.syncMgr)); - cbs.add(new ReqBlocksHeadersHandler(syncLog, this.blockchain, this.p2pMgr, this.cfg.getNet().getP2p().isSyncOnlyNode())); - cbs.add(new ResBlocksHeadersHandler(syncLog, this.syncMgr, this.p2pMgr)); - cbs.add(new ReqBlocksBodiesHandler(syncLog, this.blockchain, this.p2pMgr, this.cfg.getNet().getP2p().isSyncOnlyNode())); - cbs.add(new ResBlocksBodiesHandler(syncLog, this.syncMgr, this.p2pMgr)); - cbs.add(new BroadcastTxHandler(syncLog, this.mempool, this.p2pMgr, this.cfg.getNet().getP2p().isSyncOnlyNode())); - cbs.add(new BroadcastNewBlockHandler(syncLog, this.propHandler, this.p2pMgr)); + cbs.add(new ReqStatusHandler(syncLOG, this.blockchain, this.p2pMgr, + cfg.getGenesis().getHash())); + cbs.add(new ResStatusHandler(syncLOG, this.p2pMgr, this.syncMgr)); + cbs.add(new ReqBlocksHeadersHandler( + syncLOG, this.blockchain, this.p2pMgr, this.cfg.getNet().getP2p().isSyncOnlyNode())); + cbs.add(new ResBlocksHeadersHandler(syncLOG, this.syncMgr, this.p2pMgr)); + cbs.add(new ReqBlocksBodiesHandler( + syncLOG, this.blockchain, this.p2pMgr, this.cfg.getNet().getP2p().isSyncOnlyNode())); + cbs.add(new ResBlocksBodiesHandler(syncLOG, this.syncMgr, this.p2pMgr)); + cbs.add(new BroadcastTxHandler( + syncLOG, this.mempool, this.p2pMgr, this.cfg.getNet().getP2p().isSyncOnlyNode())); + cbs.add(new BroadcastNewBlockHandler(syncLOG, this.propHandler, this.p2pMgr)); this.p2pMgr.register(cbs); } @@ -212,7 +217,7 @@ private void loadEventMgr() { try { ServiceLoader.load(EventMgrModule.class); } catch (Exception e) { - LOG.error("load EventMgr service fail!" + e.toString()); + genLOG.error("load EventMgr service fail!" + e.toString()); throw e; } @@ -222,7 +227,7 @@ private void loadEventMgr() { try { this.eventMgr = EventMgrModule.getSingleton(prop).getEventMgr(); } catch (Throwable e) { - LOG.error("Can not load the Event Manager Module", e.getMessage()); + genLOG.error("Can not load the Event Manager Module", e.getMessage()); } if (eventMgr == null) { @@ -252,10 +257,6 @@ public IEventMgr getEventMgr() { return this.eventMgr; } - public ITransactionExecThread getTxThread() { - return this.txThread; - } - public BlockPropagationHandler getPropHandler() { return propHandler; } @@ -268,7 +269,8 @@ private void loadBlockchain() { AionBlock bestBlock = this.repository.getBlockStore().getBestBlock(); if (bestBlock != null) { bestBlock - .setCumulativeDifficulty(repository.getBlockStore().getTotalDifficultyForHash(bestBlock.getHash())); + .setCumulativeDifficulty( + repository.getBlockStore().getTotalDifficultyForHash(bestBlock.getHash())); } boolean recovered = true; @@ -277,11 +279,13 @@ private void loadBlockchain() { // fix the trie if necessary while (bestBlockShifted && // the best block was updated after recovery attempt - (countRecoveryAttempts < 5) && // allow 5 recovery attempts - bestBlock != null && // recover only for non-null blocks - !this.repository.isValidRoot(bestBlock.getStateRoot())) { + (countRecoveryAttempts < 5) && // allow 5 recovery attempts + bestBlock != null && // recover only for non-null blocks + !this.repository.isValidRoot(bestBlock.getStateRoot())) { - LOG.info("Recovery initiated due to corrupt world state at block " + bestBlock.getNumber() + "."); + genLOG.info( + "Recovery initiated due to corrupt world state at block " + bestBlock.getNumber() + + "."); long bestBlockNumber = bestBlock.getNumber(); byte[] bestBlockRoot = bestBlock.getStateRoot(); @@ -289,16 +293,17 @@ private void loadBlockchain() { // ensure that the genesis state exists before attempting recovery AionGenesis genesis = cfg.getGenesis(); if (!this.repository.isValidRoot(genesis.getStateRoot())) { - LOG.info( - "Corrupt world state for genesis block hash: " + genesis.getShortHash() + ", number: " + genesis - .getNumber() + "."); + genLOG.info( + "Corrupt world state for genesis block hash: " + genesis.getShortHash() + + ", number: " + genesis + .getNumber() + "."); AionHubUtils.buildGenesis(genesis, repository); if (repository.isValidRoot(genesis.getStateRoot())) { - LOG.info("Rebuilding genesis block SUCCEEDED."); + genLOG.info("Rebuilding genesis block SUCCEEDED."); } else { - LOG.info("Rebuilding genesis block FAILED."); + genLOG.info("Rebuilding genesis block FAILED."); } } @@ -306,39 +311,43 @@ private void loadBlockchain() { if (!this.repository.isValidRoot(bestBlock.getStateRoot())) { // reverting back one block - LOG.info("Rebuild state FAILED. Reverting to previous block."); + genLOG.info("Rebuild state FAILED. Reverting to previous block."); long blockNumber = bestBlock.getNumber() - 1; RecoveryUtils.Status status = RecoveryUtils.revertTo(this.blockchain, blockNumber); recovered = (status == RecoveryUtils.Status.SUCCESS) && this.repository - .isValidRoot(this.repository.getBlockStore().getChainBlockByNumber(blockNumber).getStateRoot()); + .isValidRoot(this.repository.getBlockStore().getChainBlockByNumber(blockNumber) + .getStateRoot()); } if (recovered) { bestBlock = this.repository.getBlockStore().getBestBlock(); if (bestBlock != null) { bestBlock.setCumulativeDifficulty(repository.getBlockStore() - .getTotalDifficultyForHash(bestBlock.getHash())); + .getTotalDifficultyForHash(bestBlock.getHash())); } // checking is the best block has changed since attempting recovery if (bestBlock == null) { bestBlockShifted = true; } else { - bestBlockShifted = !(bestBlockNumber == bestBlock.getNumber()) || // block number changed - !(Arrays.equals(bestBlockRoot, bestBlock.getStateRoot())); // root hash changed + bestBlockShifted = + !(bestBlockNumber == bestBlock.getNumber()) || // block number changed + !(Arrays.equals(bestBlockRoot, + bestBlock.getStateRoot())); // root hash changed } if (bestBlockShifted) { - LOG.info("Rebuilding world state SUCCEEDED by REVERTING to a previous block."); + genLOG + .info("Rebuilding world state SUCCEEDED by REVERTING to a previous block."); } else { - LOG.info("Rebuilding world state SUCCEEDED."); + genLOG.info("Rebuilding world state SUCCEEDED."); } } else { - LOG.error("Rebuilding world state FAILED. " - + "Stop the kernel (Ctrl+C) and use the command line revert option to move back to a valid block. " - + "Check the Aion wiki for recommendations on choosing the block number."); + genLOG.error("Rebuilding world state FAILED. " + + "Stop the kernel (Ctrl+C) and use the command line revert option to move back to a valid block. " + + "Check the Aion wiki for recommendations on choosing the block number."); } countRecoveryAttempts++; @@ -347,9 +356,9 @@ private void loadBlockchain() { // rebuild from genesis if (1) no best block (2) recovery failed if (bestBlock == null || !recovered) { if (bestBlock == null) { - LOG.info("DB is empty - adding Genesis"); + genLOG.info("DB is empty - adding Genesis"); } else { - LOG.info("DB could not be recovered - adding Genesis"); + genLOG.info("DB could not be recovered - adding Genesis"); } AionGenesis genesis = cfg.getGenesis(); @@ -366,40 +375,44 @@ private void loadBlockchain() { this.eventMgr.registerEvent(evts); } else { - LOG.error("Event manager is null !!!"); + genLOG.error("Event manager is null !!!"); System.exit(-1); } - LOG.info("loaded genesis block ", 0, ByteUtil.toHexString(genesis.getStateRoot())); + genLOG.info("loaded genesis block ", 0, + ByteUtil.toHexString(genesis.getStateRoot())); } else { blockchain.setBestBlock(bestBlock); blockchain.setTotalDifficulty(this.repository.getBlockStore().getTotalDifficulty()); - LOG.info("loaded block ", blockchain.getBestBlock().getNumber(), - LogUtil.toHexF8(blockchain.getBestBlock().getStateRoot())); + genLOG.info("loaded block ", blockchain.getBestBlock().getNumber(), + LogUtil.toHexF8(blockchain.getBestBlock().getStateRoot())); } byte[] genesisHash = cfg.getGenesis().getHash(); - byte[] databaseGenHash = blockchain.getBlockByNumber(0) == null ? null : blockchain.getBlockByNumber(0).getHash(); + byte[] databaseGenHash = blockchain.getBlockByNumber(0) == null ? null + : blockchain.getBlockByNumber(0).getHash(); // this indicates that DB and genesis are inconsistent - if (genesisHash == null || databaseGenHash == null || (!Arrays.equals(genesisHash, databaseGenHash))) { + if (genesisHash == null || databaseGenHash == null || (!Arrays + .equals(genesisHash, databaseGenHash))) { if (genesisHash == null) { - LOG.error("failed to load genesis from config"); + genLOG.error("failed to load genesis from config"); } if (databaseGenHash == null) { - LOG.error("failed to load block 0 from database"); + genLOG.error("failed to load block 0 from database"); } - LOG.error("genesis json rootHash {} is inconsistent with database rootHash {}\n" + - "your configuration and genesis are incompatible, please do the following:\n" + - "\t1) Remove your database folder\n" + - "\t2) Verify that your genesis is correct by re-downloading the binary or checking online\n" + - "\t3) Reboot with correct genesis and empty database\n", - genesisHash == null ? "null" : ByteUtil.toHexString(genesisHash), - databaseGenHash == null ? "null" : ByteUtil.toHexString(databaseGenHash)); + genLOG.error("genesis json rootHash {} is inconsistent with database rootHash {}\n" + + "your configuration and genesis are incompatible, please do the following:\n" + + "\t1) Remove your database folder\n" + + "\t2) Verify that your genesis is correct by re-downloading the binary or checking online\n" + + + "\t3) Reboot with correct genesis and empty database\n", + genesisHash == null ? "null" : ByteUtil.toHexString(genesisHash), + databaseGenHash == null ? "null" : ByteUtil.toHexString(databaseGenHash)); System.exit(-1); } @@ -411,21 +424,21 @@ private void loadBlockchain() { } public void close() { - LOG.info(""); + genLOG.info(""); if (syncMgr != null) { syncMgr.shutdown(); - LOG.info(""); + genLOG.info(""); } if (p2pMgr != null) { p2pMgr.shutdown(); - LOG.info(""); + genLOG.info(""); } if (txThread != null) { txThread.shutdown(); - LOG.info(""); + genLOG.info(""); } if (eventMgr != null) { @@ -438,17 +451,17 @@ public void close() { if (getPendingState() != null) { getPendingState().shutDown(); - LOG.info(""); + genLOG.info(""); } - LOG.info("shutting down consensus..."); + genLOG.info("shutting down consensus..."); pow.shutdown(); - LOG.info("shutdown consensus... Done!"); + genLOG.info("shutdown consensus... Done!"); if (repository != null) { - LOG.info("shutting down DB..."); + genLOG.info("shutting down DB..."); repository.close(); - LOG.info("shutdown DB... Done!"); + genLOG.info("shutdown DB... Done!"); } this.start.set(false); diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 165f5a89d5..96b9eb6e8c 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -45,7 +45,6 @@ import org.aion.zero.impl.sync.handler.BlockPropagationHandler; import org.aion.zero.impl.types.AionBlock; import org.junit.Test; -import org.slf4j.Logger; /** * Unit tests for block propagation @@ -268,10 +267,6 @@ public int getSelfNetId() { throw new IllegalStateException("not implemented."); } - @Override - public Logger getLogger() { - return null; - } } private static List generateDefaultAccounts() { diff --git a/modApiServer/build.xml b/modApiServer/build.xml index 63423de0a7..dfb936a416 100644 --- a/modApiServer/build.xml +++ b/modApiServer/build.xml @@ -35,7 +35,7 @@ - @@ -63,7 +63,7 @@ - @@ -93,31 +93,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modBoot/build.xml b/modBoot/build.xml index 1af2ade438..1e298dc6b0 100644 --- a/modBoot/build.xml +++ b/modBoot/build.xml @@ -39,7 +39,7 @@ debug="on" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="./test" destdir="${dir.test}" includes="**/*Test.java" @@ -74,7 +74,7 @@ debug="${compile.debug}" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="./" destdir="${dir.dest}" includes="src/**/*.java,module-info.java" @@ -103,41 +103,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modBoot/src/org/aion/Aion.java b/modBoot/src/org/aion/Aion.java index 1fbd6180fc..4115120d67 100644 --- a/modBoot/src/org/aion/Aion.java +++ b/modBoot/src/org/aion/Aion.java @@ -22,6 +22,11 @@ */ package org.aion; +import static org.aion.crypto.ECKeyFac.ECKeyType.ED25519; +import static org.aion.crypto.HashUtil.H256Type.BLAKE2B_256; +import static org.aion.zero.impl.Version.KERNEL_VERSION; + +import java.util.ServiceLoader; import org.aion.api.server.http.NanoServer; import org.aion.api.server.pb.ApiAion0; import org.aion.api.server.pb.IHdlr; @@ -40,15 +45,9 @@ import org.aion.zero.impl.config.CfgAion; import org.slf4j.Logger; -import java.util.ServiceLoader; - -import static org.aion.crypto.ECKeyFac.ECKeyType.ED25519; -import static org.aion.crypto.HashUtil.H256Type.BLAKE2B_256; -import static org.aion.zero.impl.Version.KERNEL_VERSION; - public class Aion { - public static void main(String args[]) throws InterruptedException { + public static void main(String args[]) { /* * @ATTENTION: ECKey have two layer: tx layer is KeyFac optional, @@ -68,9 +67,9 @@ public static void main(String args[]) throws InterruptedException { * if in the config.xml id is set as default [NODE-ID-PLACEHOLDER] * return true which means should save back to xml config */ - if(cfg.fromXML()) - cfg.toXML(new String[]{ "--id=" + cfg.getId() }); - + if (cfg.fromXML()) { + cfg.toXML(new String[]{"--id=" + cfg.getId()}); + } try { ServiceLoader.load(AionLoggerFactory.class); @@ -80,18 +79,19 @@ public static void main(String args[]) throws InterruptedException { } System.out.println( - " _____ \n" + - " .'. | .~ ~. |.. |\n" + - " .' `. | | | | ``.. |\n" + - " .''''''''`. | | | | ``.. |\n" + - ".' `. | `._____.' | ``|\n\n" + - " NETWORK v" + KERNEL_VERSION + - "\n\n" + " _____ \n" + + " .'. | .~ ~. |.. |\n" + + " .' `. | | | | ``.. |\n" + + " .''''''''`. | | | | ``.. |\n" + + ".' `. | `._____.' | ``|\n\n" + + " NETWORK v" + KERNEL_VERSION + + "\n\n" ); /* Outputs relevant logger configuration */ if (!cfg.getLog().getLogFile()) { - System.out.println("Logger disabled; to enable please check log settings in config.xml\n"); + System.out + .println("Logger disabled; to enable please check log settings in config.xml\n"); } else if (!cfg.getLog().isValidPath() && cfg.getLog().getLogFile()) { System.out.println("File path is invalid; please check log setting in config.xml\n"); return; @@ -102,8 +102,9 @@ public static void main(String args[]) throws InterruptedException { /* * Logger initialize with LOGFILE and LOGPATH (user config inputs) */ - AionLoggerFactory.init(cfg.getLog().getModules(), cfg.getLog().getLogFile(), cfg.getLog().getLogPath()); - Logger LOG = AionLoggerFactory.getLogger(LogEnum.GEN.toString()); + AionLoggerFactory + .init(cfg.getLog().getModules(), cfg.getLog().getLogFile(), cfg.getLog().getLogPath()); + Logger genLog = AionLoggerFactory.getLogger(LogEnum.GEN.name()); IAionChain ac = AionFactory.create(); @@ -125,22 +126,19 @@ public static void main(String args[]) throws InterruptedException { if (cfg.getApi().getZmq().getActive()) { IHdlr handler = new HdlrZmq(new ApiAion0(ac)); processor = new ProtocolProcessor(handler, cfg.getApi().getZmq()); - ProtocolProcessor finalProcessor = processor; - zmqThread = new Thread(() -> { - finalProcessor.run(); - }, "zmq-api"); + zmqThread = new Thread(processor, "zmq-api"); zmqThread.start(); } NanoServer rpcServer = null; - if(cfg.getApi().getRpc().getActive()) { - CfgApiRpc rpcCfg = cfg.getApi().getRpc(); + if (cfg.getApi().getRpc().getActive()) { + CfgApiRpc rpcCfg = cfg.getApi().getRpc(); rpcServer = new NanoServer( - rpcCfg.getIp(), - rpcCfg.getPort(), - rpcCfg.getCorsEnabled(), - rpcCfg.getEnabled(), - rpcCfg.getMaxthread()); + rpcCfg.getIp(), + rpcCfg.getPort(), + rpcCfg.getCorsEnabled(), + rpcCfg.getEnabled(), + rpcCfg.getMaxthread()); rpcServer.start(); } @@ -149,12 +147,14 @@ public static void main(String args[]) throws InterruptedException { * Shutdown hook for Ctrl+C */ class ShutdownThreadHolder { - final Thread zmqThread; - final IMineRunner miner; - final ProtocolProcessor pp; - final NanoServer rpc; - private ShutdownThreadHolder(Thread zmqThread, IMineRunner nm, ProtocolProcessor pp, NanoServer rpc) { + private final Thread zmqThread; + private final IMineRunner miner; + private final ProtocolProcessor pp; + private final NanoServer rpc; + + private ShutdownThreadHolder(Thread zmqThread, IMineRunner nm, ProtocolProcessor pp, + NanoServer rpc) { this.zmqThread = zmqThread; this.miner = nm; this.pp = pp; @@ -166,38 +166,49 @@ private ShutdownThreadHolder(Thread zmqThread, IMineRunner nm, ProtocolProcessor Runtime.getRuntime().addShutdownHook(new Thread(() -> { - LOG.info("Starting shutdown process..."); + genLog.info("Starting shutdown process..."); if (holder.rpc != null) { - LOG.info("Shutting down RpcServer"); + genLog.info("Shutting down RpcServer"); holder.rpc.shutdown(); - LOG.info("Shutdown RpcServer ... Done!"); + genLog.info("Shutdown RpcServer ... Done!"); } if (holder.pp != null) { - LOG.info("Shutting down zmq ProtocolProcessor"); + genLog.info("Shutting down zmq ProtocolProcessor"); try { holder.pp.shutdown(); - LOG.info("Shutdown zmq ProtocolProcessor... Done!"); + genLog.info("Shutdown zmq ProtocolProcessor... Done!"); } catch (InterruptedException e) { - LOG.info("Shutdown zmq ProtocolProcessor failed! {}", e.getMessage()); + genLog.info("Shutdown zmq ProtocolProcessor failed! {}", e.getMessage()); + Thread.currentThread().interrupt(); + } + } + + if (holder.zmqThread != null) { + genLog.info("Shutting down zmq thread"); + try { + holder.zmqThread.interrupt(); + genLog.info("Shutdown zmq thread... Done!"); + } catch (Exception e) { + genLog.info("Shutdown zmq thread failed! {}", e.getMessage()); Thread.currentThread().interrupt(); } } if (holder.miner != null) { - LOG.info("Shutting down sealer"); + genLog.info("Shutting down sealer"); holder.miner.stopMining(); holder.miner.shutdown(); - LOG.info("Shutdown sealer... Done!"); + genLog.info("Shutdown sealer... Done!"); } - LOG.info("Shutting down the AionHub..."); + genLog.info("Shutting down the AionHub..."); ac.getAionHub().close(); - LOG.info("---------------------------------------------"); - LOG.info("| Aion kernel graceful shutdown successful! |"); - LOG.info("---------------------------------------------"); + genLog.info("---------------------------------------------"); + genLog.info("| Aion kernel graceful shutdown successful! |"); + genLog.info("---------------------------------------------"); }, "shutdown")); } diff --git a/modCrypto/build.xml b/modCrypto/build.xml index 79da0da40f..59f31348a8 100644 --- a/modCrypto/build.xml +++ b/modCrypto/build.xml @@ -19,13 +19,6 @@ - - - - - - - @@ -56,7 +49,7 @@ - + @@ -71,37 +64,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -110,7 +77,7 @@ - + @@ -160,6 +127,4 @@ - - diff --git a/modDbImpl/build.xml b/modDbImpl/build.xml index 543e9d2fb6..c78257b5a8 100644 --- a/modDbImpl/build.xml +++ b/modDbImpl/build.xml @@ -44,7 +44,7 @@ - + @@ -54,7 +54,7 @@ - + @@ -98,7 +98,7 @@ - + diff --git a/modEvtMgr/build.xml b/modEvtMgr/build.xml index ce16f070c9..e2fbe52e2a 100644 --- a/modEvtMgr/build.xml +++ b/modEvtMgr/build.xml @@ -17,7 +17,7 @@ - + diff --git a/modEvtMgrImpl/build.xml b/modEvtMgrImpl/build.xml index b587a7481a..ec2d130413 100644 --- a/modEvtMgrImpl/build.xml +++ b/modEvtMgrImpl/build.xml @@ -18,7 +18,7 @@ - + diff --git a/modLogger/build.xml b/modLogger/build.xml index c38ea44b37..49406f2a1e 100644 --- a/modLogger/build.xml +++ b/modLogger/build.xml @@ -22,7 +22,7 @@ debug="${compile.debug}" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="./" destdir="${dir.dest}" includes="src/**/*.java,module-info.java" diff --git a/modMcf/build.xml b/modMcf/build.xml index 1aa1732eb7..c4abab99bd 100644 --- a/modMcf/build.xml +++ b/modMcf/build.xml @@ -59,7 +59,7 @@ - + @@ -69,7 +69,7 @@ - + @@ -126,7 +126,7 @@ - + diff --git a/modP2p/build.xml b/modP2p/build.xml index 8fab734ee7..8b325597e3 100644 --- a/modP2p/build.xml +++ b/modP2p/build.xml @@ -7,7 +7,6 @@ - @@ -27,7 +26,7 @@ - + @@ -51,9 +50,8 @@ - + - diff --git a/modP2p/module-info.java b/modP2p/module-info.java index 4119995ab8..14383816c4 100644 --- a/modP2p/module-info.java +++ b/modP2p/module-info.java @@ -1,5 +1,4 @@ module aion.p2p { requires aion.base; - requires slf4j.api; - exports org.aion.p2p; + exports org.aion.p2p; } diff --git a/modP2p/src/org/aion/p2p/IP2pMgr.java b/modP2p/src/org/aion/p2p/IP2pMgr.java index 8dfd0ca753..a23aae4b90 100644 --- a/modP2p/src/org/aion/p2p/IP2pMgr.java +++ b/modP2p/src/org/aion/p2p/IP2pMgr.java @@ -26,7 +26,6 @@ import java.nio.channels.SocketChannel; import java.util.List; import java.util.Map; -import org.slf4j.Logger; /** @author chris */ public interface IP2pMgr { @@ -75,6 +74,4 @@ public interface IP2pMgr { boolean validateNode(INode _node); int getSelfNetId(); - - Logger getLogger(); } diff --git a/modP2pImpl/build.xml b/modP2pImpl/build.xml index 3b33b16e25..0a46495e7c 100644 --- a/modP2pImpl/build.xml +++ b/modP2pImpl/build.xml @@ -14,12 +14,11 @@ - - + @@ -40,7 +39,7 @@ - + @@ -81,7 +80,7 @@ - + diff --git a/modP2pImpl/module-info.java b/modP2pImpl/module-info.java index 06129eb24d..6c67322ad4 100644 --- a/modP2pImpl/module-info.java +++ b/modP2pImpl/module-info.java @@ -1,6 +1,7 @@ module aion.p2p.impl { requires aion.p2p; requires aion.base; + requires aion.log; requires miniupnpc.linux; exports org.aion.p2p.impl1; diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index 642e81395b..5746e57748 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -22,6 +22,8 @@ */ package org.aion.p2p.impl.comm; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.nio.ByteBuffer; import java.security.SecureRandom; import org.aion.p2p.INode; @@ -128,7 +130,7 @@ public String dumpNodeInfo(String selfShortId) { ); } catch (Exception ex) { ex.printStackTrace(); - p2pMgr.getLogger().error("NodeMgr dumpNodeInfo exception {}", ex.getMessage()); + p2pLOG.error("NodeMgr dumpNodeInfo exception {}", ex.getMessage()); } } } @@ -310,8 +312,8 @@ public synchronized void moveInboundToActive(int _channelHashCode, final IP2pMgr _p2pMgr.closeSocket(node.getChannel(), "inbound -> active, ip " + node.getIpStr() + " exits"); } else { - if (p2pMgr.getLogger().isDebugEnabled()) { - p2pMgr.getLogger().debug("inbound -> active node-id={} ip={}", node.getIdShort(), node + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("inbound -> active node-id={} ip={}", node.getIdShort(), node .getIpStr()); } } @@ -346,8 +348,8 @@ public synchronized void moveOutboundToActive(int _nodeIdHash, String _shortId, _p2pMgr.closeSocket(node.getChannel(), "outbound -> active, node " + previous.getIdShort() + " exits"); } else { - if (p2pMgr.getLogger().isDebugEnabled()) { - p2pMgr.getLogger().debug("outbound -> active node-id={} ip={}", _shortId, node.getIpStr()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("outbound -> active node-id={} ip={}", _shortId, node.getIpStr()); } } } @@ -372,8 +374,8 @@ private void timeoutActive(IP2pMgr _p2pMgr) { .mapToLong(n -> now - n.getTimestamp()).average(); double timeout = average.orElse(4000) * 5; timeout = Math.max(10000, Math.min(timeout, 60000)); - if (p2pMgr.getLogger().isDebugEnabled()) { - p2pMgr.getLogger().debug("average-delay={}ms", (long)average.orElse(0)); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("average-delay={}ms", (long)average.orElse(0)); } Iterator activeIt = activeNodes.keySet().iterator(); diff --git a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java index 8c1200c1dc..f653018706 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java +++ b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ReqHandshake1.java @@ -25,10 +25,11 @@ package org.aion.p2p.impl.zero.msg; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; -import org.slf4j.Logger; /** * @@ -50,8 +51,6 @@ public final class ReqHandshake1 extends ReqHandshake { // super LEN + revision len (byte) + versions len (byte) private static final int MIN_LEN = LEN + 2; - private static Logger p2pLOG; - /** * @param _nodeId byte[36] * @param _netId int @@ -59,14 +58,12 @@ public final class ReqHandshake1 extends ReqHandshake { * @param _port int * @param _revision String * @param _versions List header contains 2 byte version - * @param p2pLOG log for p2pModule */ public ReqHandshake1(final byte[] _nodeId, int _netId, final byte[] _ip, int _port, - final byte[] _revision, final List _versions, final Logger p2pLOG) { + final byte[] _revision, final List _versions) { super(_nodeId, _netId, _ip, _port); this.revision = _revision; this.versions = _versions.subList(0, Math.min(MAX_VERSIONS_LEN, _versions.size())); - ReqHandshake1.p2pLOG = p2pLOG; } public byte[] getRevision(){ @@ -112,7 +109,7 @@ public static ReqHandshake1 decode(final byte[] _bytes) { versions.add(version); } - return new ReqHandshake1(nodeId, netId, ip, port, revision, versions, p2pLOG); + return new ReqHandshake1(nodeId, netId, ip, port, revision, versions); } catch (Exception e) { if (p2pLOG.isDebugEnabled()) { p2pLOG.debug("req-handshake-decode error={}", e.getMessage()); diff --git a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java index 04c8e8908c..48c5da33d9 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/P2pMgr.java @@ -43,6 +43,8 @@ import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.log.AionLoggerFactory; +import org.aion.log.LogEnum; import org.aion.p2p.Ctrl; import org.aion.p2p.Handler; import org.aion.p2p.Header; @@ -83,7 +85,7 @@ public final class P2pMgr implements IP2pMgr { public static int txBroadCastRoute = (Ctrl.SYNC << 8) + 6; // ((Ver.V0 << 16) + (Ctrl.SYNC << 8) + 6); - private final Logger p2pLOG; + public static final Logger p2pLOG = AionLoggerFactory.getLogger(LogEnum.P2P.name()); private int maxTempNodes, maxActiveNodes, selfNetId, selfNodeIdHash, selfPort; private boolean syncSeedsOnly, upnpEnable; @@ -105,10 +107,6 @@ public final class P2pMgr implements IP2pMgr { private static ReqHandshake1 cachedReqHandshake1; private static ResHandshake1 cachedResHandshake1; - public Logger getLogger() { - return p2pLOG; - } - public enum Dest { INBOUND, OUTBOUND, @@ -135,8 +133,7 @@ public P2pMgr( final int _maxTempNodes, final int _maxActiveNodes, final boolean _bootlistSyncOnly, - final int _errorTolerance, - final Logger _log) { + final int _errorTolerance) { this.selfNetId = _netId; this.selfRevision = _revision; @@ -150,7 +147,6 @@ public P2pMgr( this.maxActiveNodes = _maxActiveNodes; this.syncSeedsOnly = _bootlistSyncOnly; this.errTolerance = _errorTolerance; - this.p2pLOG = _log; nodeMgr = new NodeMgr(this, _maxActiveNodes, _maxTempNodes); @@ -447,7 +443,7 @@ private TaskSend getSendInstance(int i) { } private TaskReceive getReceiveInstance() { - return new TaskReceive(p2pLOG, + return new TaskReceive( this.start, this.receiveMsgQue, this.handlers); @@ -455,7 +451,6 @@ private TaskReceive getReceiveInstance() { private TaskStatus getStatusInstance() { return new TaskStatus( - p2pLOG, this.nodeMgr, this.selfShortId, this.sendMsgQue, @@ -484,7 +479,6 @@ private ReqHandshake1 getReqHandshake1Instance(List versions) { this.selfIp, this.selfPort, this.selfRevision.getBytes(), - versions, - p2pLOG); + versions); } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java index b1beef89d2..018f0132c4 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/ChannelBuffer.java @@ -22,13 +22,14 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.nio.ByteBuffer; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.Lock; import org.aion.p2p.Header; -import org.aion.p2p.IP2pMgr; /** * @author chris @@ -46,8 +47,6 @@ class ChannelBuffer { Header header = null; - private final IP2pMgr p2pMgr; - private byte[] bsHead = new byte[Header.LEN]; byte[] body = null; @@ -65,15 +64,15 @@ public String getDisplayId() { return displayId; } - public void setNodeIdHash(int nodeIdHash) { + void setNodeIdHash(int nodeIdHash) { this.nodeIdHash = nodeIdHash; } - public void setDisplayId(String displayId) { + void setDisplayId(String displayId) { this.displayId = displayId; } - public int getNodeIdHash() { + int getNodeIdHash() { return nodeIdHash; } @@ -89,8 +88,7 @@ class RouteStatus { } - ChannelBuffer(IP2pMgr mgr) { - p2pMgr = mgr; + ChannelBuffer() { } /** @@ -111,8 +109,8 @@ synchronized boolean shouldRoute(int _route, int _maxReqsPerSec) { if (shouldRoute) { prev.count++; } else { - if (p2pMgr.getLogger().isDebugEnabled()) { - p2pMgr.getLogger() + if (p2pLOG.isDebugEnabled()) { + p2pLOG .debug("route-cooldown={} node={} count={}", _route, this.getDisplayId(), prev.count); } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java index dbbe4604bb..f9df957641 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskClear.java @@ -22,6 +22,8 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.INodeMgr; import org.aion.p2p.IP2pMgr; @@ -48,7 +50,7 @@ public void run() { nodeMgr.timeoutCheck(this.mgr); } catch (Exception e) { e.printStackTrace(); - mgr.getLogger().error("TaskClear exception {}", e.getMessage()); + p2pLOG.error("TaskClear exception {}", e.getMessage()); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java index 275e38ebf6..883dfa1766 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskConnectPeers.java @@ -22,6 +22,8 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.io.IOException; import java.net.InetSocketAddress; import java.nio.channels.SelectionKey; @@ -73,11 +75,11 @@ public void run() { try { Thread.sleep(PERIOD_CONNECT_OUTBOUND); } catch (InterruptedException e) { - mgr.getLogger().warn("tcp-interrupted"); + p2pLOG.warn("tcp-interrupted"); } if (this.nodeMgr.activeNodesSize() >= this.maxActiveNodes) { - mgr.getLogger().warn("tcp-connect-peer pass max-active-nodes"); + p2pLOG.warn("tcp-connect-peer pass max-active-nodes"); continue; } @@ -94,11 +96,11 @@ public void run() { // continue; // } } catch (InterruptedException e) { - mgr.getLogger().error("tcp-interrupted"); + p2pLOG.error("tcp-interrupted"); return; } catch (Exception e) { e.printStackTrace(); - mgr.getLogger().warn("tcp-Exception {}", e.getMessage()); + p2pLOG.warn("tcp-Exception {}", e.getMessage()); continue; } int nodeIdHash = node.getIdHash(); @@ -116,13 +118,13 @@ public void run() { if (channel.isConnected()) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("success-connect node-id={} ip=", node.getIdShort(), + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("success-connect node-id={} ip=", node.getIdShort(), node.getIpStr()); } SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); - ChannelBuffer rb = new ChannelBuffer(mgr); + ChannelBuffer rb = new ChannelBuffer(); rb.setDisplayId(node.getIdShort()); rb.setNodeIdHash(nodeIdHash); sk.attach(rb); @@ -131,8 +133,8 @@ public void run() { node.setChannel(channel); this.nodeMgr.addOutboundNode(node); - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("prepare-request-handshake -> id={} ip={}", + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("prepare-request-handshake -> id={} ip={}", node.getIdShort(), node.getIpStr()); } @@ -145,8 +147,8 @@ public void run() { // node.peerMetric.decFailedCount(); } else { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger() + if (p2pLOG.isDebugEnabled()) { + p2pLOG .debug("fail-connect node-id -> id={} ip={}", node.getIdShort(), node.getIpStr()); } @@ -155,14 +157,14 @@ public void run() { // node.peerMetric.incFailedCount(); } } catch (IOException e) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("connect-outbound io-exception addr={}:{} result={}", + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("connect-outbound io-exception addr={}:{} result={}", node.getIpStr(), _port, e.getMessage()); } // node.peerMetric.incFailedCount(); } catch (Exception e) { e.printStackTrace(); - mgr.getLogger() + p2pLOG .debug("connect-outbound exception -> id={} ip={}", node.getIdShort(), node.getIpStr()); } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java index 94af844a9e..71ef8ddd7f 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskInbound.java @@ -22,6 +22,7 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; import static org.aion.p2p.impl1.P2pMgr.txBroadCastRoute; import java.io.IOException; @@ -104,16 +105,16 @@ public void run() { } } catch (IOException e) { - mgr.getLogger().warn("inbound-select-io-exception"); + p2pLOG.warn("inbound-select-io-exception"); continue; } catch (ClosedSelectorException e) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("inbound-select-close-exception"); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("inbound-select-close-exception"); } continue; } catch (InterruptedException e) { e.printStackTrace(); - mgr.getLogger().error("taskInbound exception {}", e.toString()); + p2pLOG.error("taskInbound exception {}", e.toString()); return; } @@ -160,7 +161,7 @@ public void run() { } } catch (Exception ex) { - mgr.getLogger().error("inbound exception={}", ex.getMessage()); + p2pLOG.error("inbound exception={}", ex.getMessage()); } finally { if (keys != null) { keys.remove(); @@ -168,7 +169,7 @@ public void run() { } } - mgr.getLogger().info("p2p-pi shutdown"); + p2pLOG.info("p2p-pi shutdown"); } private void accept() { @@ -195,18 +196,18 @@ private void accept() { node.setChannel(channel); SelectionKey sk = channel.register(this.selector, SelectionKey.OP_READ); - sk.attach(new ChannelBuffer(mgr)); + sk.attach(new ChannelBuffer()); this.nodeMgr.addInboundNode(node); - mgr.getLogger().info("new-connection {}:{}", ip, port); + p2pLOG.info("new-connection {}:{}", ip, port); } } catch (IOException e) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("inbound-accept-io-exception"); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("inbound-accept-io-exception"); } } catch (Exception e) { e.printStackTrace(); - mgr.getLogger().error("TaskInbound exception {}", e.getMessage()); + p2pLOG.error("TaskInbound exception {}", e.getMessage()); } } @@ -339,8 +340,8 @@ private void handleMsg(SelectionKey _sk, ChannelBuffer _cb) { : P2pConstant.READ_MAX_RATE)); if (!underRC) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("over-called-route={}-{}-{} calls={} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getRouteCount(h.getRoute()).count, _cb.getDisplayId()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("over-called-route={}-{}-{} calls={} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getRouteCount(h.getRoute()).count, _cb.getDisplayId()); } return; } @@ -352,15 +353,15 @@ private void handleMsg(SelectionKey _sk, ChannelBuffer _cb) { try { handleP2pMsg(_sk, h.getAction(), bodyBytes); } catch (Exception ex) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("handle-p2p-msg error={}", ex.getMessage()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("handle-p2p-msg error={}", ex.getMessage()); } } break; case Ctrl.SYNC: if (!handlers.containsKey(h.getRoute())) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("unregistered-route={}-{}-{} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getDisplayId()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("unregistered-route={}-{}-{} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getDisplayId()); } return; } @@ -368,15 +369,15 @@ private void handleMsg(SelectionKey _sk, ChannelBuffer _cb) { handleKernelMsg(_cb.getNodeIdHash(), h.getRoute(), bodyBytes); break; default: - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("invalid-route={}-{}-{} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getDisplayId()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("invalid-route={}-{}-{} node={}", h.getVer(), h.getCtrl(), h.getAction(), _cb.getDisplayId()); } break; } break; default: - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("unhandled-ver={} node={}", h.getVer(), _cb.getDisplayId()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("unhandled-ver={} node={}", h.getVer(), _cb.getDisplayId()); } break; @@ -473,8 +474,8 @@ private void handleP2pMsg(final SelectionKey _sk, byte _act, final byte[] _msgBy } break; default: - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("unknown-route act={}", _act); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("unknown-route act={}", _act); } break; } @@ -511,8 +512,8 @@ private void handleReqHandshake( binaryVersion = new String(_revision, "UTF-8"); } catch (UnsupportedEncodingException e) { binaryVersion = "decode-fail"; - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("handleReqHandshake decode-fail"); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("handleReqHandshake decode-fail"); } } node.setBinaryVersion(binaryVersion); @@ -526,8 +527,8 @@ private void handleReqHandshake( } } else { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("handshake-rule-fail"); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("handshake-rule-fail"); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java index 7aded9d011..7539828b05 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskReceive.java @@ -22,28 +22,26 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.util.List; import java.util.Map; import java.util.concurrent.BlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; import org.aion.p2p.Handler; -import org.slf4j.Logger; public class TaskReceive implements Runnable { private final AtomicBoolean start; private final BlockingQueue receiveMsgQue; private final Map> handlers; - private final Logger logger; - public TaskReceive( - Logger _logger, final AtomicBoolean _start, + public TaskReceive(final AtomicBoolean _start, final BlockingQueue _receiveMsgQue, final Map> _handlers) { this.start = _start; this.receiveMsgQue = _receiveMsgQue; this.handlers = _handlers; - this.logger = _logger; } @Override @@ -64,20 +62,20 @@ public void run() { try { hlr.receive(mi.getNodeId(), mi.getDisplayId(), mi.getMsg()); } catch (Exception e) { - if (logger.isDebugEnabled()) { + if (p2pLOG.isDebugEnabled()) { e.printStackTrace(); - logger.debug("TaskReceive exception {}", e.getMessage()); + p2pLOG.debug("TaskReceive exception {}", e.getMessage()); } } } } catch (InterruptedException e) { - logger.error("TaskReceive interrupted {}", e.getMessage()); + p2pLOG.error("TaskReceive interrupted {}", e.getMessage()); return; } catch (Exception e) { - if (logger.isDebugEnabled()) { + if (p2pLOG.isDebugEnabled()) { e.printStackTrace(); - logger.debug("TaskReceive exception {}", e.getMessage()); + p2pLOG.debug("TaskReceive exception {}", e.getMessage()); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index f997820370..30b62d4da7 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -22,6 +22,8 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.util.concurrent.BlockingQueue; @@ -85,8 +87,8 @@ public void run() { // if timeout , throw away this msg. long now = System.currentTimeMillis(); if (now - mo.getTimestamp() > P2pConstant.WRITE_MSG_TIMEOUT) { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("timeout-msg to-node={} timestamp={}", mo.getDisplayId(), now); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("timeout-msg to-node={} timestamp={}", mo.getDisplayId(), now); } continue; } @@ -124,19 +126,19 @@ public void run() { } } } else { - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("msg-{} ->{} node-not-exit", mo.getDest().name(), mo.getDisplayId()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("msg-{} ->{} node-not-exit", mo.getDest().name(), mo.getDisplayId()); } } } catch (InterruptedException e) { - mgr.getLogger().error("task-send-interrupted"); + p2pLOG.error("task-send-interrupted"); return; } catch (RejectedExecutionException e) { - mgr.getLogger().warn("task-send-reached thread queue limit"); + p2pLOG.warn("task-send-reached thread queue limit"); } catch (Exception e) { e.printStackTrace(); - if (mgr.getLogger().isDebugEnabled()) { - mgr.getLogger().debug("TaskSend exception {}", e.getMessage()); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("TaskSend exception {}", e.getMessage()); } } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java index 90ef199fcb..df03ec748d 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskStatus.java @@ -22,9 +22,10 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.util.concurrent.BlockingQueue; import org.aion.p2p.INodeMgr; -import org.slf4j.Logger; public class TaskStatus implements Runnable { @@ -32,10 +33,8 @@ public class TaskStatus implements Runnable { private final String selfShortId; private final BlockingQueue sendMsgQue; private final BlockingQueue receiveMsgQue; - private final Logger logger; - public TaskStatus( - Logger _logger, final INodeMgr _nodeMgr, + public TaskStatus(final INodeMgr _nodeMgr, final String _selfShortId, final BlockingQueue _sendMsgQue, final BlockingQueue _receiveMsgQue) { @@ -43,7 +42,6 @@ public TaskStatus( this.selfShortId = _selfShortId; this.sendMsgQue = _sendMsgQue; this.receiveMsgQue = _receiveMsgQue; - this.logger = _logger; } @Override @@ -51,9 +49,9 @@ public void run() { Thread.currentThread().setName("p2p-ts"); String status = this.nodeMgr.dumpNodeInfo(this.selfShortId); - if (logger.isDebugEnabled()) { - logger.debug(status); - logger.debug("recv queue[{}] send queue[{}]", this.receiveMsgQue.size(), + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug(status); + p2pLOG.debug("recv queue[{}] send queue[{}]", this.receiveMsgQue.size(), this.sendMsgQue.size()); } } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java index f86cf9d680..467dfb3888 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskWrite.java @@ -22,6 +22,8 @@ */ package org.aion.p2p.impl1.tasks; +import static org.aion.p2p.impl1.P2pMgr.p2pLOG; + import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.ClosedChannelException; @@ -76,8 +78,8 @@ public void run() { h.setLen(bodyLen); byte[] headerBytes = h.encode(); - if (p2pMgr.getLogger().isTraceEnabled()) { - p2pMgr.getLogger().trace("write {}-{}-{}", h.getVer(), h.getCtrl(), h.getAction()); + if (p2pLOG.isTraceEnabled()) { + p2pLOG.trace("write {}-{}-{}", h.getVer(), h.getCtrl(), h.getAction()); } ByteBuffer buf = ByteBuffer.allocate(headerBytes.length + bodyLen); @@ -95,14 +97,14 @@ public void run() { sc.write(buf); } } catch (ClosedChannelException ex1) { - if (p2pMgr.getLogger().isDebugEnabled()) { - p2pMgr.getLogger().debug("closed-channel-exception node={}", this.nodeShortId); + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("closed-channel-exception node={}", this.nodeShortId); } channelBuffer.isClosed.set(true); } catch (IOException ex2) { - if (p2pMgr.getLogger().isDebugEnabled()) { - p2pMgr.getLogger().debug("write-msg-io-exception node={} err={}", this.nodeShortId, + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("write-msg-io-exception node={} err={}", this.nodeShortId, ex2.getMessage()); } @@ -112,7 +114,7 @@ public void run() { } } catch (Exception e) { e.printStackTrace(); - p2pMgr.getLogger().error("TaskWrite exception {}", e.getMessage()); + p2pLOG.error("TaskWrite exception {}", e.getMessage()); } finally { channelBuffer.lock.unlock(); } diff --git a/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java b/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java index 8168571e46..39a671b51b 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java +++ b/modP2pImpl/test/org/aion/p2p/impl/LastThousands.java @@ -47,8 +47,7 @@ public void test() throws InterruptedException { max, max, false, - 50, - p2pLOG); + 50); List examiners = new ArrayList<>(); @@ -65,8 +64,7 @@ public void test() throws InterruptedException { max, max, false, - 50, - p2pLOG); + 50); examiners.add(examiner); } } diff --git a/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java b/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java index a06edb58f7..64cb98c55e 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java +++ b/modP2pImpl/test/org/aion/p2p/impl/P2pMgrTest.java @@ -31,8 +31,6 @@ import java.util.UUID; import org.aion.p2p.impl1.P2pMgr; import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * @author chris @@ -46,8 +44,6 @@ public class P2pMgrTest { private int port1 = 30303; private int port2 = 30304; - private static Logger p2pLOG = LoggerFactory.getLogger("P2P"); - public Map.Entry newTwoNodeSetup() { String ip = "127.0.0.1"; @@ -75,8 +71,7 @@ public Map.Entry newTwoNodeSetup() { 128, 128, false, - 50, - p2pLOG); + 50); System.out.println("receiver on: " + TestUtilities.formatAddr(id2, ip, port2)); P2pMgr receiver = new P2pMgr(0, @@ -89,7 +84,7 @@ public Map.Entry newTwoNodeSetup() { 128, 128, false, - 50, p2pLOG); + 50); return Map.entry(connector, receiver); } @@ -112,7 +107,7 @@ public void testIgnoreSameNodeIdAsSelf() { 128, false, - 50, p2pLOG); + 50); assertEquals(p2p.getTempNodesCount(), 0); } @@ -134,7 +129,7 @@ public void testIgnoreSameIpAndPortAsSelf() { 128, 128, false, - 50, p2pLOG); + 50); assertEquals(0, p2p.getTempNodesCount()); } @@ -158,7 +153,7 @@ public void testTempNodes() { 128, 128, false, - 50, p2pLOG); + 50); assertEquals(p2p.getTempNodesCount(), 3); } } diff --git a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java index 973eb48e27..14856a92ab 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java +++ b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java @@ -57,10 +57,10 @@ public class ReqHandshake1Test { private static Logger p2pLOG = LoggerFactory.getLogger("P2P"); - private String randomIp = ThreadLocalRandom.current().nextInt(0,256) + "." + - ThreadLocalRandom.current().nextInt(0,256) + "." + - ThreadLocalRandom.current().nextInt(0,256) + "." + - ThreadLocalRandom.current().nextInt(0,256); + private String randomIp = ThreadLocalRandom.current().nextInt(0, 256) + "." + + ThreadLocalRandom.current().nextInt(0, 256) + "." + + ThreadLocalRandom.current().nextInt(0, 256) + "." + + ThreadLocalRandom.current().nextInt(0, 256); private byte[] randomRevision; @@ -73,8 +73,8 @@ public void ReqHandshake2Test() { randomRevision = new byte[Byte.MAX_VALUE]; ThreadLocalRandom.current().nextBytes(randomRevision); randomVersions = new ArrayList<>(); - for(byte i = 0; i < 127; i ++){ - randomVersions.add((short)ThreadLocalRandom.current().nextInt(Short.MAX_VALUE + 1)); + for (byte i = 0; i < 127; i++) { + randomVersions.add((short) ThreadLocalRandom.current().nextInt(Short.MAX_VALUE + 1)); } } @@ -82,8 +82,8 @@ public void ReqHandshake2Test() { @Test public void testRoute() { System.out.println("randomRevision " + Arrays.toString(randomRevision)); - ReqHandshake1 req = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions, - p2pLOG); + ReqHandshake1 req = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), port, + randomRevision, randomVersions); assertEquals(Ver.V0, req.getHeader().getVer()); assertEquals(Ctrl.NET, req.getHeader().getCtrl()); assertEquals(Act.REQ_HANDSHAKE, req.getHeader().getAction()); @@ -92,8 +92,8 @@ public void testRoute() { @Test public void testValidEncodeDecode() { - ReqHandshake1 req1 = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions, - p2pLOG); + ReqHandshake1 req1 = new ReqHandshake1(validNodeId, netId, Node.ipStrToBytes(randomIp), + port, randomRevision, randomVersions); byte[] bytes = req1.encode(); ReqHandshake1 req2 = ReqHandshake1.decode(bytes); @@ -108,12 +108,9 @@ public void testValidEncodeDecode() { @Test public void testInvalidEncodeDecode() { - ReqHandshake1 req1 = new ReqHandshake1(invalidNodeId, netId, Node.ipStrToBytes(randomIp), port, randomRevision, randomVersions, - p2pLOG); + ReqHandshake1 req1 = new ReqHandshake1(invalidNodeId, netId, Node.ipStrToBytes(randomIp), + port, randomRevision, randomVersions); byte[] bytes = req1.encode(); assertNull(bytes); } - - - } diff --git a/modRlp/build.xml b/modRlp/build.xml index c1cdf02b36..458e616a54 100644 --- a/modRlp/build.xml +++ b/modRlp/build.xml @@ -38,7 +38,7 @@ debug="on" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="./test" destdir="${dir.test}" includes="**/*Test.java" @@ -56,7 +56,7 @@ debug="on" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="./test" destdir="${dir.test}" includes="**/*Test.java" @@ -107,7 +107,7 @@ debug="${compile.debug}" debuglevel="source,lines,vars" includeantruntime="false" - release="9" + release="10" srcdir="./" destdir="${dir.dest}" includes="src/**/*.java,module-info.java" @@ -127,41 +127,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modTxPool/build.xml b/modTxPool/build.xml index 488e0fdede..8154ab8573 100644 --- a/modTxPool/build.xml +++ b/modTxPool/build.xml @@ -18,7 +18,7 @@ - + diff --git a/modTxPoolImpl/build.xml b/modTxPoolImpl/build.xml index dd62644ab1..c84a12c23c 100644 --- a/modTxPoolImpl/build.xml +++ b/modTxPoolImpl/build.xml @@ -38,7 +38,7 @@ - + @@ -48,7 +48,7 @@ - + @@ -107,7 +107,7 @@ - + From 52486e70ec2fec7e9da42765015f9411f05e30ed Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 12:18:31 -0400 Subject: [PATCH 109/129] update build file in modAionImpl --- modAionImpl/build.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modAionImpl/build.xml b/modAionImpl/build.xml index 72c3934775..c81b528ede 100644 --- a/modAionImpl/build.xml +++ b/modAionImpl/build.xml @@ -67,7 +67,7 @@ - @@ -143,7 +143,6 @@ destdir="${dir.dest}" includes="src/**/*.java,module-info.java"> - @@ -162,6 +161,7 @@ + From 0d707517791e3e4292a1466bc1416987633c7dd9 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 14:14:16 -0400 Subject: [PATCH 110/129] refactor nrgOracle and java/web3 API refactors --- .../src/org/aion/api/server/ApiAion.java | 42 +- .../org/aion/api/server/http/ApiWeb3Aion.java | 152 +- .../src/org/aion/api/server/pb/ApiAion0.java | 4402 ++++++++--------- 3 files changed, 2300 insertions(+), 2296 deletions(-) diff --git a/modApiServer/src/org/aion/api/server/ApiAion.java b/modApiServer/src/org/aion/api/server/ApiAion.java index a5899b297d..4046facdc0 100644 --- a/modApiServer/src/org/aion/api/server/ApiAion.java +++ b/modApiServer/src/org/aion/api/server/ApiAion.java @@ -24,6 +24,21 @@ package org.aion.api.server; +import static org.aion.evtmgr.impl.evt.EventTx.STATE.GETSTATE; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.locks.ReentrantLock; +import java.util.stream.Collectors; +import java.util.stream.Stream; import org.aion.api.server.nrgprice.NrgOracle; import org.aion.api.server.types.ArgTxCall; import org.aion.api.server.types.Fltr; @@ -42,7 +57,6 @@ import org.aion.evtmgr.impl.es.EventExecuteService; import org.aion.evtmgr.impl.evt.EventBlock; import org.aion.evtmgr.impl.evt.EventTx; -import org.aion.zero.impl.AionBlockchainImpl; import org.aion.zero.impl.AionGenesis; import org.aion.zero.impl.BlockContext; import org.aion.zero.impl.Version; @@ -57,16 +71,6 @@ import org.aion.zero.types.AionTransaction; import org.aion.zero.types.AionTxReceipt; -import java.math.BigInteger; -import java.util.*; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.atomic.AtomicLong; -import java.util.concurrent.locks.ReentrantLock; -import java.util.stream.Collectors; -import java.util.stream.Stream; - -import static org.aion.evtmgr.impl.evt.EventTx.STATE.GETSTATE; - public abstract class ApiAion extends Api { // these variables get accessed by the api worker threads. @@ -75,7 +79,7 @@ public abstract class ApiAion extends Api { // 2. underlying datastructure provides concurrency guarntees // delegate concurrency to underlying object - protected NrgOracle nrgOracle; + protected static NrgOracle NRG_ORACLE; protected IAionChain ac; // assumption: blockchainImpl et al. provide concurrency guarantee // using java.util.concurrent library objects @@ -660,7 +664,11 @@ protected boolean setReportedHashrate(String hashrate, String clientId) { } // Returns a fully initialized NrgOracle object. - protected NrgOracle getNrgOracle(IAionChain _ac) { + protected void initNrgOracle(IAionChain _ac) { + if (NRG_ORACLE != null) { + return; + } + IAionBlockchain bc = (IAionBlockchain)_ac.getBlockchain(); long nrgPriceDefault = CfgAion.inst().getApi().getNrg().getNrgPriceDefault(); long nrgPriceMax = CfgAion.inst().getApi().getNrg().getNrgPriceMax(); @@ -669,19 +677,19 @@ protected NrgOracle getNrgOracle(IAionChain _ac) { if (CfgAion.inst().getApi().getNrg().isOracleEnabled()) oracleStrategy = NrgOracle.Strategy.BLK_PRICE; - return new NrgOracle(bc, nrgPriceDefault, nrgPriceMax, oracleStrategy); + NRG_ORACLE = new NrgOracle(bc, nrgPriceDefault, nrgPriceMax, oracleStrategy); } protected long getRecommendedNrgPrice() { - if (this.nrgOracle != null) - return this.nrgOracle.getNrgPrice(); + if (NRG_ORACLE != null) + return NRG_ORACLE.getNrgPrice(); else return CfgAion.inst().getApi().getNrg().getNrgPriceDefault(); } // leak the oracle instance. NrgOracle is threadsafe, so safe to do this, but bad design protected NrgOracle getNrgOracle() { - return this.nrgOracle; + return NRG_ORACLE; } protected long getDefaultNrgLimit() { diff --git a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java index bbb1712c5f..6229b48330 100644 --- a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java +++ b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,36 +19,79 @@ * * Contributors: * Aion foundation. - * + * ******************************************************************************/ package org.aion.api.server.http; +import static org.aion.base.util.ByteUtil.hexStringToBytes; +import static org.aion.base.util.ByteUtil.toHexString; + import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.ListenableFutureTask; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.math.RoundingMode; +import java.time.Instant; +import java.time.ZoneOffset; +import java.util.Collections; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.ListIterator; +import java.util.Map; +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.locks.ReadWriteLock; +import java.util.concurrent.locks.ReentrantReadWriteLock; import org.aion.api.server.ApiAion; -import org.aion.api.server.nrgprice.NrgOracle; import org.aion.api.server.rpc.RpcError; import org.aion.api.server.rpc.RpcMsg; -import org.aion.api.server.types.*; +import org.aion.api.server.types.ArgFltr; +import org.aion.api.server.types.ArgTxCall; +import org.aion.api.server.types.Blk; +import org.aion.api.server.types.CompiledContr; +import org.aion.api.server.types.Evt; +import org.aion.api.server.types.Fltr; +import org.aion.api.server.types.FltrBlk; +import org.aion.api.server.types.FltrLg; +import org.aion.api.server.types.FltrTx; +import org.aion.api.server.types.NumericalValue; +import org.aion.api.server.types.SyncInfo; +import org.aion.api.server.types.Tx; +import org.aion.api.server.types.TxRecpt; import org.aion.base.db.IRepository; import org.aion.base.type.Address; import org.aion.base.type.Hash256; import org.aion.base.type.ITransaction; import org.aion.base.type.ITxReceipt; -import org.aion.base.util.*; +import org.aion.base.util.ByteArrayWrapper; +import org.aion.base.util.ByteUtil; +import org.aion.base.util.FastByteComparisons; +import org.aion.base.util.TypeConverter; +import org.aion.base.util.Utils; import org.aion.crypto.ECKey; import org.aion.crypto.HashUtil; import org.aion.evtmgr.IEventMgr; import org.aion.evtmgr.IHandler; import org.aion.evtmgr.impl.callback.EventCallback; import org.aion.evtmgr.impl.evt.EventTx; -import org.aion.mcf.config.*; import org.aion.mcf.account.Keystore; +import org.aion.mcf.config.CfgApi; +import org.aion.mcf.config.CfgApiNrg; +import org.aion.mcf.config.CfgApiRpc; +import org.aion.mcf.config.CfgApiZmq; +import org.aion.mcf.config.CfgNet; import org.aion.mcf.config.CfgNetP2p; +import org.aion.mcf.config.CfgSync; +import org.aion.mcf.config.CfgTx; import org.aion.mcf.core.AccountState; import org.aion.mcf.core.ImportResult; import org.aion.mcf.vm.types.DataWord; @@ -62,7 +105,6 @@ import org.aion.zero.impl.config.CfgAion; import org.aion.zero.impl.config.CfgConsensusPow; import org.aion.zero.impl.config.CfgEnergyStrategy; -import org.aion.zero.impl.core.IAionBlockchain; import org.aion.zero.impl.db.AionBlockStore; import org.aion.zero.impl.db.AionRepositoryImpl; import org.aion.zero.impl.sync.PeerState; @@ -76,21 +118,6 @@ import org.json.JSONArray; import org.json.JSONObject; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.math.RoundingMode; -import java.time.Instant; -import java.time.ZoneOffset; -import java.util.*; -import java.util.HashMap; -import java.util.concurrent.*; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.locks.ReadWriteLock; -import java.util.concurrent.locks.ReentrantReadWriteLock; - -import static org.aion.base.util.ByteUtil.hexStringToBytes; -import static org.aion.base.util.ByteUtil.toHexString; - /** * @author chris lin, ali sharif * TODO: make implementation pass all spec tests: https://github.com/ethereum/rpc-tests @@ -172,7 +199,7 @@ public ApiWeb3Aion(final IAionChain _ac) { isFilterEnabled = CfgAion.inst().getApi().getRpc().isFiltersEnabled(); isSeedMode = CfgAion.inst().getConsensus().isSeed(); - this.nrgOracle = getNrgOracle(_ac); + initNrgOracle(_ac); if (isFilterEnabled) { evtMgr = this.ac.getAionHub().getEventMgr(); @@ -197,27 +224,24 @@ public ApiWeb3Aion(final IAionChain _ac) { .maximumSize(1) .refreshAfterWrite(OPS_RECENT_ENTITY_CACHE_TIME_SECONDS, TimeUnit.SECONDS) .build( - new CacheLoader() { - public ChainHeadView load(Integer key) { // no checked exception - ChainHeadView view = new ChainHeadView(OPS_RECENT_ENTITY_COUNT).update(); - return view; - } + new CacheLoader<>() { + public ChainHeadView load(Integer key) { // no checked exception + return new ChainHeadView(OPS_RECENT_ENTITY_COUNT).update(); + } - public ListenableFuture reload(final Integer key, ChainHeadView prev) { - try { - ListenableFutureTask task = ListenableFutureTask.create(new Callable() { - public ChainHeadView call() { - return new ChainHeadView(prev).update(); - } - }); - cacheUpdateExecutor.execute(task); - return task; - } catch (Throwable e) { - LOG.debug(" reload(final Integer key, + ChainHeadView prev) { + try { + ListenableFutureTask task = ListenableFutureTask + .create(() -> new ChainHeadView(prev).update()); + cacheUpdateExecutor.execute(task); + return task; + } catch (Throwable e) { + LOG.debug("(1), new CacheUpdateThreadFactory()); @@ -236,11 +260,8 @@ public MinerStatsView load(String key) { // no checked exception public ListenableFuture reload(final String key, MinerStatsView prev) { try { - ListenableFutureTask task = ListenableFutureTask.create(new Callable() { - public MinerStatsView call() { - return new MinerStatsView(prev).update(); - } - }); + ListenableFutureTask task = ListenableFutureTask.create( + () -> new MinerStatsView(prev).update()); MinerStatsExecutor.execute(task); return task; } catch (Throwable e) { @@ -261,7 +282,7 @@ public MinerStatsView call() { /* Return a reference to the AIONBlock without converting values to hex * Requied for the mining pool implementation */ - AionBlock getBlockRaw(int bn) { + private AionBlock getBlockRaw(int bn) { // long bn = this.parseBnOrId(_bnOrId); AionBlock nb = this.ac.getBlockchain().getBlockByNumber(bn); if (nb == null) { @@ -389,7 +410,7 @@ else if (_params instanceof JSONObject) { Address address = new Address(_address); String bnOrId = "latest"; - if (_bnOrId != null && !_bnOrId.equals(null)) + if (_bnOrId != null) bnOrId = _bnOrId + ""; if (!bnOrId.equalsIgnoreCase("latest")) { @@ -427,7 +448,7 @@ else if (_params instanceof JSONObject) { Address address = new Address(_address); String bnOrId = "latest"; - if (_bnOrId != null && !_bnOrId.equals(null)) + if (_bnOrId != null) bnOrId = _bnOrId + ""; DataWord key; @@ -476,7 +497,7 @@ else if (_params instanceof JSONObject) { Address address = new Address(_address); String bnOrId = "latest"; - if (_bnOrId != null && !_bnOrId.equals(null)) + if (_bnOrId != null) bnOrId = _bnOrId + ""; if (!bnOrId.equalsIgnoreCase("latest")) { @@ -563,7 +584,7 @@ else if (_params instanceof JSONObject) { Address address = new Address(_address); String bnOrId = "latest"; - if (_bnOrId != null && !_bnOrId.equals(null)) + if (_bnOrId != null) bnOrId = _bnOrId + ""; if (!bnOrId.equalsIgnoreCase("latest")) { @@ -674,7 +695,7 @@ else if (_params instanceof JSONObject) { ArgTxCall txParams = ArgTxCall.fromJSON(_tx, getNrgOracle(), getDefaultNrgLimit()); String bnOrId = "latest"; - if (_bnOrId != null && !_bnOrId.equals(null)) + if (_bnOrId != null) bnOrId = _bnOrId + ""; Long bn = parseBnOrId(bnOrId); @@ -1128,7 +1149,7 @@ else if (_params instanceof JSONObject) { int duration = 300; - if (_duration != null && !_duration.equals(null)) + if (_duration != null) duration = new BigInteger(_duration + "").intValueExact(); return new RpcMsg(unlockAccount(_account, _password, duration)); @@ -1688,7 +1709,6 @@ public ChainHeadView(int _qSize) { } private JSONObject getJson(AionBlock _b) { - Map.Entry response; BigInteger totalDiff = ac.getAionHub().getBlockStore().getTotalDifficultyForHash(_b.getHash()); return Blk.AionBlockOnlyToJson(_b, totalDiff); } @@ -1814,7 +1834,7 @@ private JSONObject computeMetrics() { return metrics; } - public ChainHeadView update() { + ChainHeadView update() { // get the latest head AionBlock blk = getBestBlock(); @@ -1839,7 +1859,7 @@ public ChainHeadView update() { " blkHash: " + TypeConverter.toJsonHex(blk.getHash())); */ - while(FastByteComparisons.equal(hashQueue.peekFirst(), blk.getParentHash()) == false + while(!FastByteComparisons.equal(hashQueue.peekFirst(), blk.getParentHash()) && itr < qSize && blk.getNumber() > 2) { @@ -1890,11 +1910,11 @@ public ChainHeadView update() { return this; } - public JSONObject getResponse() { + JSONObject getResponse() { return response; } - public long getViewBestBlock() { + long getViewBestBlock() { return blkObjList.get(hashQueue.peekFirst()).getNumber(); } } @@ -2282,7 +2302,7 @@ public RpcMsg stratum_getHeaderByBlockNumber(Object _params) { JSONObject obj = new JSONObject(); - if (_blockNum != null && !_blockNum.equals(null)) { + if (_blockNum != null) { String bnStr = _blockNum + ""; try { int bnInt = Integer.decode(bnStr); @@ -2318,7 +2338,7 @@ private class MinerStatsView { private int qSize; private byte[] miner; - public MinerStatsView(MinerStatsView cv) { + MinerStatsView(MinerStatsView cv) { hashQueue = new LinkedList<>(cv.hashQueue); blocks = new HashMap<>(cv.blocks); response = new JSONObject(cv.response, JSONObject.getNames(cv.response)); @@ -2326,7 +2346,7 @@ public MinerStatsView(MinerStatsView cv) { miner = cv.miner; } - public MinerStatsView(int _qSize, byte[] _miner) { + MinerStatsView(int _qSize, byte[] _miner) { hashQueue = new LinkedList<>(); blocks = new HashMap<>(); response = new JSONObject(); @@ -2403,7 +2423,7 @@ private JSONObject buildResponse() { return o; } - public MinerStatsView update() { + MinerStatsView update() { // get the latest head AionBlock blk = getBestBlock(); @@ -2430,7 +2450,7 @@ public MinerStatsView update() { " blkHash: " + TypeConverter.toJsonHex(blk.getHash())); */ - while(FastByteComparisons.equal(hashQueue.peekFirst(), blk.getParentHash()) == false + while(!FastByteComparisons.equal(hashQueue.peekFirst(), blk.getParentHash()) && itr < qSize && blk.getNumber() > 2) { @@ -2475,7 +2495,7 @@ public MinerStatsView update() { return this; } - public JSONObject getResponse() { + JSONObject getResponse() { return response; } } diff --git a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java index e727c409b5..a99b70998a 100644 --- a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java +++ b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java @@ -49,7 +49,6 @@ import org.aion.api.server.ApiAion; import org.aion.api.server.ApiUtil; import org.aion.api.server.IApiAion; -import org.aion.api.server.nrgprice.NrgOracle; import org.aion.api.server.pb.Message.Retcode; import org.aion.api.server.pb.Message.Servs; import org.aion.api.server.types.ArgTxCall; @@ -85,10 +84,8 @@ import org.aion.zero.impl.AionBlockchainImpl; import org.aion.zero.impl.AionHub; import org.aion.zero.impl.Version; -import org.aion.zero.impl.blockchain.AionImpl; import org.aion.zero.impl.blockchain.IAionChain; import org.aion.zero.impl.config.CfgAion; -import org.aion.zero.impl.core.IAionBlockchain; import org.aion.zero.impl.types.AionBlock; import org.aion.zero.impl.types.AionBlockSummary; import org.aion.zero.impl.types.AionTxInfo; @@ -105,7 +102,7 @@ public class ApiAion0 extends ApiAion implements IApiAion { private static final int TX_HASH_LEN = 32; private static final int ACCOUNT_CREATE_LIMIT = 100; - private BlockingQueue pendingStatus; + private BlockingQueue pendingStatus; private BlockingQueue txWait; private Map> msgIdMapping; @@ -133,66 +130,66 @@ protected void onBlock(AionBlockSummary cbs) { } else { List txrs = cbs.getReceipts(); if (fltr.getType() == Fltr.Type.EVENT - && !Optional.ofNullable(txrs).orElse(Collections.emptyList()).isEmpty()) { + && !Optional.ofNullable(txrs).orElse(Collections.emptyList()).isEmpty()) { FltrCt _fltr = (FltrCt) fltr; for (AionTxReceipt txr : txrs) { AionTransaction tx = txr.getTransaction(); Address contractAddress = - Optional.ofNullable(tx.getTo()).orElse(tx.getContractAddress()); + Optional.ofNullable(tx.getTo()).orElse(tx.getContractAddress()); Integer cnt = 0; txr.getLogInfoList() - .forEach( - bi -> - bi.getTopics() - .forEach( - lg -> { - if (_fltr.isFor( - contractAddress, - ByteUtil.toHexString( - lg))) { - IBlock - blk = - (cbs) - .getBlock(); - List - txList = - blk - .getTransactionsList(); - int insideCnt = 0; - for (AionTransaction t : - txList) { - if (Arrays.equals( - t.getHash(), - tx.getHash())) { - break; - } - insideCnt++; - } - - EvtContract ec = - new EvtContract( - bi.getAddress() - .toBytes(), - bi - .getData(), - blk - .getHash(), - blk - .getNumber(), - cnt, - ByteUtil - .toHexString( - lg), - false, - insideCnt, - tx - .getHash()); - - _fltr.add(ec); - } - })); + .forEach( + bi -> + bi.getTopics() + .forEach( + lg -> { + if (_fltr.isFor( + contractAddress, + ByteUtil.toHexString( + lg))) { + IBlock + blk = + (cbs) + .getBlock(); + List + txList = + blk + .getTransactionsList(); + int insideCnt = 0; + for (AionTransaction t : + txList) { + if (Arrays.equals( + t.getHash(), + tx.getHash())) { + break; + } + insideCnt++; + } + + EvtContract ec = + new EvtContract( + bi.getAddress() + .toBytes(), + bi + .getData(), + blk + .getHash(), + blk + .getNumber(), + cnt, + ByteUtil + .toHexString( + lg), + false, + insideCnt, + tx + .getHash()); + + _fltr.add(ec); + } + })); } } } @@ -201,50 +198,50 @@ protected void onBlock(AionBlockSummary cbs) { protected void pendingTxReceived(ITransaction _tx) { installedFilters - .values() - .forEach( - (f) -> { - if (f.getType() == Fltr.Type.TRANSACTION) { - f.add(new EvtTx(_tx)); - } - }); + .values() + .forEach( + (f) -> { + if (f.getType() == Fltr.Type.TRANSACTION) { + f.add(new EvtTx(_tx)); + } + }); } protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { ByteArrayWrapper txHashW = - ByteArrayWrapper.wrap(((AionTxReceipt) _txRcpt).getTransaction().getHash()); + ByteArrayWrapper.wrap(((AionTxReceipt) _txRcpt).getTransaction().getHash()); if (LOG.isTraceEnabled()) { LOG.trace( - "ApiAion0.onPendingTransactionUpdate - txHash: [{}], state: [{}]", - txHashW.toString(), - _state.getValue()); + "ApiAion0.onPendingTransactionUpdate - txHash: [{}], state: [{}]", + txHashW.toString(), + _state.getValue()); } if (getMsgIdMapping().get(txHashW) != null) { if (pendingStatus.remainingCapacity() == 0) { pendingStatus.poll(); LOG.warn( - "ApiAion0.onPendingTransactionUpdate - txPend ingStatus queue full, drop the first message."); + "ApiAion0.onPendingTransactionUpdate - txPend ingStatus queue full, drop the first message."); } if (LOG.isTraceEnabled()) { LOG.trace( - "ApiAion0.onPendingTransactionUpdate - the pending Tx state : [{}]", - _state.getValue()); + "ApiAion0.onPendingTransactionUpdate - the pending Tx state : [{}]", + _state.getValue()); } pendingStatus.add( - new TxPendingStatus( - txHashW, - getMsgIdMapping().get(txHashW).getValue(), - getMsgIdMapping().get(txHashW).getKey(), - _state.getValue(), - ByteArrayWrapper.wrap( - ((AionTxReceipt) _txRcpt).getExecutionResult() == null - ? EMPTY_BYTE_ARRAY - : ((AionTxReceipt) _txRcpt).getExecutionResult()), - ((AionTxReceipt) _txRcpt).getError())); + new TxPendingStatus( + txHashW, + getMsgIdMapping().get(txHashW).getValue(), + getMsgIdMapping().get(txHashW).getKey(), + _state.getValue(), + ByteArrayWrapper.wrap( + ((AionTxReceipt) _txRcpt).getExecutionResult() == null + ? EMPTY_BYTE_ARRAY + : ((AionTxReceipt) _txRcpt).getExecutionResult()), + ((AionTxReceipt) _txRcpt).getError())); if (_state.isPending()) { pendingReceipts.put(txHashW, ((AionTxReceipt) _txRcpt)); @@ -257,18 +254,18 @@ protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { txWait.poll(); if (LOG.isTraceEnabled()) { LOG.trace( - "ApiAion0.onPendingTransactionUpdate - txWait queue full, drop the first message."); + "ApiAion0.onPendingTransactionUpdate - txWait queue full, drop the first message."); } } // waiting origin Api call status been callback try { txWait.put( - new TxWaitingMappingUpdate( - txHashW, _state.getValue(), ((AionTxReceipt) _txRcpt))); + new TxWaitingMappingUpdate( + txHashW, _state.getValue(), ((AionTxReceipt) _txRcpt))); } catch (InterruptedException e) { LOG.error( - "ApiAion0.onPendingTransactionUpdate txWait.put exception", e.getMessage()); + "ApiAion0.onPendingTransactionUpdate txWait.put exception", e.getMessage()); } } } @@ -287,6 +284,7 @@ private void cacheBlock(AionBlockSummary cbs) { private EventExecuteService eesBlkCache; private final class EpBlkCache implements Runnable { + boolean go = true; @Override @@ -295,7 +293,7 @@ public void run() { try { IEvent e = eesBlkCache.take(); if (e.getEventType() == IHandler.TYPE.BLOCK0.getValue() - && e.getCallbackType() == EventBlock.CALLBACK.ONBLOCK0.getValue()) { + && e.getCallbackType() == EventBlock.CALLBACK.ONBLOCK0.getValue()) { cacheBlock((AionBlockSummary) e.getFuncArgs().get(0)); } else if (e.getEventType() == IHandler.TYPE.POISONPILL.getValue()) { go = false; @@ -317,16 +315,18 @@ public ApiAion0(IAionChain ac) { this.txWait = new LinkedBlockingQueue(MAP_SIZE); this.msgIdMapping = Collections.synchronizedMap(new LRUMap<>(MAP_SIZE, 100)); + initNrgOracle(ac); + isFilterEnabled = CfgAion.inst().getApi().getZmq().isFiltersEnabled(); isBlkCacheEnabled = CfgAion.inst().getApi().getZmq().isBlockSummaryCacheEnabled(); if (isBlkCacheEnabled) { explorerBlockCache = - Collections.synchronizedMap(new LRUMap<>(20)); // use the default loadfactor + Collections.synchronizedMap(new LRUMap<>(20)); // use the default loadfactor eesBlkCache = - new EventExecuteService( - 100_000, "explorer-blk-cache", Thread.MIN_PRIORITY, LOG); + new EventExecuteService( + 100_000, "explorer-blk-cache", Thread.MIN_PRIORITY, LOG); Set eventSN = new HashSet<>(); int sn = IHandler.TYPE.BLOCK0.getValue() << 8; eventSN.add(sn + EventBlock.CALLBACK.ONBLOCK0.getValue()); @@ -334,7 +334,7 @@ public ApiAion0(IAionChain ac) { eesBlkCache.start(new EpBlkCache()); IHandler hdrBlk = - this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); + this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); if (hdrBlk != null) { hdrBlk.eventCallback(new EventCallback(eesBlkCache, LOG)); } @@ -344,13 +344,13 @@ public ApiAion0(IAionChain ac) { startES("EpApi"); IHandler hdrTx = - this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.TX0.getValue()); + this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.TX0.getValue()); if (hdrTx != null) { hdrTx.eventCallback(new EventCallback(ees, LOG)); } IHandler hdrBlk = - this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); + this.ac.getAionHub().getEventMgr().getHandler(IHandler.TYPE.BLOCK0.getValue()); if (hdrBlk != null) { hdrBlk.eventCallback(new EventCallback(ees, LOG)); } @@ -365,2083 +365,2071 @@ public byte[] process(byte[] request, byte[] socketId) { byte[] msgHash = ApiUtil.getApiMsgHash(request); if (request[0] < this.getApiVersion()) { return msgHash == null - ? ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_api_version_VALUE) - : ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_api_version_VALUE, msgHash); + ? ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_api_version_VALUE) + : ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_api_version_VALUE, msgHash); } short service = (short) request[1]; switch ((short) request[2]) { - // General Module - case Message.Funcs.f_protocolVersion_VALUE: - { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - // TODO : create query API for every module - Message.rsp_protocolVersion rsp = - Message.rsp_protocolVersion - .newBuilder() - .setApi(String.valueOf(this.getApiVersion())) - .setDb(AionHub.getRepoVersion()) - .setKernel(Version.KERNEL_VERSION) - .setMiner(EquihashMiner.VERSION) - .setNet(this.p2pProtocolVersion()) - .setTxpool(this.ac.getAionHub().getPendingState().getVersion()) - .setVm("0.1.0") - .build(); + // General Module + case Message.Funcs.f_protocolVersion_VALUE: { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + // TODO : create query API for every module + Message.rsp_protocolVersion rsp = + Message.rsp_protocolVersion + .newBuilder() + .setApi(String.valueOf(this.getApiVersion())) + .setDb(AionHub.getRepoVersion()) + .setKernel(Version.KERNEL_VERSION) + .setMiner(EquihashMiner.VERSION) + .setNet(this.p2pProtocolVersion()) + .setTxpool(this.ac.getAionHub().getPendingState().getVersion()) + .setVm("0.1.0") + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_minerAddress_VALUE: { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_minerAddress_VALUE: - { - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - String cb = this.getCoinbase(); - if (cb == null) { - LOG.debug("ApiAion0.process.coinbase - null coinbase"); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_wallet_nullcb_VALUE); - } + String cb = this.getCoinbase(); + if (cb == null) { + LOG.debug("ApiAion0.process.coinbase - null coinbase"); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_wallet_nullcb_VALUE); + } - Message.rsp_minerAddress rsp = - Message.rsp_minerAddress - .newBuilder() - .setMinerAddr( - ByteString.copyFrom( - TypeConverter.StringHexToByteArray(cb))) - .build(); + Message.rsp_minerAddress rsp = + Message.rsp_minerAddress + .newBuilder() + .setMinerAddr( + ByteString.copyFrom( + TypeConverter.StringHexToByteArray(cb))) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + case Message.Funcs.f_contractDeploy_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); } - case Message.Funcs.f_contractDeploy_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { + Message.req_contractDeploy req; + byte[] data = parseMsgReq(request, msgHash); + ContractCreateResult result; + try { + req = Message.req_contractDeploy.parseFrom(data); + // TODO: the client api should send server binary code directly + // instead of str format like "0xhex".! + byte[] bytes = req.getData().toByteArray(); + if (bytes == null || bytes.length <= 4) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); + getApiVersion(), Retcode.r_fail_ct_bytecode_VALUE, msgHash); } - Message.req_contractDeploy req; - byte[] data = parseMsgReq(request, msgHash); - ContractCreateResult result; - try { - req = Message.req_contractDeploy.parseFrom(data); - // TODO: the client api should send server binary code directly - // instead of str format like "0xhex".! - byte[] bytes = req.getData().toByteArray(); - if (bytes == null || bytes.length <= 4) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_ct_bytecode_VALUE, msgHash); - } + ArgTxCall params = + new ArgTxCall( + Address.wrap(req.getFrom().toByteArray()), + null, + Hex.decode(new String(bytes).substring(2)), + BigInteger.ZERO, + BigInteger.ZERO, + req.getNrgLimit(), + req.getNrgPrice()); - ArgTxCall params = - new ArgTxCall( - Address.wrap(req.getFrom().toByteArray()), - null, - Hex.decode(new String(bytes).substring(2)), - BigInteger.ZERO, - BigInteger.ZERO, - req.getNrgLimit(), - req.getNrgPrice()); - - LOG.debug( - "ApiAion0.process.ContractDeploy - ArgsTxCall: [{}] ", - params.toString()); - - result = this.createContract(params); - - if (result != null) { - getMsgIdMapping() - .put( - ByteArrayWrapper.wrap(result.transId), - new AbstractMap.SimpleEntry<>( - ByteArrayWrapper.wrap(msgHash), - ByteArrayWrapper.wrap(socketId))); - if (LOG.isDebugEnabled()) { - LOG.debug( - "ApiAion0.process.ContractDeploy - msgIdMapping.put: [{}] ", - ByteArrayWrapper.wrap(result.transId).toString()); - } + LOG.debug( + "ApiAion0.process.ContractDeploy - ArgsTxCall: [{}] ", + params.toString()); + + result = this.createContract(params); + + if (result != null) { + getMsgIdMapping() + .put( + ByteArrayWrapper.wrap(result.transId), + new AbstractMap.SimpleEntry<>( + ByteArrayWrapper.wrap(msgHash), + ByteArrayWrapper.wrap(socketId))); + if (LOG.isDebugEnabled()) { + LOG.debug( + "ApiAion0.process.ContractDeploy - msgIdMapping.put: [{}] ", + ByteArrayWrapper.wrap(result.transId).toString()); } - } catch (Exception e) { - LOG.error( - "ApiAion0.process.ContractDeploy exception [{}] ", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.ContractDeploy exception [{}] ", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); + } - Message.rsp_contractDeploy rsp = - Message.rsp_contractDeploy - .newBuilder() - .setContractAddress( - ByteString.copyFrom( - result != null - ? result.address.toBytes() - : EMPTY_BYTE_ARRAY)) - .setTxHash( - ByteString.copyFrom( - result != null - ? result.transId - : EMPTY_BYTE_ARRAY)) - .build(); + Message.rsp_contractDeploy rsp = + Message.rsp_contractDeploy + .newBuilder() + .setContractAddress( + ByteString.copyFrom( + result != null + ? result.address.toBytes() + : EMPTY_BYTE_ARRAY)) + .setTxHash( + ByteString.copyFrom( + result != null + ? result.transId + : EMPTY_BYTE_ARRAY)) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + // Authenication Module + case Message.Funcs.f_accounts_VALUE: { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - // Authenication Module - case Message.Funcs.f_accounts_VALUE: - { - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + // noinspection unchecked + List accounts = this.getAccounts(); + ArrayList al = new ArrayList<>(); + for (String s : accounts) { + al.add(ByteString.copyFrom(TypeConverter.StringHexToByteArray(s))); + } + Message.rsp_accounts rsp = + Message.rsp_accounts.newBuilder().addAllAccout(al).build(); - // noinspection unchecked - List accounts = this.getAccounts(); - ArrayList al = new ArrayList<>(); - for (String s : accounts) { - al.add(ByteString.copyFrom(TypeConverter.StringHexToByteArray(s))); - } - Message.rsp_accounts rsp = - Message.rsp_accounts.newBuilder().addAllAccout(al).build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_blockNumber_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + Message.rsp_blockNumber rsp = + Message.rsp_blockNumber + .newBuilder() + .setBlocknumber(this.getBestBlock().getNumber()) + .build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_unlockAccount_VALUE: { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_blockNumber_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - Message.rsp_blockNumber rsp = - Message.rsp_blockNumber - .newBuilder() - .setBlocknumber(this.getBestBlock().getNumber()) - .build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] data = parseMsgReq(request, msgHash); + boolean result; + try { + Message.req_unlockAccount req = Message.req_unlockAccount.parseFrom(data); + result = + this.unlockAccount( + Address.wrap(req.getAccount().toByteArray()), + req.getPassword(), + req.getDuration()); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.unlockAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } - case Message.Funcs.f_unlockAccount_VALUE: - { - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - boolean result; - try { - Message.req_unlockAccount req = Message.req_unlockAccount.parseFrom(data); - result = - this.unlockAccount( - Address.wrap(req.getAccount().toByteArray()), - req.getPassword(), - req.getDuration()); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.unlockAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); + // Transaction Module + case Message.Funcs.f_getBalance_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - // Transaction Module - case Message.Funcs.f_getBalance_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + BigInteger balance; + try { + Message.req_getBalance req = Message.req_getBalance.parseFrom(data); - byte[] data = parseMsgReq(request, msgHash); - BigInteger balance; - try { - Message.req_getBalance req = Message.req_getBalance.parseFrom(data); + Address addr = Address.wrap(req.getAddress().toByteArray()); - Address addr = Address.wrap(req.getAddress().toByteArray()); + balance = this.getBalance(addr); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.getbalance exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - balance = this.getBalance(addr); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.getbalance exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + Message.rsp_getBalance rsp = + Message.rsp_getBalance + .newBuilder() + .setBalance(ByteString.copyFrom(balance.toByteArray())) + .build(); - Message.rsp_getBalance rsp = - Message.rsp_getBalance - .newBuilder() - .setBalance(ByteString.copyFrom(balance.toByteArray())) - .build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_getNonce_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] data = parseMsgReq(request, msgHash); + BigInteger nonce; + try { + Message.req_getNonce req = Message.req_getNonce.parseFrom(data); + + Address addr = Address.wrap(req.getAddress().toByteArray()); + + nonce = this.getNonce(addr); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAionA0.process.getNonce exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); } - case Message.Funcs.f_getNonce_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - BigInteger nonce; - try { - Message.req_getNonce req = Message.req_getNonce.parseFrom(data); + Message.rsp_getNonce rsp = + Message.rsp_getNonce + .newBuilder() + .setNonce(ByteString.copyFrom(nonce.toByteArray())) + .build(); - Address addr = Address.wrap(req.getAddress().toByteArray()); + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Message.Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_getNrgPrice_VALUE: { + if (service != Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - nonce = this.getNonce(addr); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.getNonce exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); - } + long nrg = this.getRecommendedNrgPrice(); - Message.rsp_getNonce rsp = - Message.rsp_getNonce - .newBuilder() - .setNonce(ByteString.copyFrom(nonce.toByteArray())) - .build(); + try { + Message.rsp_getNrgPrice rsp = + Message.rsp_getNrgPrice.newBuilder().setNrgPrice(nrg).build(); byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Message.Retcode.r_success_VALUE); + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error("ApiAion0.process.getNrgPrice exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } - case Message.Funcs.f_getNrgPrice_VALUE: - { - if (service != Servs.s_tx_VALUE) { + } + case Message.Funcs.f_compile_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } + + byte[] data = parseMsgReq(request, msgHash); + try { + Message.req_compileSolidity req = + Message.req_compileSolidity.parseFrom(data); + String source = req.getSource(); + if (source == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_null_compile_source_VALUE); } - this.nrgOracle = getNrgOracle(AionImpl.inst()); - long nrg = this.getRecommendedNrgPrice(); + @SuppressWarnings("unchecked") + Map _contrs = this.contract_compileSolidity(source); + if (_contrs != null && !_contrs.isEmpty()) { + Message.rsp_compile.Builder b = Message.rsp_compile.newBuilder(); + + for (Entry entry : _contrs.entrySet()) { + if (entry.getKey().contains("AionCompileError")) { + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), + Retcode.r_fail_compile_contract_VALUE); + Message.t_Contract tc = + Message.t_Contract + .newBuilder() + .setError(entry.getValue().error) + .build(); + return ApiUtil.combineRetMsg( + retHeader, + b.putConstracts(entry.getKey(), tc) + .build() + .toByteArray()); + } + + CompiledContr _contr = entry.getValue(); + JSONArray abi = new JSONArray(); + for (Abi.Entry f : _contr.info.abiDefinition) { + abi.put(f.toJSON()); + } - try { - Message.rsp_getNrgPrice rsp = - Message.rsp_getNrgPrice.newBuilder().setNrgPrice(nrg).build(); + Message.t_Contract tc = + Message.t_Contract + .newBuilder() + .setCode(_contr.code) + .setAbiDef( + ByteString.copyFrom( + abi.toString().getBytes())) + .setSource(_contr.info.source) + .build(); + b.putConstracts(entry.getKey(), tc); + } + Message.rsp_compile rsp = b.build(); byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getNrgPrice exception: [{}]", e.getMessage()); + } else { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } + + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.compile exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_sendTransaction_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); } - case Message.Funcs.f_compile_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - try { - Message.req_compileSolidity req = - Message.req_compileSolidity.parseFrom(data); - String source = req.getSource(); - if (source == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_null_compile_source_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_sendTransaction req; + byte[] result; + try { + req = Message.req_sendTransaction.parseFrom(data); + + ArgTxCall params = + new ArgTxCall( + Address.wrap(req.getFrom().toByteArray()), + Address.wrap(req.getTo().toByteArray()), + req.getData().toByteArray(), + new BigInteger(req.getNonce().toByteArray()), + new BigInteger(req.getValue().toByteArray()), + req.getNrg(), + req.getNrgPrice()); + + result = this.sendTransaction(params); + } catch (InvalidProtocolBufferException e) { + LOG.error( + "ApiAion0.process.sendTransaction exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); + } - @SuppressWarnings("unchecked") - Map _contrs = this.contract_compileSolidity(source); - if (_contrs != null && !_contrs.isEmpty()) { - Message.rsp_compile.Builder b = Message.rsp_compile.newBuilder(); - - for (Entry entry : _contrs.entrySet()) { - if (entry.getKey().contains("AionCompileError")) { - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), - Retcode.r_fail_compile_contract_VALUE); - Message.t_Contract tc = - Message.t_Contract - .newBuilder() - .setError(entry.getValue().error) - .build(); - return ApiUtil.combineRetMsg( - retHeader, - b.putConstracts(entry.getKey(), tc) - .build() - .toByteArray()); - } + if (result == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); + } - CompiledContr _contr = entry.getValue(); - JSONArray abi = new JSONArray(); - for (Abi.Entry f : _contr.info.abiDefinition) { - abi.put(f.toJSON()); - } + getMsgIdMapping() + .put( + ByteArrayWrapper.wrap(result), + new AbstractMap.SimpleEntry<>( + ByteArrayWrapper.wrap(msgHash), + ByteArrayWrapper.wrap(socketId))); + if (LOG.isDebugEnabled()) { + LOG.debug( + "ApiAion0.process.sendTransaction - msgIdMapping.put: [{}]", + ByteArrayWrapper.wrap(result).toString()); + } - Message.t_Contract tc = - Message.t_Contract - .newBuilder() - .setCode(_contr.code) - .setAbiDef( - ByteString.copyFrom( - abi.toString().getBytes())) - .setSource(_contr.info.source) - .build(); - - b.putConstracts(entry.getKey(), tc); - } - Message.rsp_compile rsp = b.build(); - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } else { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + Message.rsp_sendTransaction rsp = + Message.rsp_sendTransaction + .newBuilder() + .setTxHash(ByteString.copyFrom(result)) + .build(); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.compile exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_getCode_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_sendTransaction_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); - } - byte[] data = parseMsgReq(request, msgHash); - Message.req_sendTransaction req; - byte[] result; - try { - req = Message.req_sendTransaction.parseFrom(data); - - ArgTxCall params = - new ArgTxCall( - Address.wrap(req.getFrom().toByteArray()), - Address.wrap(req.getTo().toByteArray()), - req.getData().toByteArray(), - new BigInteger(req.getNonce().toByteArray()), - new BigInteger(req.getValue().toByteArray()), - req.getNrg(), - req.getNrgPrice()); - - result = this.sendTransaction(params); - } catch (InvalidProtocolBufferException e) { - LOG.error( - "ApiAion0.process.sendTransaction exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getCode req; + try { + req = Message.req_getCode.parseFrom(data); + Address to = Address.wrap(req.getAddress().toByteArray()); - if (result == null) { + byte[] code = this.getCode(to); + if (code == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); - } - - getMsgIdMapping() - .put( - ByteArrayWrapper.wrap(result), - new AbstractMap.SimpleEntry<>( - ByteArrayWrapper.wrap(msgHash), - ByteArrayWrapper.wrap(socketId))); - if (LOG.isDebugEnabled()) { - LOG.debug( - "ApiAion0.process.sendTransaction - msgIdMapping.put: [{}]", - ByteArrayWrapper.wrap(result).toString()); + getApiVersion(), Retcode.r_fail_null_rsp_VALUE); } - Message.rsp_sendTransaction rsp = - Message.rsp_sendTransaction - .newBuilder() - .setTxHash(ByteString.copyFrom(result)) - .build(); - + Message.rsp_getCode rsp = + Message.rsp_getCode + .newBuilder() + .setCode(ByteString.copyFrom(code)) + .build(); byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error("ApiAion0.process.getCode exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getTransactionReceipt_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_getCode_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getCode req; - try { - req = Message.req_getCode.parseFrom(data); - Address to = Address.wrap(req.getAddress().toByteArray()); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionReceipt req; + try { + req = Message.req_getTransactionReceipt.parseFrom(data); - byte[] code = this.getCode(to); - if (code == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_null_rsp_VALUE); - } + TxRecpt result = this.getTransactionReceipt(req.getTxHash().toByteArray()); + if (result == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_getTxReceipt_null_recp_VALUE); + } + + List logs = new ArrayList<>(); + for (TxRecptLg log : result.logs) { + List al = new ArrayList<>(); + Collections.addAll(al, log.topics); + + Message.t_LgEle msgLog = + Message.t_LgEle + .newBuilder() + .setAddress( + ByteString.copyFrom( + Address.wrap(log.address).toBytes())) + .setData( + ByteString.copyFrom( + ByteUtil.hexStringToBytes(log.data))) + .addAllTopics(al) + .build(); + + logs.add(msgLog); + } + + Message.rsp_getTransactionReceipt rsp = + Message.rsp_getTransactionReceipt + .newBuilder() + .setFrom(ByteString.copyFrom(result.fromAddr.toBytes())) + .setBlockNumber(result.blockNumber) + .setBlockHash( + ByteString.copyFrom( + result.blockHash != null + ? ByteUtil.hexStringToBytes( + result.blockHash) + : EMPTY_BYTE_ARRAY)) + .setContractAddress( + ByteString.copyFrom( + result.contractAddress != null + ? ByteUtil.hexStringToBytes( + result.contractAddress) + : EMPTY_BYTE_ARRAY)) + .setTxIndex(result.transactionIndex) + .setTxHash( + ByteString.copyFrom( + result.transactionHash != null + ? ByteUtil.hexStringToBytes( + result.transactionHash) + : EMPTY_BYTE_ARRAY)) + .setTo( + ByteString.copyFrom( + result.toAddr == null + ? EMPTY_BYTE_ARRAY + : result.toAddr.toBytes())) + .setNrgConsumed(result.nrgUsed) + .setCumulativeNrgUsed(result.cumulativeNrgUsed) + .addAllLogs(logs) + .build(); - Message.rsp_getCode rsp = - Message.rsp_getCode - .newBuilder() - .setCode(ByteString.copyFrom(code)) - .build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.getCode exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionReceipt exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_call_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_getTransactionReceipt_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionReceipt req; - try { - req = Message.req_getTransactionReceipt.parseFrom(data); - TxRecpt result = this.getTransactionReceipt(req.getTxHash().toByteArray()); - if (result == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_getTxReceipt_null_recp_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_call req; - List logs = new ArrayList<>(); - for (TxRecptLg log : result.logs) { - List al = new ArrayList<>(); - Collections.addAll(al, log.topics); + try { + req = Message.req_call.parseFrom(data); + + Address from = Address.wrap(req.getFrom().toByteArray()); + Address to = Address.wrap(req.getTo().toByteArray()); + + BigInteger value = new BigInteger(req.getValue().toByteArray()); + byte[] d = req.getData().toByteArray(); + + ArgTxCall params = + new ArgTxCall( + from, + to, + d, + BigInteger.ZERO, + value, + req.getNrg(), + req.getNrgPrice()); + Message.rsp_call rsp = + Message.rsp_call + .newBuilder() + .setResult(ByteString.copyFrom(this.doCall(params))) + .build(); - Message.t_LgEle msgLog = - Message.t_LgEle - .newBuilder() - .setAddress( - ByteString.copyFrom( - Address.wrap(log.address).toBytes())) - .setData( - ByteString.copyFrom( - ByteUtil.hexStringToBytes(log.data))) - .addAllTopics(al) - .build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - logs.add(msgLog); - } + } catch (Exception e) { + LOG.error("ApiAion0.process.call exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockByNumber_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getTransactionReceipt rsp = - Message.rsp_getTransactionReceipt - .newBuilder() - .setFrom(ByteString.copyFrom(result.fromAddr.toBytes())) - .setBlockNumber(result.blockNumber) - .setBlockHash( - ByteString.copyFrom( - result.blockHash != null - ? ByteUtil.hexStringToBytes( - result.blockHash) - : EMPTY_BYTE_ARRAY)) - .setContractAddress( - ByteString.copyFrom( - result.contractAddress != null - ? ByteUtil.hexStringToBytes( - result.contractAddress) - : EMPTY_BYTE_ARRAY)) - .setTxIndex(result.transactionIndex) - .setTxHash( - ByteString.copyFrom( - result.transactionHash != null - ? ByteUtil.hexStringToBytes( - result.transactionHash) - : EMPTY_BYTE_ARRAY)) - .setTo( - ByteString.copyFrom( - result.toAddr == null - ? EMPTY_BYTE_ARRAY - : result.toAddr.toBytes())) - .setNrgConsumed(result.nrgUsed) - .setCumulativeNrgUsed(result.cumulativeNrgUsed) - .addAllLogs(logs) - .build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockByNumber req; - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + try { + req = Message.req_getBlockByNumber.parseFrom(data); + long num = req.getBlockNumber(); + AionBlock blk = this.getBlock(num); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getTransactionReceipt exception: [{}]", - e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + return createBlockMsg(blk); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockByHash_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_call_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - Message.req_call req; - - try { - req = Message.req_call.parseFrom(data); - - Address from = Address.wrap(req.getFrom().toByteArray()); - Address to = Address.wrap(req.getTo().toByteArray()); - - BigInteger value = new BigInteger(req.getValue().toByteArray()); - byte[] d = req.getData().toByteArray(); - - ArgTxCall params = - new ArgTxCall( - from, - to, - d, - BigInteger.ZERO, - value, - req.getNrg(), - req.getNrgPrice()); - Message.rsp_call rsp = - Message.rsp_call - .newBuilder() - .setResult(ByteString.copyFrom(this.doCall(params))) - .build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockByHash req; - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + try { + req = Message.req_getBlockByHash.parseFrom(data); + byte[] hash = req.getBlockHash().toByteArray(); - } catch (Exception e) { - LOG.error("ApiAion0.process.call exception: [{}]", e.getMessage()); + if (hash == null || hash.length != Hash256.BYTES) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } + + AionBlock blk = this.getBlockByHash(hash); + return createBlockMsg(blk); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockByHash exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getTransactionByBlockHashAndIndex_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_getBlockByNumber_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockByNumber req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionByBlockHashAndIndex req; - try { - req = Message.req_getBlockByNumber.parseFrom(data); - long num = req.getBlockNumber(); - AionBlock blk = this.getBlock(num); + try { + req = Message.req_getTransactionByBlockHashAndIndex.parseFrom(data); + long txIdx = req.getTxIndex(); + byte[] hash = req.getBlockHash().toByteArray(); - return createBlockMsg(blk); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockByNumber exception: [{}]", - e.getMessage()); + if (txIdx < -1 || hash == null || hash.length != Hash256.BYTES) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - } - case Message.Funcs.f_getBlockByHash_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { + + AionTransaction tx = this.getTransactionByBlockHashAndIndex(hash, txIdx); + if (tx == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_call_VALUE); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockByHash req; + Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - try { - req = Message.req_getBlockByHash.parseFrom(data); - byte[] hash = req.getBlockHash().toByteArray(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionByBlockHashAndIndex exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getTransactionByBlockNumberAndIndex_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - if (hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionByBlockNumberAndIndex req; - AionBlock blk = this.getBlockByHash(hash); - return createBlockMsg(blk); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockByHash exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getTransactionByBlockHashAndIndex_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionByBlockHashAndIndex req; - - try { - req = Message.req_getTransactionByBlockHashAndIndex.parseFrom(data); - long txIdx = req.getTxIndex(); - byte[] hash = req.getBlockHash().toByteArray(); - - if (txIdx < -1 || hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } - - AionTransaction tx = this.getTransactionByBlockHashAndIndex(hash, txIdx); - if (tx == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_call_VALUE); - } - - Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); + try { + req = Message.req_getTransactionByBlockNumberAndIndex.parseFrom(data); + long blkNr = req.getBlockNumber(); + long txIdx = req.getTxIndex(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getTransactionByBlockHashAndIndex exception: [{}]", - e.getMessage()); + if (blkNr < -1 || txIdx < -1) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - } - case Message.Funcs.f_getTransactionByBlockNumberAndIndex_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { + + AionTransaction tx = this.getTransactionByBlockNumberAndIndex(blkNr, txIdx); + if (tx == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_call_VALUE); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionByBlockNumberAndIndex req; - - try { - req = Message.req_getTransactionByBlockNumberAndIndex.parseFrom(data); - long blkNr = req.getBlockNumber(); - long txIdx = req.getTxIndex(); + Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - if (blkNr < -1 || txIdx < -1) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionByBlockNumberAndIndex exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockTransactionCountByNumber_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - AionTransaction tx = this.getTransactionByBlockNumberAndIndex(blkNr, txIdx); - if (tx == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockTransactionCountByNumber req; - Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); + try { + req = Message.req_getBlockTransactionCountByNumber.parseFrom(data); + long blkNr = req.getBlockNumber(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getTransactionByBlockNumberAndIndex exception: [{}]", - e.getMessage()); + if (blkNr < -1) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - } - case Message.Funcs.f_getBlockTransactionCountByNumber_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { + + long cnt = this.getBlockTransactionCountByNumber(blkNr); + if (cnt == -1) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_call_VALUE); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockTransactionCountByNumber req; + Message.rsp_getBlockTransactionCount rsp = + Message.rsp_getBlockTransactionCount + .newBuilder() + .setTxCount((int) cnt) + .build(); - try { - req = Message.req_getBlockTransactionCountByNumber.parseFrom(data); - long blkNr = req.getBlockNumber(); - - if (blkNr < -1) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockTransactionCountByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getTransactionCount_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - long cnt = this.getBlockTransactionCountByNumber(blkNr); - if (cnt == -1) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionCount req; - Message.rsp_getBlockTransactionCount rsp = - Message.rsp_getBlockTransactionCount - .newBuilder() - .setTxCount((int) cnt) - .build(); + try { + req = Message.req_getTransactionCount.parseFrom(data); + long blkNr = req.getBlocknumber(); + Address addr = Address.wrap(req.getAddress().toByteArray()); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockTransactionCountByNumber exception: [{}]", - e.getMessage()); + if (blkNr < -1) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - } - case Message.Funcs.f_getTransactionCount_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { + + long cnt = this.getTransactionCount(addr, blkNr); + if (cnt == -1) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_call_VALUE); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionCount req; + Message.rsp_getTransactionCount rsp = + Message.rsp_getTransactionCount + .newBuilder() + .setTxCount((int) cnt) + .build(); - try { - req = Message.req_getTransactionCount.parseFrom(data); - long blkNr = req.getBlocknumber(); - Address addr = Address.wrap(req.getAddress().toByteArray()); - - if (blkNr < -1) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - long cnt = this.getTransactionCount(addr, blkNr); - if (cnt == -1) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionCount exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockTransactionCountByHash_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getTransactionCount rsp = - Message.rsp_getTransactionCount - .newBuilder() - .setTxCount((int) cnt) - .build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionCountByHash req; - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + try { + req = Message.req_getTransactionCountByHash.parseFrom(data); + byte[] hash = req.getTxHash().toByteArray(); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getTransactionCount exception: [{}]", - e.getMessage()); + if (hash == null || hash.length != Hash256.BYTES) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - } - case Message.Funcs.f_getBlockTransactionCountByHash_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { + + long cnt = this.getTransactionCountByHash(hash); + if (cnt == -1) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_call_VALUE); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionCountByHash req; - - try { - req = Message.req_getTransactionCountByHash.parseFrom(data); - byte[] hash = req.getTxHash().toByteArray(); + Message.rsp_getTransactionCount rsp = + Message.rsp_getTransactionCount + .newBuilder() + .setTxCount((int) cnt) + .build(); - if (hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - long cnt = this.getTransactionCountByHash(hash); - if (cnt == -1) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_call_VALUE); - } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionCount exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getTransactionByHash_VALUE: { + if (service != Message.Servs.s_chain_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getTransactionCount rsp = - Message.rsp_getTransactionCount - .newBuilder() - .setTxCount((int) cnt) - .build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getTransactionByHash req; - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + try { + req = Message.req_getTransactionByHash.parseFrom(data); + byte[] txHash = req.getTxHash().toByteArray(); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getTransactionCount exception: [{}]", - e.getMessage()); + if (txHash == null || txHash.length != this.getTxHashLen()) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - } - case Message.Funcs.f_getTransactionByHash_VALUE: - { - if (service != Message.Servs.s_chain_VALUE) { + + AionTransaction tx = this.getTransactionByHash(txHash); + if (tx == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_call_VALUE); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getTransactionByHash req; + Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - try { - req = Message.req_getTransactionByHash.parseFrom(data); - byte[] txHash = req.getTxHash().toByteArray(); - - if (txHash == null || txHash.length != this.getTxHashLen()) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } - - AionTransaction tx = this.getTransactionByHash(txHash); - if (tx == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_call_VALUE); - } - - Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getTransactionCount exception: [{}]", - e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getTransactionCount exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } + } - case Message.Funcs.f_getActiveNodes_VALUE: - { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - List nodes = new ArrayList<>(); - nodes.addAll(this.ac.getAionHub().getP2pMgr().getActiveNodes().values()); - List pl = new ArrayList<>(); - try { - for (INode n : nodes) { - Message.t_Node node = - Message.t_Node - .newBuilder() - .setBlockNumber(n.getBestBlockNumber()) - .setNodeId(ByteArrayWrapper.wrap(n.getId()).toString()) - .setRemoteP2PIp( - ByteArrayWrapper.wrap(n.getIp()).toString()) - // TODO : api export latency, totalDiff and the - // blockHash - // .setLatency((float) n.get) - .build(); - - pl.add(node); - } + case Message.Funcs.f_getActiveNodes_VALUE: { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_getActiveNodes rsp = - Message.rsp_getActiveNodes.newBuilder().addAllNode(pl).build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getActiveNodes exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + List nodes = new ArrayList<>( + this.ac.getAionHub().getP2pMgr().getActiveNodes().values()); + List pl = new ArrayList<>(); + try { + for (INode n : nodes) { + Message.t_Node node = + Message.t_Node + .newBuilder() + .setBlockNumber(n.getBestBlockNumber()) + .setNodeId(ByteArrayWrapper.wrap(n.getId()).toString()) + .setRemoteP2PIp( + ByteArrayWrapper.wrap(n.getIp()).toString()) + // TODO : api export latency, totalDiff and the + // blockHash + // .setLatency((float) n.get) + .build(); + + pl.add(node); + } + + Message.rsp_getActiveNodes rsp = + Message.rsp_getActiveNodes.newBuilder().addAllNode(pl).build(); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getActiveNodes exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } + } - case Message.Funcs.f_getStaticNodes_VALUE: - { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - List al = Arrays.asList(this.getBootNodes()); - List nl = new ArrayList<>(); - for (String s : al) { - // TODO : get more node info - Message.t_Node n = Message.t_Node.newBuilder().setRemoteP2PIp(s).build(); - nl.add(n); - } + case Message.Funcs.f_getStaticNodes_VALUE: { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } + String[] al = this.getBootNodes(); + List nl = new ArrayList<>(); + for (String s : al) { + // TODO : get more node info + Message.t_Node n = Message.t_Node.newBuilder().setRemoteP2PIp(s).build(); + nl.add(n); + } - try { - Message.rsp_getStaticNodes rsp = - Message.rsp_getStaticNodes.newBuilder().addAllNode(nl).build(); + try { + Message.rsp_getStaticNodes rsp = + Message.rsp_getStaticNodes.newBuilder().addAllNode(nl).build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getStaticNodes exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getStaticNodes exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getSolcVersion_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_getSolcVersion_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - String ver = this.solcVersion(); + String ver = this.solcVersion(); - try { - Message.rsp_getSolcVersion rsp = - Message.rsp_getSolcVersion.newBuilder().setVer(ver).build(); + try { + Message.rsp_getSolcVersion rsp = + Message.rsp_getSolcVersion.newBuilder().setVer(ver).build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getSolcVersion exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getSolcVersion exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_isSyncing_VALUE: { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_isSyncing_VALUE: - { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - try { - Message.rsp_isSyncing rsp = - Message.rsp_isSyncing - .newBuilder() - .setSyncing(!this.getSync().done) - .build(); + try { + Message.rsp_isSyncing rsp = + Message.rsp_isSyncing + .newBuilder() + .setSyncing(!this.getSync().done) + .build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.syncing exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error("ApiAion0.process.syncing exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_syncInfo_VALUE: { + if (service != Message.Servs.s_net_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_syncInfo_VALUE: - { - if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - SyncInfo sync = this.getSync(); + SyncInfo sync = this.getSync(); - try { - Message.rsp_syncInfo rsp = - Message.rsp_syncInfo - .newBuilder() - .setChainBestBlock(sync.chainBestBlkNumber) - .setNetworkBestBlock(sync.networkBestBlkNumber) - .setSyncing(!sync.done) - .setMaxImportBlocks(24) - .build(); + try { + Message.rsp_syncInfo rsp = + Message.rsp_syncInfo + .newBuilder() + .setChainBestBlock(sync.chainBestBlkNumber) + .setNetworkBestBlock(sync.networkBestBlkNumber) + .setSyncing(!sync.done) + .setMaxImportBlocks(24) + .build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error("ApiAion0.process.syncInfo exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error("ApiAion0.process.syncInfo exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_accountCreate_VALUE: { + if (service != Message.Servs.s_account_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_accountCreate_VALUE: - { - if (service != Message.Servs.s_account_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_accountCreate req; - - try { - req = Message.req_accountCreate.parseFrom(data); - List addressList = new ArrayList<>(); - List pKeyList = new ArrayList<>(); - for (int i = 0; - i < req.getPasswordList().size() && i < ACCOUNT_CREATE_LIMIT; - i++) { + byte[] data = parseMsgReq(request, msgHash); + Message.req_accountCreate req; - String addr = Keystore.create(req.getPassword(i)); - byte[] pKey; - if (req.getPrivateKey()) { - pKey = Keystore.getKey(addr, req.getPassword(i)).getPrivKeyBytes(); - if (pKey == null) { - pKey = ByteArrayWrapper.NULL_BYTE; - } + try { + req = Message.req_accountCreate.parseFrom(data); - pKeyList.add(ByteString.copyFrom(pKey)); + List addressList = new ArrayList<>(); + List pKeyList = new ArrayList<>(); + for (int i = 0; + i < req.getPasswordList().size() && i < ACCOUNT_CREATE_LIMIT; + i++) { + + String addr = Keystore.create(req.getPassword(i)); + byte[] pKey; + if (req.getPrivateKey()) { + pKey = Keystore.getKey(addr, req.getPassword(i)).getPrivKeyBytes(); + if (pKey == null) { + pKey = ByteArrayWrapper.NULL_BYTE; } - addressList.add(ByteString.copyFrom(Address.wrap(addr).toBytes())); + pKeyList.add(ByteString.copyFrom(pKey)); } - Message.rsp_accountCreate rsp = - Message.rsp_accountCreate - .newBuilder() - .addAllAddress(addressList) - .addAllPrivateKey(pKeyList) - .build(); + addressList.add(ByteString.copyFrom(Address.wrap(addr).toBytes())); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + Message.rsp_accountCreate rsp = + Message.rsp_accountCreate + .newBuilder() + .addAllAddress(addressList) + .addAllPrivateKey(pKeyList) + .build(); - } catch (Exception e) { - LOG.error("ApiAion0.process.accountCreate exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + + } catch (Exception e) { + LOG.error("ApiAion0.process.accountCreate exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } + } - case Message.Funcs.f_accountLock_VALUE: - { - if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + case Message.Funcs.f_accountLock_VALUE: { + if (service != Message.Servs.s_wallet_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] data = parseMsgReq(request, msgHash); + byte[] data = parseMsgReq(request, msgHash); - if (data == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } - - boolean result; - try { - Message.req_accountlock req = Message.req_accountlock.parseFrom(data); - result = - this.lockAccount( - Address.wrap(req.getAccount().toByteArray()), - req.getPassword()); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.lockAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + if (data == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); + boolean result; + try { + Message.req_accountlock req = Message.req_accountlock.parseFrom(data); + result = + this.lockAccount( + Address.wrap(req.getAccount().toByteArray()), + req.getPassword()); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.lockAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } - case Message.Funcs.f_userPrivilege_VALUE: - { - if (service != Message.Servs.s_privilege_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); + } + case Message.Funcs.f_userPrivilege_VALUE: { + if (service != Message.Servs.s_privilege_VALUE) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_unsupport_api_VALUE); + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_mining_VALUE: - { - if (service != Message.Servs.s_mine_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - Message.rsp_mining rsp = - Message.rsp_mining.newBuilder().setMining(this.isMining()).build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_unsupport_api_VALUE); + } + case Message.Funcs.f_mining_VALUE: { + if (service != Message.Servs.s_mine_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_estimateNrg_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); - } + Message.rsp_mining rsp = + Message.rsp_mining.newBuilder().setMining(this.isMining()).build(); - byte[] data = parseMsgReq(request, msgHash); - Message.req_estimateNrg req; - long result; - try { - req = Message.req_estimateNrg.parseFrom(data); - - ArgTxCall params = - new ArgTxCall( - Address.wrap(req.getFrom().toByteArray()), - Address.wrap(req.getTo().toByteArray()), - req.getData().toByteArray(), - BigInteger.ZERO, - new BigInteger(req.getValue().toByteArray()), - req.getNrg(), - req.getNrgPrice()); - - result = this.estimateNrg(params); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAion0.process.estimateNrg exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - Message.rsp_estimateNrg rsp = - Message.rsp_estimateNrg.newBuilder().setNrg(result).build(); + case Message.Funcs.f_estimateNrg_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); + } - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] data = parseMsgReq(request, msgHash); + Message.req_estimateNrg req; + long result; + try { + req = Message.req_estimateNrg.parseFrom(data); + + ArgTxCall params = + new ArgTxCall( + Address.wrap(req.getFrom().toByteArray()), + Address.wrap(req.getTo().toByteArray()), + req.getData().toByteArray(), + BigInteger.ZERO, + new BigInteger(req.getValue().toByteArray()), + req.getNrg(), + req.getNrgPrice()); + + result = this.estimateNrg(params); + } catch (InvalidProtocolBufferException e) { + LOG.error("ApiAion0.process.estimateNrg exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); } - case Message.Funcs.f_exportAccounts_VALUE: - case Message.Funcs.f_backupAccounts_VALUE: - { - if (service != Message.Servs.s_account_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } + Message.rsp_estimateNrg rsp = + Message.rsp_estimateNrg.newBuilder().setNrg(result).build(); - byte[] data = parseMsgReq(request, msgHash); - Message.req_exportAccounts req; + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - try { - req = Message.req_exportAccounts.parseFrom(data); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.exportAccounts exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + case Message.Funcs.f_exportAccounts_VALUE: + case Message.Funcs.f_backupAccounts_VALUE: { + if (service != Message.Servs.s_account_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Map addrMap = new HashMap<>(); - for (int i = 0; - i < req.getKeyFileList().size() && i < ACCOUNT_CREATE_LIMIT; - i++) { - addrMap.put( - Address.wrap(req.getKeyFile(i).getAddress().toByteArray()), - req.getKeyFile(i).getPassword()); - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_exportAccounts req; - Map res = - ((short) request[2] == Message.Funcs.f_exportAccounts_VALUE) - ? Keystore.exportAccount(addrMap) - : Keystore.backupAccount(addrMap); + try { + req = Message.req_exportAccounts.parseFrom(data); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.exportAccounts exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - List invalidKey = - addrMap.keySet() - .parallelStream() - .filter( - addr -> - res.keySet() - .parallelStream() - .noneMatch(ad -> ad.equals(addr))) - .map(match -> ByteString.copyFrom(match.toBytes())) - .collect(Collectors.toList()); + Map addrMap = new HashMap<>(); + for (int i = 0; + i < req.getKeyFileList().size() && i < ACCOUNT_CREATE_LIMIT; + i++) { + addrMap.put( + Address.wrap(req.getKeyFile(i).getAddress().toByteArray()), + req.getKeyFile(i).getPassword()); + } - List keyBins = - res.values() + Map res = + ((short) request[2] == Message.Funcs.f_exportAccounts_VALUE) + ? Keystore.exportAccount(addrMap) + : Keystore.backupAccount(addrMap); + + List invalidKey = + addrMap.keySet() + .parallelStream() + .filter( + addr -> + res.keySet() .parallelStream() - .map(key -> ByteString.copyFrom(key.toBytes())) - .collect(Collectors.toList()); + .noneMatch(ad -> ad.equals(addr))) + .map(match -> ByteString.copyFrom(match.toBytes())) + .collect(Collectors.toList()); - Message.rsp_exportAccounts rsp = - Message.rsp_exportAccounts - .newBuilder() - .addAllKeyFile(keyBins) - .addAllFailedKey(invalidKey) - .build(); + List keyBins = + res.values() + .parallelStream() + .map(key -> ByteString.copyFrom(key.toBytes())) + .collect(Collectors.toList()); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + Message.rsp_exportAccounts rsp = + Message.rsp_exportAccounts + .newBuilder() + .addAllKeyFile(keyBins) + .addAllFailedKey(invalidKey) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_importAccounts_VALUE: { + if (service != Message.Servs.s_account_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_importAccounts_VALUE: - { - if (service != Message.Servs.s_account_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - Message.req_importAccounts req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_importAccounts req; - try { - req = Message.req_importAccounts.parseFrom(data); - } catch (Exception e) { - LOG.error("ApiAion0.process.importAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + try { + req = Message.req_importAccounts.parseFrom(data); + } catch (Exception e) { + LOG.error("ApiAion0.process.importAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - Map importKey = - req.getPrivateKeyList() - .parallelStream() - .collect( - Collectors.toMap( - Message.t_PrivateKey::getPrivateKey, - Message.t_PrivateKey::getPassword)); + Map importKey = + req.getPrivateKeyList() + .parallelStream() + .collect( + Collectors.toMap( + Message.t_PrivateKey::getPrivateKey, + Message.t_PrivateKey::getPassword)); - if (importKey == null) { - LOG.error("ApiAion0.process.importAccount exception: [null importKey]"); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + if (importKey == null) { + LOG.error("ApiAion0.process.importAccount exception: [null importKey]"); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } - Set res = Keystore.importAccount(importKey); - if (res == null) { - throw new NullPointerException(); - } + Set res = Keystore.importAccount(importKey); + if (res == null) { + throw new NullPointerException(); + } - Message.rsp_importAccounts rsp = - Message.rsp_importAccounts.newBuilder().addAllInvalidKey(res).build(); + Message.rsp_importAccounts rsp = + Message.rsp_importAccounts.newBuilder().addAllInvalidKey(res).build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } case Message.Funcs.f_signedTransaction_VALUE: - case Message.Funcs.f_rawTransaction_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_rawTransaction req; - byte[] result; - try { - req = Message.req_rawTransaction.parseFrom(data); - byte[] encodedTx = req.getEncodedTx().toByteArray(); - if (encodedTx == null) { - LOG.error( - "ApiAion0.process.rawTransaction exception: [null encodedTx]"); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + case Message.Funcs.f_rawTransaction_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); + } - result = this.sendTransaction(encodedTx); - } catch (Exception e) { + byte[] data = parseMsgReq(request, msgHash); + Message.req_rawTransaction req; + byte[] result; + try { + req = Message.req_rawTransaction.parseFrom(data); + byte[] encodedTx = req.getEncodedTx().toByteArray(); + if (encodedTx == null) { LOG.error( - "ApiAion0.process.rawTransaction exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); - } - - if (result == null) { + "ApiAion0.process.rawTransaction exception: [null encodedTx]"); return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - getMsgIdMapping() - .put( - ByteArrayWrapper.wrap(result), - new AbstractMap.SimpleEntry<>( - ByteArrayWrapper.wrap(msgHash), - ByteArrayWrapper.wrap(socketId))); - if (LOG.isDebugEnabled()) { - LOG.debug( - "ApiAion0.process.rawTransaction - msgIdMapping.put: [{}]", - ByteArrayWrapper.wrap(result).toString()); - } - - Message.rsp_sendTransaction rsp = - Message.rsp_sendTransaction - .newBuilder() - .setTxHash(ByteString.copyFrom(result)) - .build(); - - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + result = this.sendTransaction(encodedTx); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.rawTransaction exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); } - case Message.Funcs.f_eventRegister_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_eventRegister req; - - try { - req = Message.req_eventRegister.parseFrom(data); - List evtList = new ArrayList<>(req.getEventsList()); - if (evtList.isEmpty()) { - LOG.error( - "ApiNucoNcp.process.eventRegister : [{}]", "empty event list"); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + if (result == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); + } - Message.t_FilterCt fltr = req.getFilter(); - List accList = new ArrayList<>(); - fltr.getAddressesList().forEach(a -> accList.add(a.toByteArray())); - - long lv = ByteUtil.byteArrayToLong(socketId); - FltrCt preFc = (FltrCt) installedFilters.get(lv); - if (Optional.ofNullable(preFc).isPresent()) { - preFc.getTopics() - .forEach( - t -> { - if (!fltr.getTopicsList().contains(t)) { - evtList.add(t); - } - }); - } + getMsgIdMapping() + .put( + ByteArrayWrapper.wrap(result), + new AbstractMap.SimpleEntry<>( + ByteArrayWrapper.wrap(msgHash), + ByteArrayWrapper.wrap(socketId))); + if (LOG.isDebugEnabled()) { + LOG.debug( + "ApiAion0.process.rawTransaction - msgIdMapping.put: [{}]", + ByteArrayWrapper.wrap(result).toString()); + } - FltrCt fc = - new FltrCt( - fltr.getContractAddr().toByteArray(), - fltr.getTo(), - fltr.getFrom(), - evtList, - accList, - fltr.getExpireTime()); + Message.rsp_sendTransaction rsp = + Message.rsp_sendTransaction + .newBuilder() + .setTxHash(ByteString.copyFrom(result)) + .build(); - installedFilters.put(lv, fc); + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } + case Message.Funcs.f_eventRegister_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - Message.rsp_eventRegister rsp = - Message.rsp_eventRegister.newBuilder().setResult(true).build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_eventRegister req; - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + try { + req = Message.req_eventRegister.parseFrom(data); - } catch (Exception e) { - LOG.error("ApiAion0.process.eventRegister exception: [{}]", e.getMessage()); + List evtList = new ArrayList<>(req.getEventsList()); + if (evtList.isEmpty()) { + LOG.error( + "ApiNucoNcp.process.eventRegister : [{}]", "empty event list"); return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - } - case Message.Funcs.f_eventDeregister_VALUE: - { - if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + + Message.t_FilterCt fltr = req.getFilter(); + List accList = new ArrayList<>(); + fltr.getAddressesList().forEach(a -> accList.add(a.toByteArray())); + + long lv = ByteUtil.byteArrayToLong(socketId); + FltrCt preFc = (FltrCt) installedFilters.get(lv); + if (Optional.ofNullable(preFc).isPresent()) { + preFc.getTopics() + .forEach( + t -> { + if (!fltr.getTopicsList().contains(t)) { + evtList.add(t); + } + }); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_eventDeregister req; + FltrCt fc = + new FltrCt( + fltr.getContractAddr().toByteArray(), + fltr.getTo(), + fltr.getFrom(), + evtList, + accList, + fltr.getExpireTime()); - try { - req = Message.req_eventDeregister.parseFrom(data); + installedFilters.put(lv, fc); - List evtList = new ArrayList<>(req.getEventsList()); + Message.rsp_eventRegister rsp = + Message.rsp_eventRegister.newBuilder().setResult(true).build(); - byte[] conrtactAddr; - if (req.getContractAddr() == null) { - conrtactAddr = null; - } else { - conrtactAddr = req.getContractAddr().toByteArray(); - } + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - if (evtList.isEmpty()) { - LOG.error("ApiAion0.process.eventRegister : [{}]", "empty event list"); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + } catch (Exception e) { + LOG.error("ApiAion0.process.eventRegister exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_eventDeregister_VALUE: { + if (service != Message.Servs.s_tx_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - long lv = ByteUtil.byteArrayToLong(socketId); - FltrCt preFc = (FltrCt) installedFilters.get(lv); - - boolean changed = false; - if (Optional.ofNullable(preFc).isPresent() - && Arrays.equals(preFc.getContractAddr(), conrtactAddr)) { - evtList.forEach( - ev -> { - if (preFc.getTopics().contains(ev)) { - preFc.getTopics().remove(ev); - } - }); - - installedFilters.put(lv, preFc); - changed = true; - } + byte[] data = parseMsgReq(request, msgHash); + Message.req_eventDeregister req; - Message.rsp_eventRegister rsp = - Message.rsp_eventRegister.newBuilder().setResult(changed).build(); + try { + req = Message.req_eventDeregister.parseFrom(data); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + List evtList = new ArrayList<>(req.getEventsList()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.eventDeregister exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + byte[] conrtactAddr; + if (req.getContractAddr() == null) { + conrtactAddr = null; + } else { + conrtactAddr = req.getContractAddr().toByteArray(); } - } - case Message.Funcs.f_getBlockDetailsByNumber_VALUE: - { - if (service != Message.Servs.s_admin_VALUE) { + + if (evtList.isEmpty()) { + LOG.error("ApiAion0.process.eventRegister : [{}]", "empty event list"); return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockDetailsByNumber req; + long lv = ByteUtil.byteArrayToLong(socketId); + FltrCt preFc = (FltrCt) installedFilters.get(lv); - try { - req = Message.req_getBlockDetailsByNumber.parseFrom(data); - long latestBlkNum = this.getBestBlock().getNumber(); + boolean changed = false; + if (Optional.ofNullable(preFc).isPresent() + && Arrays.equals(preFc.getContractAddr(), conrtactAddr)) { + evtList.forEach( + ev -> preFc.getTopics().remove(ev)); - List blkNum = - req.getBlkNumbersList() - .parallelStream() - .filter(n -> n <= latestBlkNum) - .collect(Collectors.toSet()) - .parallelStream() - .sorted() - .collect(Collectors.toList()); + installedFilters.put(lv, preFc); + changed = true; + } - if (blkNum.size() > 1000) { - blkNum = blkNum.subList(0, 1000); - } + Message.rsp_eventRegister rsp = + Message.rsp_eventRegister.newBuilder().setResult(changed).build(); - List> blks = - getBlkAndDifficultyForBlkNumList(blkNum); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - if (blks == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } else { + } catch (Exception e) { + LOG.error( + "ApiAion0.process.eventDeregister exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockDetailsByNumber_VALUE: { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - List bds = getRsp_getBlockDetails(blks); - Message.rsp_getBlockDetailsByNumber rsp = - Message.rsp_getBlockDetailsByNumber - .newBuilder() - .addAllBlkDetails(bds) - .build(); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockDetailsByNumber req; - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", - e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + try { + req = Message.req_getBlockDetailsByNumber.parseFrom(data); + long latestBlkNum = this.getBestBlock().getNumber(); + + List blkNum = + req.getBlkNumbersList() + .parallelStream() + .filter(n -> n <= latestBlkNum) + .collect(Collectors.toSet()) + .parallelStream() + .sorted() + .collect(Collectors.toList()); + + if (blkNum.size() > 1000) { + blkNum = blkNum.subList(0, 1000); } - } - case Message.Funcs.f_getBlockSqlByRange_VALUE: - { - if (service != Message.Servs.s_admin_VALUE) { + + List> blks = + getBlkAndDifficultyForBlkNumList(blkNum); + + if (blks == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } else { + + List bds = getRsp_getBlockDetails(blks); + Message.rsp_getBlockDetailsByNumber rsp = + Message.rsp_getBlockDetailsByNumber + .newBuilder() + .addAllBlkDetails(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockSqlByRange_VALUE: { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockSqlByRange req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockSqlByRange req; - try { - if (LOG.isDebugEnabled()) LOG.debug("BlockSqlByRange: start"); + try { + if (LOG.isDebugEnabled()) { + LOG.debug("BlockSqlByRange: start"); + } - req = Message.req_getBlockSqlByRange.parseFrom(data); - long latestBlkNum = this.getBestBlock().getNumber(); + req = Message.req_getBlockSqlByRange.parseFrom(data); + long latestBlkNum = this.getBestBlock().getNumber(); - Long _blkStart = req.getBlkNumberStart(); - Long _blkEnd = req.getBlkNumberEnd(); + Long _blkStart = req.getBlkNumberStart(); + Long _blkEnd = req.getBlkNumberEnd(); - // no null check here + // no null check here - long blkStart = -1; - long blkEnd = -1; + long blkStart; + long blkEnd; - if (_blkStart < 0) blkStart = 0; - else blkStart = _blkStart; + if (_blkStart < 0) { + blkStart = 0; + } else { + blkStart = _blkStart; + } - if (_blkEnd > latestBlkNum) blkEnd = latestBlkNum; - else blkEnd = _blkEnd; + if (_blkEnd > latestBlkNum) { + blkEnd = latestBlkNum; + } else { + blkEnd = _blkEnd; + } - if (blkEnd < blkStart) - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + if (blkEnd < blkStart) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - // truncate the thing - if (blkEnd - blkStart > 1000) { - blkStart = blkEnd - 1000 + 1; + // truncate the thing + if (blkEnd - blkStart > 1000) { + blkStart = blkEnd - 1000 + 1; - if (blkStart < 0) blkStart = 0; + if (blkStart < 0) { + blkStart = 0; } + } - if (LOG.isDebugEnabled()) - LOG.debug("BlockSqlByRange: range " + blkStart + "-" + blkEnd); - - Long lastBlockTimestamp = null; - long listLength = blkEnd - blkStart + 1; - List bds = new ArrayList<>(); - - for (int i = 0; i < listLength; i++) { - long blkNum = blkStart + i; - Map.Entry entry = - getBlockWithTotalDifficulty(blkNum); - AionBlock b = entry.getKey(); - BigInteger td = entry.getValue(); - long blocktime = 0; - if (blkNum != 0 && lastBlockTimestamp == null) { - lastBlockTimestamp = getBlock(blkNum - 1).getTimestamp(); - } - if (blkNum == 0) blocktime = 0; - else blocktime = b.getTimestamp() - lastBlockTimestamp; + if (LOG.isDebugEnabled()) { + LOG.debug("BlockSqlByRange: range " + blkStart + "-" + blkEnd); + } + + Long lastBlockTimestamp = null; + long listLength = blkEnd - blkStart + 1; + List bds = new ArrayList<>(); + + for (int i = 0; i < listLength; i++) { + long blkNum = blkStart + i; + Map.Entry entry = + getBlockWithTotalDifficulty(blkNum); + AionBlock b = entry.getKey(); + BigInteger td = entry.getValue(); + long blocktime; + if (blkNum != 0 && lastBlockTimestamp == null) { + lastBlockTimestamp = getBlock(blkNum - 1).getTimestamp(); + } + if (blkNum == 0) { + blocktime = 0; + } else { + blocktime = b.getTimestamp() - lastBlockTimestamp; + } - lastBlockTimestamp = b.getTimestamp(); + lastBlockTimestamp = b.getTimestamp(); - String blockSql = generateBlockSqlStatement(b, td, blocktime); + String blockSql = generateBlockSqlStatement(b, td, blocktime); - List transactionSql = new ArrayList<>(); + List transactionSql = new ArrayList<>(); - AionBlockSummary bs = null; - if (explorerBlockCache != null) { - // remove from cache since after consumed, we're probably not gonna - // revisit it - bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); - } + AionBlockSummary bs = null; + if (explorerBlockCache != null) { + // remove from cache since after consumed, we're probably not gonna + // revisit it + bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); + } - if (bs != null) { + if (bs != null) { - if (LOG.isDebugEnabled()) - LOG.debug("BlockSqlByRange: cache HIT for #: " + b.getNumber()); + if (LOG.isDebugEnabled()) { + LOG.debug("BlockSqlByRange: cache HIT for #: " + b.getNumber()); + } - Map receipts = new HashMap<>(); - for (AionTxReceipt r : bs.getReceipts()) { - receipts.put( - new ByteArrayWrapper(r.getTransaction().getHash()), r); - } + Map receipts = new HashMap<>(); + for (AionTxReceipt r : bs.getReceipts()) { + receipts.put( + new ByteArrayWrapper(r.getTransaction().getHash()), r); + } - List txns = b.getTransactionsList(); - for (int j = 0; j < txns.size(); j++) { - AionTransaction tx = txns.get(j); - AionTxReceipt r = - receipts.get(new ByteArrayWrapper(tx.getHash())); - if (r == null) { - if (LOG.isDebugEnabled()) - LOG.debug( - "BlockSqlByRange: transaction not in Block Summary: " - + b.getNumber() - + "." - + j); - AionTxInfo ti = - ((AionBlockchainImpl) - this.ac - .getAionHub() - .getBlockchain()) - .getTransactionInfoLite( - tx.getHash(), b.getHash()); - r = ti.getReceipt(); - } - if (r == null) { - LOG.error( - "BlockSqlByRange: missing DB transaction: " - + ByteUtil.toHexString(tx.getHash())); - } else { - transactionSql.add( - generateTransactionSqlStatement( - b, - tx, - r.getLogInfoList(), - j, - r.getEnergyUsed())); + List txns = b.getTransactionsList(); + for (int j = 0; j < txns.size(); j++) { + AionTransaction tx = txns.get(j); + AionTxReceipt r = + receipts.get(new ByteArrayWrapper(tx.getHash())); + if (r == null) { + if (LOG.isDebugEnabled()) { + LOG.debug( + "BlockSqlByRange: transaction not in Block Summary: " + + b.getNumber() + + "." + + j); } + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), b.getHash()); + r = ti.getReceipt(); + } + if (r == null) { + LOG.error( + "BlockSqlByRange: missing DB transaction: " + + ByteUtil.toHexString(tx.getHash())); + } else { + transactionSql.add( + generateTransactionSqlStatement( + b, + tx, + r.getLogInfoList(), + j, + r.getEnergyUsed())); } - } else { - if (LOG.isDebugEnabled()) - LOG.debug( - "BlockSqlByRange: cache MISS for #: " + b.getNumber()); - List txs = b.getTransactionsList(); - - transactionSql = - txs.parallelStream() - .filter(Objects::nonNull) - .map( - (AionTransaction tx) -> { - AionTxInfo ti = - ((AionBlockchainImpl) - this.ac - .getAionHub() - .getBlockchain()) - .getTransactionInfoLite( - tx.getHash(), - b.getHash()); - if (ti == null) { - LOG.error( - "BlockSqlByRange: missing DB transaction: " - + ByteUtil - .toHexString( - tx - .getHash())); - return null; - } else { - return generateTransactionSqlStatement( - b, - tx, - ti.getReceipt() - .getLogInfoList(), - ti.getIndex(), - ti.getReceipt() - .getEnergyUsed()); - } - }) - .filter(Objects::nonNull) - .collect(Collectors.toList()); } - - Message.t_BlockSql sqlObj = - Message.t_BlockSql - .newBuilder() - .setBlockNumber(b.getNumber()) - .setBlockHash(ByteUtil.toHexString(b.getHash())) - .setParentHash(ByteUtil.toHexString(b.getParentHash())) - .setBlock(blockSql) - .addAllTx(transactionSql) - .build(); - - bds.add(sqlObj); + } else { + if (LOG.isDebugEnabled()) { + LOG.debug( + "BlockSqlByRange: cache MISS for #: " + b.getNumber()); + } + List txs = b.getTransactionsList(); + + transactionSql = + txs.parallelStream() + .filter(Objects::nonNull) + .map( + (AionTransaction tx) -> { + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), + b.getHash()); + if (ti == null) { + LOG.error( + "BlockSqlByRange: missing DB transaction: " + + ByteUtil + .toHexString( + tx + .getHash())); + return null; + } else { + return generateTransactionSqlStatement( + b, + tx, + ti.getReceipt() + .getLogInfoList(), + ti.getIndex(), + ti.getReceipt() + .getEnergyUsed()); + } + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); } - Message.rsp_getBlockSqlByRange rsp = - Message.rsp_getBlockSqlByRange - .newBuilder() - .addAllBlkSql(bds) - .build(); + Message.t_BlockSql sqlObj = + Message.t_BlockSql + .newBuilder() + .setBlockNumber(b.getNumber()) + .setBlockHash(ByteUtil.toHexString(b.getHash())) + .setParentHash(ByteUtil.toHexString(b.getParentHash())) + .setBlock(blockSql) + .addAllTx(transactionSql) + .build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", - e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + bds.add(sqlObj); } + + Message.rsp_getBlockSqlByRange rsp = + Message.rsp_getBlockSqlByRange + .newBuilder() + .addAllBlkSql(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockDetailsByRange_VALUE: { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_getBlockDetailsByRange_VALUE: - { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockDetailsByRange req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockDetailsByRange req; - try { - if (LOG.isDebugEnabled()) LOG.debug("getBlockDetailsByRange: start"); + try { + if (LOG.isDebugEnabled()) { + LOG.debug("getBlockDetailsByRange: start"); + } - req = Message.req_getBlockDetailsByRange.parseFrom(data); - long latestBlkNum = this.getBestBlock().getNumber(); + req = Message.req_getBlockDetailsByRange.parseFrom(data); + long latestBlkNum = this.getBestBlock().getNumber(); - Long _blkStart = req.getBlkNumberStart(); - Long _blkEnd = req.getBlkNumberEnd(); + Long _blkStart = req.getBlkNumberStart(); + Long _blkEnd = req.getBlkNumberEnd(); - // no null check here + // no null check here - long blkStart = -1; - long blkEnd = -1; + long blkStart; + long blkEnd; - if (_blkStart < 0) blkStart = 0; - else blkStart = _blkStart; + if (_blkStart < 0) { + blkStart = 0; + } else { + blkStart = _blkStart; + } - // blocks requested in the future. return empty result - if (blkStart > latestBlkNum) { - Message.rsp_getBlockDetailsByRange rsp = - Message.rsp_getBlockDetailsByRange - .newBuilder() - .addAllBlkDetails(new ArrayList<>()) - .build(); + // blocks requested in the future. return empty result + if (blkStart > latestBlkNum) { + Message.rsp_getBlockDetailsByRange rsp = + Message.rsp_getBlockDetailsByRange + .newBuilder() + .addAllBlkDetails(new ArrayList<>()) + .build(); - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } - if (_blkEnd > latestBlkNum) blkEnd = latestBlkNum; - else blkEnd = _blkEnd; + if (_blkEnd > latestBlkNum) { + blkEnd = latestBlkNum; + } else { + blkEnd = _blkEnd; + } - if (blkEnd < blkStart) - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + if (blkEnd < blkStart) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - // truncate at the beginning of range - if (blkEnd - blkStart > 1000) { - blkStart = blkEnd - 1000 + 1; + // truncate at the beginning of range + if (blkEnd - blkStart > 1000) { + blkStart = blkEnd - 1000 + 1; - if (blkStart < 0) blkStart = 0; + if (blkStart < 0) { + blkStart = 0; } + } - if (LOG.isDebugEnabled()) - LOG.debug("getBlockDetailsByRange: range " + blkStart + "-" + blkEnd); + if (LOG.isDebugEnabled()) { + LOG.debug("getBlockDetailsByRange: range " + blkStart + "-" + blkEnd); + } + + Long lastBlockTimestamp = null; + long listLength = blkEnd - blkStart + 1; + List bds = new ArrayList<>(); + + for (int i = 0; i < listLength; i++) { + long blkNum = blkStart + i; + Map.Entry entry = + getBlockWithTotalDifficulty(blkNum); + AionBlock b = entry.getKey(); + BigInteger td = entry.getValue(); + long blocktime = 0; + if (b.getNumber() > 0 && lastBlockTimestamp == null) { + lastBlockTimestamp = + getBlockByHash(b.getParentHash()).getTimestamp(); + } - Long lastBlockTimestamp = null; - long listLength = blkEnd - blkStart + 1; - List bds = new ArrayList<>(); + if (lastBlockTimestamp != null) { + blocktime = b.getTimestamp() - lastBlockTimestamp; + } - for (int i = 0; i < listLength; i++) { - long blkNum = blkStart + i; - Map.Entry entry = - getBlockWithTotalDifficulty(blkNum); - AionBlock b = entry.getKey(); - BigInteger td = entry.getValue(); - long blocktime = 0; - if (b.getNumber() > 0 && lastBlockTimestamp == null) - lastBlockTimestamp = - getBlockByHash(b.getParentHash()).getTimestamp(); + lastBlockTimestamp = b.getTimestamp(); - if (lastBlockTimestamp != null) - blocktime = b.getTimestamp() - lastBlockTimestamp; + Message.t_BlockDetail.Builder blockDetails = + getBlockDetailsObj(b, td, blocktime); - lastBlockTimestamp = b.getTimestamp(); + List txDetails = new ArrayList<>(); - Message.t_BlockDetail.Builder blockDetails = - getBlockDetailsObj(b, td, blocktime); + AionBlockSummary bs = null; + if (explorerBlockCache != null) { + // remove from cache since after consumed, we're probably not gonna + // revisit it + bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); + } - List txDetails = new ArrayList<>(); + if (bs != null) { - AionBlockSummary bs = null; - if (explorerBlockCache != null) { - // remove from cache since after consumed, we're probably not gonna - // revisit it - bs = explorerBlockCache.remove(new ByteArrayWrapper(b.getHash())); + if (LOG.isDebugEnabled()) { + LOG.debug( + "getBlockDetailsByRange: cache HIT for #: " + + b.getNumber()); } - if (bs != null) { - - if (LOG.isDebugEnabled()) - LOG.debug( - "getBlockDetailsByRange: cache HIT for #: " - + b.getNumber()); - - Map receipts = new HashMap<>(); - for (AionTxReceipt r : bs.getReceipts()) { - receipts.put( - new ByteArrayWrapper(r.getTransaction().getHash()), r); - } + Map receipts = new HashMap<>(); + for (AionTxReceipt r : bs.getReceipts()) { + receipts.put( + new ByteArrayWrapper(r.getTransaction().getHash()), r); + } - List txns = b.getTransactionsList(); - for (int j = 0; j < txns.size(); j++) { - AionTransaction tx = txns.get(j); - AionTxReceipt r = - receipts.get(new ByteArrayWrapper(tx.getHash())); - if (r == null) { - if (LOG.isDebugEnabled()) - LOG.debug( - "getBlockDetailsByRange: transaction not in Block Summary: " - + b.getNumber() - + "." - + j); - AionTxInfo ti = - ((AionBlockchainImpl) - this.ac - .getAionHub() - .getBlockchain()) - .getTransactionInfoLite( - tx.getHash(), b.getHash()); - r = ti.getReceipt(); - } - if (r == null) { - LOG.error( - "getBlockDetailsByRange: missing DB transaction: " - + ByteUtil.toHexString(tx.getHash())); - } else { - txDetails.add( - getTxDetailsObj( - tx, - r.getLogInfoList(), - j, - r.getEnergyUsed(), - r.getError())); + List txns = b.getTransactionsList(); + for (int j = 0; j < txns.size(); j++) { + AionTransaction tx = txns.get(j); + AionTxReceipt r = + receipts.get(new ByteArrayWrapper(tx.getHash())); + if (r == null) { + if (LOG.isDebugEnabled()) { + LOG.debug( + "getBlockDetailsByRange: transaction not in Block Summary: " + + b.getNumber() + + "." + + j); } + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), b.getHash()); + r = ti.getReceipt(); + } + if (r == null) { + LOG.error( + "getBlockDetailsByRange: missing DB transaction: " + + ByteUtil.toHexString(tx.getHash())); + } else { + txDetails.add( + getTxDetailsObj( + tx, + r.getLogInfoList(), + j, + r.getEnergyUsed(), + r.getError())); } - } else { - if (LOG.isDebugEnabled()) - LOG.debug( - "getBlockDetailsByRange: cache MISS for #: " - + b.getNumber()); - List txs = b.getTransactionsList(); - - txDetails = - txs.parallelStream() - .filter(Objects::nonNull) - .map( - (AionTransaction tx) -> { - AionTxInfo ti = - ((AionBlockchainImpl) - this.ac - .getAionHub() - .getBlockchain()) - .getTransactionInfoLite( - tx.getHash(), - b.getHash()); - if (ti == null) { - LOG.error( - "getBlockDetailsByRange: missing DB transaction: " - + ByteUtil - .toHexString( - tx - .getHash())); - return null; - } else { - return getTxDetailsObj( - tx, - ti.getReceipt() - .getLogInfoList(), - ti.getIndex(), - ti.getReceipt() - .getEnergyUsed(), - ti.getReceipt().getError()); - } - }) - .filter(Objects::nonNull) - .collect(Collectors.toList()); } - - bds.add(blockDetails.addAllTx(txDetails).build()); + } else { + if (LOG.isDebugEnabled()) { + LOG.debug( + "getBlockDetailsByRange: cache MISS for #: " + + b.getNumber()); + } + List txs = b.getTransactionsList(); + + txDetails = + txs.parallelStream() + .filter(Objects::nonNull) + .map( + (AionTransaction tx) -> { + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx.getHash(), + b.getHash()); + if (ti == null) { + LOG.error( + "getBlockDetailsByRange: missing DB transaction: " + + ByteUtil + .toHexString( + tx + .getHash())); + return null; + } else { + return getTxDetailsObj( + tx, + ti.getReceipt() + .getLogInfoList(), + ti.getIndex(), + ti.getReceipt() + .getEnergyUsed(), + ti.getReceipt().getError()); + } + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); } - Message.rsp_getBlockDetailsByRange rsp = - Message.rsp_getBlockDetailsByRange - .newBuilder() - .addAllBlkDetails(bds) - .build(); - - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", - e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } - } - case Message.Funcs.f_getBlockDetailsByLatest_VALUE: - { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); + bds.add(blockDetails.addAllTx(txDetails).build()); } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlockDetailsByLatest req; + Message.rsp_getBlockDetailsByRange rsp = + Message.rsp_getBlockDetailsByRange + .newBuilder() + .addAllBlkDetails(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlockDetailsByLatest_VALUE: { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); + } - try { - req = Message.req_getBlockDetailsByLatest.parseFrom(data); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlockDetailsByLatest req; - // clip the requested count up to 1000 - Long count = req.getCount(); - if (count > 1000) { - count = 1000L; - } + try { + req = Message.req_getBlockDetailsByLatest.parseFrom(data); - // clip start block to 0 at the bottom - Long endBlock = this.getBestBlock().getNumber(); - Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; + // clip the requested count up to 1000 + Long count = req.getCount(); + if (count > 1000) { + count = 1000L; + } - List blkNum = - LongStream.rangeClosed(startBlock, endBlock) - .boxed() - .collect(Collectors.toList()); + // clip start block to 0 at the bottom + Long endBlock = this.getBestBlock().getNumber(); + Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; - List> blks = - getBlkAndDifficultyForBlkNumList(blkNum); + List blkNum = + LongStream.rangeClosed(startBlock, endBlock) + .boxed() + .collect(Collectors.toList()); - if (blks == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } else { - List bds = getRsp_getBlockDetails(blks); - Message.rsp_getBlockDetailsByLatest rsp = - Message.rsp_getBlockDetailsByLatest - .newBuilder() - .addAllBlkDetails(bds) - .build(); + List> blks = + getBlkAndDifficultyForBlkNumList(blkNum); - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockDetailsByLatest exception: [{}]", - e.getMessage()); + if (blks == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } else { + List bds = getRsp_getBlockDetails(blks); + Message.rsp_getBlockDetailsByLatest rsp = + Message.rsp_getBlockDetailsByLatest + .newBuilder() + .addAllBlkDetails(bds) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByLatest exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getBlocksByLatest_VALUE: { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_getBlocksByLatest_VALUE: - { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - - byte[] data = parseMsgReq(request, msgHash); - Message.req_getBlocksByLatest req; - try { - req = Message.req_getBlocksByLatest.parseFrom(data); + byte[] data = parseMsgReq(request, msgHash); + Message.req_getBlocksByLatest req; - // clip the requested count up to 1000 - Long count = req.getCount(); - if (count > 1000) { - count = 1000L; - } + try { + req = Message.req_getBlocksByLatest.parseFrom(data); - // clip start block to 0 at the bottom - Long endBlock = this.getBestBlock().getNumber(); - Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; + // clip the requested count up to 1000 + Long count = req.getCount(); + if (count > 1000) { + count = 1000L; + } - List blkNum = - LongStream.rangeClosed(startBlock, endBlock) - .boxed() - .collect(Collectors.toList()); + // clip start block to 0 at the bottom + Long endBlock = this.getBestBlock().getNumber(); + Long startBlock = (endBlock - count + 1) >= 0 ? (endBlock - count + 1) : 0; - List> blks = - getBlkAndDifficultyForBlkNumList(blkNum); + List blkNum = + LongStream.rangeClosed(startBlock, endBlock) + .boxed() + .collect(Collectors.toList()); - if (blks == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } else { - List bs = getRsp_getBlocks(blks); - Message.rsp_getBlocksByLatest rsp = - Message.rsp_getBlocksByLatest - .newBuilder() - .addAllBlks(bs) - .build(); + List> blks = + getBlkAndDifficultyForBlkNumList(blkNum); - byte[] retHeader = - ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlocksByLatest exception: [{}]", - e.getMessage()); + if (blks == null) { return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } else { + List bs = getRsp_getBlocks(blks); + Message.rsp_getBlocksByLatest rsp = + Message.rsp_getBlocksByLatest + .newBuilder() + .addAllBlks(bs) + .build(); + + byte[] retHeader = + ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlocksByLatest exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); + } + } + case Message.Funcs.f_getAccountDetailsByAddressList_VALUE: { + if (service != Message.Servs.s_admin_VALUE) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_service_call_VALUE); } - case Message.Funcs.f_getAccountDetailsByAddressList_VALUE: - { - if (service != Message.Servs.s_admin_VALUE) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_service_call_VALUE); - } - byte[] data = parseMsgReq(request, msgHash); - Message.req_getAccountDetailsByAddressList req; + byte[] data = parseMsgReq(request, msgHash); + Message.req_getAccountDetailsByAddressList req; - try { - req = Message.req_getAccountDetailsByAddressList.parseFrom(data); - List num = req.getAddressesList(); + try { + req = Message.req_getAccountDetailsByAddressList.parseFrom(data); + List num = req.getAddressesList(); - if (num.size() > 1000) { - num = num.subList(0, 1000); - } + if (num.size() > 1000) { + num = num.subList(0, 1000); + } - List accounts = - num.parallelStream() - .map( - a -> { - BigInteger b = - this.getBalance( - Address.wrap(a.toByteArray())); + List accounts = + num.parallelStream() + .map( + a -> { + BigInteger b = + this.getBalance( + Address.wrap(a.toByteArray())); - Message.t_AccountDetail.Builder builder = - Message.t_AccountDetail.newBuilder(); - if (b != null) - builder.setBalance( - ByteString.copyFrom( - b.toByteArray())); + Message.t_AccountDetail.Builder builder = + Message.t_AccountDetail.newBuilder(); + if (b != null) { + builder.setBalance( + ByteString.copyFrom( + b.toByteArray())); + } - builder.setAddress(a); + builder.setAddress(a); - return builder.build(); - }) - .collect(Collectors.toList()); + return builder.build(); + }) + .collect(Collectors.toList()); - if (accounts == null) { - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_arguments_VALUE); - } + if (accounts == null) { + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_arguments_VALUE); + } - Message.rsp_getAccountDetailsByAddressList rsp = - Message.rsp_getAccountDetailsByAddressList - .newBuilder() - .addAllAccounts(accounts) - .build(); + Message.rsp_getAccountDetailsByAddressList rsp = + Message.rsp_getAccountDetailsByAddressList + .newBuilder() + .addAllAccounts(accounts) + .build(); - byte[] retHeader = - ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); - return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); + byte[] retHeader = + ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); + return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); - } catch (Exception e) { - LOG.error( - "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", - e.getMessage()); - return ApiUtil.toReturnHeader( - getApiVersion(), Retcode.r_fail_function_exception_VALUE); - } + } catch (Exception e) { + LOG.error( + "ApiAion0.process.getBlockDetailsByNumber exception: [{}]", + e.getMessage()); + return ApiUtil.toReturnHeader( + getApiVersion(), Retcode.r_fail_function_exception_VALUE); } + } - // case Message.Funcs.f_eventQuery_VALUE: - // case Message.Funcs.f_submitWork_VALUE: - // case Message.Funcs.f_getWork_VALUE: + // case Message.Funcs.f_eventQuery_VALUE: + // case Message.Funcs.f_submitWork_VALUE: + // case Message.Funcs.f_getWork_VALUE: default: return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } @@ -2479,7 +2467,7 @@ private byte[] createBlockMsg(AionBlock blk) { } BigInteger td = - this.ac.getBlockchain().getTotalDifficultyByHash(Hash256.wrap(blk.getHash())); + this.ac.getBlockchain().getTotalDifficultyByHash(Hash256.wrap(blk.getHash())); Message.rsp_getBlock rsp = getRsp_getBlock(blk, al, td); byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); @@ -2489,160 +2477,157 @@ private byte[] createBlockMsg(AionBlock blk) { private Message.rsp_getTransaction getRsp_getTransaction(AionTransaction tx) { return Message.rsp_getTransaction - .newBuilder() - .setBlockhash(ByteString.copyFrom(tx.getBlockHash())) - .setBlocknumber(tx.getBlockNumber()) - .setFrom(ByteString.copyFrom(tx.getFrom().toBytes())) - .setNrgConsume(tx.getNrgConsume()) - .setNrgPrice(tx.getNrgPrice()) - .setTxHash(ByteString.copyFrom(tx.getHash())) - .setData( - ByteString.copyFrom(tx.getData() == null ? EMPTY_BYTE_ARRAY : tx.getData())) - .setNonce(ByteString.copyFrom(tx.getNonce())) - .setTo( - ByteString.copyFrom( - tx.getTo() == null ? EMPTY_BYTE_ARRAY : tx.getTo().toBytes())) - .setValue(ByteString.copyFrom(tx.getValue())) - .setTxIndex((int) tx.getTxIndexInBlock()) - .setTimeStamp(ByteUtil.byteArrayToLong(tx.getTimeStamp())) - .build(); + .newBuilder() + .setBlockhash(ByteString.copyFrom(tx.getBlockHash())) + .setBlocknumber(tx.getBlockNumber()) + .setFrom(ByteString.copyFrom(tx.getFrom().toBytes())) + .setNrgConsume(tx.getNrgConsume()) + .setNrgPrice(tx.getNrgPrice()) + .setTxHash(ByteString.copyFrom(tx.getHash())) + .setData( + ByteString.copyFrom(tx.getData() == null ? EMPTY_BYTE_ARRAY : tx.getData())) + .setNonce(ByteString.copyFrom(tx.getNonce())) + .setTo( + ByteString.copyFrom( + tx.getTo() == null ? EMPTY_BYTE_ARRAY : tx.getTo().toBytes())) + .setValue(ByteString.copyFrom(tx.getValue())) + .setTxIndex((int) tx.getTxIndexInBlock()) + .setTimeStamp(ByteUtil.byteArrayToLong(tx.getTimeStamp())) + .build(); } private Message.rsp_getBlock getRsp_getBlock( - AionBlock blk, List al, BigInteger td) { + AionBlock blk, List al, BigInteger td) { return Message.rsp_getBlock - .newBuilder() - .setParentHash(ByteString.copyFrom(blk.getParentHash())) - .setMinerAddress(ByteString.copyFrom(blk.getCoinbase().toBytes())) - .setStateRoot(ByteString.copyFrom(blk.getStateRoot())) - .setTxTrieRoot(ByteString.copyFrom(blk.getTxTrieRoot())) - .setDifficulty(ByteString.copyFrom(blk.getDifficulty())) - .setExtraData(ByteString.copyFrom(blk.getExtraData())) - .setNrgConsumed(blk.getNrgConsumed()) - .setNrgLimit(blk.getNrgLimit()) - .setHash(ByteString.copyFrom(blk.getHash())) - .setLogsBloom(ByteString.copyFrom(blk.getLogBloom())) - .setNonce(ByteString.copyFrom(blk.getNonce())) - .setReceiptTrieRoot(ByteString.copyFrom(blk.getReceiptsRoot())) - .setTimestamp(blk.getTimestamp()) - .setBlockNumber(blk.getNumber()) - .setSolution(ByteString.copyFrom(blk.getHeader().getSolution())) - .addAllTxHash(al) - .setSize(blk.size()) - .setTotalDifficulty(ByteString.copyFrom(td.toByteArray())) - .build(); + .newBuilder() + .setParentHash(ByteString.copyFrom(blk.getParentHash())) + .setMinerAddress(ByteString.copyFrom(blk.getCoinbase().toBytes())) + .setStateRoot(ByteString.copyFrom(blk.getStateRoot())) + .setTxTrieRoot(ByteString.copyFrom(blk.getTxTrieRoot())) + .setDifficulty(ByteString.copyFrom(blk.getDifficulty())) + .setExtraData(ByteString.copyFrom(blk.getExtraData())) + .setNrgConsumed(blk.getNrgConsumed()) + .setNrgLimit(blk.getNrgLimit()) + .setHash(ByteString.copyFrom(blk.getHash())) + .setLogsBloom(ByteString.copyFrom(blk.getLogBloom())) + .setNonce(ByteString.copyFrom(blk.getNonce())) + .setReceiptTrieRoot(ByteString.copyFrom(blk.getReceiptsRoot())) + .setTimestamp(blk.getTimestamp()) + .setBlockNumber(blk.getNumber()) + .setSolution(ByteString.copyFrom(blk.getHeader().getSolution())) + .addAllTxHash(al) + .setSize(blk.size()) + .setTotalDifficulty(ByteString.copyFrom(td.toByteArray())) + .build(); } private List getRsp_getBlocks(List> blks) { - List bs = - blks.parallelStream() - .filter(Objects::nonNull) - .map( - blk -> { - AionBlock b = blk.getKey(); - - return Message.t_Block - .newBuilder() - .setBlockNumber(b.getNumber()) - .setDifficulty(ByteString.copyFrom(b.getDifficulty())) - .setExtraData(ByteString.copyFrom(b.getExtraData())) - .setHash(ByteString.copyFrom(b.getHash())) - .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) - .setMinerAddress( - ByteString.copyFrom(b.getCoinbase().toBytes())) - .setNonce(ByteString.copyFrom(b.getNonce())) - .setNrgConsumed(b.getNrgConsumed()) - .setNrgLimit(b.getNrgLimit()) - .setParentHash(ByteString.copyFrom(b.getParentHash())) - .setTimestamp(b.getTimestamp()) - .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) - .setReceiptTrieRoot( - ByteString.copyFrom(b.getReceiptsRoot())) - .setStateRoot(ByteString.copyFrom(b.getStateRoot())) - .setSize(b.getEncoded().length) - .setSolution( - ByteString.copyFrom( - b.getHeader().getSolution())) - .setTotalDifficulty( - ByteString.copyFrom( - blk.getValue().toByteArray())) - .build(); - }) - .collect(Collectors.toList()); - - return bs; - } - private Message.t_BlockDetail.Builder getBlockDetailsObj( - AionBlock b, BigInteger td, long blocktime) { + return blks.parallelStream() + .filter(Objects::nonNull) + .map( + blk -> { + AionBlock b = blk.getKey(); - Message.t_BlockDetail.Builder builder = - Message.t_BlockDetail + return Message.t_Block .newBuilder() .setBlockNumber(b.getNumber()) .setDifficulty(ByteString.copyFrom(b.getDifficulty())) .setExtraData(ByteString.copyFrom(b.getExtraData())) .setHash(ByteString.copyFrom(b.getHash())) .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) - .setMinerAddress(ByteString.copyFrom(b.getCoinbase().toBytes())) + .setMinerAddress( + ByteString.copyFrom(b.getCoinbase().toBytes())) .setNonce(ByteString.copyFrom(b.getNonce())) .setNrgConsumed(b.getNrgConsumed()) .setNrgLimit(b.getNrgLimit()) .setParentHash(ByteString.copyFrom(b.getParentHash())) .setTimestamp(b.getTimestamp()) .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) - .setReceiptTrieRoot(ByteString.copyFrom(b.getReceiptsRoot())) + .setReceiptTrieRoot( + ByteString.copyFrom(b.getReceiptsRoot())) .setStateRoot(ByteString.copyFrom(b.getStateRoot())) .setSize(b.getEncoded().length) - .setSolution(ByteString.copyFrom(b.getHeader().getSolution())) - .setTotalDifficulty(ByteString.copyFrom(td.toByteArray())) - .setBlockTime(blocktime); + .setSolution( + ByteString.copyFrom( + b.getHeader().getSolution())) + .setTotalDifficulty( + ByteString.copyFrom( + blk.getValue().toByteArray())) + .build(); + }) + .collect(Collectors.toList()); + } - return builder; + private Message.t_BlockDetail.Builder getBlockDetailsObj( + AionBlock b, BigInteger td, long blocktime) { + + return Message.t_BlockDetail + .newBuilder() + .setBlockNumber(b.getNumber()) + .setDifficulty(ByteString.copyFrom(b.getDifficulty())) + .setExtraData(ByteString.copyFrom(b.getExtraData())) + .setHash(ByteString.copyFrom(b.getHash())) + .setLogsBloom(ByteString.copyFrom(b.getLogBloom())) + .setMinerAddress(ByteString.copyFrom(b.getCoinbase().toBytes())) + .setNonce(ByteString.copyFrom(b.getNonce())) + .setNrgConsumed(b.getNrgConsumed()) + .setNrgLimit(b.getNrgLimit()) + .setParentHash(ByteString.copyFrom(b.getParentHash())) + .setTimestamp(b.getTimestamp()) + .setTxTrieRoot(ByteString.copyFrom(b.getTxTrieRoot())) + .setReceiptTrieRoot(ByteString.copyFrom(b.getReceiptsRoot())) + .setStateRoot(ByteString.copyFrom(b.getStateRoot())) + .setSize(b.getEncoded().length) + .setSolution(ByteString.copyFrom(b.getHeader().getSolution())) + .setTotalDifficulty(ByteString.copyFrom(td.toByteArray())) + .setBlockTime(blocktime); } private Message.t_TxDetail getTxDetailsObj( - AionTransaction t, List _logs, int txIndex, long nrgConsumed, String error) { + AionTransaction t, List _logs, int txIndex, long nrgConsumed, String error) { List tles = - _logs.parallelStream() - .map( - log -> { - List topics = new ArrayList<>(); - for (int i = 0; i < log.getTopics().size(); i++) { - topics.add(TypeConverter.toJsonHex(log.getTopics().get(i))); - } + _logs.parallelStream() + .map( + log -> { + List topics = new ArrayList<>(); + for (int i = 0; i < log.getTopics().size(); i++) { + topics.add(TypeConverter.toJsonHex(log.getTopics().get(i))); + } - return Message.t_LgEle - .newBuilder() - .setData(ByteString.copyFrom(log.getData())) - .setAddress( - ByteString.copyFrom(log.getAddress().toBytes())) - .addAllTopics(topics) - .build(); - }) - .filter(Objects::nonNull) - .collect(Collectors.toList()); + return Message.t_LgEle + .newBuilder() + .setData(ByteString.copyFrom(log.getData())) + .setAddress( + ByteString.copyFrom(log.getAddress().toBytes())) + .addAllTopics(topics) + .build(); + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); Address contract = t.getContractAddress(); Message.t_TxDetail.Builder tdBuilder = - Message.t_TxDetail - .newBuilder() - .setData(ByteString.copyFrom(t.getData())) - .setTo(ByteString.copyFrom(t.getTo().toBytes())) - .setFrom(ByteString.copyFrom(t.getFrom().toBytes())) - .setNonce(ByteString.copyFrom(t.getNonce())) - .setValue(ByteString.copyFrom(t.getValue())) - .setNrgConsumed(nrgConsumed) - .setNrgPrice(t.getNrgPrice()) - .setTxHash(ByteString.copyFrom(t.getHash())) - .setTxIndex(txIndex) - .setTimestamp(ByteUtil.byteArrayToLong(t.getTimeStamp())) - .setError(error) - .addAllLogs(tles); - - if (contract != null) tdBuilder.setContract(ByteString.copyFrom(contract.toBytes())); + Message.t_TxDetail + .newBuilder() + .setData(ByteString.copyFrom(t.getData())) + .setTo(ByteString.copyFrom(t.getTo().toBytes())) + .setFrom(ByteString.copyFrom(t.getFrom().toBytes())) + .setNonce(ByteString.copyFrom(t.getNonce())) + .setValue(ByteString.copyFrom(t.getValue())) + .setNrgConsumed(nrgConsumed) + .setNrgPrice(t.getNrgPrice()) + .setTxHash(ByteString.copyFrom(t.getHash())) + .setTxIndex(txIndex) + .setTimestamp(ByteUtil.byteArrayToLong(t.getTimeStamp())) + .setError(error) + .addAllLogs(tles); + + if (contract != null) { + tdBuilder.setContract(ByteString.copyFrom(contract.toBytes())); + } return tdBuilder.build(); } @@ -2676,62 +2661,60 @@ block_timestamp bigint(64), num_transactions bigint(64), block_time bigint(64)); */ - String stmt = - b.getNumber() - + "," - + "'" - + ByteUtil.toHexString(b.getHash()) - + "'," - + "'" - + ByteUtil.toHexString(b.getCoinbase().toBytes()) - + "'," - + "'" - + ByteUtil.toHexString(b.getParentHash()) - + "'," - + "'" - + ByteUtil.toHexString(b.getReceiptsRoot()) - + "'," - + "'" - + ByteUtil.toHexString(b.getStateRoot()) - + "'," - + "'" - + ByteUtil.toHexString(b.getTxTrieRoot()) - + "'," - + "'" - + ByteUtil.toHexString(b.getExtraData()) - + "'," - + "'" - + ByteUtil.toHexString(b.getNonce()) - + "'," - + "'" - + ByteUtil.toHexString(b.getLogBloom()) - + "'," - + "'" - + ByteUtil.toHexString(b.getHeader().getSolution()) - + "'," - + "'" - + ByteUtil.toHexString(b.getDifficulty()) - + "'," - + "'" - + ByteUtil.toHexString(td.toByteArray()) - + "'," - + b.getNrgConsumed() - + "," - + b.getNrgLimit() - + "," - + b.getEncoded().length - + "," - + b.getTimestamp() - + "," - + b.getTransactionsList().size() - + "," - + blocktime; - - return stmt; + + return b.getNumber() + + "," + + "'" + + ByteUtil.toHexString(b.getHash()) + + "'," + + "'" + + ByteUtil.toHexString(b.getCoinbase().toBytes()) + + "'," + + "'" + + ByteUtil.toHexString(b.getParentHash()) + + "'," + + "'" + + ByteUtil.toHexString(b.getReceiptsRoot()) + + "'," + + "'" + + ByteUtil.toHexString(b.getStateRoot()) + + "'," + + "'" + + ByteUtil.toHexString(b.getTxTrieRoot()) + + "'," + + "'" + + ByteUtil.toHexString(b.getExtraData()) + + "'," + + "'" + + ByteUtil.toHexString(b.getNonce()) + + "'," + + "'" + + ByteUtil.toHexString(b.getLogBloom()) + + "'," + + "'" + + ByteUtil.toHexString(b.getHeader().getSolution()) + + "'," + + "'" + + ByteUtil.toHexString(b.getDifficulty()) + + "'," + + "'" + + ByteUtil.toHexString(td.toByteArray()) + + "'," + + b.getNrgConsumed() + + "," + + b.getNrgLimit() + + "," + + b.getEncoded().length + + "," + + b.getTimestamp() + + "," + + b.getTransactionsList().size() + + "," + + blocktime; } private String generateTransactionSqlStatement( - AionBlock b, AionTransaction t, List _logs, int txIndex, long nrgConsumed) { + AionBlock b, AionTransaction t, List _logs, int txIndex, long nrgConsumed) { JSONArray logs = new JSONArray(); for (Log l : _logs) { JSONArray log = new JSONArray(); @@ -2771,228 +2754,221 @@ block_timestamp bigint(64), primary key(block_number,transaction_index)); */ - String stmt = - "'" - + ByteUtil.toHexString(t.getHash()) - + "'," - + "'" - + ByteUtil.toHexString(b.getHash()) - + "'," - + b.getNumber() - + "," - + txIndex - + "," - + "'" - + ByteUtil.toHexString(t.getFrom().toBytes()) - + "'," - + "'" - + ByteUtil.toHexString(t.getTo().toBytes()) - + "'," - + nrgConsumed - + "," - + t.getNrgPrice() - + "," - + ByteUtil.byteArrayToLong(t.getTimeStamp()) - + "," - + b.getTimestamp() - + "," - + "'" - + ByteUtil.toHexString(t.getValue()) - + "'," - + "'" - + logs.toString() - + "'," - + "'" - + ByteUtil.toHexString(t.getData()) - + "'," - + "'" - + ByteUtil.toHexString(t.getNonce()) - + "'"; - - return stmt; + return "'" + + ByteUtil.toHexString(t.getHash()) + + "'," + + "'" + + ByteUtil.toHexString(b.getHash()) + + "'," + + b.getNumber() + + "," + + txIndex + + "," + + "'" + + ByteUtil.toHexString(t.getFrom().toBytes()) + + "'," + + "'" + + ByteUtil.toHexString(t.getTo().toBytes()) + + "'," + + nrgConsumed + + "," + + t.getNrgPrice() + + "," + + ByteUtil.byteArrayToLong(t.getTimeStamp()) + + "," + + b.getTimestamp() + + "," + + "'" + + ByteUtil.toHexString(t.getValue()) + + "'," + + "'" + + logs.toString() + + "'," + + "'" + + ByteUtil.toHexString(t.getData()) + + "'," + + "'" + + ByteUtil.toHexString(t.getNonce()) + + "'"; } private List getRsp_getBlockDetails( - List> blks) { - List bds = - blks.parallelStream() - .filter(Objects::nonNull) - .map( - blk -> { - AionBlock b = blk.getKey(); - Message.t_BlockDetail.Builder builder = - Message.t_BlockDetail - .newBuilder() - .setBlockNumber(b.getNumber()) - .setDifficulty( - ByteString.copyFrom(b.getDifficulty())) - .setExtraData( - ByteString.copyFrom(b.getExtraData())) - .setHash(ByteString.copyFrom(b.getHash())) - .setLogsBloom( - ByteString.copyFrom(b.getLogBloom())) - .setMinerAddress( - ByteString.copyFrom( - b.getCoinbase().toBytes())) - .setNonce(ByteString.copyFrom(b.getNonce())) - .setNrgConsumed(b.getNrgConsumed()) - .setNrgLimit(b.getNrgLimit()) - .setParentHash( - ByteString.copyFrom(b.getParentHash())) - .setTimestamp(b.getTimestamp()) - .setTxTrieRoot( - ByteString.copyFrom(b.getTxTrieRoot())) - .setReceiptTrieRoot( - ByteString.copyFrom( - b.getReceiptsRoot())) - .setStateRoot( - ByteString.copyFrom(b.getStateRoot())) - .setSize(b.getEncoded().length) - .setSolution( - ByteString.copyFrom( - b.getHeader().getSolution())) - .setTotalDifficulty( - ByteString.copyFrom( - blk.getValue().toByteArray())); - - List txs = b.getTransactionsList(); - - List tds = - txs.parallelStream() - .filter(Objects::nonNull) - .map( - (AionTransaction tx) -> { - AionTxInfo ti = - ((AionBlockchainImpl) - this.ac - .getAionHub() - .getBlockchain()) - .getTransactionInfoLite( - tx - .getHash(), - b - .getHash()); - - List tles = - ti.getReceipt() - .getLogInfoList() - .parallelStream() - .map( - log -> { - List< - String> - topics = - new ArrayList<>(); - for (int - i = - 0; - i - < log.getTopics() - .size(); - i++) { - topics - .add( - TypeConverter - .toJsonHex( - log.getTopics() - .get( - i))); - } - - return Message - .t_LgEle - .newBuilder() - .setData( - ByteString - .copyFrom( - log - .getData())) - .setAddress( - ByteString - .copyFrom( - log.getAddress() - .toBytes())) - .addAllTopics( - topics) - .build(); - }) - .filter( - Objects - ::nonNull) - .collect( - Collectors - .toList()); - - Message.t_TxDetail.Builder - tdBuilder = - Message.t_TxDetail - .newBuilder() - .setData( - ByteString - .copyFrom( - tx - .getData())) - .setTo( - ByteString - .copyFrom( - tx.getTo() - .toBytes())) - .setFrom( - ByteString - .copyFrom( - tx.getFrom() - .toBytes())) - .setNonce( - ByteString - .copyFrom( - tx - .getNonce())) - .setValue( - ByteString - .copyFrom( - tx - .getValue())) - .setNrgConsumed( - ti.getReceipt() - .getEnergyUsed()) - .setNrgPrice( - tx - .getNrgPrice()) - .setTxHash( - ByteString - .copyFrom( - tx - .getHash())) - .setTxIndex( - ti - .getIndex()) - .addAllLogs( - tles); - - return tdBuilder.build(); - }) - .filter(Objects::nonNull) - .collect(Collectors.toList()); - - return builder.addAllTx(tds).build(); + List> blks) { + + return blks.parallelStream() + .filter(Objects::nonNull) + .map( + blk -> { + AionBlock b = blk.getKey(); + Message.t_BlockDetail.Builder builder = + Message.t_BlockDetail + .newBuilder() + .setBlockNumber(b.getNumber()) + .setDifficulty( + ByteString.copyFrom(b.getDifficulty())) + .setExtraData( + ByteString.copyFrom(b.getExtraData())) + .setHash(ByteString.copyFrom(b.getHash())) + .setLogsBloom( + ByteString.copyFrom(b.getLogBloom())) + .setMinerAddress( + ByteString.copyFrom( + b.getCoinbase().toBytes())) + .setNonce(ByteString.copyFrom(b.getNonce())) + .setNrgConsumed(b.getNrgConsumed()) + .setNrgLimit(b.getNrgLimit()) + .setParentHash( + ByteString.copyFrom(b.getParentHash())) + .setTimestamp(b.getTimestamp()) + .setTxTrieRoot( + ByteString.copyFrom(b.getTxTrieRoot())) + .setReceiptTrieRoot( + ByteString.copyFrom( + b.getReceiptsRoot())) + .setStateRoot( + ByteString.copyFrom(b.getStateRoot())) + .setSize(b.getEncoded().length) + .setSolution( + ByteString.copyFrom( + b.getHeader().getSolution())) + .setTotalDifficulty( + ByteString.copyFrom( + blk.getValue().toByteArray())); + + List txs = b.getTransactionsList(); + + List tds = + txs.parallelStream() + .filter(Objects::nonNull) + .map( + (AionTransaction tx) -> { + AionTxInfo ti = + ((AionBlockchainImpl) + this.ac + .getAionHub() + .getBlockchain()) + .getTransactionInfoLite( + tx + .getHash(), + b + .getHash()); + + List tles = + ti.getReceipt() + .getLogInfoList() + .parallelStream() + .map( + log -> { + List< + String> + topics = + new ArrayList<>(); + for (int + i = + 0; + i + < log.getTopics() + .size(); + i++) { + topics + .add( + TypeConverter + .toJsonHex( + log.getTopics() + .get( + i))); + } + + return Message + .t_LgEle + .newBuilder() + .setData( + ByteString + .copyFrom( + log + .getData())) + .setAddress( + ByteString + .copyFrom( + log.getAddress() + .toBytes())) + .addAllTopics( + topics) + .build(); + }) + .filter( + Objects + ::nonNull) + .collect( + Collectors + .toList()); + + Message.t_TxDetail.Builder + tdBuilder = + Message.t_TxDetail + .newBuilder() + .setData( + ByteString + .copyFrom( + tx + .getData())) + .setTo( + ByteString + .copyFrom( + tx.getTo() + .toBytes())) + .setFrom( + ByteString + .copyFrom( + tx.getFrom() + .toBytes())) + .setNonce( + ByteString + .copyFrom( + tx + .getNonce())) + .setValue( + ByteString + .copyFrom( + tx + .getValue())) + .setNrgConsumed( + ti.getReceipt() + .getEnergyUsed()) + .setNrgPrice( + tx + .getNrgPrice()) + .setTxHash( + ByteString + .copyFrom( + tx + .getHash())) + .setTxIndex( + ti + .getIndex()) + .addAllLogs( + tles); + + return tdBuilder.build(); }) - .filter(Objects::nonNull) - .collect(Collectors.toList()); + .filter(Objects::nonNull) + .collect(Collectors.toList()); - return bds; + return builder.addAllTx(tds).build(); + }) + .filter(Objects::nonNull) + .collect(Collectors.toList()); } // all or nothing. if any block from list is not found, unchecked exception gets thrown by // Map.entry() // causes this function to return in Exception private List> getBlkAndDifficultyForBlkNumList( - List blkNum) { + List blkNum) { return blkNum.parallelStream() - .map( - n -> { - return getBlockWithTotalDifficulty(n); - }) - .collect(Collectors.toList()); + .map( + this::getBlockWithTotalDifficulty) + .collect(Collectors.toList()); } public byte getApiVersion() { @@ -3032,9 +3008,9 @@ public BlockingQueue getTxWait() { @Override public byte[] parseMsgReq(byte[] request, byte[] msgHash) { int headerLen = - msgHash == null ? this.getApiHeaderLen() : this.getApiHeaderLen() + msgHash.length; + msgHash == null ? this.getApiHeaderLen() : this.getApiHeaderLen() + msgHash.length; return ByteBuffer.allocate(request.length - headerLen) - .put(request, headerLen, request.length - headerLen) - .array(); + .put(request, headerLen, request.length - headerLen) + .array(); } } From cc5dc1d3cdfd8ee535716883fe477a8e571ae474 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 14:23:19 -0400 Subject: [PATCH 111/129] replace log in TaskShowStatus --- .../src/org/aion/zero/impl/sync/SyncMgr.java | 122 ++++++++++-------- .../aion/zero/impl/sync/TaskShowStatus.java | 45 ++++--- 2 files changed, 94 insertions(+), 73 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/sync/SyncMgr.java b/modAionImpl/src/org/aion/zero/impl/sync/SyncMgr.java index 5d454d27aa..b13a9e13d9 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/SyncMgr.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/SyncMgr.java @@ -88,7 +88,8 @@ public final class SyncMgr { private final BlockingQueue downloadedBlocks = new LinkedBlockingQueue<>(); // store the hashes of blocks which have been successfully imported - private final Map importedBlockHashes = Collections.synchronizedMap(new LRUMap<>(4096)); + private final Map importedBlockHashes = Collections + .synchronizedMap(new LRUMap<>(4096)); //private ExecutorService workers = Executors.newFixedThreadPool(5); private ExecutorService workers = Executors.newCachedThreadPool(new ThreadFactory() { @@ -109,6 +110,7 @@ public Thread newThread(Runnable r) { private BlockHeaderValidator blockHeaderValidator; private static final class AionSyncMgrHolder { + static final SyncMgr INSTANCE = new SyncMgr(); } @@ -117,14 +119,11 @@ public static SyncMgr inst() { } /** - * * @param _displayId String * @param _remoteBestBlockNumber long * @param _remoteBestBlockHash byte[] - * @param _remoteTotalDiff BigInteger - * null check for _remoteBestBlockHash && _remoteTotalDiff + * @param _remoteTotalDiff BigInteger null check for _remoteBestBlockHash && _remoteTotalDiff * implemented on ResStatusHandler before pass through - * */ public void updateNetworkStatus( String _displayId, @@ -136,28 +135,31 @@ public void updateNetworkStatus( BigInteger selfTd = this.chain.getTotalDifficulty(); // trigger send headers routine immediately - if(_remoteTotalDiff.compareTo(selfTd) > 0) { + if (_remoteTotalDiff.compareTo(selfTd) > 0) { this.getHeaders(selfTd); // update network best status - synchronized (this.networkStatus){ + synchronized (this.networkStatus) { BigInteger networkTd = this.networkStatus.getTargetTotalDiff(); - if(_remoteTotalDiff.compareTo(networkTd) > 0){ + if (_remoteTotalDiff.compareTo(networkTd) > 0) { String remoteBestBlockHash = Hex.toHexString(_remoteBestBlockHash); - log.debug( - "{} td={}->{} bn={}->{} bh={}->{}>", + if (log.isDebugEnabled()) { + log.debug( + "network-status-updated on-sync id={}->{} td={}->{} bn={}->{} bh={}->{}", this.networkStatus.getTargetDisplayId(), _displayId, - this.networkStatus.getTargetTotalDiff().toString(10), _remoteTotalDiff.toString(10), + this.networkStatus.getTargetTotalDiff().toString(10), + _remoteTotalDiff.toString(10), this.networkStatus.getTargetBestBlockNumber(), _remoteBestBlockNumber, this.networkStatus.getTargetBestBlockHash(), remoteBestBlockHash - ); + ); + } this.networkStatus.update( - _displayId, - _remoteTotalDiff, - _remoteBestBlockNumber, - remoteBestBlockHash + _displayId, + _remoteTotalDiff, + _remoteBestBlockNumber, + remoteBestBlockHash ); } } @@ -165,7 +167,7 @@ public void updateNetworkStatus( } public void init(final IP2pMgr _p2pMgr, final IEventMgr _evtMgr, final int _blocksQueueMax, - final boolean _showStatus, final boolean _printReport, final String _reportFolder) { + final boolean _showStatus, final boolean _printReport, final String _reportFolder) { this.p2pMgr = _p2pMgr; this.chain = AionBlockchainImpl.inst(); this.evtMgr = _evtMgr; @@ -177,15 +179,19 @@ public void init(final IP2pMgr _p2pMgr, final IEventMgr _evtMgr, final int _bloc long selfBest = this.chain.getBestBlock().getNumber(); SyncStatics statics = new SyncStatics(selfBest); - syncGb = new Thread(new TaskGetBodies(this.p2pMgr, this.start, this.downloadedHeaders, this.headersWithBodiesRequested, this.peerStates, log), "sync-gb"); + syncGb = new Thread(new TaskGetBodies(this.p2pMgr, this.start, this.downloadedHeaders, + this.headersWithBodiesRequested, this.peerStates, log), "sync-gb"); syncGb.start(); - syncIb = new Thread(new TaskImportBlocks(this.p2pMgr, this.chain, this.start, statics, this.downloadedBlocks, this.importedBlockHashes, this.peerStates, log), "sync-ib"); + syncIb = new Thread(new TaskImportBlocks(this.p2pMgr, this.chain, this.start, statics, + this.downloadedBlocks, this.importedBlockHashes, this.peerStates, log), "sync-ib"); syncIb.start(); syncGs = new Thread(new TaskGetStatus(this.start, this.p2pMgr, log), "sync-gs"); syncGs.start(); - if(_showStatus) { - syncSs = new Thread(new TaskShowStatus(this.start, INTERVAL_SHOW_STATUS, this.chain, this.networkStatus, statics, log, _printReport, _reportFolder), "sync-ss"); + if (_showStatus) { + syncSs = new Thread( + new TaskShowStatus(this.start, INTERVAL_SHOW_STATUS, this.chain, this.networkStatus, + statics, _printReport, _reportFolder, AionLoggerFactory.getLogger(LogEnum.P2P.name())), "sync-ss"); syncSs.start(); } @@ -200,45 +206,48 @@ private void setupEventHandler() { private AtomicBoolean queueFull = new AtomicBoolean(false); - private void getHeaders(BigInteger _selfTd){ + private void getHeaders(BigInteger _selfTd) { if (downloadedBlocks.size() > blocksQueueMax) { if (queueFull.compareAndSet(false, true)) { log.debug("Downloaded blocks queue is full. Stop requesting headers"); } } else { - workers.submit(new TaskGetHeaders(p2pMgr, chain.getBestBlock().getNumber(), _selfTd, peerStates, log)); + workers.submit( + new TaskGetHeaders(p2pMgr, chain.getBestBlock().getNumber(), _selfTd, peerStates, + log)); queueFull.set(false); } } /** - * * @param _nodeIdHashcode int * @param _displayId String * @param _headers List validate headers batch and add batch to imported headers */ - public void validateAndAddHeaders(int _nodeIdHashcode, String _displayId, List _headers) { + public void validateAndAddHeaders(int _nodeIdHashcode, String _displayId, + List _headers) { if (_headers == null || _headers.isEmpty()) { return; } if (log.isDebugEnabled()) { log.debug( - "", - _headers.get(0).getNumber(), - _headers.size(), - _displayId + "", + _headers.get(0).getNumber(), + _headers.size(), + _displayId ); } // filter imported block headers List filtered = new ArrayList<>(); A0BlockHeader prev = null; - for(A0BlockHeader current : _headers){ + for (A0BlockHeader current : _headers) { // ignore this batch if any invalidated header - if(!this.blockHeaderValidator.validate(current, log)) { - log.debug("", current.getNumber(), current.getHash()); + if (!this.blockHeaderValidator.validate(current, log)) { + log.debug("", current.getNumber(), + current.getHash()); // Print header to allow debugging log.debug("Invalid header: {}", current.toString()); @@ -247,41 +256,46 @@ public void validateAndAddHeaders(int _nodeIdHashcode, String _displayId, List", - _displayId, - current.getNumber(), - prev.getNumber() + 1, - ByteUtil.toHexString(current.getParentHash()), - ByteUtil.toHexString(prev.getHash())); + if (prev != null && (current.getNumber() != (prev.getNumber() + 1) || !Arrays + .equals(current.getParentHash(), prev.getHash()))) { + log.debug( + "", + _displayId, + current.getNumber(), + prev.getNumber() + 1, + ByteUtil.toHexString(current.getParentHash()), + ByteUtil.toHexString(prev.getHash())); return; } // add if not cached - if(!importedBlockHashes.containsKey(ByteArrayWrapper.wrap(current.getHash()))) + if (!importedBlockHashes.containsKey(ByteArrayWrapper.wrap(current.getHash()))) { filtered.add(current); + } prev = current; } // NOTE: the filtered headers is still continuous - if(!filtered.isEmpty()) + if (!filtered.isEmpty()) { downloadedHeaders.add(new HeadersWrapper(_nodeIdHashcode, _displayId, filtered)); + } } /** * @param _nodeIdHashcode int * @param _displayId String - * @param _bodies List - * Assemble and validate blocks batch and add batch - * to import queue from network response blocks bodies + * @param _bodies List Assemble and validate blocks batch and add batch to import queue + * from network response blocks bodies */ - public void validateAndAddBlocks(int _nodeIdHashcode, String _displayId, final List _bodies) { + public void validateAndAddBlocks(int _nodeIdHashcode, String _displayId, + final List _bodies) { HeadersWrapper hw = this.headersWithBodiesRequested.remove(_nodeIdHashcode); - if (hw == null || _bodies == null) + if (hw == null || _bodies == null) { return; + } // assemble batch List headers = hw.getHeaders(); @@ -293,27 +307,29 @@ public void validateAndAddBlocks(int _nodeIdHashcode, String _displayId, final L if (block == null) { log.error("", _displayId); break; - } else + } else { blocks.add(block); + } } int m = blocks.size(); - if (m == 0) + if (m == 0) { return; + } if (log.isDebugEnabled()) { log.debug("", - blocks.get(0).getNumber(), - blocks.size(), - _displayId); + blocks.get(0).getNumber(), + blocks.size(), + _displayId); } // add batch downloadedBlocks.add(new BlocksWrapper(_nodeIdHashcode, _displayId, blocks)); } - + public long getNetworkBestBlockNumber() { - synchronized (this.networkStatus){ + synchronized (this.networkStatus) { return this.networkStatus.getTargetBestBlockNumber(); } } diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java index 1e7d3ed16c..ea62e0b755 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java @@ -22,15 +22,14 @@ */ package org.aion.zero.impl.sync; -import org.aion.base.util.Hex; -import org.aion.zero.impl.AionBlockchainImpl; -import org.aion.zero.impl.types.AionBlock; -import org.slf4j.Logger; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.concurrent.atomic.AtomicBoolean; +import org.aion.base.util.Hex; +import org.aion.zero.impl.AionBlockchainImpl; +import org.aion.zero.impl.types.AionBlock; +import org.slf4j.Logger; /** * The thread print out sync status @@ -49,22 +48,22 @@ final class TaskShowStatus implements Runnable { private final SyncStatics statics; - private final Logger log; - private final boolean printReport; private final String reportFolder; + private final Logger p2pLOG; + TaskShowStatus(final AtomicBoolean _start, int _interval, final AionBlockchainImpl _chain, - final NetworkStatus _networkStatus, final SyncStatics _statics, final Logger _log, - final boolean _printReport, final String _reportFolder) { + final NetworkStatus _networkStatus, final SyncStatics _statics, + final boolean _printReport, final String _reportFolder, final Logger _log) { this.start = _start; this.interval = _interval; this.chain = _chain; this.networkStatus = _networkStatus; this.statics = _statics; - this.log = _log; this.printReport = _printReport; this.reportFolder = _reportFolder; + this.p2pLOG = _log; } @Override @@ -74,22 +73,24 @@ public void run() { AionBlock selfBest = this.chain.getBestBlock(); String selfTd = selfBest.getCumulativeDifficulty().toString(10); - String status = ""; + + "/" + this.networkStatus.getTargetBestBlockHash() + ""; - // print to std output - // thread to dump sync status enabled by sync mgr - System.out.println(status); + p2pLOG.info(status); // print to report file if (printReport) { try { - Files.write(Paths.get(reportFolder, System.currentTimeMillis() + "-sync-report.out"), - status.getBytes()); + Files.write( + Paths.get(reportFolder, System.currentTimeMillis() + "-sync-report.out"), + status.getBytes()); } catch (IOException e) { e.printStackTrace(); } @@ -98,10 +99,14 @@ public void run() { try { Thread.sleep(interval); } catch (InterruptedException e) { - if (log.isDebugEnabled()) { log.debug(""); } + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("sync-ss shutdown"); + } return; } } - if (log.isDebugEnabled()) { log.debug(""); } + if (p2pLOG.isDebugEnabled()) { + p2pLOG.debug("sync-ss shutdown"); + } } } From 1855ef85343c50ed17f16117093ca6732636a7a7 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 14:25:12 -0400 Subject: [PATCH 112/129] small rework in ApiAion0 --- modApiServer/src/org/aion/api/server/pb/ApiAion0.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java index a99b70998a..a2ff8f9b4c 100644 --- a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java +++ b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java @@ -102,7 +102,7 @@ public class ApiAion0 extends ApiAion implements IApiAion { private static final int TX_HASH_LEN = 32; private static final int ACCOUNT_CREATE_LIMIT = 100; - private BlockingQueue pendingStatus; + private BlockingQueue pendingStatus; private BlockingQueue txWait; private Map> msgIdMapping; From d34f43358cc6518aeb0302882d50ada6f9a03dc7 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 14:53:58 -0400 Subject: [PATCH 113/129] adjustment the config settings for fitting the log feature --- .../org/aion/api/server/http/ApiWeb3Aion.java | 2 -- modBoot/resource/config.xml | 3 +-- modBoot/src/org/aion/Aion.java | 20 +++++++-------- modMcf/src/org/aion/mcf/config/CfgLog.java | 1 + modMcf/src/org/aion/mcf/config/CfgNetP2p.java | 25 ------------------- 5 files changed, 12 insertions(+), 39 deletions(-) diff --git a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java index 6229b48330..f6e07f4d26 100644 --- a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java +++ b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java @@ -1528,8 +1528,6 @@ private static JSONObject configNet() { p2p.put("errorTolerance", configP2p.getErrorTolerance()); p2p.put("maxActiveNodes", configP2p.getMaxActiveNodes()); p2p.put("maxTempNodes", configP2p.getMaxTempNodes()); - p2p.put("showLog", configP2p.getShowLog()); - p2p.put("showStatus", configP2p.getShowStatus()); // end obj.put("p2p", p2p); diff --git a/modBoot/resource/config.xml b/modBoot/resource/config.xml index 29aab44180..fe0d84971a 100644 --- a/modBoot/resource/config.xml +++ b/modBoot/resource/config.xml @@ -36,8 +36,6 @@ 0.0.0.0 30303 false - false - false 128 @@ -86,5 +84,6 @@ INFO ERROR INFO + INFO diff --git a/modBoot/src/org/aion/Aion.java b/modBoot/src/org/aion/Aion.java index 4115120d67..3931d5bc06 100644 --- a/modBoot/src/org/aion/Aion.java +++ b/modBoot/src/org/aion/Aion.java @@ -78,16 +78,6 @@ public static void main(String args[]) { throw e; } - System.out.println( - " _____ \n" + - " .'. | .~ ~. |.. |\n" + - " .' `. | | | | ``.. |\n" + - " .''''''''`. | | | | ``.. |\n" + - ".' `. | `._____.' | ``|\n\n" + - " NETWORK v" + KERNEL_VERSION + - "\n\n" - ); - /* Outputs relevant logger configuration */ if (!cfg.getLog().getLogFile()) { System.out @@ -106,6 +96,16 @@ public static void main(String args[]) { .init(cfg.getLog().getModules(), cfg.getLog().getLogFile(), cfg.getLog().getLogPath()); Logger genLog = AionLoggerFactory.getLogger(LogEnum.GEN.name()); + String logo ="\n _____ \n" + + " .'. | .~ ~. |.. |\n" + + " .' `. | | | | ``.. |\n" + + " .''''''''`. | | | | ``.. |\n" + + ".' `. | `._____.' | ``|\n\n" + + " NETWORK v" + KERNEL_VERSION + + "\n\n"; + + genLog.info(logo); + IAionChain ac = AionFactory.create(); IMineRunner nm = null; diff --git a/modMcf/src/org/aion/mcf/config/CfgLog.java b/modMcf/src/org/aion/mcf/config/CfgLog.java index 88b0064c4b..13419588bd 100644 --- a/modMcf/src/org/aion/mcf/config/CfgLog.java +++ b/modMcf/src/org/aion/mcf/config/CfgLog.java @@ -48,6 +48,7 @@ public CfgLog() { modules.put(LogEnum.DB.name(), LogLevels.ERROR.name()); modules.put(LogEnum.SYNC.name(), LogLevels.INFO.name()); modules.put(LogEnum.API.name(), LogLevels.INFO.name()); + modules.put(LogEnum.P2P.name(), LogLevels.INFO.name()); modules.put(LogEnum.TX.name(), LogLevels.ERROR.name()); modules.put(LogEnum.TXPOOL.name(), LogLevels.ERROR.name()); this.logFile = false; diff --git a/modMcf/src/org/aion/mcf/config/CfgNetP2p.java b/modMcf/src/org/aion/mcf/config/CfgNetP2p.java index a974d01d60..95b29d1581 100644 --- a/modMcf/src/org/aion/mcf/config/CfgNetP2p.java +++ b/modMcf/src/org/aion/mcf/config/CfgNetP2p.java @@ -38,8 +38,6 @@ public final class CfgNetP2p { this.ip = "127.0.0.1"; this.port = 30303; this.discover = false; - this.showStatus = false; - this.showLog = false; this.bootlistSyncOnly = false; this.maxTempNodes = 128; this.maxActiveNodes = 128; @@ -53,10 +51,6 @@ public final class CfgNetP2p { private boolean discover; - private boolean showStatus; - - private boolean showLog; - private boolean bootlistSyncOnly; private boolean isSyncOnlyNode; @@ -84,12 +78,6 @@ public void fromXML(final XMLStreamReader sr) throws XMLStreamException { case "discover": this.discover = Boolean.parseBoolean(Cfg.readValue(sr)); break; - case "show-status": - this.showStatus = Boolean.parseBoolean(Cfg.readValue(sr)); - break; - case "show-log": - this.showLog = Boolean.parseBoolean(Cfg.readValue(sr)); - break; case "bootlist-sync-only": this.bootlistSyncOnly = Boolean.parseBoolean(Cfg.readValue(sr)); break; @@ -141,11 +129,6 @@ String toXML() { xmlWriter.writeCharacters(this.discover + ""); xmlWriter.writeEndElement(); - xmlWriter.writeCharacters("\r\n\t\t\t"); - xmlWriter.writeStartElement("show-status"); - xmlWriter.writeCharacters(this.showStatus + ""); - xmlWriter.writeEndElement(); - xmlWriter.writeCharacters("\r\n\t\t\t"); xmlWriter.writeStartElement("max-temp-nodes"); xmlWriter.writeCharacters(this.maxTempNodes + ""); @@ -189,14 +172,6 @@ public boolean getDiscover() { return this.discover; } - public boolean getShowStatus() { - return this.showStatus; - } - - public boolean getShowLog() { - return this.showLog; - } - public boolean getBootlistSyncOnly() { return bootlistSyncOnly; } public int getMaxTempNodes() { From a42df62aafc67716e5bb0d275b07a40fbd89622d Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 15:20:48 -0400 Subject: [PATCH 114/129] fix test error --- modP2pImpl/build.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modP2pImpl/build.xml b/modP2pImpl/build.xml index 0a46495e7c..b0afed82de 100644 --- a/modP2pImpl/build.xml +++ b/modP2pImpl/build.xml @@ -13,7 +13,10 @@ + + + From 154167dedf0e762b96ea1b5365ff236ab23fd997 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 16:35:00 -0400 Subject: [PATCH 115/129] remove giving seed during the random class construct --- .../src/org/aion/p2p/impl/comm/NodeMgr.java | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index fd7b34e546..60b02452d0 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -22,16 +22,22 @@ */ package org.aion.p2p.impl.comm; -import java.nio.ByteBuffer; import java.security.SecureRandom; -import org.aion.p2p.INode; -import org.aion.p2p.INodeMgr; -import org.aion.p2p.IP2pMgr; - -import java.util.*; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.OptionalDouble; +import java.util.Random; +import java.util.Set; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.LinkedBlockingQueue; +import org.aion.p2p.INode; +import org.aion.p2p.INodeMgr; +import org.aion.p2p.IP2pMgr; public class NodeMgr implements INodeMgr { @@ -43,7 +49,7 @@ public class NodeMgr implements INodeMgr { private final int maxTempNodes; - private static final Random random = new SecureRandom(ByteBuffer.allocate(Long.BYTES).putLong(System.currentTimeMillis()).array()); + private static final Random random = new SecureRandom(); private final Set seedIps = new HashSet<>(); @@ -229,7 +235,7 @@ public void timeoutCheck(IP2pMgr mgr) { private void timeoutOutBound(IP2pMgr mgr) { Iterator outboundIt = getOutboundNodes().keySet().iterator(); while (outboundIt.hasNext()) { - int outBound = outboundIt.next(); + int outBound = outboundIt.next(); INode node = getOutboundNodes().get(outBound); if (System.currentTimeMillis() - node.getTimestamp() > TIMEOUT_OUTBOUND_NODES) { From 9326849a85564ccad5a82d587b281614794cdb8a Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 16:49:00 -0400 Subject: [PATCH 116/129] rename static variable --- modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java index d4f4156d50..3329ac2ae1 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/tasks/TaskSend.java @@ -40,7 +40,7 @@ public class TaskSend implements Runnable { private static final int TOTAL_LANE = Math .min(Runtime.getRuntime().availableProcessors() << 1, 32); - private static final int threadQlimit = 20000; + private static final int THREAD_Q_LIMIT = 20000; private final IP2pMgr mgr; private final AtomicBoolean start; @@ -71,7 +71,7 @@ public TaskSend( , TOTAL_LANE , 0 , TimeUnit.MILLISECONDS - , new LinkedBlockingQueue<>(threadQlimit) + , new LinkedBlockingQueue<>(THREAD_Q_LIMIT) , Executors.defaultThreadFactory()); } } From 93da2b6111fc6bef0cc1c01f7e57b5b0149a40a0 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Tue, 5 Jun 2018 17:11:40 -0400 Subject: [PATCH 117/129] add exception log in the nodeMgr shutdown --- modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index a67f48f3ef..b4f75f3b9c 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -431,6 +431,7 @@ public void shutdown() { } catch (Exception e) { e.printStackTrace(); + p2pLOG.debug("p2p-shutdown exception {}", e.getMessage()); } } From c3656b499d6ec93fd451503df7029d11825ef095 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Wed, 6 Jun 2018 09:54:03 -0400 Subject: [PATCH 118/129] adjustment log level --- modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java index b4f75f3b9c..78d7336f09 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java +++ b/modP2pImpl/src/org/aion/p2p/impl/comm/NodeMgr.java @@ -431,7 +431,7 @@ public void shutdown() { } catch (Exception e) { e.printStackTrace(); - p2pLOG.debug("p2p-shutdown exception {}", e.getMessage()); + p2pLOG.error("p2p-shutdown exception {}", e.getMessage()); } } From 1778dbfa00061ef371acbb26a564bf2564699f4b Mon Sep 17 00:00:00 2001 From: jayTseng Date: Fri, 8 Jun 2018 13:21:44 -0400 Subject: [PATCH 119/129] pack client API into release bin --- aion_api | 2 +- build.xml | 8 ++++++++ script/prepack.sh | 10 ++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/aion_api b/aion_api index 5a9c2e4468..024e3944f7 160000 --- a/aion_api +++ b/aion_api @@ -1 +1 @@ -Subproject commit 5a9c2e44681d94354442fedb4f55e535af19312a +Subproject commit 024e3944f7423627531c4ebb5d827b5f67f59ac5 diff --git a/build.xml b/build.xml index 01b5a3a972..222a4681b0 100644 --- a/build.xml +++ b/build.xml @@ -279,6 +279,11 @@ + + + + + @@ -386,6 +391,9 @@ + + + diff --git a/script/prepack.sh b/script/prepack.sh index aaa0582d09..c80cefb1b7 100755 --- a/script/prepack.sh +++ b/script/prepack.sh @@ -5,6 +5,7 @@ JDK_RT="${PACK_PATH}/rt" WEB3JS_PATH="${PACK_PATH}/web3" CONFIG_PATH="${PACK_PATH}/config" DOCS_PATH="${PACK_PATH}/docs" +API_PATH="${PACK_PATH}/clientAPI" if [ ! -d "$PACK_PATH" ]; then mkdir $PACK_PATH @@ -41,4 +42,13 @@ fi if [ ! -d "$DOCS_PATH" ]; then mkdir $DOCS_PATH cp -r ./docs/** $DOCS_PATH + cp aion_api/pack/Java-API-*.doc.zip $DOCS_PATH fi + +# copy the client API files if can't find the client API env +if [ ! -d "$API_PATH" ]; then + mkdir $API_PATH + cp aion_api/pack/libAionApi-*.tar.gz $API_PATH +fi + + From 1280ae2c3e4e16da9ce30cffa6a1a262a54c1fea Mon Sep 17 00:00:00 2001 From: jayTseng Date: Fri, 8 Jun 2018 13:42:33 -0400 Subject: [PATCH 120/129] update pack script --- script/prepack.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/script/prepack.sh b/script/prepack.sh index c80cefb1b7..fcdd3d9463 100755 --- a/script/prepack.sh +++ b/script/prepack.sh @@ -42,7 +42,6 @@ fi if [ ! -d "$DOCS_PATH" ]; then mkdir $DOCS_PATH cp -r ./docs/** $DOCS_PATH - cp aion_api/pack/Java-API-*.doc.zip $DOCS_PATH fi # copy the client API files if can't find the client API env From 464b474acfe83dc886bd45895c8eba5166387b0d Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 13 Jun 2018 12:21:21 -0400 Subject: [PATCH 121/129] bugfix: total diff set for best block at load time --- modAionImpl/src/org/aion/zero/impl/AionHub.java | 13 +++++++++++-- .../org/aion/zero/impl/StandaloneBlockchain.java | 5 ++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 0de41d296a..9d9f74d369 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -367,6 +367,10 @@ private void loadBlockchain() { blockchain.setBestBlock(genesis); blockchain.setTotalDifficulty(genesis.getDifficultyBI()); + if (genesis.getCumulativeDifficulty().equals(BigInteger.ZERO)) { + // setting the object runtime value + genesis.setCumulativeDifficulty(genesis.getDifficultyBI()); + } if (this.eventMgr != null) { List evts = new ArrayList<>(); @@ -386,8 +390,13 @@ private void loadBlockchain() { blockchain.setBestBlock(bestBlock); blockchain.setTotalDifficulty(this.repository.getBlockStore().getTotalDifficulty()); - genLOG.info("loaded block ", blockchain.getBestBlock().getNumber(), - LogUtil.toHexF8(blockchain.getBestBlock().getStateRoot())); + if (bestBlock.getCumulativeDifficulty().equals(BigInteger.ZERO)) { + // setting the object runtime value + bestBlock.setCumulativeDifficulty(this.repository.getBlockStore().getTotalDifficulty()); + } + + LOG.info("loaded block ", blockchain.getBestBlock().getNumber(), + LogUtil.toHexF8(blockchain.getBestBlock().getStateRoot())); } byte[] genesisHash = cfg.getGenesis().getHash(); diff --git a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java index 660bd1fd21..4b7e096b36 100644 --- a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java +++ b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java @@ -44,7 +44,6 @@ import org.aion.zero.impl.blockchain.ChainConfiguration; import org.aion.zero.impl.core.energy.AbstractEnergyStrategyLimit; import org.aion.zero.impl.core.energy.TargetStrategy; -import org.aion.zero.impl.db.AionBlockStore; import org.aion.zero.impl.db.AionRepositoryImpl; import org.aion.zero.impl.db.ContractDetailsAion; import org.aion.zero.impl.types.AionBlock; @@ -339,6 +338,10 @@ public AbstractEnergyStrategyLimit getEnergyLimitStrategy() { bc.getRepository().getBlockStore().saveBlock(genesis, genesis.getDifficultyBI(), true); bc.setBestBlock(genesis); bc.setTotalDifficulty(genesis.getDifficultyBI()); + if (genesis.getCumulativeDifficulty().equals(BigInteger.ZERO)) { + // setting the object runtime value + genesis.setCumulativeDifficulty(genesis.getDifficultyBI()); + } return new Bundle(this.defaultKeys, bc); } From 6d7154513981f80e8354c9254575d7397f9acfde Mon Sep 17 00:00:00 2001 From: jayTseng Date: Wed, 13 Jun 2018 16:56:24 -0400 Subject: [PATCH 122/129] fix block import issue and merge conflict --- modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java | 1 + modAionImpl/src/org/aion/zero/impl/AionHub.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index bdbd8bed66..6633284d59 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java @@ -563,6 +563,7 @@ ImportResult tryToConnectInternal(final AionBlock block, long currTimeSeconds) { // to connect to the main chain final AionBlockSummary summary; if (bestBlock.isParentOf(block)) { + repository.syncToRoot(bestBlock.getStateRoot()); summary = add(block); ret = summary == null ? INVALID_BLOCK : IMPORTED_BEST; } else { diff --git a/modAionImpl/src/org/aion/zero/impl/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 9d9f74d369..fbdd702c48 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -25,6 +25,7 @@ import static org.aion.crypto.HashUtil.EMPTY_TRIE_HASH; import java.io.File; +import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -395,7 +396,7 @@ private void loadBlockchain() { bestBlock.setCumulativeDifficulty(this.repository.getBlockStore().getTotalDifficulty()); } - LOG.info("loaded block ", blockchain.getBestBlock().getNumber(), + genLOG.info("loaded block ", blockchain.getBestBlock().getNumber(), LogUtil.toHexF8(blockchain.getBestBlock().getStateRoot())); } From d0c5ddd5bed9940d3adb9ae7db14cbafabe5c999 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 13 Jun 2018 17:06:19 -0400 Subject: [PATCH 123/129] test rollback on fork with exception --- .../aion/zero/impl/BlockchainForkingTest.java | 72 +++++++++++++++++-- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java b/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java index d5e247c35e..d14af8fe6e 100644 --- a/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java +++ b/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java @@ -39,12 +39,10 @@ import org.aion.crypto.ECKey; import org.aion.mcf.core.ImportResult; import org.aion.zero.impl.blockchain.ChainConfiguration; -import org.aion.zero.impl.db.AionRepositoryImpl; import org.aion.zero.impl.types.AionBlock; import org.junit.Test; import java.math.BigInteger; -import java.util.Collection; import java.util.Collections; import java.util.List; @@ -136,7 +134,7 @@ public void testInvalidFirstBlockDifficulty() { higherDifficultyBlock.getHeader().setDifficulty(difficulty.toByteArray()); System.out.println("before any processing: " + new ByteArrayWrapper(bc.getRepository().getRoot())); - System.out.println("trie: " + ((AionRepositoryImpl) bc.getRepository()).getWorldState().getTrieDump()); + System.out.println("trie: " + bc.getRepository().getWorldState().getTrieDump()); ImportResult result = bc.tryToConnect(standardBlock); assertThat(result).isEqualTo(ImportResult.IMPORTED_BEST); @@ -226,7 +224,7 @@ public void testSecondBlockHigherDifficultyFork() { StandaloneBlockchain bc = bundle.bc; List accs = bundle.privateKeys; - // generate three blocks, on the third block we get flexiblity + // generate three blocks, on the third block we get flexibility // for what difficulties can occur BlockContext firstBlock = bc.createNewBlockInternal( @@ -274,4 +272,70 @@ public void testSecondBlockHigherDifficultyFork() { assertThat(bc.getBestBlock()).isEqualTo(fastBlockDescendant.block); } + + /** + * Test fork with exception. + */ + @Test + public void testSecondBlockHigherDifficultyFork_wExceptionOnFasterBlockAdd() { + StandaloneBlockchain.Builder builder = new StandaloneBlockchain.Builder(); + StandaloneBlockchain.Bundle bundle = builder.withValidatorConfiguration("simple").withDefaultAccounts().build(); + + long time = System.currentTimeMillis(); + + StandaloneBlockchain bc = bundle.bc; + + // generate three blocks, on the third block we get flexibility + // for what difficulties can occur + + BlockContext firstBlock = bc + .createNewBlockInternal(bc.getGenesis(), Collections.emptyList(), true, time / 1000L); + assertThat(bc.tryToConnectInternal(firstBlock.block, (time += 10))).isEqualTo(ImportResult.IMPORTED_BEST); + + // now connect the second block + BlockContext secondBlock = bc + .createNewBlockInternal(firstBlock.block, Collections.emptyList(), true, time / 1000L); + assertThat(bc.tryToConnectInternal(secondBlock.block, time += 10)).isEqualTo(ImportResult.IMPORTED_BEST); + + // now on the third block, we diverge with one block having higher TD than the other + BlockContext fasterSecondBlock = bc + .createNewBlockInternal(secondBlock.block, Collections.emptyList(), true, time / 1000L); + AionBlock slowerSecondBlock = new AionBlock(fasterSecondBlock.block); + + slowerSecondBlock.getHeader().setTimestamp(time / 1000L + 100); + + assertThat(bc.tryToConnectInternal(fasterSecondBlock.block, time + 100)).isEqualTo(ImportResult.IMPORTED_BEST); + assertThat(bc.tryToConnectInternal(slowerSecondBlock, time + 100)).isEqualTo(ImportResult.IMPORTED_NOT_BEST); + + time += 100; + + BlockContext fastBlockDescendant = bc + .createNewBlockInternal(fasterSecondBlock.block, Collections.emptyList(), true, time / 1000L); + BlockContext slowerBlockDescendant = bc + .createNewBlockInternal(slowerSecondBlock, Collections.emptyList(), true, time / 1000L + 100 + 1); + + // increment by another hundred (this is supposed to be when the slower block descendant is completed) + time += 100; + + assertThat(fastBlockDescendant.block.getDifficultyBI()) + .isGreaterThan(slowerBlockDescendant.block.getDifficultyBI()); + System.out.println("faster block descendant TD: " + fastBlockDescendant.block.getDifficultyBI()); + System.out.println("slower block descendant TD: " + slowerBlockDescendant.block.getDifficultyBI()); + + assertThat(bc.tryToConnectInternal(slowerBlockDescendant.block, time)).isEqualTo(ImportResult.IMPORTED_BEST); + + // corrupt the parent for the fast block descendant + bc.getRepository().getStateDatabase().delete(fasterSecondBlock.block.getStateRoot()); + assertThat(bc.getRepository().isValidRoot(fasterSecondBlock.block.getStateRoot())).isFalse(); + + // attempt adding the fastBlockDescendant + assertThat(bc.tryToConnectInternal(fastBlockDescendant.block, time)).isEqualTo(ImportResult.INVALID_BLOCK); + + // check for correct state rollback + assertThat(bc.getBestBlock()).isEqualTo(slowerBlockDescendant.block); + assertThat(bc.getRepository().getRoot()).isEqualTo(slowerBlockDescendant.block.getStateRoot()); + assertThat(bc.getTotalDifficulty()).isEqualTo(bc.getRepository().getBlockStore() + .getTotalDifficultyForHash(slowerBlockDescendant.block + .getHash())); + } } From 3fb07f0e867ba6cbf97566050ee24b0a1ea958d1 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Wed, 13 Jun 2018 17:33:02 -0400 Subject: [PATCH 124/129] test rollback on adding invalid block --- .../aion/zero/impl/BlockchainForkingTest.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java b/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java index d14af8fe6e..0b82a9306b 100644 --- a/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java +++ b/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java @@ -155,6 +155,12 @@ public void testInvalidFirstBlockDifficulty() { // the object reference here is intentional assertThat(bc.getBestBlock() == standardBlock).isTrue(); + + // check for correct state rollback + assertThat(bc.getRepository().getRoot()).isEqualTo(standardBlock.getStateRoot()); + assertThat(bc.getTotalDifficulty()) + .isEqualTo(bc.getRepository().getBlockStore().getTotalDifficultyForHash(standardBlock.getHash())); + } /*- @@ -338,4 +344,30 @@ public void testSecondBlockHigherDifficultyFork_wExceptionOnFasterBlockAdd() { .getTotalDifficultyForHash(slowerBlockDescendant.block .getHash())); } + + @Test + public void testRollbackWithAddInvalidBlock() { + StandaloneBlockchain.Builder builder = new StandaloneBlockchain.Builder(); + StandaloneBlockchain.Bundle b = builder.withValidatorConfiguration("simple").build(); + + StandaloneBlockchain bc = b.bc; + AionBlock block = bc.createNewBlock(bc.getBestBlock(), Collections.emptyList(), true); + + assertThat(bc.tryToConnect(block)).isEqualTo(ImportResult.IMPORTED_BEST); + + // check that the returned block is the first block + assertThat(bc.getBestBlock() == block).isTrue(); + + AionBlock invalidBlock = bc.createNewBlock(bc.getBestBlock(), Collections.emptyList(), true); + invalidBlock.getHeader().setDifficulty(BigInteger.ONE.toByteArray()); + + // attempting to add invalid block + assertThat(bc.tryToConnect(invalidBlock)).isEqualTo(ImportResult.INVALID_BLOCK); + + // check for correct state rollback + assertThat(bc.getBestBlock()).isEqualTo(block); + assertThat(bc.getRepository().getRoot()).isEqualTo(block.getStateRoot()); + assertThat(bc.getTotalDifficulty()) + .isEqualTo(bc.getRepository().getBlockStore().getTotalDifficultyForHash(block.getHash())); + } } From 395bb01d511efac279e5a5857902fa11135d5f46 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Thu, 14 Jun 2018 12:02:27 -0400 Subject: [PATCH 125/129] import block to the fork chain issue fix --- .../src/org/aion/zero/impl/AionBlockchainImpl.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index 6633284d59..de12445c31 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java +++ b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java @@ -453,23 +453,16 @@ private AionBlockSummary tryConnectAndFork(final AionBlock block) { State savedState = pushState(block.getParentHash()); this.fork = true; - final AionBlockSummary summary; + AionBlockSummary summary = null; try { - // LOG.info("block " + block.toString()); - - // FIXME: adding block with no option for flush summary = add(block); - if (summary == null) { - return null; - } } catch (Throwable th) { LOG.error("Unexpected error: ", th); - return null; } finally { this.fork = false; } - if (isMoreThan(this.totalDifficulty, savedState.savedTD)) { + if (summary != null && isMoreThan(this.totalDifficulty, savedState.savedTD)) { if (LOG.isInfoEnabled()) LOG.info("branching: from = {}/{}, to = {}/{}", @@ -772,6 +765,7 @@ public synchronized AionBlockSummary add(AionBlock block, boolean rebuild) { LOG.warn("Block's given Receipt Hash doesn't match: {} != {}", receiptHash, receiptListHash); LOG.warn("Calculated receipts: " + receipts); } + track.rollback(); return null; } From 4df7eb6b7ea3da11ffb2d859d6265548666c9fc9 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Thu, 14 Jun 2018 13:03:54 -0400 Subject: [PATCH 126/129] update fvm ref --- aion_fastvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aion_fastvm b/aion_fastvm index 4c442f63b5..b6e248c9ba 160000 --- a/aion_fastvm +++ b/aion_fastvm @@ -1 +1 @@ -Subproject commit 4c442f63b55241e057d3100dfecfa8c517597dac +Subproject commit b6e248c9ba14d467639a8f42b895218fb50366c8 From ef6c78a6bc92f3ab777fc889e5d603a4078b05f9 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Thu, 14 Jun 2018 13:20:51 -0400 Subject: [PATCH 127/129] update aion_api ref --- aion_api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aion_api b/aion_api index 024e3944f7..75f2e8c6d5 160000 --- a/aion_api +++ b/aion_api @@ -1 +1 @@ -Subproject commit 024e3944f7423627531c4ebb5d827b5f67f59ac5 +Subproject commit 75f2e8c6d530d6b9f14ecfc3dd9f7be75b9125ee From c9e951b16e3b83b15ff34d2f90740e5e25f4fa17 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Thu, 14 Jun 2018 13:21:49 -0400 Subject: [PATCH 128/129] pump kernel version --- modAionImpl/src/org/aion/zero/impl/Version.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modAionImpl/src/org/aion/zero/impl/Version.java b/modAionImpl/src/org/aion/zero/impl/Version.java index 32e530e467..9a02465a25 100644 --- a/modAionImpl/src/org/aion/zero/impl/Version.java +++ b/modAionImpl/src/org/aion/zero/impl/Version.java @@ -1,7 +1,7 @@ package org.aion.zero.impl; public class Version { - public static final String KERNEL_VERSION = "0.2.7"; + public static final String KERNEL_VERSION = "0.2.8"; public static final String REPO_VERSION = "0.1.0"; public static final boolean FORK = true; } From 048b86db91d14b56a4cae5eb0f7717b8ac1054a9 Mon Sep 17 00:00:00 2001 From: jayTseng Date: Thu, 14 Jun 2018 13:43:46 -0400 Subject: [PATCH 129/129] update fvm ref --- aion_fastvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aion_fastvm b/aion_fastvm index b6e248c9ba..9087a973f5 160000 --- a/aion_fastvm +++ b/aion_fastvm @@ -1 +1 @@ -Subproject commit b6e248c9ba14d467639a8f42b895218fb50366c8 +Subproject commit 9087a973f595b7ae4c82c583cb80cbc46b4f4604